2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1577 extrasub
='/^VPATH[ ]*=/c\
1578 vpath %.c $(srcdir)\
1579 vpath %.h $(srcdir)\
1580 vpath %.y $(srcdir)\
1581 vpath %.l $(srcdir)\
1582 vpath %.s $(srcdir)\
1583 vpath %.in $(srcdir)\
1584 vpath %.texi $(srcdir)'
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1593 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1594 if test -f $ac_dir/install-sh
; then
1596 ac_install_sh
="$ac_aux_dir/install-sh -c"
1598 elif test -f $ac_dir/install.sh
; then
1600 ac_install_sh
="$ac_aux_dir/install.sh -c"
1602 elif test -f $ac_dir/shtool
; then
1604 ac_install_sh
="$ac_aux_dir/shtool install -c"
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias
=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias
=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias
=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias
=$ac_cv_build_alias
1657 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 configuration
=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine
='' opsys
='' unported
=no
1700 case "${canonical}" in
1705 case "${canonical}" in
1706 alpha
*-*-freebsd*) machine
=alpha
;;
1707 i
[3456]86-*-freebsd*) machine
=intel386
;;
1714 if test -f /usr
/lib
/crti.o
; then
1716 cat >>confdefs.h
<<\_ACEOF
1722 case "${canonical}" in
1723 alpha
*-*-netbsd*) machine
=alpha
;;
1724 i
[3456]86-*-netbsd*) machine
=intel386
;;
1726 # This is somewhat bogus.
1727 machine
=hp9000s300
;;
1728 powerpc-apple-netbsd
*) machine
=macppc
;;
1729 mips-
*-netbsd*) machine
=pmax
;;
1730 mipsel-
*-netbsd*) machine
=pmax
;;
1731 mipseb-
*-netbsd*) machine
=pmax
;;
1732 ns32k-
*-netbsd*) machine
=ns32000
;;
1733 powerpc-
*-netbsd*) machine
=macppc
;;
1734 sparc
*-*-netbsd*) machine
=sparc
;;
1735 vax-
*-netbsd*) machine
=vax
;;
1736 arm-
*-netbsd*) machine
=arm
;;
1743 case "${canonical}" in
1744 alpha
*-*-openbsd*) machine
=alpha
;;
1745 i386-
*-openbsd*) machine
=intel386
;;
1746 m68k-
*-openbsd*) machine
=hp9000s300
;;
1747 mipsel-
*-openbsd*) machine
=pmax
;;
1748 ns32k-
*-openbsd*) machine
=ns32000
;;
1749 sparc-
*-openbsd*) machine
=sparc
;;
1750 vax-
*-openbsd*) machine
=vax
;;
1755 arm-acorn-riscix1.1
* )
1756 machine
=acorn opsys
=riscix1-1
1758 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine
=acorn opsys
=riscix12
1767 case "${canonical}" in
1768 i
[345]86-*-bsdi*) machine
=intel386
;;
1769 sparc-
*-bsdi*) machine
=sparc
;;
1770 powerpc-
*-bsdi*) machine
=macppc
;;
1772 case "${canonical}" in
1773 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1774 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1775 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1776 *-*-bsdi3* ) opsys
=bsdos3
;;
1777 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1788 machine
=alliant4 opsys
=bsd4-2
1791 machine
=alliant-2800 opsys
=bsd4-3
1794 ## Alpha (DEC) machines.
1796 machine
=alpha opsys
=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1799 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP
=/usr
/bin
/cpp
1805 case "${canonical}" in
1806 alpha
*-dec-osf[5-9]*)
1811 alpha
*-*-linux-gnu* )
1812 machine
=alpha opsys
=gnu-linux
1816 machine
=arm opsys
=gnu-linux
1821 machine
=macppc opsys
=gnu-linux
1826 machine
=altos opsys
=usg5-2
1831 machine
=amdahl opsys
=usg5-2-2
1834 ## Apollo, Domain/OS
1836 machine
=apollo opsys
=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1841 machine
=att3b opsys
=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1846 machine
=7300 opsys
=usg5-2-2
1851 machine
=ibmrs6000 opsys
=aix3-2
1856 machine
=dpx2 opsys
=usg5-3
1861 machine
=sps7 opsys
=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd
* )
1871 machine
=celerity opsys
=bsd4-2
1875 ## What operating systems does this chip run that Emacs has been
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1884 mips-compaq-nonstopux
* )
1885 machine
=nonstopux opsys
=nonstopux
1889 *-convex-bsd* |
*-convex-convexos* )
1890 machine
=convex opsys
=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP
="cc -E -P"
1896 i
[3456]86-cubix-sysv* )
1897 machine
=intel386 opsys
=usg5-3
1901 cydra
*-cydrome-sysv* )
1902 machine
=cydra5 opsys
=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1912 machine
=aviion opsys
=dgux4
1914 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine
=aviion opsys
=dgux5-4-3
1919 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1920 machine
=aviion opsys
=dgux5-4r2
1923 machine
=aviion opsys
=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i
[345]86-dg-dguxR4* )
1930 machine
=aviion-intel opsys
=dgux4
1934 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1935 machine
=pmax opsys
=bsd4-2
1937 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1938 machine
=pmax opsys
=bsd4-3
1941 machine
=pmax opsys
=ultrix4-3
1944 machine
=pmax opsys
=osf1
1946 mips-dec-mach_bsd4.3
* )
1947 machine
=pmax opsys
=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1952 machine
=delta opsys
=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1955 if test -s /etc
/167config
1956 then CC
="gnucc -m68040"
1957 else CC
="gnucc -m68881"
1960 if test -z "`type gcc | grep 'not found'`"
1966 m88k-motorola-sysv4
* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine
=delta88k opsys
=usg5-4-2
1973 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1974 machine
=delta88k opsys
=usg5-3
1979 machine
=dual opsys
=usg5-2
1981 m68
*-dual-uniplus* )
1982 machine
=dual opsys
=unipl5-2
1987 machine
=elxsi opsys
=usg5-2
1992 machine
=ns16000 opsys
=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
2000 machine
=gould opsys
=bsd4-2
2003 machine
=gould opsys
=bsd4-3
2006 machine
=gould-np1 opsys
=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2015 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2017 NON_GNU_CPP
="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2021 machine
=nh3000 opsys
=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix
)
2025 machine
=nh6000 opsys
=powerunix
2026 NON_GNU_CPP
="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1
-hitachi-hiuxmpp* )
2030 machine
=sr2k opsys
=hiuxmpp
2032 hppa1.1
-hitachi-hiuxwe2* )
2033 machine
=sr2k opsys
=hiuxwe2
2036 xps
*-honeywell-sysv* )
2037 machine
=xps100 opsys
=usg5-2
2040 ## HP 9000 series 200 or 300
2042 machine
=hp9000s300 opsys
=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2050 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2051 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2052 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2053 *) machine
=hp9000s300 opsys
=hpux
;;
2057 ## HP 9000 series 700 and 800, running HP/UX
2059 machine
=hp800 opsys
=hpux
2062 machine
=hp800 opsys
=hpux8
2064 hppa
*-hp-hpux9shr* )
2065 machine
=hp800 opsys
=hpux9shr
2068 machine
=hp800 opsys
=hpux9
2070 hppa
*-hp-hpux10.2
* )
2071 machine
=hp800 opsys
=hpux10-20
2074 machine
=hp800 opsys
=hpux10
2076 hppa
*-hp-hpux1[1-9]* )
2077 machine
=hp800 opsys
=hpux11
2080 hppa
*-*-linux-gnu* )
2081 machine
=hp800 opsys
=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2091 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2092 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2093 *) machine
=hp800 opsys
=hpux10
;;
2097 machine
=hp800 opsys
=nextstep
2102 machine
=orion opsys
=bsd4-2
2104 clipper-orion-bsd
* )
2105 machine
=orion105 opsys
=bsd4-2
2109 i
[3456]86-ibm-aix1.1
* )
2110 machine
=ibmps2-aix opsys
=usg5-2-2
2112 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2113 machine
=ibmps2-aix opsys
=usg5-3
2116 machine
=ibm370aix opsys
=usg5-3
2119 machine
=ibms390 opsys
=gnu-linux
2121 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2122 machine
=ibmrs6000 opsys
=aix3-1
2124 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2125 machine
=ibmrs6000 opsys
=aix3-2-5
2127 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2128 machine
=ibmrs6000 opsys
=aix4-1
2130 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2131 machine
=ibmrs6000 opsys
=aix4-2
2133 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2134 machine
=ibmrs6000 opsys
=aix4-2
2136 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2137 machine
=ibmrs6000 opsys
=aix4
2139 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2140 machine
=ibmrs6000 opsys
=aix4-1
2142 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2143 machine
=ibmrs6000 opsys
=aix3-2
2146 machine
=ibmrt opsys
=bsd4-3
2149 machine
=ibmrt opsys
=bsd4-2
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt opsys
=bsd4-2
2158 machine
=ibmrt opsys
=bsd4-3
2161 machine
=ibmrt opsys
=bsd4-3
2164 machine
=ibmrt-aix opsys
=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2169 machine
=isi-ov opsys
=bsd4-2
2172 machine
=isi-ov opsys
=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i
[3456]86-intsys-sysv* )
2177 machine
=is386 opsys
=usg5-2-2
2181 i
[3456]86-prime-sysv* )
2182 machine
=i386 opsys
=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i
[3456]86-sequent-bsd* )
2187 machine
=symmetry opsys
=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2192 machine
=sequent-ptx opsys
=ptx4
2193 NON_GNU_CPP
=/lib
/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i
[3456]86-sequent-ptx* )
2199 machine
=sequent-ptx opsys
=ptx
2200 NON_GNU_CPP
="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i
[3456]86-ncr-sysv4.3
)
2205 machine
=ncr386 opsys
=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i
[3456]86-ncr-sysv* )
2211 machine
=ncr386 opsys
=usg5-4-2
2214 ## Intel Paragon OSF/1
2216 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2221 machine
=i860 opsys
=usg5-4
2222 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc
*-*-linux-gnu* )
2228 machine
=macppc opsys
=gnu-linux
2231 ## Masscomp machines
2232 m68
*-masscomp-rtu* )
2233 machine
=masscomp opsys
=rtu
2236 ## Megatest machines
2237 m68
*-megatest-bsd* )
2238 machine
=mega68 opsys
=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4
* )
2257 machine
=mips4 opsys
=bsd4-3
2258 NON_GNU_CC
="cc -systype bsd43"
2259 NON_GNU_CPP
="cc -systype bsd43 -E"
2261 mips-mips-riscos5
* )
2262 machine
=mips4 opsys
=riscos5
2263 NON_GNU_CC
="cc -systype bsd43"
2264 NON_GNU_CPP
="cc -systype bsd43 -E"
2267 machine
=mips opsys
=bsd4-3
2270 machine
=mips opsys
=usg5-2-2
2274 m68
*-next-* | m68k-
*-nextstep* )
2275 machine
=m68k opsys
=nextstep
2278 ## The complete machine from National Semiconductor
2280 machine
=ns32000 opsys
=usg5-2
2284 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2285 machine
=tower32 opsys
=usg5-2-2
2287 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2288 machine
=tower32v3 opsys
=usg5-3
2293 machine
=ews4800 opsys
=ux4800
2296 ## Nixdorf Targon 31
2297 m68
*-nixdorf-sysv* )
2298 machine
=targon31 opsys
=usg5-2-2
2303 machine
=nu opsys
=usg5-2
2308 machine
=plexus opsys
=usg5-2
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd
* )
2315 machine
=pyramid opsys
=bsd4-2
2319 ns32k-sequent-bsd4.2
* )
2320 machine
=sequent opsys
=bsd4-2
2322 ns32k-sequent-bsd4.3
* )
2323 machine
=sequent opsys
=bsd4-3
2327 mips-siemens-sysv
* | mips-sni-sysv
*)
2328 machine
=mips-siemens opsys
=usg5-4
2329 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2330 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2336 machine
=irist opsys
=iris3-5
2338 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2339 machine
=irist opsys
=iris3-6
2343 machine
=iris4d opsys
=irix3-3
2346 machine
=iris4d opsys
=irix4-0
2349 machine
=iris4d opsys
=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2357 machine
=iris4d opsys
=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS
=-32
2364 mips-sgi-irix5.
[01]* )
2365 machine
=iris4d opsys
=irix5-0
2367 mips-sgi-irix5
* | mips-sgi-irix
* )
2368 machine
=iris4d opsys
=irix5-2
2373 machine
=news opsys
=bsd4-2
2376 machine
=news opsys
=bsd4-3
2378 m68
*-sony-newsos3* | m68
*-sony-news3*)
2379 machine
=news opsys
=bsd4-3
2381 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2382 machine
=news-risc opsys
=bsd4-3
2384 mips-sony-newsos6
* )
2385 machine
=news-r6 opsys
=newsos6
2388 machine
=news-risc opsys
=newsos5
2393 machine
=stride opsys
=usg5-2
2397 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2398 machine
=sparc opsys
=gnu-linux
2401 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2402 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2403 | rs6000-
*-solaris2*)
2404 case "${canonical}" in
2405 m68
*-sunos1* ) machine
=sun1
;;
2406 m68
*-sunos2* ) machine
=sun2
;;
2407 m68
* ) machine
=sun3
;;
2408 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2409 i
[3456]86-*-* ) machine
=intel386
;;
2410 powerpcle
* ) machine
=powerpcle
;;
2411 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2412 sparc
* ) machine
=sparc
;;
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2418 *-sunos4.0
* ) opsys
=sunos4-0
;;
2419 *-sunos4.1.
[3-9]*noshare
)
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2423 NON_GNU_CPP
=/usr
/lib
/cpp
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2429 NON_GNU_CPP
=/usr
/lib
/cpp
2431 *-sunos4* |
*-sunos )
2433 NON_GCC_TEST_OPTIONS
=-Bstatic
2434 GCC_TEST_OPTIONS
=-static
2436 *-sunos5.3
* |
*-solaris2.3
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2440 *-sunos5.4
* |
*-solaris2.4
* )
2442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2445 *-sunos5.5
* |
*-solaris2.5
* )
2447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2450 *-sunos5.6
* |
*-solaris2.6
* )
2452 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2455 *-sunos5* |
*-solaris* )
2457 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* |
*-sunos5* )
2464 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2474 machine
=sparc opsys
=nextstep
2478 m68
*-tadpole-sysv* )
2479 machine
=tad68k opsys
=usg5-3
2483 tahoe-tahoe-bsd4.2
* )
2484 machine
=tahoe opsys
=bsd4-2
2486 tahoe-tahoe-bsd4.3
* )
2487 machine
=tahoe opsys
=bsd4-3
2490 ## Tandem Integrity S2
2492 machine
=tandem-s2 opsys
=usg5-3
2496 m88k-tektronix-sysv3
* )
2497 machine
=tekxd88 opsys
=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd
* )
2502 machine
=ns16000 opsys
=bsd4-2
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68
*-tektronix-bsd* )
2507 machine
=tek4300 opsys
=bsd4-3
2511 ## We seem to have lost the machine-description file titan.h!
2513 machine
=titan opsys
=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68
*-unisys-uniplus* )
2518 machine
=ustation opsystem
=unipl5-2
2524 case "${canonical}" in
2525 *-bsd4.1
* ) opsys
=bsd4-1
;;
2526 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2527 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2528 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2529 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2530 *-vms* ) opsys
=vms
;;
2536 ns16k-whitechapel-
* )
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2544 machine
=wicat opsys
=usg5-2
2549 machine
=ia64 opsys
=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2555 case "${canonical}" in
2556 *-cygwin ) opsys
=cygwin
;;
2557 *-lynxos* ) opsys
=lynxos
;;
2558 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2559 *-isc2.2
* ) opsys
=isc2-2
;;
2560 *-isc4.0
* ) opsys
=isc4-0
;;
2561 *-isc4.
* ) opsys
=isc4-1
2562 GCC_TEST_OPTIONS
=-posix
2563 NON_GCC_TEST_OPTIONS
=-Xp
2565 *-isc* ) opsys
=isc3-0
;;
2566 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2567 *-esix* ) opsys
=esix
;;
2568 *-xenix* ) opsys
=xenix
;;
2569 *-linux-gnu* ) opsys
=gnu-linux
;;
2570 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-sco3.2v5
* ) opsys
=sco5
2572 NON_GNU_CPP
=/lib
/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS
=" "
2577 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2578 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2579 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2580 *-386bsd* ) opsys
=386bsd
;;
2581 *-nextstep* ) opsys
=nextstep
;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2586 ## m68k Linux-based GNU system
2588 machine
=m68k opsys
=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2593 machine
=mips opsys
=gnu-linux
2597 sparc-fujitsu-sysv4
* )
2598 machine
=sparc opsys
=uxpds
2599 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2604 f301-fujitsu-uxpv4.1
)
2605 machine
=f301 opsys
=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin
* )
2610 machine
=powermac opsys
=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP
="${CC-cc} -E -no-cpp-precomp"
2613 # Use fink packages if available.
2614 if test -d /sw
/include
&& test -d /sw
/lib
; then
2615 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2616 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-
*-linux-gnu* )
2623 machine
=amdx86-64 opsys
=gnu-linux
2631 ### If the code above didn't choose an operating system, just choose
2632 ### an operating system based on the configuration name. You really
2633 ### only want to use this when you have no idea what the right
2634 ### operating system is; if you know what operating systems a machine
2635 ### runs, it's cleaner to make it explicit in the case statement
2637 if test x
"${opsys}" = x
; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys
=gnu
;;
2640 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2641 *-bsd4.2
) opsys
=bsd4-2
;;
2642 *-bsd4.3
) opsys
=bsd4-3
;;
2643 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2644 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2645 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2646 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2647 *-sysv4.2uw
* ) opsys
=unixware
;;
2648 *-sysv5uw* ) opsys
=unixware
;;
2649 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2650 *-sysv4.1
* |
*-sysvr4.1
* )
2651 NON_GNU_CPP
=/usr
/lib
/cpp
2653 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2654 if [ x
$NON_GNU_CPP = x
]; then
2655 if [ -f /usr
/ccs
/lib
/cpp
]; then
2656 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2658 NON_GNU_CPP
=/lib
/cpp
2662 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2671 if test $unported = yes; then
2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2673 Check \`etc/MACHINES' for recognized configuration names." >&5
2674 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
2679 machfile
="m/${machine}.h"
2680 opsysfile
="s/${opsys}.h"
2683 #### Choose a compiler.
2684 test -n "$CC" && cc_specified
=yes
2686 # Save the value of CFLAGS that the user specified.
2687 SPECIFIED_CFLAGS
="$CFLAGS"
2690 "yes" ) CC
="gcc" GCC
=yes ;;
2691 "no" ) : ${CC=cc} ;;
2695 ac_cpp
='$CPP $CPPFLAGS'
2696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC
="$CC" # Let the user override the test.
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 for ac_exec_ext
in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2736 if test -z "$ac_cv_prog_CC"; then
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc
; ac_word
=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir
=.
2753 for ac_exec_ext
in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC
="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC
="$CC" # Let the user override the test.
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 for ac_exec_ext
in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$ac_cv_prog_CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc
; ac_word
=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC
="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847 echo "${ECHO_T}$ac_ct_CC" >&6
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc
; ac_word
=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC
="$CC" # Let the user override the test.
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_exec_ext
in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected
=yes
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy
$ac_cv_prog_CC
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2898 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2904 if test -n "$CC"; then
2905 echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC
="$CC" # Let the user override the test.
2927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir
=.
2932 for ac_exec_ext
in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2952 test -n "$CC" && break
2955 if test -z "$CC"; then
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy
$ac_prog; ac_word
=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir
=.
2974 for ac_exec_ext
in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC
="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 test -n "$ac_ct_CC" && break
3003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3009 # Provide some information about the compiler.
3010 echo "$as_me:$LINENO:" \
3011 "checking for C compiler version" >&5
3012 ac_compiler
=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3014 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3019 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3024 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3029 cat >conftest.
$ac_ext <<_ACEOF
3032 cat confdefs.h
>>conftest.
$ac_ext
3033 cat >>conftest.
$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 ac_clean_files_save
=$ac_clean_files
3045 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3049 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3051 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3053 (eval $ac_link_default) 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3061 # Be careful to initialize this variable, since it used to be cached.
3062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3064 # b.out is created by i960 compilers.
3065 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3067 test -f "$ac_file" ||
continue
3069 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3072 # This is the source file.
3075 # We found the default executable, but exeext='' is most
3079 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3100 ac_exeext
=$ac_cv_exeext
3101 echo "$as_me:$LINENO: result: $ac_file" >&5
3102 echo "${ECHO_T}$ac_file" >&6
3104 # Check the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try
='./$ac_file'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3119 if test "$cross_compiling" = maybe
; then
3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3136 ac_clean_files
=$ac_clean_files_save
3137 # Check the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3142 echo "${ECHO_T}$cross_compiling" >&6
3144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3155 for ac_file
in conftest.exe conftest conftest.
*; do
3156 test -f "$ac_file" ||
continue
3158 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3159 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest
$ac_cv_exeext
3174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6
3177 rm -f conftest.
$ac_ext
3178 EXEEXT
=$ac_cv_exeext
3180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.
$ac_ext <<_ACEOF
3188 cat confdefs.h
>>conftest.
$ac_ext
3189 cat >>conftest.
$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3208 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3209 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.
$ac_ext >&5
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3224 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 echo "${ECHO_T}$ac_cv_objext" >&6
3228 OBJEXT
=$ac_cv_objext
3230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 cat >conftest.
$ac_ext <<_ACEOF
3238 cat confdefs.h
>>conftest.
$ac_ext
3239 cat >>conftest.
$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3253 rm -f conftest.
$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3257 grep -v '^ *+' conftest.er1
>conftest.err
3259 cat conftest.err
>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try
='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try
='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.
$ac_ext >&5
3282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3283 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3289 ac_test_CFLAGS
=${CFLAGS+set}
3290 ac_save_CFLAGS
=$CFLAGS
3292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3312 rm -f conftest.
$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1
>conftest.err
3318 cat conftest.err
>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try
='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try
='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.
$ac_ext >&5
3341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS
=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3354 if test "$GCC" = yes; then
3360 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 ac_cv_prog_cc_stdc
=no
3367 cat >conftest.
$ac_ext <<_ACEOF
3370 cat confdefs.h
>>conftest.
$ac_ext
3371 cat >>conftest.
$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3391 s = g (p, va_arg (v,int));
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 # Don't try gcc -ansi; that turns off useful extensions and
3420 # breaks some systems' header files.
3421 # AIX -qlanglvl=ansi
3422 # Ultrix and OSF/1 -std1
3423 # HP-UX 10.20 and later -Ae
3424 # HP-UX older versions -Aa -D_HPUX_SOURCE
3425 # SVR4 -Xc -D__EXTENSIONS__
3426 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 CC
="$ac_save_CC $ac_arg"
3429 rm -f conftest.
$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3433 grep -v '^ *+' conftest.er1
>conftest.err
3435 cat conftest.err
>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try
='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try
='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc
=$ac_arg
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.
$ac_ext >&5
3458 rm -f conftest.err conftest.
$ac_objext
3460 rm -f conftest.
$ac_ext conftest.
$ac_objext
3465 case "x$ac_cv_prog_cc_stdc" in
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468 echo "${ECHO_T}none needed" >&6 ;;
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3475 # Some people use a C++ compiler to compile C. Since we use `exit',
3476 # in C++ we need to declare it. In case someone uses the same compiler
3477 # for both compiling C and C++ we need to have the C++ compiler decide
3478 # the declaration of exit, since it's the most demanding environment.
3479 cat >conftest.
$ac_ext <<_ACEOF
3484 rm -f conftest.
$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1
>conftest.err
3490 cat conftest.err
>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try
='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try
='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 for ac_declaration
in \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3514 cat >conftest.
$ac_ext <<_ACEOF
3517 cat confdefs.h
>>conftest.
$ac_ext
3518 cat >>conftest.
$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3530 rm -f conftest.
$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1
>conftest.err
3536 cat conftest.err
>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try
='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try
='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.
$ac_ext >&5
3559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3560 cat >conftest.
$ac_ext <<_ACEOF
3563 cat confdefs.h
>>conftest.
$ac_ext
3564 cat >>conftest.
$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3575 rm -f conftest.
$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3579 grep -v '^ *+' conftest.er1
>conftest.err
3581 cat conftest.err
>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try
='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try
='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.
$ac_ext >&5
3603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
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
3619 ac_cpp
='$CPP $CPPFLAGS'
3620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3630 #### Some systems specify a CPP to use unless we are using GCC.
3631 #### Now that we know whether we are using GCC, we can decide whether
3632 #### to use that one.
3633 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3638 #### Some systems specify a CC to use unless we are using GCC.
3639 #### Now that we know whether we are using GCC, we can decide whether
3640 #### to use that one.
3641 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3642 test x
$cc_specified != xyes
3647 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3649 CC
="$CC $GCC_TEST_OPTIONS"
3652 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3654 CC
="$CC $NON_GCC_TEST_OPTIONS"
3657 #### Some other nice autoconf tests.
3659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3662 if test "$LN_S" = "ln -s"; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3667 echo "${ECHO_T}no, using $LN_S" >&6
3671 ac_cpp
='$CPP $CPPFLAGS'
3672 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3675 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3676 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3677 # On Suns, sometimes $CPP names a directory.
3678 if test -n "$CPP" && test -d "$CPP"; then
3681 if test -z "$CPP"; then
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 # Double quotes because CPP needs to be expanded
3686 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689 for ac_c_preproc_warn_flag
in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 # include <limits.h>
3706 # include <assert.h>
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1
>conftest.err
3715 cat conftest.err
>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev
/null
; then
3718 if test -s conftest.err
; then
3719 ac_cpp_err
=$ac_c_preproc_warn_flag
3720 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3727 if test -z "$ac_cpp_err"; then
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.
$ac_ext >&5
3733 # Broken: fails on valid input.
3736 rm -f conftest.err conftest.
$ac_ext
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.
$ac_ext <<_ACEOF
3743 cat confdefs.h
>>conftest.
$ac_ext
3744 cat >>conftest.
$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1
>conftest.err
3753 cat conftest.err
>&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev
/null
; then
3756 if test -s conftest.err
; then
3757 ac_cpp_err
=$ac_c_preproc_warn_flag
3758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.
$ac_ext >&5
3772 # Passes both tests.
3776 rm -f conftest.err conftest.
$ac_ext
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.
$ac_ext
3781 if $ac_preproc_ok; then
3793 echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6
3796 for ac_c_preproc_warn_flag
in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.
$ac_ext <<_ACEOF
3807 cat confdefs.h
>>conftest.
$ac_ext
3808 cat >>conftest.
$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 # include <limits.h>
3813 # include <assert.h>
3817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3820 grep -v '^ *+' conftest.er1
>conftest.err
3822 cat conftest.err
>&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } >/dev
/null
; then
3825 if test -s conftest.err
; then
3826 ac_cpp_err
=$ac_c_preproc_warn_flag
3827 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3834 if test -z "$ac_cpp_err"; then
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.
$ac_ext >&5
3840 # Broken: fails on valid input.
3843 rm -f conftest.err conftest.
$ac_ext
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3858 grep -v '^ *+' conftest.er1
>conftest.err
3860 cat conftest.err
>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev
/null
; then
3863 if test -s conftest.err
; then
3864 ac_cpp_err
=$ac_c_preproc_warn_flag
3865 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3872 if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Passes both tests.
3883 rm -f conftest.err conftest.
$ac_ext
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.
$ac_ext
3888 if $ac_preproc_ok; then
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&5
3893 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&2;}
3895 { (exit 1); exit 1; }; }
3899 ac_cpp
='$CPP $CPPFLAGS'
3900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3904 # Find a good install program. We prefer a C program (faster),
3905 # so one script is as good as another. But avoid the broken or
3906 # incompatible versions:
3907 # SysV /etc/install, /usr/sbin/install
3908 # SunOS /usr/etc/install
3909 # IRIX /sbin/install
3911 # AmigaOS /C/install, which installs bootblocks on floppy discs
3912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3915 # OS/2's system install, which has a completely different semantic
3916 # ./install, which can be erroneously created by make from ./install.sh.
3917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3919 if test -z "$INSTALL"; then
3920 if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir
=.
3928 # Account for people who put trailing slashes in PATH elements.
3930 .
/ | .
// |
/cC
/* | \
3931 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3932 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3938 for ac_prog
in ginstall scoinst
install; do
3939 for ac_exec_ext
in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3945 elif test $ac_prog = install &&
3946 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3950 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3962 if test "${ac_cv_path_install+set}" = set; then
3963 INSTALL
=$ac_cv_path_install
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
3969 INSTALL
=$ac_install_sh
3972 echo "$as_me:$LINENO: result: $INSTALL" >&5
3973 echo "${ECHO_T}$INSTALL" >&6
3975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976 # It thinks the first close brace ends the variable substitution.
3977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3981 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3983 if test "x$RANLIB" = x
; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 for ac_exec_ext
in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 RANLIB
=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
4014 echo "${ECHO_T}$RANLIB" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB
=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024 set dummy ranlib
; ac_word
=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir
=.
4038 for ac_exec_ext
in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4050 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4051 if test -n "$ac_ct_RANLIB"; then
4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4053 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 RANLIB
=$ac_ct_RANLIB
4061 RANLIB
="$ac_cv_prog_RANLIB"
4065 # Extract the first word of "install-info", so it can be a program name with args.
4066 set dummy install-info
; ac_word
=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 case $INSTALL_INFO in
4074 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir
=.
4082 for ac_exec_ext
in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4096 if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098 echo "${ECHO_T}$INSTALL_INFO" >&6
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4104 # Extract the first word of "install-info", so it can be a program name with args.
4105 set dummy install-info
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 case $INSTALL_INFO in
4113 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4117 for as_dir
in /usr
/sbin
4120 test -z "$as_dir" && as_dir
=.
4121 for ac_exec_ext
in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4135 if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137 echo "${ECHO_T}$INSTALL_INFO" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "install-info", so it can be a program name with args.
4144 set dummy install-info
; ac_word
=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 case $INSTALL_INFO in
4152 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir
=.
4160 for ac_exec_ext
in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4173 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4175 if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177 echo "${ECHO_T}$INSTALL_INFO" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4185 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4187 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4190 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4192 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4197 echo "$as_me:$LINENO: checking for egrep" >&5
4198 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4199 if test "${ac_cv_prog_egrep+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4203 then ac_cv_prog_egrep
='grep -E'
4204 else ac_cv_prog_egrep
='egrep'
4207 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4208 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4209 EGREP
=$ac_cv_prog_egrep
4213 echo "$as_me:$LINENO: checking for AIX" >&5
4214 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4215 cat >conftest.
$ac_ext <<_ACEOF
4218 cat confdefs.h
>>conftest.
$ac_ext
4219 cat >>conftest.
$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227 $EGREP "yes" >/dev
/null
2>&1; then
4228 echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6
4230 cat >>confdefs.h
<<\_ACEOF
4231 #define _ALL_SOURCE 1
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4242 #### Extract some information from the operating system and machine files.
4244 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4245 - which libraries the lib-src programs will want, and
4246 - whether the GNU malloc routines are usable..." >&5
4247 echo "$as_me: checking the machine- and system-dependent files to find out
4248 - which libraries the lib-src programs will want, and
4249 - whether the GNU malloc routines are usable..." >&6;}
4251 ### First figure out CFLAGS (which we use for running the compiler here)
4252 ### and REAL_CFLAGS (which we use for real compilation).
4253 ### The two are the same except on a few systems, where they are made
4254 ### different to work around various lossages. For example,
4255 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4256 ### as implying static linking.
4258 ### If the CFLAGS env var is specified, we use that value
4259 ### instead of the default.
4261 ### It's not important that this name contain the PID; you can't run
4262 ### two configures in the same directory and have anything work
4264 tempcname
="conftest.c"
4267 #include "'${srcdir}'/src/'${opsysfile}'"
4268 #include "'${srcdir}'/src/'${machfile}'"
4269 #ifndef LIBS_MACHINE
4270 #define LIBS_MACHINE
4275 #ifndef C_SWITCH_SYSTEM
4276 #define C_SWITCH_SYSTEM
4278 #ifndef C_SWITCH_MACHINE
4279 #define C_SWITCH_MACHINE
4281 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4282 configure___ c_switch_system=C_SWITCH_SYSTEM
4283 configure___ c_switch_machine=C_SWITCH_MACHINE
4286 #define LIB_X11_LIB -lX11
4289 #ifndef LIBX11_MACHINE
4290 #define LIBX11_MACHINE
4293 #ifndef LIBX11_SYSTEM
4294 #define LIBX11_SYSTEM
4296 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4299 configure___ unexec=UNEXEC
4301 configure___ unexec=unexec.o
4304 #ifdef SYSTEM_MALLOC
4305 configure___ system_malloc=yes
4307 configure___ system_malloc=no
4310 #ifdef USE_MMAP_FOR_BUFFERS
4311 configure___ use_mmap_for_buffers=yes
4313 configure___ use_mmap_for_buffers=no
4316 #ifndef C_DEBUG_SWITCH
4317 #define C_DEBUG_SWITCH -g
4320 #ifndef C_OPTIMIZE_SWITCH
4322 #define C_OPTIMIZE_SWITCH -O2
4324 #define C_OPTIMIZE_SWITCH -O
4328 #ifndef LD_SWITCH_MACHINE
4329 #define LD_SWITCH_MACHINE
4332 #ifndef LD_SWITCH_SYSTEM
4333 #define LD_SWITCH_SYSTEM
4336 #ifndef LD_SWITCH_X_SITE_AUX
4337 #define LD_SWITCH_X_SITE_AUX
4340 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4341 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4343 #ifdef THIS_IS_CONFIGURE
4345 /* Get the CFLAGS for tests in configure. */
4347 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4349 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4352 #else /* not THIS_IS_CONFIGURE */
4354 /* Get the CFLAGS for real compilation. */
4356 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4358 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4361 #endif /* not THIS_IS_CONFIGURE */
4364 # The value of CPP is a quoted variable reference, so we need to do this
4365 # to get its actual value...
4366 CPP
=`eval "echo $CPP"`
4367 eval `${CPP} -Isrc ${tempcname} \
4368 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4369 if test "x$SPECIFIED_CFLAGS" = x
; then
4370 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4371 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4373 REAL_CFLAGS
="$CFLAGS"
4377 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4379 ### Make sure subsequent tests use flags consistent with the build flags.
4381 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4382 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4384 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4390 cat >>confdefs.h
<<\_ACEOF
4391 #define _GNU_SOURCE 1
4396 # Check whether --enable-largefile or --disable-largefile was given.
4397 if test "${enable_largefile+set}" = set; then
4398 enableval
="$enable_largefile"
4401 if test "$enable_largefile" != no
; then
4403 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4404 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4405 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 ac_cv_sys_largefile_CC
=no
4409 if test "$GCC" != yes; then
4412 # IRIX 6.2 and later do not support large files by default,
4413 # so use the C compiler's -n32 option if that helps.
4414 cat >conftest.
$ac_ext <<_ACEOF
4417 cat confdefs.h
>>conftest.
$ac_ext
4418 cat >>conftest.
$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <sys/types.h>
4421 /* Check that off_t can represent 2**63 - 1 correctly.
4422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4423 since some C++ compilers masquerading as C compilers
4424 incorrectly reject 9223372036854775807. */
4425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4427 && LARGE_OFF_T % 2147483647 == 1)
4437 rm -f conftest.
$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4441 grep -v '^ *+' conftest.er1
>conftest.err
4443 cat conftest.err
>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try
='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try
='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.
$ac_ext >&5
4465 rm -f conftest.err conftest.
$ac_objext
4467 rm -f conftest.
$ac_objext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>conftest.er1
4471 grep -v '^ *+' conftest.er1
>conftest.err
4473 cat conftest.err
>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try
='test -z "$ac_c_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try
='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_sys_largefile_CC
=' -n32'; break
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.
$ac_ext >&5
4495 rm -f conftest.err conftest.
$ac_objext
4499 rm -f conftest.
$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4503 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4504 if test "$ac_cv_sys_largefile_CC" != no
; then
4505 CC
=$CC$ac_cv_sys_largefile_CC
4508 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4509 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4510 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 ac_cv_sys_file_offset_bits
=no
4515 cat >conftest.
$ac_ext <<_ACEOF
4518 cat confdefs.h
>>conftest.
$ac_ext
4519 cat >>conftest.
$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 #include <sys/types.h>
4522 /* Check that off_t can represent 2**63 - 1 correctly.
4523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4524 since some C++ compilers masquerading as C compilers
4525 incorrectly reject 9223372036854775807. */
4526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4528 && LARGE_OFF_T % 2147483647 == 1)
4538 rm -f conftest.
$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try
='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try
='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.
$ac_ext >&5
4566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4567 cat >conftest.
$ac_ext <<_ACEOF
4570 cat confdefs.h
>>conftest.
$ac_ext
4571 cat >>conftest.
$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #define _FILE_OFFSET_BITS 64
4574 #include <sys/types.h>
4575 /* Check that off_t can represent 2**63 - 1 correctly.
4576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4577 since some C++ compilers masquerading as C compilers
4578 incorrectly reject 9223372036854775807. */
4579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4581 && LARGE_OFF_T % 2147483647 == 1)
4591 rm -f conftest.
$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4595 grep -v '^ *+' conftest.er1
>conftest.err
4597 cat conftest.err
>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try
='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try
='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_sys_file_offset_bits
=64; break
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.
$ac_ext >&5
4619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4623 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4624 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4625 if test "$ac_cv_sys_file_offset_bits" != no
; then
4627 cat >>confdefs.h
<<_ACEOF
4628 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4633 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4634 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4635 if test "${ac_cv_sys_large_files+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_sys_large_files
=no
4640 cat >conftest.
$ac_ext <<_ACEOF
4643 cat confdefs.h
>>conftest.
$ac_ext
4644 cat >>conftest.
$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <sys/types.h>
4647 /* Check that off_t can represent 2**63 - 1 correctly.
4648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4649 since some C++ compilers masquerading as C compilers
4650 incorrectly reject 9223372036854775807. */
4651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4653 && LARGE_OFF_T % 2147483647 == 1)
4663 rm -f conftest.
$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4667 grep -v '^ *+' conftest.er1
>conftest.err
4669 cat conftest.err
>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try
='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try
='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.
$ac_ext >&5
4691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4692 cat >conftest.
$ac_ext <<_ACEOF
4695 cat confdefs.h
>>conftest.
$ac_ext
4696 cat >>conftest.
$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #define _LARGE_FILES 1
4699 #include <sys/types.h>
4700 /* Check that off_t can represent 2**63 - 1 correctly.
4701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4702 since some C++ compilers masquerading as C compilers
4703 incorrectly reject 9223372036854775807. */
4704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4706 && LARGE_OFF_T % 2147483647 == 1)
4716 rm -f conftest.
$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4720 grep -v '^ *+' conftest.er1
>conftest.err
4722 cat conftest.err
>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try
='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try
='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_sys_large_files
=1; break
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.
$ac_ext >&5
4744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4748 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4749 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4750 if test "$ac_cv_sys_large_files" != no
; then
4752 cat >>confdefs.h
<<_ACEOF
4753 #define _LARGE_FILES $ac_cv_sys_large_files
4761 if test "${with_sound}" != "no"; then
4762 # Sound support for GNU/Linux and the free BSDs.
4763 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4765 if test "${ac_cv_header_stdc+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 cat >conftest.
$ac_ext <<_ACEOF
4771 cat confdefs.h
>>conftest.
$ac_ext
4772 cat >>conftest.
$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4787 rm -f conftest.
$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4791 grep -v '^ *+' conftest.er1
>conftest.err
4793 cat conftest.err
>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try
='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try
='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_header_stdc
=yes
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.
$ac_ext >&5
4814 ac_cv_header_stdc
=no
4816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4818 if test $ac_cv_header_stdc = yes; then
4819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4820 cat >conftest.
$ac_ext <<_ACEOF
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830 $EGREP "memchr" >/dev
/null
2>&1; then
4833 ac_cv_header_stdc
=no
4839 if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat >conftest.
$ac_ext <<_ACEOF
4844 cat confdefs.h
>>conftest.
$ac_ext
4845 cat >>conftest.
$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4851 $EGREP "free" >/dev
/null
2>&1; then
4854 ac_cv_header_stdc
=no
4860 if test $ac_cv_header_stdc = yes; then
4861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4862 if test "$cross_compiling" = yes; then
4865 cat >conftest.
$ac_ext <<_ACEOF
4868 cat confdefs.h
>>conftest.
$ac_ext
4869 cat >>conftest.
$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 #if ((' ' & 0x0FF) == 0x020)
4873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4876 # define ISLOWER(c) \
4877 (('a' <= (c) && (c) <= 'i') \
4878 || ('j' <= (c) && (c) <= 'r') \
4879 || ('s' <= (c) && (c) <= 'z'))
4880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4888 for (i = 0; i < 256; i++)
4889 if (XOR (islower (i), ISLOWER (i))
4890 || toupper (i) != TOUPPER (i))
4895 rm -f conftest
$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.
$ac_ext >&5
4913 ac_cv_header_stdc
=no
4915 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4919 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4920 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4921 if test $ac_cv_header_stdc = yes; then
4923 cat >>confdefs.h
<<\_ACEOF
4924 #define STDC_HEADERS 1
4929 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4939 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4940 inttypes.h stdint.h unistd.h
4942 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4943 echo "$as_me:$LINENO: checking for $ac_header" >&5
4944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 cat >conftest.
$ac_ext <<_ACEOF
4951 cat confdefs.h
>>conftest.
$ac_ext
4952 cat >>conftest.
$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4956 #include <$ac_header>
4958 rm -f conftest.
$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>conftest.er1
4962 grep -v '^ *+' conftest.er1
>conftest.err
4964 cat conftest.err
>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try
='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try
='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 eval "$as_ac_Header=yes"
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.
$ac_ext >&5
4985 eval "$as_ac_Header=no"
4987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4992 cat >>confdefs.h
<<_ACEOF
4993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5004 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5006 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo "$as_me:$LINENO: checking for $ac_header" >&5
5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5016 # Is the header compilable?
5017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5019 cat >conftest.
$ac_ext <<_ACEOF
5022 cat confdefs.h
>>conftest.
$ac_ext
5023 cat >>conftest.
$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 #include <$ac_header>
5028 rm -f conftest.
$ac_objext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5032 grep -v '^ *+' conftest.er1
>conftest.err
5034 cat conftest.err
>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try
='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try
='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_header_compiler
=yes
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.
$ac_ext >&5
5055 ac_header_compiler
=no
5057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5059 echo "${ECHO_T}$ac_header_compiler" >&6
5061 # Is the header present?
5062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5064 cat >conftest.
$ac_ext <<_ACEOF
5067 cat confdefs.h
>>conftest.
$ac_ext
5068 cat >>conftest.
$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <$ac_header>
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5075 grep -v '^ *+' conftest.er1
>conftest.err
5077 cat conftest.err
>&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev
/null
; then
5080 if test -s conftest.err
; then
5081 ac_cpp_err
=$ac_c_preproc_warn_flag
5082 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5089 if test -z "$ac_cpp_err"; then
5090 ac_header_preproc
=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.
$ac_ext >&5
5095 ac_header_preproc
=no
5097 rm -f conftest.err conftest.
$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5099 echo "${ECHO_T}$ac_header_preproc" >&6
5101 # So? What about this header?
5102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5108 ac_header_preproc
=yes
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5125 ## ------------------------------------------ ##
5126 ## Report this to the AC_PACKAGE_NAME lists. ##
5127 ## ------------------------------------------ ##
5130 sed "s/^/$as_me: WARNING: /" >&2
5133 echo "$as_me:$LINENO: checking for $ac_header" >&5
5134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 eval "$as_ac_Header=\$ac_header_preproc"
5140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5145 cat >>confdefs.h
<<_ACEOF
5146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5153 # Emulation library used on NetBSD.
5154 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5155 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5156 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 ac_check_lib_save_LIBS
=$LIBS
5160 LIBS
="-lossaudio $LIBS"
5161 cat >conftest.
$ac_ext <<_ACEOF
5164 cat confdefs.h
>>conftest.
$ac_ext
5165 cat >>conftest.
$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5183 rm -f conftest.
$ac_objext conftest
$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 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"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try
='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_lib_ossaudio__oss_ioctl
=yes
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.
$ac_ext >&5
5210 ac_cv_lib_ossaudio__oss_ioctl
=no
5212 rm -f conftest.err conftest.
$ac_objext \
5213 conftest
$ac_exeext conftest.
$ac_ext
5214 LIBS
=$ac_check_lib_save_LIBS
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5217 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5218 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5250 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5251 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5252 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5253 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5255 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5257 echo "$as_me:$LINENO: checking for $ac_header" >&5
5258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5265 # Is the header compilable?
5266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5268 cat >conftest.
$ac_ext <<_ACEOF
5271 cat confdefs.h
>>conftest.
$ac_ext
5272 cat >>conftest.
$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 $ac_includes_default
5275 #include <$ac_header>
5277 rm -f conftest.
$ac_objext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279 (eval $ac_compile) 2>conftest.er1
5281 grep -v '^ *+' conftest.er1
>conftest.err
5283 cat conftest.err
>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try
='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try
='test -s conftest.$ac_objext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_header_compiler
=yes
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.
$ac_ext >&5
5304 ac_header_compiler
=no
5306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5308 echo "${ECHO_T}$ac_header_compiler" >&6
5310 # Is the header present?
5311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5313 cat >conftest.
$ac_ext <<_ACEOF
5316 cat confdefs.h
>>conftest.
$ac_ext
5317 cat >>conftest.
$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <$ac_header>
5321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1
>conftest.err
5326 cat conftest.err
>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev
/null
; then
5329 if test -s conftest.err
; then
5330 ac_cpp_err
=$ac_c_preproc_warn_flag
5331 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5338 if test -z "$ac_cpp_err"; then
5339 ac_header_preproc
=yes
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.
$ac_ext >&5
5344 ac_header_preproc
=no
5346 rm -f conftest.err conftest.
$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5348 echo "${ECHO_T}$ac_header_preproc" >&6
5350 # So? What about this header?
5351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5357 ac_header_preproc
=yes
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5374 ## ------------------------------------------ ##
5375 ## Report this to the AC_PACKAGE_NAME lists. ##
5376 ## ------------------------------------------ ##
5379 sed "s/^/$as_me: WARNING: /" >&2
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 eval "$as_ac_Header=\$ac_header_preproc"
5389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5394 cat >>confdefs.h
<<_ACEOF
5395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5403 for ac_header
in term.h
5405 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5406 echo "$as_me:$LINENO: checking for $ac_header" >&5
5407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 cat >conftest.
$ac_ext <<_ACEOF
5414 cat confdefs.h
>>conftest.
$ac_ext
5415 cat >>conftest.
$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <$ac_header>
5419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5422 grep -v '^ *+' conftest.er1
>conftest.err
5424 cat conftest.err
>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev
/null
; then
5427 if test -s conftest.err
; then
5428 ac_cpp_err
=$ac_c_preproc_warn_flag
5429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5436 if test -z "$ac_cpp_err"; then
5437 eval "$as_ac_Header=yes"
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.
$ac_ext >&5
5442 eval "$as_ac_Header=no"
5444 rm -f conftest.err conftest.
$ac_ext
5446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5449 cat >>confdefs.h
<<_ACEOF
5450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459 if test "${ac_cv_header_stdc+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 cat >conftest.
$ac_ext <<_ACEOF
5465 cat confdefs.h
>>conftest.
$ac_ext
5466 cat >>conftest.
$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5481 rm -f conftest.
$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5485 grep -v '^ *+' conftest.er1
>conftest.err
5487 cat conftest.err
>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try
='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try
='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_header_stdc
=yes
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.
$ac_ext >&5
5508 ac_cv_header_stdc
=no
5510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5512 if test $ac_cv_header_stdc = yes; then
5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514 cat >conftest.
$ac_ext <<_ACEOF
5517 cat confdefs.h
>>conftest.
$ac_ext
5518 cat >>conftest.
$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "memchr" >/dev
/null
2>&1; then
5527 ac_cv_header_stdc
=no
5533 if test $ac_cv_header_stdc = yes; then
5534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535 cat >conftest.
$ac_ext <<_ACEOF
5538 cat confdefs.h
>>conftest.
$ac_ext
5539 cat >>conftest.
$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "free" >/dev
/null
2>&1; then
5548 ac_cv_header_stdc
=no
5554 if test $ac_cv_header_stdc = yes; then
5555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556 if test "$cross_compiling" = yes; then
5559 cat >conftest.
$ac_ext <<_ACEOF
5562 cat confdefs.h
>>conftest.
$ac_ext
5563 cat >>conftest.
$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5566 #if ((' ' & 0x0FF) == 0x020)
5567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5570 # define ISLOWER(c) \
5571 (('a' <= (c) && (c) <= 'i') \
5572 || ('j' <= (c) && (c) <= 'r') \
5573 || ('s' <= (c) && (c) <= 'z'))
5574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5582 for (i = 0; i < 256; i++)
5583 if (XOR (islower (i), ISLOWER (i))
5584 || toupper (i) != TOUPPER (i))
5589 rm -f conftest
$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5602 echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.
$ac_ext >&5
5607 ac_cv_header_stdc
=no
5609 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615 if test $ac_cv_header_stdc = yes; then
5617 cat >>confdefs.h
<<\_ACEOF
5618 #define STDC_HEADERS 1
5623 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5625 if test "${ac_cv_header_time+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 cat >conftest.
$ac_ext <<_ACEOF
5631 cat confdefs.h
>>conftest.
$ac_ext
5632 cat >>conftest.
$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <sys/types.h>
5635 #include <sys/time.h>
5641 if ((struct tm *) 0)
5647 rm -f conftest.
$ac_objext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649 (eval $ac_compile) 2>conftest.er1
5651 grep -v '^ *+' conftest.er1
>conftest.err
5653 cat conftest.err
>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try
='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try
='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_header_time
=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.
$ac_ext >&5
5674 ac_cv_header_time
=no
5676 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5678 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5679 echo "${ECHO_T}$ac_cv_header_time" >&6
5680 if test $ac_cv_header_time = yes; then
5682 cat >>confdefs.h
<<\_ACEOF
5683 #define TIME_WITH_SYS_TIME 1
5688 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5689 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5690 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 cat >conftest.
$ac_ext <<_ACEOF
5696 cat confdefs.h
>>conftest.
$ac_ext
5697 cat >>conftest.
$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 $ac_includes_default
5704 char *p = (char *) sys_siglist;
5711 rm -f conftest.
$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1
>conftest.err
5717 cat conftest.err
>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try
='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try
='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_have_decl_sys_siglist
=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.
$ac_ext >&5
5738 ac_cv_have_decl_sys_siglist
=no
5740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5743 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5744 if test $ac_cv_have_decl_sys_siglist = yes; then
5746 cat >>confdefs.h
<<_ACEOF
5747 #define HAVE_DECL_SYS_SIGLIST 1
5752 cat >>confdefs.h
<<_ACEOF
5753 #define HAVE_DECL_SYS_SIGLIST 0
5760 if test $ac_cv_have_decl_sys_siglist != yes; then
5761 # For Tru64, at least:
5762 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5763 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5764 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.
$ac_ext <<_ACEOF
5770 cat confdefs.h
>>conftest.
$ac_ext
5771 cat >>conftest.
$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5777 #ifndef __sys_siglist
5778 char *p = (char *) __sys_siglist;
5785 rm -f conftest.
$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>conftest.er1
5789 grep -v '^ *+' conftest.er1
>conftest.err
5791 cat conftest.err
>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try
='test -z "$ac_c_werror_flag"
5795 || test ! -s conftest.err'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; } &&
5801 { ac_try
='test -s conftest.$ac_objext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5807 ac_cv_have_decl___sys_siglist
=yes
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.
$ac_ext >&5
5812 ac_cv_have_decl___sys_siglist
=no
5814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5817 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5818 if test $ac_cv_have_decl___sys_siglist = yes; then
5820 cat >>confdefs.h
<<_ACEOF
5821 #define HAVE_DECL___SYS_SIGLIST 1
5826 cat >>confdefs.h
<<_ACEOF
5827 #define HAVE_DECL___SYS_SIGLIST 0
5834 if test $ac_cv_have_decl___sys_siglist = yes; then
5836 cat >>confdefs.h
<<\_ACEOF
5837 #define sys_siglist __sys_siglist
5842 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5843 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5844 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 cat >conftest.
$ac_ext <<_ACEOF
5850 cat confdefs.h
>>conftest.
$ac_ext
5851 cat >>conftest.
$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 #include <sys/wait.h>
5856 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5859 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5867 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5872 rm -f conftest.
$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5876 grep -v '^ *+' conftest.er1
>conftest.err
5878 cat conftest.err
>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try
='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try
='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_header_sys_wait_h
=yes
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.
$ac_ext >&5
5899 ac_cv_header_sys_wait_h
=no
5901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5903 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5904 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5905 if test $ac_cv_header_sys_wait_h = yes; then
5907 cat >>confdefs.h
<<\_ACEOF
5908 #define HAVE_SYS_WAIT_H 1
5914 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5915 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5916 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 cat >conftest.
$ac_ext <<_ACEOF
5922 cat confdefs.h
>>conftest.
$ac_ext
5923 cat >>conftest.
$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #ifdef TIME_WITH_SYS_TIME
5926 #include <sys/time.h>
5929 #ifdef HAVE_SYS_TIME_H
5930 #include <sys/time.h>
5941 static struct utimbuf x; x.actime = x.modtime;
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 emacs_cv_struct_utimbuf
=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 emacs_cv_struct_utimbuf
=no
5975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5978 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5979 if test $emacs_cv_struct_utimbuf = yes; then
5981 cat >>confdefs.h
<<\_ACEOF
5982 #define HAVE_STRUCT_UTIMBUF 1
5987 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5988 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5989 if test "${ac_cv_type_signal+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 cat >conftest.
$ac_ext <<_ACEOF
5995 cat confdefs.h
>>conftest.
$ac_ext
5996 cat >>conftest.
$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <sys/types.h>
6004 extern "C" void (*signal (int, void (*)(int)))(int);
6006 void (*signal ()) ();
6017 rm -f conftest.
$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
6021 grep -v '^ *+' conftest.er1
>conftest.err
6023 cat conftest.err
>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try
='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try
='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_type_signal
=void
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 ac_cv_type_signal
=int
6046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6049 echo "${ECHO_T}$ac_cv_type_signal" >&6
6051 cat >>confdefs.h
<<_ACEOF
6052 #define RETSIGTYPE $ac_cv_type_signal
6057 echo "$as_me:$LINENO: checking for speed_t" >&5
6058 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6059 if test "${emacs_cv_speed_t+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 cat >conftest.
$ac_ext <<_ACEOF
6065 cat confdefs.h
>>conftest.
$ac_ext
6066 cat >>conftest.
$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <termios.h>
6077 rm -f conftest.
$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1
>conftest.err
6083 cat conftest.err
>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try
='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try
='test -s conftest.$ac_objext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 emacs_cv_speed_t
=yes
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.
$ac_ext >&5
6106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6108 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6109 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6110 if test $emacs_cv_speed_t = yes; then
6112 cat >>confdefs.h
<<\_ACEOF
6113 #define HAVE_SPEED_T 1
6118 echo "$as_me:$LINENO: checking for struct timeval" >&5
6119 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6120 if test "${emacs_cv_struct_timeval+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 cat >conftest.
$ac_ext <<_ACEOF
6126 cat confdefs.h
>>conftest.
$ac_ext
6127 cat >>conftest.
$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #ifdef TIME_WITH_SYS_TIME
6130 #include <sys/time.h>
6133 #ifdef HAVE_SYS_TIME_H
6134 #include <sys/time.h>
6142 static struct timeval x; x.tv_sec = x.tv_usec;
6147 rm -f conftest.
$ac_objext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149 (eval $ac_compile) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1
>conftest.err
6153 cat conftest.err
>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try
='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try
='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 emacs_cv_struct_timeval
=yes
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.
$ac_ext >&5
6174 emacs_cv_struct_timeval
=no
6176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6179 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6180 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6181 if test $emacs_cv_struct_timeval = yes; then
6183 cat >>confdefs.h
<<\_ACEOF
6184 #define HAVE_TIMEVAL 1
6189 echo "$as_me:$LINENO: checking for struct exception" >&5
6190 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6191 if test "${emacs_cv_struct_exception+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 cat >conftest.
$ac_ext <<_ACEOF
6197 cat confdefs.h
>>conftest.
$ac_ext
6198 cat >>conftest.
$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6204 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6209 rm -f conftest.
$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1
>conftest.err
6215 cat conftest.err
>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try
='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try
='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 emacs_cv_struct_exception
=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.
$ac_ext >&5
6236 emacs_cv_struct_exception
=no
6238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6240 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6241 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6242 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6243 if test $emacs_cv_struct_exception != yes; then
6245 cat >>confdefs.h
<<\_ACEOF
6246 #define NO_MATHERR 1
6252 for ac_header
in sys
/socket.h
6254 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6256 echo "$as_me:$LINENO: checking for $ac_header" >&5
6257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6264 # Is the header compilable?
6265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6267 cat >conftest.
$ac_ext <<_ACEOF
6270 cat confdefs.h
>>conftest.
$ac_ext
6271 cat >>conftest.
$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6274 #include <$ac_header>
6276 rm -f conftest.
$ac_objext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6280 grep -v '^ *+' conftest.er1
>conftest.err
6282 cat conftest.err
>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try
='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try
='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_header_compiler
=yes
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.
$ac_ext >&5
6303 ac_header_compiler
=no
6305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6307 echo "${ECHO_T}$ac_header_compiler" >&6
6309 # Is the header present?
6310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6312 cat >conftest.
$ac_ext <<_ACEOF
6315 cat confdefs.h
>>conftest.
$ac_ext
6316 cat >>conftest.
$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 #include <$ac_header>
6320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1
>conftest.err
6325 cat conftest.err
>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev
/null
; then
6328 if test -s conftest.err
; then
6329 ac_cpp_err
=$ac_c_preproc_warn_flag
6330 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6337 if test -z "$ac_cpp_err"; then
6338 ac_header_preproc
=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.
$ac_ext >&5
6343 ac_header_preproc
=no
6345 rm -f conftest.err conftest.
$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6347 echo "${ECHO_T}$ac_header_preproc" >&6
6349 # So? What about this header?
6350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6356 ac_header_preproc
=yes
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6373 ## ------------------------------------------ ##
6374 ## Report this to the AC_PACKAGE_NAME lists. ##
6375 ## ------------------------------------------ ##
6378 sed "s/^/$as_me: WARNING: /" >&2
6381 echo "$as_me:$LINENO: checking for $ac_header" >&5
6382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 eval "$as_ac_Header=\$ac_header_preproc"
6388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6393 cat >>confdefs.h
<<_ACEOF
6394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6402 for ac_header
in net
/if.h
6404 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 echo "$as_me:$LINENO: checking for $ac_header" >&5
6406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 cat >conftest.
$ac_ext <<_ACEOF
6413 cat confdefs.h
>>conftest.
$ac_ext
6414 cat >>conftest.
$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 $ac_includes_default
6417 #if HAVE_SYS_SOCKET_H
6418 #include <sys/socket.h>
6421 #include <$ac_header>
6423 rm -f conftest.
$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1
>conftest.err
6429 cat conftest.err
>&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try
='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try
='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 eval "$as_ac_Header=yes"
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.
$ac_ext >&5
6450 eval "$as_ac_Header=no"
6452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6457 cat >>confdefs.h
<<_ACEOF
6458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6466 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6467 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6468 if test "${ac_cv_struct_tm+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 cat >conftest.
$ac_ext <<_ACEOF
6474 cat confdefs.h
>>conftest.
$ac_ext
6475 cat >>conftest.
$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6483 struct tm *tp; tp->tm_sec;
6488 rm -f conftest.
$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6492 grep -v '^ *+' conftest.er1
>conftest.err
6494 cat conftest.err
>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try
='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try
='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_cv_struct_tm
=time.h
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.
$ac_ext >&5
6515 ac_cv_struct_tm
=sys
/time.h
6517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6519 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6520 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6521 if test $ac_cv_struct_tm = sys
/time.h
; then
6523 cat >>confdefs.h
<<\_ACEOF
6524 #define TM_IN_SYS_TIME 1
6529 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6530 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6531 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 cat >conftest.
$ac_ext <<_ACEOF
6537 cat confdefs.h
>>conftest.
$ac_ext
6538 cat >>conftest.
$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <sys/types.h>
6541 #include <$ac_cv_struct_tm>
6547 static struct tm ac_aggr;
6548 if (ac_aggr.tm_zone)
6554 rm -f conftest.
$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>conftest.er1
6558 grep -v '^ *+' conftest.er1
>conftest.err
6560 cat conftest.err
>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try
='test -z "$ac_c_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try
='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_member_struct_tm_tm_zone
=yes
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.
$ac_ext >&5
6581 cat >conftest.
$ac_ext <<_ACEOF
6584 cat confdefs.h
>>conftest.
$ac_ext
6585 cat >>conftest.
$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <sys/types.h>
6588 #include <$ac_cv_struct_tm>
6594 static struct tm ac_aggr;
6595 if (sizeof ac_aggr.tm_zone)
6601 rm -f conftest.
$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try
='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try
='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_member_struct_tm_tm_zone
=yes
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.
$ac_ext >&5
6628 ac_cv_member_struct_tm_tm_zone
=no
6630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6634 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6635 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6636 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6638 cat >>confdefs.h
<<_ACEOF
6639 #define HAVE_STRUCT_TM_TM_ZONE 1
6645 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6647 cat >>confdefs.h
<<\_ACEOF
6648 #define HAVE_TM_ZONE 1
6652 echo "$as_me:$LINENO: checking for tzname" >&5
6653 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6654 if test "${ac_cv_var_tzname+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.
$ac_ext <<_ACEOF
6660 cat confdefs.h
>>conftest.
$ac_ext
6661 cat >>conftest.
$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6664 #ifndef tzname /* For SGI. */
6665 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6676 rm -f conftest.
$ac_objext conftest
$ac_exeext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678 (eval $ac_link) 2>conftest.er1
6680 grep -v '^ *+' conftest.er1
>conftest.err
6682 cat conftest.err
>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try
='test -z "$ac_c_werror_flag"
6686 || test ! -s conftest.err'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } &&
6692 { ac_try
='test -s conftest$ac_exeext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 ac_cv_var_tzname
=yes
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.
$ac_ext >&5
6705 rm -f conftest.err conftest.
$ac_objext \
6706 conftest
$ac_exeext conftest.
$ac_ext
6708 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6709 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6710 if test $ac_cv_var_tzname = yes; then
6712 cat >>confdefs.h
<<\_ACEOF
6713 #define HAVE_TZNAME 1
6719 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6720 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6721 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 cat >conftest.
$ac_ext <<_ACEOF
6727 cat confdefs.h
>>conftest.
$ac_ext
6728 cat >>conftest.
$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6735 static struct tm ac_aggr;
6736 if (ac_aggr.tm_gmtoff)
6742 rm -f conftest.
$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>conftest.er1
6746 grep -v '^ *+' conftest.er1
>conftest.err
6748 cat conftest.err
>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try
='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try
='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_member_struct_tm_tm_gmtoff
=yes
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.
$ac_ext >&5
6769 cat >conftest.
$ac_ext <<_ACEOF
6772 cat confdefs.h
>>conftest.
$ac_ext
6773 cat >>conftest.
$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6780 static struct tm ac_aggr;
6781 if (sizeof ac_aggr.tm_gmtoff)
6787 rm -f conftest.
$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 (eval $ac_compile) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1
>conftest.err
6793 cat conftest.err
>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try
='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try
='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_cv_member_struct_tm_tm_gmtoff
=yes
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.
$ac_ext >&5
6814 ac_cv_member_struct_tm_tm_gmtoff
=no
6816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6820 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6821 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6822 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6824 cat >>confdefs.h
<<\_ACEOF
6825 #define HAVE_TM_GMTOFF 1
6830 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6831 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6832 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 cat >conftest.
$ac_ext <<_ACEOF
6838 cat confdefs.h
>>conftest.
$ac_ext
6839 cat >>conftest.
$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6842 #if HAVE_SYS_SOCKET_H
6843 #include <sys/socket.h>
6852 static struct ifreq ac_aggr;
6853 if (ac_aggr.ifr_flags)
6859 rm -f conftest.
$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>conftest.er1
6863 grep -v '^ *+' conftest.er1
>conftest.err
6865 cat conftest.err
>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try
='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try
='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_cv_member_struct_ifreq_ifr_flags
=yes
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.
$ac_ext >&5
6886 cat >conftest.
$ac_ext <<_ACEOF
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 #if HAVE_SYS_SOCKET_H
6894 #include <sys/socket.h>
6903 static struct ifreq ac_aggr;
6904 if (sizeof ac_aggr.ifr_flags)
6910 rm -f conftest.
$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6914 grep -v '^ *+' conftest.er1
>conftest.err
6916 cat conftest.err
>&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try
='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try
='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_cv_member_struct_ifreq_ifr_flags
=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.
$ac_ext >&5
6937 ac_cv_member_struct_ifreq_ifr_flags
=no
6939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6944 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6945 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6947 cat >>confdefs.h
<<_ACEOF
6948 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6953 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6954 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6955 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 cat >conftest.
$ac_ext <<_ACEOF
6961 cat confdefs.h
>>conftest.
$ac_ext
6962 cat >>conftest.
$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 $ac_includes_default
6965 #if HAVE_SYS_SOCKET_H
6966 #include <sys/socket.h>
6975 static struct ifreq ac_aggr;
6976 if (ac_aggr.ifr_hwaddr)
6982 rm -f conftest.
$ac_objext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984 (eval $ac_compile) 2>conftest.er1
6986 grep -v '^ *+' conftest.er1
>conftest.err
6988 cat conftest.err
>&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try
='test -z "$ac_c_werror_flag"
6992 || 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_ifreq_ifr_hwaddr
=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.
$ac_ext >&5
7009 cat >conftest.
$ac_ext <<_ACEOF
7012 cat confdefs.h
>>conftest.
$ac_ext
7013 cat >>conftest.
$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 $ac_includes_default
7016 #if HAVE_SYS_SOCKET_H
7017 #include <sys/socket.h>
7026 static struct ifreq ac_aggr;
7027 if (sizeof ac_aggr.ifr_hwaddr)
7033 rm -f conftest.
$ac_objext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>conftest.er1
7037 grep -v '^ *+' conftest.er1
>conftest.err
7039 cat conftest.err
>&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try
='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try
='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.
$ac_ext >&5
7060 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7062 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7066 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7067 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7068 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7070 cat >>confdefs.h
<<_ACEOF
7071 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7076 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7077 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7078 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 cat >conftest.
$ac_ext <<_ACEOF
7084 cat confdefs.h
>>conftest.
$ac_ext
7085 cat >>conftest.
$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7088 #if HAVE_SYS_SOCKET_H
7089 #include <sys/socket.h>
7098 static struct ifreq ac_aggr;
7099 if (ac_aggr.ifr_netmask)
7105 rm -f conftest.
$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1
>conftest.err
7111 cat conftest.err
>&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try
='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try
='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.
$ac_ext >&5
7132 cat >conftest.
$ac_ext <<_ACEOF
7135 cat confdefs.h
>>conftest.
$ac_ext
7136 cat >>conftest.
$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 #if HAVE_SYS_SOCKET_H
7140 #include <sys/socket.h>
7149 static struct ifreq ac_aggr;
7150 if (sizeof ac_aggr.ifr_netmask)
7156 rm -f conftest.
$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1
>conftest.err
7162 cat conftest.err
>&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try
='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try
='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.
$ac_ext >&5
7183 ac_cv_member_struct_ifreq_ifr_netmask
=no
7185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7191 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7193 cat >>confdefs.h
<<_ACEOF
7194 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7199 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7200 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7201 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 cat >conftest.
$ac_ext <<_ACEOF
7207 cat confdefs.h
>>conftest.
$ac_ext
7208 cat >>conftest.
$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 $ac_includes_default
7211 #if HAVE_SYS_SOCKET_H
7212 #include <sys/socket.h>
7221 static struct ifreq ac_aggr;
7222 if (ac_aggr.ifr_broadaddr)
7228 rm -f conftest.
$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1
>conftest.err
7234 cat conftest.err
>&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try
='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try
='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.
$ac_ext >&5
7255 cat >conftest.
$ac_ext <<_ACEOF
7258 cat confdefs.h
>>conftest.
$ac_ext
7259 cat >>conftest.
$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7262 #if HAVE_SYS_SOCKET_H
7263 #include <sys/socket.h>
7272 static struct ifreq ac_aggr;
7273 if (sizeof ac_aggr.ifr_broadaddr)
7279 rm -f conftest.
$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7283 grep -v '^ *+' conftest.er1
>conftest.err
7285 cat conftest.err
>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try
='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try
='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.
$ac_ext >&5
7306 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7313 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7314 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7316 cat >>confdefs.h
<<_ACEOF
7317 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7322 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7323 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7324 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 cat >conftest.
$ac_ext <<_ACEOF
7330 cat confdefs.h
>>conftest.
$ac_ext
7331 cat >>conftest.
$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7334 #if HAVE_SYS_SOCKET_H
7335 #include <sys/socket.h>
7344 static struct ifreq ac_aggr;
7345 if (ac_aggr.ifr_addr)
7351 rm -f conftest.
$ac_objext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7353 (eval $ac_compile) 2>conftest.er1
7355 grep -v '^ *+' conftest.er1
>conftest.err
7357 cat conftest.err
>&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try
='test -z "$ac_c_werror_flag"
7361 || test ! -s conftest.err'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; } &&
7367 { ac_try
='test -s conftest.$ac_objext'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_member_struct_ifreq_ifr_addr
=yes
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.
$ac_ext >&5
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7385 #if HAVE_SYS_SOCKET_H
7386 #include <sys/socket.h>
7395 static struct ifreq ac_aggr;
7396 if (sizeof ac_aggr.ifr_addr)
7402 rm -f conftest.
$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7406 grep -v '^ *+' conftest.er1
>conftest.err
7408 cat conftest.err
>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try
='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try
='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_member_struct_ifreq_ifr_addr
=yes
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.
$ac_ext >&5
7429 ac_cv_member_struct_ifreq_ifr_addr
=no
7431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7437 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7439 cat >>confdefs.h
<<_ACEOF
7440 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7448 echo "$as_me:$LINENO: checking for function prototypes" >&5
7449 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7450 if test "$ac_cv_prog_cc_stdc" != no
; then
7451 echo "$as_me:$LINENO: result: yes" >&5
7452 echo "${ECHO_T}yes" >&6
7454 cat >>confdefs.h
<<\_ACEOF
7455 #define PROTOTYPES 1
7459 cat >>confdefs.h
<<\_ACEOF
7460 #define __PROTOTYPES 1
7464 echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7468 echo "$as_me:$LINENO: checking for working volatile" >&5
7469 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7470 if test "${ac_cv_c_volatile+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 cat >conftest.
$ac_ext <<_ACEOF
7476 cat confdefs.h
>>conftest.
$ac_ext
7477 cat >>conftest.
$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7490 rm -f conftest.
$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>conftest.er1
7494 grep -v '^ *+' conftest.er1
>conftest.err
7496 cat conftest.err
>&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try
='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try
='test -s conftest.$ac_objext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 ac_cv_c_volatile
=yes
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.
$ac_ext >&5
7519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7521 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7522 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7523 if test $ac_cv_c_volatile = no
; then
7525 cat >>confdefs.h
<<\_ACEOF
7531 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7532 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7533 if test "${ac_cv_c_const+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.
$ac_ext <<_ACEOF
7539 cat confdefs.h
>>conftest.
$ac_ext
7540 cat >>conftest.
$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7546 /* FIXME: Include the comments suggested by Paul. */
7548 /* Ultrix mips cc rejects this. */
7549 typedef int charset[2];
7551 /* SunOS 4.1.1 cc rejects this. */
7552 char const *const *ccp;
7554 /* NEC SVR4.0.2 mips cc rejects this. */
7555 struct point {int x, y;};
7556 static struct point const zero = {0,0};
7557 /* AIX XL C 1.02.0.0 rejects this.
7558 It does not let you subtract one const X* pointer from another in
7559 an arm of an if-expression whose if-part is not a constant
7561 const char *g = "string";
7562 ccp = &g + (g ? g-g : 0);
7563 /* HPUX 7.0 cc rejects these. */
7566 ccp = (char const *const *) p;
7567 { /* SCO 3.2v4 cc rejects this. */
7569 char const *s = 0 ? (char *) 0 : (char const *) 0;
7573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7575 const int *foo = &x[0];
7578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7579 typedef const int *iptr;
7583 { /* AIX XL C 1.02.0.0 rejects this saying
7584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7585 struct s { int j; const int *ap[3]; };
7586 struct s *b; b->j = 5;
7588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7597 rm -f conftest.
$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>conftest.er1
7601 grep -v '^ *+' conftest.er1
>conftest.err
7603 cat conftest.err
>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try
='test -z "$ac_c_werror_flag"
7607 || test ! -s conftest.err'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; } &&
7613 { ac_try
='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.
$ac_ext >&5
7626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7628 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7629 echo "${ECHO_T}$ac_cv_c_const" >&6
7630 if test $ac_cv_c_const = no
; then
7632 cat >>confdefs.h
<<\_ACEOF
7638 echo "$as_me:$LINENO: checking for void * support" >&5
7639 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7640 if test "${emacs_cv_void_star+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 cat >conftest.
$ac_ext <<_ACEOF
7646 cat confdefs.h
>>conftest.
$ac_ext
7647 cat >>conftest.
$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7658 rm -f conftest.
$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>conftest.er1
7662 grep -v '^ *+' conftest.er1
>conftest.err
7664 cat conftest.err
>&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try
='test -z "$ac_c_werror_flag"
7668 || test ! -s conftest.err'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try
='test -s conftest.$ac_objext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 emacs_cv_void_star
=yes
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.
$ac_ext >&5
7685 emacs_cv_void_star
=no
7687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7689 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7690 echo "${ECHO_T}$emacs_cv_void_star" >&6
7691 if test $emacs_cv_void_star = yes; then
7692 cat >>confdefs.h
<<\_ACEOF
7693 #define POINTER_TYPE void
7697 cat >>confdefs.h
<<\_ACEOF
7698 #define POINTER_TYPE char
7705 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7706 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7707 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7708 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 cat >conftest.
make <<\_ACEOF
7713 @
echo 'ac_maketemp="$(MAKE)"'
7715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7716 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7717 if test -n "$ac_maketemp"; then
7718 eval ac_cv_prog_make_
${ac_make}_set
=yes
7720 eval ac_cv_prog_make_
${ac_make}_set
=no
7724 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7725 echo "$as_me:$LINENO: result: yes" >&5
7726 echo "${ECHO_T}yes" >&6
7729 echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6
7731 SET_MAKE
="MAKE=${MAKE-make}"
7735 echo "$as_me:$LINENO: checking for long file names" >&5
7736 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7737 if test "${ac_cv_sys_long_file_names+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 ac_cv_sys_long_file_names
=yes
7741 # Test for long file names in all the places we know might matter:
7742 # . the current directory, where building will happen
7743 # $prefix/lib where we will be installing things
7744 # $exec_prefix/lib likewise
7745 # eval it to expand exec_prefix.
7746 # $TMPDIR if set, where it might want to write temporary files
7747 # if $TMPDIR is not set:
7748 # /tmp where it might want to write temporary files
7751 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7754 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7756 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7757 test -d $ac_dir ||
continue
7758 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7759 ac_xdir
=$ac_dir/cf$$
7760 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7761 ac_tf1
=$ac_xdir/conftest9012345
7762 ac_tf2
=$ac_xdir/conftest9012346
7763 (echo 1 >$ac_tf1) 2>/dev
/null
7764 (echo 2 >$ac_tf2) 2>/dev
/null
7765 ac_val
=`cat $ac_tf1 2>/dev/null`
7766 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7767 ac_cv_sys_long_file_names
=no
7768 rm -rf $ac_xdir 2>/dev
/null
7771 rm -rf $ac_xdir 2>/dev
/null
7774 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7775 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7776 if test $ac_cv_sys_long_file_names = yes; then
7778 cat >>confdefs.h
<<\_ACEOF
7779 #define HAVE_LONG_FILE_NAMES 1
7785 #### Choose a window system.
7787 echo "$as_me:$LINENO: checking for X" >&5
7788 echo $ECHO_N "checking for X... $ECHO_C" >&6
7791 # Check whether --with-x or --without-x was given.
7792 if test "${with_x+set}" = set; then
7796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7797 if test "x$with_x" = xno
; then
7798 # The user explicitly disabled X.
7801 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7802 # Both variables are already set.
7805 if test "${ac_cv_have_x+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 # One or both of the vars are not set, and there is no cached value.
7809 ac_x_includes
=no ac_x_libraries
=no
7811 if mkdir conftest.dir
; then
7813 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7814 cat >Imakefile
<<'_ACEOF'
7816 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7818 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7820 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7821 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7822 for ac_extension
in a so sl
; do
7823 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7824 test -f $ac_im_libdir/libX11.
$ac_extension; then
7825 ac_im_usrlibdir
=$ac_im_libdir; break
7828 # Screen out bogus values from the imake configuration. They are
7829 # bogus both because they are the default anyway, and because
7830 # using them would break gcc on systems where it needs fixed includes.
7831 case $ac_im_incroot in
7833 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7835 case $ac_im_usrlibdir in
7837 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7844 # Standard set of common directories for X headers.
7845 # Check X11 before X11Rn because it is often a symlink to the current release.
7857 /usr/local/X11/include
7858 /usr/local/X11R6/include
7859 /usr/local/X11R5/include
7860 /usr/local/X11R4/include
7862 /usr/local/include/X11
7863 /usr/local/include/X11R6
7864 /usr/local/include/X11R5
7865 /usr/local/include/X11R4
7869 /usr/XFree86/include/X11
7873 /usr/unsupported/include
7875 /usr/local/x11r5/include
7876 /usr/lpp/Xamples/include
7878 /usr/openwin/include
7879 /usr/openwin/share/include'
7881 if test "$ac_x_includes" = no
; then
7882 # Guess where to find include files, by looking for Intrinsic.h.
7883 # First, try using that file with no special directory specified.
7884 cat >conftest.
$ac_ext <<_ACEOF
7887 cat confdefs.h
>>conftest.
$ac_ext
7888 cat >>conftest.
$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 #include <X11/Intrinsic.h>
7892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7893 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7895 grep -v '^ *+' conftest.er1
>conftest.err
7897 cat conftest.err
>&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } >/dev
/null
; then
7900 if test -s conftest.err
; then
7901 ac_cpp_err
=$ac_c_preproc_warn_flag
7902 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7909 if test -z "$ac_cpp_err"; then
7910 # We can compile using X headers with no special include directory.
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.
$ac_ext >&5
7916 for ac_dir
in $ac_x_header_dirs; do
7917 if test -r "$ac_dir/X11/Intrinsic.h"; then
7918 ac_x_includes
=$ac_dir
7923 rm -f conftest.err conftest.
$ac_ext
7924 fi # $ac_x_includes = no
7926 if test "$ac_x_libraries" = no
; then
7927 # Check for the libraries.
7928 # See if we find them without any special options.
7929 # Don't add to $LIBS permanently.
7932 cat >conftest.
$ac_ext <<_ACEOF
7935 cat confdefs.h
>>conftest.
$ac_ext
7936 cat >>conftest.
$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <X11/Intrinsic.h>
7947 rm -f conftest.
$ac_objext conftest
$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>conftest.er1
7951 grep -v '^ *+' conftest.er1
>conftest.err
7953 cat conftest.err
>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try
='test -z "$ac_c_werror_flag"
7957 || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try
='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7970 # We can link X programs with no special library path.
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.
$ac_ext >&5
7977 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7979 # Don't even attempt the hair of trying to link an X program!
7980 for ac_extension
in a so sl
; do
7981 if test -r $ac_dir/libXt.
$ac_extension; then
7982 ac_x_libraries
=$ac_dir
7988 rm -f conftest.err conftest.
$ac_objext \
7989 conftest
$ac_exeext conftest.
$ac_ext
7990 fi # $ac_x_libraries = no
7992 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7993 # Didn't find X anywhere. Cache the known absence of X.
7994 ac_cv_have_x
="have_x=no"
7996 # Record where we found X for the cache.
7997 ac_cv_have_x
="have_x=yes \
7998 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8003 eval "$ac_cv_have_x"
8006 if test "$have_x" != yes; then
8007 echo "$as_me:$LINENO: result: $have_x" >&5
8008 echo "${ECHO_T}$have_x" >&6
8011 # If each of the values was on the command line, it overrides each guess.
8012 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8013 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8014 # Update the cache value to reflect the command line values.
8015 ac_cv_have_x
="have_x=yes \
8016 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8017 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8018 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8021 if test "$no_x" = yes; then
8027 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8028 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8029 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8030 x_default_search_path
=""
8031 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8033 ${x_library}/X11/%L/%T/%N%C%S:\
8034 ${x_library}/X11/%l/%T/%N%C%S:\
8035 ${x_library}/X11/%T/%N%C%S:\
8036 ${x_library}/X11/%L/%T/%N%S:\
8037 ${x_library}/X11/%l/%T/%N%S:\
8038 ${x_library}/X11/%T/%N%S"
8039 if test x
"${x_default_search_path}" = x
; then
8040 x_default_search_path
=${x_search_path}
8042 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8046 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8047 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8050 if test x
"${x_includes}" = x
; then
8051 bitmapdir
=/usr
/include
/X11
/bitmaps
8053 # accumulate include directories that have X11 bitmap subdirectories
8055 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8056 if test -d "${bmd}/X11/bitmaps"; then
8057 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8059 if test -d "${bmd}/bitmaps"; then
8060 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8063 if test ${bmd_acc} != "dummyval"; then
8064 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8068 case "${window_system}" in
8072 case "${with_x_toolkit}" in
8073 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8074 motif
) USE_X_TOOLKIT
=MOTIF
;;
8076 USE_X_TOOLKIT
=none
;;
8077 no
) USE_X_TOOLKIT
=none
;;
8078 * ) USE_X_TOOLKIT
=maybe
;;
8088 ### If we're using X11, we should use the X menu package.
8091 yes ) HAVE_MENUS
=yes ;;
8094 if test "${opsys}" = "hpux9"; then
8095 case "${x_libraries}" in
8097 opsysfile
="s/hpux9-x11r4.h"
8102 if test "${opsys}" = "hpux9shr"; then
8103 case "${x_libraries}" in
8105 opsysfile
="s/hpux9shxr4.h"
8110 ### Compute the unexec source name from the object name.
8111 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8113 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8114 # Assume not, until told otherwise.
8117 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8118 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8119 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130 #define malloc_get_state innocuous_malloc_get_state
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char malloc_get_state (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
8138 # include <limits.h>
8140 # include <assert.h>
8143 #undef malloc_get_state
8145 /* Override any gcc2 internal prototype to avoid an error. */
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char malloc_get_state ();
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8159 char (*f) () = malloc_get_state;
8168 return f != malloc_get_state;
8173 rm -f conftest.
$ac_objext conftest
$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1
>conftest.err
8179 cat conftest.err
>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try
='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try
='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_func_malloc_get_state
=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.
$ac_ext >&5
8200 ac_cv_func_malloc_get_state
=no
8202 rm -f conftest.err conftest.
$ac_objext \
8203 conftest
$ac_exeext conftest.
$ac_ext
8205 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8206 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8207 if test $ac_cv_func_malloc_get_state = yes; then
8213 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8214 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8215 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 cat >conftest.
$ac_ext <<_ACEOF
8221 cat confdefs.h
>>conftest.
$ac_ext
8222 cat >>conftest.
$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8226 #define malloc_set_state innocuous_malloc_set_state
8228 /* System header to define __stub macros and hopefully few prototypes,
8229 which can conflict with char malloc_set_state (); below.
8230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8231 <limits.h> exists even on freestanding compilers. */
8234 # include <limits.h>
8236 # include <assert.h>
8239 #undef malloc_set_state
8241 /* Override any gcc2 internal prototype to avoid an error. */
8246 /* We use char because int might match the return type of a gcc2
8247 builtin and then its argument prototype would still apply. */
8248 char malloc_set_state ();
8249 /* The GNU C library defines this for functions which it implements
8250 to always fail with ENOSYS. Some functions are actually named
8251 something starting with __ and the normal name is an alias. */
8252 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8255 char (*f) () = malloc_set_state;
8264 return f != malloc_set_state;
8269 rm -f conftest.
$ac_objext conftest
$ac_exeext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271 (eval $ac_link) 2>conftest.er1
8273 grep -v '^ *+' conftest.er1
>conftest.err
8275 cat conftest.err
>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try
='test -z "$ac_c_werror_flag"
8279 || test ! -s conftest.err'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try
='test -s conftest$ac_exeext'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 ac_cv_func_malloc_set_state
=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 ac_cv_func_malloc_set_state
=no
8298 rm -f conftest.err conftest.
$ac_objext \
8299 conftest
$ac_exeext conftest.
$ac_ext
8301 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8302 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8303 if test $ac_cv_func_malloc_set_state = yes; then
8309 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8310 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8311 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8312 echo $ECHO_N "(cached) $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 extern void (* __after_morecore_hook)();
8324 __after_morecore_hook = 0
8329 rm -f conftest.
$ac_objext conftest
$ac_exeext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331 (eval $ac_link) 2>conftest.er1
8333 grep -v '^ *+' conftest.er1
>conftest.err
8335 cat conftest.err
>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try
='test -z "$ac_c_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try
='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 emacs_cv_var___after_morecore_hook
=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.
$ac_ext >&5
8356 emacs_cv_var___after_morecore_hook
=no
8358 rm -f conftest.err conftest.
$ac_objext \
8359 conftest
$ac_exeext conftest.
$ac_ext
8361 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8362 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8363 if test $emacs_cv_var___after_morecore_hook = no
; then
8366 if test "${system_malloc}" = "yes"; then
8369 (The GNU allocators don't work with this system configuration.)"
8371 if test "$doug_lea_malloc" = "yes" ; then
8372 if test "$GNU_MALLOC" = yes ; then
8374 (Using Doug Lea's new malloc from the GNU C Library.)"
8377 cat >>confdefs.h
<<\_ACEOF
8378 #define DOUG_LEA_MALLOC 1
8383 if test x
"${REL_ALLOC}" = x
; then
8384 REL_ALLOC
=${GNU_MALLOC}
8390 for ac_header
in stdlib.h unistd.h
8392 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8394 echo "$as_me:$LINENO: checking for $ac_header" >&5
8395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8402 # Is the header compilable?
8403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8405 cat >conftest.
$ac_ext <<_ACEOF
8408 cat confdefs.h
>>conftest.
$ac_ext
8409 cat >>conftest.
$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #include <$ac_header>
8414 rm -f conftest.
$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1
>conftest.err
8420 cat conftest.err
>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try
='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try
='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_header_compiler
=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.
$ac_ext >&5
8441 ac_header_compiler
=no
8443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6
8447 # Is the header present?
8448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8450 cat >conftest.
$ac_ext <<_ACEOF
8453 cat confdefs.h
>>conftest.
$ac_ext
8454 cat >>conftest.
$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 #include <$ac_header>
8458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8461 grep -v '^ *+' conftest.er1
>conftest.err
8463 cat conftest.err
>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } >/dev
/null
; then
8466 if test -s conftest.err
; then
8467 ac_cpp_err
=$ac_c_preproc_warn_flag
8468 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8475 if test -z "$ac_cpp_err"; then
8476 ac_header_preproc
=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 ac_header_preproc
=no
8483 rm -f conftest.err conftest.
$ac_ext
8484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485 echo "${ECHO_T}$ac_header_preproc" >&6
8487 # So? What about this header?
8488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8494 ac_header_preproc
=yes
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8511 ## ------------------------------------------ ##
8512 ## Report this to the AC_PACKAGE_NAME lists. ##
8513 ## ------------------------------------------ ##
8516 sed "s/^/$as_me: WARNING: /" >&2
8519 echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 eval "$as_ac_Header=\$ac_header_preproc"
8526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8531 cat >>confdefs.h
<<_ACEOF
8532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8540 for ac_func
in getpagesize
8542 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8543 echo "$as_me:$LINENO: checking for $ac_func" >&5
8544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8545 if eval "test \"\${$as_ac_var+set}\" = set"; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 cat >conftest.
$ac_ext <<_ACEOF
8551 cat confdefs.h
>>conftest.
$ac_ext
8552 cat >>conftest.
$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8556 #define $ac_func innocuous_$ac_func
8558 /* System header to define __stub macros and hopefully few prototypes,
8559 which can conflict with char $ac_func (); below.
8560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561 <limits.h> exists even on freestanding compilers. */
8564 # include <limits.h>
8566 # include <assert.h>
8571 /* Override any gcc2 internal prototype to avoid an error. */
8576 /* We use char because int might match the return type of a gcc2
8577 builtin and then its argument prototype would still apply. */
8579 /* The GNU C library defines this for functions which it implements
8580 to always fail with ENOSYS. Some functions are actually named
8581 something starting with __ and the normal name is an alias. */
8582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8585 char (*f) () = $ac_func;
8594 return f != $ac_func;
8599 rm -f conftest.
$ac_objext conftest
$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>conftest.er1
8603 grep -v '^ *+' conftest.er1
>conftest.err
8605 cat conftest.err
>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try
='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try
='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 eval "$as_ac_var=yes"
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.
$ac_ext >&5
8626 eval "$as_ac_var=no"
8628 rm -f conftest.err conftest.
$ac_objext \
8629 conftest
$ac_exeext conftest.
$ac_ext
8631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8633 if test `eval echo '${'$as_ac_var'}'` = yes; then
8634 cat >>confdefs.h
<<_ACEOF
8635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8641 echo "$as_me:$LINENO: checking for working mmap" >&5
8642 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8643 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 if test "$cross_compiling" = yes; then
8647 ac_cv_func_mmap_fixed_mapped
=no
8649 cat >conftest.
$ac_ext <<_ACEOF
8652 cat confdefs.h
>>conftest.
$ac_ext
8653 cat >>conftest.
$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 /* malloc might have been renamed as rpl_malloc. */
8659 /* Thanks to Mike Haertel and Jim Avera for this test.
8660 Here is a matrix of mmap possibilities:
8661 mmap private not fixed
8662 mmap private fixed at somewhere currently unmapped
8663 mmap private fixed at somewhere already mapped
8664 mmap shared not fixed
8665 mmap shared fixed at somewhere currently unmapped
8666 mmap shared fixed at somewhere already mapped
8667 For private mappings, we should verify that changes cannot be read()
8668 back from the file, nor mmap's back from the file at a different
8669 address. (There have been systems where private was not correctly
8670 implemented like the infamous i386 svr4.0, and systems where the
8671 VM page cache was not coherent with the file system buffer cache
8672 like early versions of FreeBSD and possibly contemporary NetBSD.)
8673 For shared mappings, we should conversely verify that changes get
8674 propagated back to all the places they're supposed to be.
8676 Grep wants private fixed already mapped.
8677 The main things grep needs to know about mmap are:
8678 * does it exist and is it safe to write into the mmap'd area
8679 * how to use it (BSD variants) */
8682 #include <sys/mman.h>
8684 #if !STDC_HEADERS && !HAVE_STDLIB_H
8688 /* This mess was copied from the GNU getpagesize.h. */
8689 #if !HAVE_GETPAGESIZE
8690 /* Assume that all systems that can run configure have sys/param.h. */
8691 # if !HAVE_SYS_PARAM_H
8692 # define HAVE_SYS_PARAM_H 1
8695 # ifdef _SC_PAGESIZE
8696 # define getpagesize() sysconf(_SC_PAGESIZE)
8697 # else /* no _SC_PAGESIZE */
8698 # if HAVE_SYS_PARAM_H
8699 # include <sys/param.h>
8700 # ifdef EXEC_PAGESIZE
8701 # define getpagesize() EXEC_PAGESIZE
8702 # else /* no EXEC_PAGESIZE */
8704 # define getpagesize() NBPG * CLSIZE
8707 # endif /* no CLSIZE */
8708 # else /* no NBPG */
8710 # define getpagesize() NBPC
8711 # else /* no NBPC */
8713 # define getpagesize() PAGESIZE
8714 # endif /* PAGESIZE */
8715 # endif /* no NBPC */
8716 # endif /* no NBPG */
8717 # endif /* no EXEC_PAGESIZE */
8718 # else /* no HAVE_SYS_PARAM_H */
8719 # define getpagesize() 8192 /* punt totally */
8720 # endif /* no HAVE_SYS_PARAM_H */
8721 # endif /* no _SC_PAGESIZE */
8723 #endif /* no HAVE_GETPAGESIZE */
8728 char *data, *data2, *data3;
8732 pagesize = getpagesize ();
8734 /* First, make a file with some known garbage in it. */
8735 data = (char *) malloc (pagesize);
8738 for (i = 0; i < pagesize; ++i)
8739 *(data + i) = rand ();
8741 fd = creat ("conftest.mmap", 0600);
8744 if (write (fd, data, pagesize) != pagesize)
8748 /* Next, try to mmap the file at a fixed address which already has
8749 something else allocated at it. If we can, also make sure that
8750 we see the same garbage. */
8751 fd = open ("conftest.mmap", O_RDWR);
8754 data2 = (char *) malloc (2 * pagesize);
8757 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8759 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8761 for (i = 0; i < pagesize; ++i)
8762 if (*(data + i) != *(data2 + i))
8765 /* Finally, make sure that changes to the mapped area do not
8766 percolate back to the file as seen by read(). (This is a bug on
8767 some variants of i386 svr4.0.) */
8768 for (i = 0; i < pagesize; ++i)
8769 *(data2 + i) = *(data2 + i) + 1;
8770 data3 = (char *) malloc (pagesize);
8773 if (read (fd, data3, pagesize) != pagesize)
8775 for (i = 0; i < pagesize; ++i)
8776 if (*(data + i) != *(data3 + i))
8782 rm -f conftest
$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_func_mmap_fixed_mapped
=yes
8795 echo "$as_me: program exited with status $ac_status" >&5
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.
$ac_ext >&5
8800 ac_cv_func_mmap_fixed_mapped
=no
8802 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8806 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8807 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8809 cat >>confdefs.h
<<\_ACEOF
8816 if test $use_mmap_for_buffers = yes; then
8820 LIBS
="$libsrc_libs $LIBS"
8823 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8824 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8825 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 ac_check_lib_save_LIBS
=$LIBS
8830 cat >conftest.
$ac_ext <<_ACEOF
8833 cat confdefs.h
>>conftest.
$ac_ext
8834 cat >>conftest.
$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 /* Override any gcc2 internal prototype to avoid an error. */
8841 /* We use char because int might match the return type of a gcc2
8842 builtin and then its argument prototype would still apply. */
8852 rm -f conftest.
$ac_objext conftest
$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>conftest.er1
8856 grep -v '^ *+' conftest.er1
>conftest.err
8858 cat conftest.err
>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try
='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try
='test -s conftest$ac_exeext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_lib_dnet_dnet_ntoa
=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.
$ac_ext >&5
8879 ac_cv_lib_dnet_dnet_ntoa
=no
8881 rm -f conftest.err conftest.
$ac_objext \
8882 conftest
$ac_exeext conftest.
$ac_ext
8883 LIBS
=$ac_check_lib_save_LIBS
8885 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8886 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8887 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8888 cat >>confdefs.h
<<_ACEOF
8889 #define HAVE_LIBDNET 1
8897 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8898 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8899 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_check_lib_save_LIBS
=$LIBS
8904 cat >conftest.
$ac_ext <<_ACEOF
8907 cat confdefs.h
>>conftest.
$ac_ext
8908 cat >>conftest.
$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8920 rm -f conftest.
$ac_objext conftest
$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8924 grep -v '^ *+' conftest.er1
>conftest.err
8926 cat conftest.err
>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try
='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try
='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_Xbsd_main
=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.
$ac_ext >&5
8947 ac_cv_lib_Xbsd_main
=no
8949 rm -f conftest.err conftest.
$ac_objext \
8950 conftest
$ac_exeext conftest.
$ac_ext
8951 LIBS
=$ac_check_lib_save_LIBS
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8954 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8955 if test $ac_cv_lib_Xbsd_main = yes; then
8956 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8961 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8962 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8963 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 ac_check_lib_save_LIBS
=$LIBS
8967 LIBS
="-lpthreads $LIBS"
8968 cat >conftest.
$ac_ext <<_ACEOF
8971 cat confdefs.h
>>conftest.
$ac_ext
8972 cat >>conftest.
$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8975 /* Override any gcc2 internal prototype to avoid an error. */
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8990 rm -f conftest.
$ac_objext conftest
$ac_exeext
8991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8992 (eval $ac_link) 2>conftest.er1
8994 grep -v '^ *+' conftest.er1
>conftest.err
8996 cat conftest.err
>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try
='test -z "$ac_c_werror_flag"
9000 || test ! -s conftest.err'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; } &&
9006 { ac_try
='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_cv_lib_pthreads_cma_open
=yes
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.
$ac_ext >&5
9017 ac_cv_lib_pthreads_cma_open
=no
9019 rm -f conftest.err conftest.
$ac_objext \
9020 conftest
$ac_exeext conftest.
$ac_ext
9021 LIBS
=$ac_check_lib_save_LIBS
9023 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9024 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9025 if test $ac_cv_lib_pthreads_cma_open = yes; then
9026 cat >>confdefs.h
<<_ACEOF
9027 #define HAVE_LIBPTHREADS 1
9030 LIBS
="-lpthreads $LIBS"
9035 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9036 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9037 if test -d /usr
/X386
/include
; then
9039 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9043 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9044 echo "${ECHO_T}$HAVE_XFREE386" >&6
9049 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9050 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9051 if test "${gdb_cv_bigtoc+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9057 *) gdb_cv_bigtoc
=-bbigtoc ;;
9060 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9061 cat >conftest.
$ac_ext <<_ACEOF
9064 cat confdefs.h
>>conftest.
$ac_ext
9065 cat >>conftest.
$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9076 rm -f conftest.
$ac_objext conftest
$ac_exeext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078 (eval $ac_link) 2>conftest.er1
9080 grep -v '^ *+' conftest.er1
>conftest.err
9082 cat conftest.err
>&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try
='test -z "$ac_c_werror_flag"
9086 || test ! -s conftest.err'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; } &&
9092 { ac_try
='test -s conftest$ac_exeext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.
$ac_ext >&5
9105 rm -f conftest.err conftest.
$ac_objext \
9106 conftest
$ac_exeext conftest.
$ac_ext
9109 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9110 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9114 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9115 # used for the tests that follow. We set them back to REAL_CFLAGS and
9116 # REAL_CPPFLAGS later on.
9118 REAL_CPPFLAGS
="$CPPFLAGS"
9120 if test "${HAVE_X11}" = "yes"; then
9121 DEFS
="$C_SWITCH_X_SITE $DEFS"
9122 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9124 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9125 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9129 # but it's more convenient here to set LD_RUN_PATH
9130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9131 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9132 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9136 if test "${opsys}" = "gnu-linux"; then
9137 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9138 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9139 cat >conftest.
$ac_ext <<_ACEOF
9142 cat confdefs.h
>>conftest.
$ac_ext
9143 cat >>conftest.
$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9149 XOpenDisplay ("foo");
9154 rm -f conftest.
$ac_objext conftest
$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>conftest.er1
9158 grep -v '^ *+' conftest.er1
>conftest.err
9160 cat conftest.err
>&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try
='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try
='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 xlinux_first_failure
=no
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.
$ac_ext >&5
9181 xlinux_first_failure
=yes
9183 rm -f conftest.err conftest.
$ac_objext \
9184 conftest
$ac_exeext conftest.
$ac_ext
9185 if test "${xlinux_first_failure}" = "yes"; then
9186 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9187 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9188 OLD_CPPFLAGS
="$CPPFLAGS"
9190 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9191 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9192 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9193 LIBS
="$LIBS -b i486-linuxaout"
9194 cat >conftest.
$ac_ext <<_ACEOF
9197 cat confdefs.h
>>conftest.
$ac_ext
9198 cat >>conftest.
$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9204 XOpenDisplay ("foo");
9209 rm -f conftest.
$ac_objext conftest
$ac_exeext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211 (eval $ac_link) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1
>conftest.err
9215 cat conftest.err
>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try
='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try
='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 xlinux_second_failure
=no
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.
$ac_ext >&5
9236 xlinux_second_failure
=yes
9238 rm -f conftest.err conftest.
$ac_objext \
9239 conftest
$ac_exeext conftest.
$ac_ext
9240 if test "${xlinux_second_failure}" = "yes"; then
9241 # If we get the same failure with -b, there is no use adding -b.
9242 # So take it out. This plays safe.
9243 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9244 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9245 CPPFLAGS
="$OLD_CPPFLAGS"
9247 echo "$as_me:$LINENO: result: no" >&5
9248 echo "${ECHO_T}no" >&6
9250 echo "$as_me:$LINENO: result: yes" >&5
9251 echo "${ECHO_T}yes" >&6
9254 echo "$as_me:$LINENO: result: no" >&5
9255 echo "${ECHO_T}no" >&6
9259 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9260 # header files included from there.
9261 echo "$as_me:$LINENO: checking for Xkb" >&5
9262 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9263 cat >conftest.
$ac_ext <<_ACEOF
9266 cat confdefs.h
>>conftest.
$ac_ext
9267 cat >>conftest.
$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 #include <X11/Xlib.h>
9270 #include <X11/XKBlib.h>
9274 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9279 rm -f conftest.
$ac_objext conftest
$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9283 grep -v '^ *+' conftest.er1
>conftest.err
9285 cat conftest.err
>&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try
='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try
='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.
$ac_ext >&5
9308 rm -f conftest.err conftest.
$ac_objext \
9309 conftest
$ac_exeext conftest.
$ac_ext
9310 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9311 echo "${ECHO_T}$emacs_xkb" >&6
9312 if test $emacs_xkb = yes; then
9314 cat >>confdefs.h
<<\_ACEOF
9315 #define HAVE_XKBGETKEYBOARD 1
9324 for ac_func
in XrmSetDatabase XScreenResourceString \
9325 XScreenNumberOfScreen XSetWMProtocols
9327 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9328 echo "$as_me:$LINENO: checking for $ac_func" >&5
9329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9330 if eval "test \"\${$as_ac_var+set}\" = set"; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 cat >conftest.
$ac_ext <<_ACEOF
9336 cat confdefs.h
>>conftest.
$ac_ext
9337 cat >>conftest.
$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9341 #define $ac_func innocuous_$ac_func
9343 /* System header to define __stub macros and hopefully few prototypes,
9344 which can conflict with char $ac_func (); below.
9345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9346 <limits.h> exists even on freestanding compilers. */
9349 # include <limits.h>
9351 # include <assert.h>
9356 /* Override any gcc2 internal prototype to avoid an error. */
9361 /* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9364 /* The GNU C library defines this for functions which it implements
9365 to always fail with ENOSYS. Some functions are actually named
9366 something starting with __ and the normal name is an alias. */
9367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9370 char (*f) () = $ac_func;
9379 return f != $ac_func;
9384 rm -f conftest.
$ac_objext conftest
$ac_exeext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386 (eval $ac_link) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1
>conftest.err
9390 cat conftest.err
>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try
='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try
='test -s conftest$ac_exeext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 eval "$as_ac_var=yes"
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.
$ac_ext >&5
9411 eval "$as_ac_var=no"
9413 rm -f conftest.err conftest.
$ac_objext \
9414 conftest
$ac_exeext conftest.
$ac_ext
9416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9418 if test `eval echo '${'$as_ac_var'}'` = yes; then
9419 cat >>confdefs.h
<<_ACEOF
9420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9428 if test "${window_system}" = "x11"; then
9429 echo "$as_me:$LINENO: checking X11 version 6" >&5
9430 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9431 if test "${emacs_cv_x11_version_6+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 cat >conftest.
$ac_ext <<_ACEOF
9437 cat confdefs.h
>>conftest.
$ac_ext
9438 cat >>conftest.
$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <X11/Xlib.h>
9444 #if XlibSpecificationRelease < 6
9452 rm -f conftest.
$ac_objext conftest
$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>conftest.er1
9456 grep -v '^ *+' conftest.er1
>conftest.err
9458 cat conftest.err
>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try
='test -z "$ac_c_werror_flag"
9462 || test ! -s conftest.err'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try
='test -s conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 emacs_cv_x11_version_6
=yes
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.
$ac_ext >&5
9479 emacs_cv_x11_version_6
=no
9481 rm -f conftest.err conftest.
$ac_objext \
9482 conftest
$ac_exeext conftest.
$ac_ext
9485 if test $emacs_cv_x11_version_6 = yes; then
9486 echo "$as_me:$LINENO: result: 6 or newer" >&5
9487 echo "${ECHO_T}6 or newer" >&6
9489 cat >>confdefs.h
<<\_ACEOF
9490 #define HAVE_X11R6 1
9494 echo "$as_me:$LINENO: result: before 6" >&5
9495 echo "${ECHO_T}before 6" >&6
9499 if test "${window_system}" = "x11"; then
9500 echo "$as_me:$LINENO: checking X11 version 5" >&5
9501 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9502 if test "${emacs_cv_x11_version_5+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 cat >conftest.
$ac_ext <<_ACEOF
9508 cat confdefs.h
>>conftest.
$ac_ext
9509 cat >>conftest.
$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 #include <X11/Xlib.h>
9515 #if XlibSpecificationRelease < 5
9523 rm -f conftest.
$ac_objext conftest
$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>conftest.er1
9527 grep -v '^ *+' conftest.er1
>conftest.err
9529 cat conftest.err
>&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try
='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try
='test -s conftest$ac_exeext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 emacs_cv_x11_version_5
=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.
$ac_ext >&5
9550 emacs_cv_x11_version_5
=no
9552 rm -f conftest.err conftest.
$ac_objext \
9553 conftest
$ac_exeext conftest.
$ac_ext
9556 if test $emacs_cv_x11_version_5 = yes; then
9557 echo "$as_me:$LINENO: result: 5 or newer" >&5
9558 echo "${ECHO_T}5 or newer" >&6
9561 cat >>confdefs.h
<<\_ACEOF
9562 #define HAVE_X11R5 1
9567 echo "$as_me:$LINENO: result: before 5" >&5
9568 echo "${ECHO_T}before 5" >&6
9575 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9576 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9577 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9578 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9579 { (exit 1); exit 1; }; };
9583 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9585 if test "X${with_pkg_config_prog}" != X
; then
9586 PKG_CONFIG
="${with_pkg_config_prog}"
9591 if test -z "$PKG_CONFIG"; then
9592 # Extract the first word of "pkg-config", so it can be a program name with args.
9593 set dummy pkg-config
; ac_word
=$2
9594 echo "$as_me:$LINENO: checking for $ac_word" >&5
9595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9596 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9608 test -z "$as_dir" && as_dir
=.
9609 for ac_exec_ext
in '' $ac_executable_extensions; do
9610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9622 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9624 if test -n "$PKG_CONFIG"; then
9625 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9626 echo "${ECHO_T}$PKG_CONFIG" >&6
9628 echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9634 if test "$PKG_CONFIG" = "no" ; then
9635 echo "*** The pkg-config script could not be found. Make sure it is"
9636 echo "*** in your path, or give the full path to pkg-config with"
9637 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9638 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9640 PKG_CONFIG_MIN_VERSION
=0.9.0
9641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9642 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9643 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9645 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9646 echo "$as_me:$LINENO: result: yes" >&5
9647 echo "${ECHO_T}yes" >&6
9650 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9651 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9652 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9653 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9654 echo "${ECHO_T}$GTK_CFLAGS" >&6
9656 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9657 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9658 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9659 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9660 echo "${ECHO_T}$GTK_LIBS" >&6
9664 ## If we have a custom action on failure, don't print errors, but
9665 ## do set a variable so people can do so.
9666 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9667 echo $GTK_PKG_ERRORS
9673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9678 if test $succeeded = yes; then
9681 { { 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
9682 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;}
9683 { (exit 1); exit 1; }; }
9688 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9689 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9690 LIBS
="$GTK_LIBS $LIBS"
9693 cat >>confdefs.h
<<\_ACEOF
9699 with_toolkit_scroll_bars
=yes
9701 HAVE_GTK_MULTIDISPLAY
=no
9703 for ac_func
in gdk_display_open
9705 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9706 echo "$as_me:$LINENO: checking for $ac_func" >&5
9707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9708 if eval "test \"\${$as_ac_var+set}\" = set"; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 cat >conftest.
$ac_ext <<_ACEOF
9714 cat confdefs.h
>>conftest.
$ac_ext
9715 cat >>conftest.
$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9719 #define $ac_func innocuous_$ac_func
9721 /* System header to define __stub macros and hopefully few prototypes,
9722 which can conflict with char $ac_func (); below.
9723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9724 <limits.h> exists even on freestanding compilers. */
9727 # include <limits.h>
9729 # include <assert.h>
9734 /* Override any gcc2 internal prototype to avoid an error. */
9739 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9742 /* The GNU C library defines this for functions which it implements
9743 to always fail with ENOSYS. Some functions are actually named
9744 something starting with __ and the normal name is an alias. */
9745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9748 char (*f) () = $ac_func;
9757 return f != $ac_func;
9762 rm -f conftest.
$ac_objext conftest
$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9766 grep -v '^ *+' conftest.er1
>conftest.err
9768 cat conftest.err
>&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try
='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try
='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 eval "$as_ac_var=yes"
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.
$ac_ext >&5
9789 eval "$as_ac_var=no"
9791 rm -f conftest.err conftest.
$ac_objext \
9792 conftest
$ac_exeext conftest.
$ac_ext
9794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9796 if test `eval echo '${'$as_ac_var'}'` = yes; then
9797 cat >>confdefs.h
<<_ACEOF
9798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9800 HAVE_GTK_MULTIDISPLAY
=yes
9804 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9806 cat >>confdefs.h
<<\_ACEOF
9807 #define HAVE_GTK_MULTIDISPLAY 1
9813 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9814 if test x
"${HAVE_X11R5}" = xyes
; then
9815 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9816 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9817 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 cat >conftest.
$ac_ext <<_ACEOF
9823 cat confdefs.h
>>conftest.
$ac_ext
9824 cat >>conftest.
$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9827 #include <X11/Intrinsic.h>
9828 #include <X11/Xaw/Simple.h>
9837 rm -f conftest.
$ac_objext conftest
$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1
>conftest.err
9843 cat conftest.err
>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try
='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try
='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 emacs_cv_x11_version_5_with_xaw
=yes
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.
$ac_ext >&5
9864 emacs_cv_x11_version_5_with_xaw
=no
9866 rm -f conftest.err conftest.
$ac_objext \
9867 conftest
$ac_exeext conftest.
$ac_ext
9870 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9871 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9872 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9875 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9876 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9884 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9886 if test "${USE_X_TOOLKIT}" != "none"; then
9887 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9888 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9889 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.
$ac_ext <<_ACEOF
9895 cat confdefs.h
>>conftest.
$ac_ext
9896 cat >>conftest.
$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #include <X11/Intrinsic.h>
9902 #if XtSpecificationRelease < 6
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>conftest.er1
9914 grep -v '^ *+' conftest.er1
>conftest.err
9916 cat conftest.err
>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try
='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try
='test -s conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 emacs_cv_x11_toolkit_version_6
=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.
$ac_ext >&5
9937 emacs_cv_x11_toolkit_version_6
=no
9939 rm -f conftest.err conftest.
$ac_objext \
9940 conftest
$ac_exeext conftest.
$ac_ext
9943 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9944 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9945 echo "$as_me:$LINENO: result: 6 or newer" >&5
9946 echo "${ECHO_T}6 or newer" >&6
9948 cat >>confdefs.h
<<\_ACEOF
9949 #define HAVE_X11XTR6 1
9953 echo "$as_me:$LINENO: result: before 6" >&5
9954 echo "${ECHO_T}before 6" >&6
9958 if test x
$HAVE_X11XTR6 = xyes
; then
9959 LIBS
="-lXt -lSM -lICE $LIBS"
9964 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9965 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9966 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 ac_check_lib_save_LIBS
=$LIBS
9971 cat >conftest.
$ac_ext <<_ACEOF
9974 cat confdefs.h
>>conftest.
$ac_ext
9975 cat >>conftest.
$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 /* Override any gcc2 internal prototype to avoid an error. */
9982 /* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9984 char XmuConvertStandardSelection ();
9988 XmuConvertStandardSelection ();
9993 rm -f conftest.
$ac_objext conftest
$ac_exeext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995 (eval $ac_link) 2>conftest.er1
9997 grep -v '^ *+' conftest.er1
>conftest.err
9999 cat conftest.err
>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try
='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try
='test -s conftest$ac_exeext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.
$ac_ext >&5
10020 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10022 rm -f conftest.err conftest.
$ac_objext \
10023 conftest
$ac_exeext conftest.
$ac_ext
10024 LIBS
=$ac_check_lib_save_LIBS
10026 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10027 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10028 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10029 cat >>confdefs.h
<<_ACEOF
10030 #define HAVE_LIBXMU 1
10037 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10040 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10041 if test "${HAVE_X11}" = "yes"; then
10042 if test "${USE_X_TOOLKIT}" != "none"; then
10044 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10045 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10046 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 ac_check_lib_save_LIBS
=$LIBS
10050 LIBS
="-lXext $LIBS"
10051 cat >conftest.
$ac_ext <<_ACEOF
10054 cat confdefs.h
>>conftest.
$ac_ext
10055 cat >>conftest.
$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10058 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10064 char XShapeQueryExtension ();
10068 XShapeQueryExtension ();
10073 rm -f conftest.
$ac_objext conftest
$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10077 grep -v '^ *+' conftest.er1
>conftest.err
10079 cat conftest.err
>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try
='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try
='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.
$ac_ext >&5
10100 ac_cv_lib_Xext_XShapeQueryExtension
=no
10102 rm -f conftest.err conftest.
$ac_objext \
10103 conftest
$ac_exeext conftest.
$ac_ext
10104 LIBS
=$ac_check_lib_save_LIBS
10106 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10107 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10108 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10109 cat >>confdefs.h
<<_ACEOF
10110 #define HAVE_LIBXEXT 1
10113 LIBS
="-lXext $LIBS"
10120 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10121 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10122 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10123 if test "${emacs_cv_lesstif+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 # We put this in CFLAGS temporarily to precede other -I options
10127 # that might be in CFLAGS temporarily.
10128 # We put this in CPPFLAGS where it precedes the other -I options.
10129 OLD_CPPFLAGS
=$CPPFLAGS
10131 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10132 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10133 cat >conftest.
$ac_ext <<_ACEOF
10136 cat confdefs.h
>>conftest.
$ac_ext
10137 cat >>conftest.
$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10148 rm -f conftest.
$ac_objext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10150 (eval $ac_compile) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1
>conftest.err
10154 cat conftest.err
>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try
='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try
='test -s conftest.$ac_objext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 emacs_cv_lesstif
=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.
$ac_ext >&5
10175 emacs_cv_lesstif
=no
10177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10179 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10180 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10181 if test $emacs_cv_lesstif = yes; then
10182 # Make sure this -I option remains in CPPFLAGS after it is set
10183 # back to REAL_CPPFLAGS.
10184 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10185 # have those other -I options anyway. Ultimately, having this
10186 # directory ultimately in CPPFLAGS will be enough.
10187 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10188 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10191 CPPFLAGS
=$OLD_CPPFLAGS
10193 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10194 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10195 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 cat >conftest.
$ac_ext <<_ACEOF
10201 cat confdefs.h
>>conftest.
$ac_ext
10202 cat >>conftest.
$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10208 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10211 Motif version prior to 2.1.
10217 rm -f conftest.
$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>conftest.er1
10221 grep -v '^ *+' conftest.er1
>conftest.err
10223 cat conftest.err
>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try
='test -z "$ac_c_werror_flag"
10227 || test ! -s conftest.err'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try
='test -s conftest.$ac_objext'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 emacs_cv_motif_version_2_1
=yes
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.
$ac_ext >&5
10244 emacs_cv_motif_version_2_1
=no
10246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10248 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10249 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10250 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10251 if test $emacs_cv_motif_version_2_1 = yes; then
10254 cat >>confdefs.h
<<\_ACEOF
10255 #define HAVE_MOTIF_2_1 1
10258 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10259 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10260 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 ac_check_lib_save_LIBS
=$LIBS
10265 cat >conftest.
$ac_ext <<_ACEOF
10268 cat confdefs.h
>>conftest.
$ac_ext
10269 cat >>conftest.
$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10272 /* Override any gcc2 internal prototype to avoid an error. */
10276 /* We use char because int might match the return type of a gcc2
10277 builtin and then its argument prototype would still apply. */
10278 char XpCreateContext ();
10282 XpCreateContext ();
10287 rm -f conftest.
$ac_objext conftest
$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10291 grep -v '^ *+' conftest.er1
>conftest.err
10293 cat conftest.err
>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try
='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try
='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_cv_lib_Xp_XpCreateContext
=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.
$ac_ext >&5
10314 ac_cv_lib_Xp_XpCreateContext
=no
10316 rm -f conftest.err conftest.
$ac_objext \
10317 conftest
$ac_exeext conftest.
$ac_ext
10318 LIBS
=$ac_check_lib_save_LIBS
10320 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10321 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10322 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10326 if test ${HAVE_LIBXP} = yes; then
10328 cat >>confdefs.h
<<\_ACEOF
10329 #define HAVE_LIBXP 1
10336 ### Is -lXaw3d available?
10338 if test "${HAVE_X11}" = "yes"; then
10339 if test "${USE_X_TOOLKIT}" != "none"; then
10340 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10341 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10342 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 cat >conftest.
$ac_ext <<_ACEOF
10348 cat confdefs.h
>>conftest.
$ac_ext
10349 cat >>conftest.
$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351 #include <X11/Xaw3d/Scrollbar.h>
10353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10354 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10356 grep -v '^ *+' conftest.er1
>conftest.err
10358 cat conftest.err
>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev
/null
; then
10361 if test -s conftest.err
; then
10362 ac_cpp_err
=$ac_c_preproc_warn_flag
10363 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10370 if test -z "$ac_cpp_err"; then
10371 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.
$ac_ext >&5
10376 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10378 rm -f conftest.err conftest.
$ac_ext
10380 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10381 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10382 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10383 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10384 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10385 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 ac_check_lib_save_LIBS
=$LIBS
10389 LIBS
="-lXaw3d $LIBS"
10390 cat >conftest.
$ac_ext <<_ACEOF
10393 cat confdefs.h
>>conftest.
$ac_ext
10394 cat >>conftest.
$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10397 /* Override any gcc2 internal prototype to avoid an error. */
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10403 char XawScrollbarSetThumb ();
10407 XawScrollbarSetThumb ();
10412 rm -f conftest.
$ac_objext conftest
$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10416 grep -v '^ *+' conftest.er1
>conftest.err
10418 cat conftest.err
>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try
='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try
='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.
$ac_ext >&5
10439 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10441 rm -f conftest.err conftest.
$ac_objext \
10442 conftest
$ac_exeext conftest.
$ac_ext
10443 LIBS
=$ac_check_lib_save_LIBS
10445 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10446 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10447 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10454 if test "${HAVE_XAW3D}" = "yes"; then
10456 cat >>confdefs.h
<<\_ACEOF
10457 #define HAVE_XAW3D 1
10466 USE_TOOLKIT_SCROLL_BARS
=no
10467 if test "${with_toolkit_scroll_bars}" != "no"; then
10468 if test "${USE_X_TOOLKIT}" != "none"; then
10469 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10470 cat >>confdefs.h
<<\_ACEOF
10471 #define USE_TOOLKIT_SCROLL_BARS 1
10475 USE_TOOLKIT_SCROLL_BARS
=yes
10476 elif test "${HAVE_XAW3D}" = "yes"; then
10477 cat >>confdefs.h
<<\_ACEOF
10478 #define USE_TOOLKIT_SCROLL_BARS 1
10481 USE_TOOLKIT_SCROLL_BARS
=yes
10483 elif test "${HAVE_GTK}" = "yes"; then
10484 cat >>confdefs.h
<<\_ACEOF
10485 #define USE_TOOLKIT_SCROLL_BARS 1
10488 USE_TOOLKIT_SCROLL_BARS
=yes
10492 cat >conftest.
$ac_ext <<_ACEOF
10495 cat confdefs.h
>>conftest.
$ac_ext
10496 cat >>conftest.
$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10499 #include <X11/Xlib.h>
10500 #include <X11/Xresource.h>
10509 rm -f conftest.
$ac_objext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>conftest.er1
10513 grep -v '^ *+' conftest.er1
>conftest.err
10515 cat conftest.err
>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try
='test -z "$ac_c_werror_flag"
10519 || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try
='test -s conftest.$ac_objext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10533 cat >>confdefs.h
<<\_ACEOF
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.
$ac_ext >&5
10543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10546 if test "${with_xim}" != "no"; then
10548 cat >>confdefs.h
<<\_ACEOF
10555 if test "${HAVE_XIM}" != "no"; then
10556 late_CFLAGS
=$CFLAGS
10557 if test "$GCC" = yes; then
10558 CFLAGS
="$CFLAGS --pedantic-errors"
10560 cat >conftest.
$ac_ext <<_ACEOF
10563 cat confdefs.h
>>conftest.
$ac_ext
10564 cat >>conftest.
$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10567 #include <X11/Xlib.h>
10568 #include <X11/Xresource.h>
10577 XPointer *client_data;
10579 /* If we're not using GCC, it's probably not XFree86, and this is
10580 probably right, but we can't use something like --pedantic-errors. */
10581 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10582 char*, XIMProc, XPointer*);
10584 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10590 rm -f conftest.
$ac_objext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>conftest.er1
10594 grep -v '^ *+' conftest.er1
>conftest.err
10596 cat conftest.err
>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try
='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try
='test -s conftest.$ac_objext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 emacs_cv_arg6_star
=yes
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.
$ac_ext >&5
10618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10620 if test "$emacs_cv_arg6_star" = yes; then
10621 cat >>confdefs.h
<<\_ACEOF
10622 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10626 cat >>confdefs.h
<<\_ACEOF
10627 #define XRegisterIMInstantiateCallback_arg6 XPointer
10631 CFLAGS
=$late_CFLAGS
10634 ### Use -lXpm if available, unless `--with-xpm=no'.
10636 if test "${HAVE_X11}" = "yes"; then
10637 if test "${with_xpm}" != "no"; then
10638 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10639 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10640 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10641 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10645 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10647 # Is the header compilable?
10648 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10649 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10650 cat >conftest.
$ac_ext <<_ACEOF
10653 cat confdefs.h
>>conftest.
$ac_ext
10654 cat >>conftest.
$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 $ac_includes_default
10657 #include <X11/xpm.h>
10659 rm -f conftest.
$ac_objext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>conftest.er1
10663 grep -v '^ *+' conftest.er1
>conftest.err
10665 cat conftest.err
>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try
='test -z "$ac_c_werror_flag"
10669 || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try
='test -s conftest.$ac_objext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_header_compiler
=yes
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.
$ac_ext >&5
10686 ac_header_compiler
=no
10688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10690 echo "${ECHO_T}$ac_header_compiler" >&6
10692 # Is the header present?
10693 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10694 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10695 cat >conftest.
$ac_ext <<_ACEOF
10698 cat confdefs.h
>>conftest.
$ac_ext
10699 cat >>conftest.
$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include <X11/xpm.h>
10703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10704 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10706 grep -v '^ *+' conftest.er1
>conftest.err
10708 cat conftest.err
>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } >/dev
/null
; then
10711 if test -s conftest.err
; then
10712 ac_cpp_err
=$ac_c_preproc_warn_flag
10713 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10720 if test -z "$ac_cpp_err"; then
10721 ac_header_preproc
=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.
$ac_ext >&5
10726 ac_header_preproc
=no
10728 rm -f conftest.err conftest.
$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10730 echo "${ECHO_T}$ac_header_preproc" >&6
10732 # So? What about this header?
10733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10735 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10736 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10738 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10739 ac_header_preproc
=yes
10742 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10743 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10745 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10747 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10749 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10751 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10753 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10756 ## ------------------------------------------ ##
10757 ## Report this to the AC_PACKAGE_NAME lists. ##
10758 ## ------------------------------------------ ##
10761 sed "s/^/$as_me: WARNING: /" >&2
10764 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10765 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10766 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10771 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10772 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10775 if test $ac_cv_header_X11_xpm_h = yes; then
10776 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10777 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10778 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 ac_check_lib_save_LIBS
=$LIBS
10782 LIBS
="-lXpm -lX11 $LIBS"
10783 cat >conftest.
$ac_ext <<_ACEOF
10786 cat confdefs.h
>>conftest.
$ac_ext
10787 cat >>conftest.
$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10790 /* Override any gcc2 internal prototype to avoid an error. */
10794 /* We use char because int might match the return type of a gcc2
10795 builtin and then its argument prototype would still apply. */
10796 char XpmReadFileToPixmap ();
10800 XpmReadFileToPixmap ();
10805 rm -f conftest.
$ac_objext conftest
$ac_exeext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10807 (eval $ac_link) 2>conftest.er1
10809 grep -v '^ *+' conftest.er1
>conftest.err
10811 cat conftest.err
>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try
='test -z "$ac_c_werror_flag"
10815 || 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_exeext'
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 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.
$ac_ext >&5
10832 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10834 rm -f conftest.err conftest.
$ac_objext \
10835 conftest
$ac_exeext conftest.
$ac_ext
10836 LIBS
=$ac_check_lib_save_LIBS
10838 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10839 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10840 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10847 if test "${HAVE_XPM}" = "yes"; then
10848 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10849 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10850 cat >conftest.
$ac_ext <<_ACEOF
10853 cat confdefs.h
>>conftest.
$ac_ext
10854 cat >>conftest.
$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include "X11/xpm.h"
10857 #ifndef XpmReturnAllocPixels
10858 no_return_alloc_pixels
10862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10863 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10871 if test "${HAVE_XPM}" = "yes"; then
10872 echo "$as_me:$LINENO: result: yes" >&5
10873 echo "${ECHO_T}yes" >&6
10875 echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6
10881 if test "${HAVE_XPM}" = "yes"; then
10883 cat >>confdefs.h
<<\_ACEOF
10890 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10892 if test "${HAVE_X11}" = "yes"; then
10893 if test "${with_jpeg}" != "no"; then
10894 if test "${ac_cv_header_jerror_h+set}" = set; then
10895 echo "$as_me:$LINENO: checking for jerror.h" >&5
10896 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10897 if test "${ac_cv_header_jerror_h+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10901 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10903 # Is the header compilable?
10904 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10905 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10906 cat >conftest.
$ac_ext <<_ACEOF
10909 cat confdefs.h
>>conftest.
$ac_ext
10910 cat >>conftest.
$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 $ac_includes_default
10913 #include <jerror.h>
10915 rm -f conftest.
$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917 (eval $ac_compile) 2>conftest.er1
10919 grep -v '^ *+' conftest.er1
>conftest.err
10921 cat conftest.err
>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } &&
10924 { ac_try
='test -z "$ac_c_werror_flag"
10925 || test ! -s conftest.err'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try
='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_header_compiler
=yes
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.
$ac_ext >&5
10942 ac_header_compiler
=no
10944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10946 echo "${ECHO_T}$ac_header_compiler" >&6
10948 # Is the header present?
10949 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10950 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10951 cat >conftest.
$ac_ext <<_ACEOF
10954 cat confdefs.h
>>conftest.
$ac_ext
10955 cat >>conftest.
$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 #include <jerror.h>
10959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10960 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10962 grep -v '^ *+' conftest.er1
>conftest.err
10964 cat conftest.err
>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev
/null
; then
10967 if test -s conftest.err
; then
10968 ac_cpp_err
=$ac_c_preproc_warn_flag
10969 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10976 if test -z "$ac_cpp_err"; then
10977 ac_header_preproc
=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.
$ac_ext >&5
10982 ac_header_preproc
=no
10984 rm -f conftest.err conftest.
$ac_ext
10985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10986 echo "${ECHO_T}$ac_header_preproc" >&6
10988 # So? What about this header?
10989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10991 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10992 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
10994 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
10995 ac_header_preproc
=yes
10998 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10999 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11001 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11003 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11005 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11007 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11009 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11012 ## ------------------------------------------ ##
11013 ## Report this to the AC_PACKAGE_NAME lists. ##
11014 ## ------------------------------------------ ##
11017 sed "s/^/$as_me: WARNING: /" >&2
11020 echo "$as_me:$LINENO: checking for jerror.h" >&5
11021 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11022 if test "${ac_cv_header_jerror_h+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 ac_cv_header_jerror_h
=$ac_header_preproc
11027 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11028 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11031 if test $ac_cv_header_jerror_h = yes; then
11032 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11033 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11034 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_check_lib_save_LIBS
=$LIBS
11038 LIBS
="-ljpeg $LIBS"
11039 cat >conftest.
$ac_ext <<_ACEOF
11042 cat confdefs.h
>>conftest.
$ac_ext
11043 cat >>conftest.
$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11046 /* Override any gcc2 internal prototype to avoid an error. */
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char jpeg_destroy_compress ();
11056 jpeg_destroy_compress ();
11061 rm -f conftest.
$ac_objext conftest
$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11065 grep -v '^ *+' conftest.er1
>conftest.err
11067 cat conftest.err
>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try
='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try
='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.
$ac_ext >&5
11088 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11090 rm -f conftest.err conftest.
$ac_objext \
11091 conftest
$ac_exeext conftest.
$ac_ext
11092 LIBS
=$ac_check_lib_save_LIBS
11094 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11095 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11096 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11106 if test "${HAVE_JPEG}" = "yes"; then
11107 cat >>confdefs.h
<<\_ACEOF
11108 #define HAVE_JPEG 1
11111 cat >conftest.
$ac_ext <<_ACEOF
11114 cat confdefs.h
>>conftest.
$ac_ext
11115 cat >>conftest.
$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #include <jpeglib.h>
11118 version=JPEG_LIB_VERSION
11121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11122 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11123 cat >>confdefs.h
<<\_ACEOF
11124 #define HAVE_JPEG 1
11128 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11129 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11137 ### Use -lpng if available, unless `--with-png=no'.
11139 if test "${HAVE_X11}" = "yes"; then
11140 if test "${with_png}" != "no"; then
11141 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11142 # in /usr/include/libpng.
11145 for ac_header
in png.h libpng
/png.h
11147 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11149 echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11157 # Is the header compilable?
11158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11160 cat >conftest.
$ac_ext <<_ACEOF
11163 cat confdefs.h
>>conftest.
$ac_ext
11164 cat >>conftest.
$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 $ac_includes_default
11167 #include <$ac_header>
11169 rm -f conftest.
$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1
>conftest.err
11175 cat conftest.err
>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try
='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try
='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_header_compiler
=yes
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.
$ac_ext >&5
11196 ac_header_compiler
=no
11198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6
11202 # Is the header present?
11203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11205 cat >conftest.
$ac_ext <<_ACEOF
11208 cat confdefs.h
>>conftest.
$ac_ext
11209 cat >>conftest.
$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11214 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11216 grep -v '^ *+' conftest.er1
>conftest.err
11218 cat conftest.err
>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } >/dev
/null
; then
11221 if test -s conftest.err
; then
11222 ac_cpp_err
=$ac_c_preproc_warn_flag
11223 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11230 if test -z "$ac_cpp_err"; then
11231 ac_header_preproc
=yes
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.
$ac_ext >&5
11236 ac_header_preproc
=no
11238 rm -f conftest.err conftest.
$ac_ext
11239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240 echo "${ECHO_T}$ac_header_preproc" >&6
11242 # So? What about this header?
11243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11249 ac_header_preproc
=yes
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11266 ## ------------------------------------------ ##
11267 ## Report this to the AC_PACKAGE_NAME lists. ##
11268 ## ------------------------------------------ ##
11271 sed "s/^/$as_me: WARNING: /" >&2
11274 echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 eval "$as_ac_Header=\$ac_header_preproc"
11281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11286 cat >>confdefs.h
<<_ACEOF
11287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11295 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11296 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11297 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 ac_check_lib_save_LIBS
=$LIBS
11301 LIBS
="-lpng -lz -lm $LIBS"
11302 cat >conftest.
$ac_ext <<_ACEOF
11305 cat confdefs.h
>>conftest.
$ac_ext
11306 cat >>conftest.
$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 /* Override any gcc2 internal prototype to avoid an error. */
11313 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11315 char png_get_channels ();
11319 png_get_channels ();
11324 rm -f conftest.
$ac_objext conftest
$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326 (eval $ac_link) 2>conftest.er1
11328 grep -v '^ *+' conftest.er1
>conftest.err
11330 cat conftest.err
>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try
='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try
='test -s conftest$ac_exeext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 ac_cv_lib_png_png_get_channels
=yes
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.
$ac_ext >&5
11351 ac_cv_lib_png_png_get_channels
=no
11353 rm -f conftest.err conftest.
$ac_objext \
11354 conftest
$ac_exeext conftest.
$ac_ext
11355 LIBS
=$ac_check_lib_save_LIBS
11357 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11358 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11359 if test $ac_cv_lib_png_png_get_channels = yes; then
11366 if test "${HAVE_PNG}" = "yes"; then
11368 cat >>confdefs.h
<<\_ACEOF
11375 ### Use -ltiff if available, unless `--with-tiff=no'.
11377 if test "${HAVE_X11}" = "yes"; then
11378 if test "${with_tiff}" != "no"; then
11379 if test "${ac_cv_header_tiffio_h+set}" = set; then
11380 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11381 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11382 if test "${ac_cv_header_tiffio_h+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11386 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11388 # Is the header compilable?
11389 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11390 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11391 cat >conftest.
$ac_ext <<_ACEOF
11394 cat confdefs.h
>>conftest.
$ac_ext
11395 cat >>conftest.
$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 #include <tiffio.h>
11400 rm -f conftest.
$ac_objext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>conftest.er1
11404 grep -v '^ *+' conftest.er1
>conftest.err
11406 cat conftest.err
>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try
='test -z "$ac_c_werror_flag"
11410 || test ! -s conftest.err'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try
='test -s conftest.$ac_objext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_header_compiler
=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.
$ac_ext >&5
11427 ac_header_compiler
=no
11429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431 echo "${ECHO_T}$ac_header_compiler" >&6
11433 # Is the header present?
11434 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11435 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11436 cat >conftest.
$ac_ext <<_ACEOF
11439 cat confdefs.h
>>conftest.
$ac_ext
11440 cat >>conftest.
$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <tiffio.h>
11444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11447 grep -v '^ *+' conftest.er1
>conftest.err
11449 cat conftest.err
>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } >/dev
/null
; then
11452 if test -s conftest.err
; then
11453 ac_cpp_err
=$ac_c_preproc_warn_flag
11454 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11461 if test -z "$ac_cpp_err"; then
11462 ac_header_preproc
=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.
$ac_ext >&5
11467 ac_header_preproc
=no
11469 rm -f conftest.err conftest.
$ac_ext
11470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471 echo "${ECHO_T}$ac_header_preproc" >&6
11473 # So? What about this header?
11474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11476 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11477 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11479 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc
=yes
11483 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11484 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11486 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11488 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11490 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11492 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11494 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11497 ## ------------------------------------------ ##
11498 ## Report this to the AC_PACKAGE_NAME lists. ##
11499 ## ------------------------------------------ ##
11502 sed "s/^/$as_me: WARNING: /" >&2
11505 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11506 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11507 if test "${ac_cv_header_tiffio_h+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 ac_cv_header_tiffio_h
=$ac_header_preproc
11512 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11513 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11516 if test $ac_cv_header_tiffio_h = yes; then
11518 # At least one tiff package requires the jpeg library.
11519 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11520 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11521 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11522 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 ac_check_lib_save_LIBS
=$LIBS
11526 LIBS
="-ltiff $tifflibs $LIBS"
11527 cat >conftest.
$ac_ext <<_ACEOF
11530 cat confdefs.h
>>conftest.
$ac_ext
11531 cat >>conftest.
$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11534 /* Override any gcc2 internal prototype to avoid an error. */
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11540 char TIFFGetVersion ();
11549 rm -f conftest.
$ac_objext conftest
$ac_exeext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11551 (eval $ac_link) 2>conftest.er1
11553 grep -v '^ *+' conftest.er1
>conftest.err
11555 cat conftest.err
>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try
='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try
='test -s conftest$ac_exeext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_lib_tiff_TIFFGetVersion
=yes
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.
$ac_ext >&5
11576 ac_cv_lib_tiff_TIFFGetVersion
=no
11578 rm -f conftest.err conftest.
$ac_objext \
11579 conftest
$ac_exeext conftest.
$ac_ext
11580 LIBS
=$ac_check_lib_save_LIBS
11582 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11583 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11584 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11593 if test "${HAVE_TIFF}" = "yes"; then
11595 cat >>confdefs.h
<<\_ACEOF
11596 #define HAVE_TIFF 1
11602 ### Use -lgif if available, unless `--with-gif=no'.
11604 if test "${HAVE_X11}" = "yes"; then
11605 if test "${with_gif}" != "no"; then
11606 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11607 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11608 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11609 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11613 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11615 # Is the header compilable?
11616 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11617 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11618 cat >conftest.
$ac_ext <<_ACEOF
11621 cat confdefs.h
>>conftest.
$ac_ext
11622 cat >>conftest.
$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11625 #include <gif_lib.h>
11627 rm -f conftest.
$ac_objext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11631 grep -v '^ *+' conftest.er1
>conftest.err
11633 cat conftest.err
>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try
='test -z "$ac_c_werror_flag"
11637 || test ! -s conftest.err'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try
='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_header_compiler
=yes
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.
$ac_ext >&5
11654 ac_header_compiler
=no
11656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658 echo "${ECHO_T}$ac_header_compiler" >&6
11660 # Is the header present?
11661 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11662 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11663 cat >conftest.
$ac_ext <<_ACEOF
11666 cat confdefs.h
>>conftest.
$ac_ext
11667 cat >>conftest.
$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 #include <gif_lib.h>
11671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11674 grep -v '^ *+' conftest.er1
>conftest.err
11676 cat conftest.err
>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } >/dev
/null
; then
11679 if test -s conftest.err
; then
11680 ac_cpp_err
=$ac_c_preproc_warn_flag
11681 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11688 if test -z "$ac_cpp_err"; then
11689 ac_header_preproc
=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.
$ac_ext >&5
11694 ac_header_preproc
=no
11696 rm -f conftest.err conftest.
$ac_ext
11697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6
11700 # So? What about this header?
11701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11704 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11706 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc
=yes
11710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11711 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11713 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11715 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11717 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11719 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11721 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11724 ## ------------------------------------------ ##
11725 ## Report this to the AC_PACKAGE_NAME lists. ##
11726 ## ------------------------------------------ ##
11729 sed "s/^/$as_me: WARNING: /" >&2
11732 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11733 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11734 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 ac_cv_header_gif_lib_h
=$ac_header_preproc
11739 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11740 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11743 if test $ac_cv_header_gif_lib_h = yes; then
11744 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11745 # Earlier versions can crash Emacs.
11746 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11747 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11748 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 ac_check_lib_save_LIBS
=$LIBS
11752 LIBS
="-lungif $LIBS"
11753 cat >conftest.
$ac_ext <<_ACEOF
11756 cat confdefs.h
>>conftest.
$ac_ext
11757 cat >>conftest.
$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11760 /* Override any gcc2 internal prototype to avoid an error. */
11764 /* We use char because int might match the return type of a gcc2
11765 builtin and then its argument prototype would still apply. */
11766 char EGifPutExtensionLast ();
11770 EGifPutExtensionLast ();
11775 rm -f conftest.
$ac_objext conftest
$ac_exeext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777 (eval $ac_link) 2>conftest.er1
11779 grep -v '^ *+' conftest.er1
>conftest.err
11781 cat conftest.err
>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try
='test -z "$ac_c_werror_flag"
11785 || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try
='test -s conftest$ac_exeext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.
$ac_ext >&5
11802 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11804 rm -f conftest.err conftest.
$ac_objext \
11805 conftest
$ac_exeext conftest.
$ac_ext
11806 LIBS
=$ac_check_lib_save_LIBS
11808 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11809 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11810 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11819 if test "${HAVE_GIF}" = "yes"; then
11821 cat >>confdefs.h
<<\_ACEOF
11828 ### Use Mac OS X Carbon API to implement GUI.
11830 if test "${with_carbon}" != "no"; then
11831 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11832 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11833 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11834 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11838 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11840 # Is the header compilable?
11841 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11842 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11843 cat >conftest.
$ac_ext <<_ACEOF
11846 cat confdefs.h
>>conftest.
$ac_ext
11847 cat >>conftest.
$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <Carbon/Carbon.h>
11852 rm -f conftest.
$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1
>conftest.err
11858 cat conftest.err
>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try
='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try
='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_header_compiler
=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.
$ac_ext >&5
11879 ac_header_compiler
=no
11881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883 echo "${ECHO_T}$ac_header_compiler" >&6
11885 # Is the header present?
11886 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11887 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11888 cat >conftest.
$ac_ext <<_ACEOF
11891 cat confdefs.h
>>conftest.
$ac_ext
11892 cat >>conftest.
$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <Carbon/Carbon.h>
11896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11897 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11899 grep -v '^ *+' conftest.er1
>conftest.err
11901 cat conftest.err
>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } >/dev
/null
; then
11904 if test -s conftest.err
; then
11905 ac_cpp_err
=$ac_c_preproc_warn_flag
11906 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11913 if test -z "$ac_cpp_err"; then
11914 ac_header_preproc
=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.
$ac_ext >&5
11919 ac_header_preproc
=no
11921 rm -f conftest.err conftest.
$ac_ext
11922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11928 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc
=yes
11935 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11949 ## ------------------------------------------ ##
11950 ## Report this to the AC_PACKAGE_NAME lists. ##
11951 ## ------------------------------------------ ##
11954 sed "s/^/$as_me: WARNING: /" >&2
11957 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11958 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11959 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
11964 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11965 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11968 if test $ac_cv_header_Carbon_Carbon_h = yes; then
11975 if test "${HAVE_CARBON}" = "yes"; then
11977 cat >>confdefs.h
<<\_ACEOF
11978 #define HAVE_CARBON 1
11982 ## Specify the install directory
11984 if test "${carbon_appdir_x}" != ""; then
11985 case ${carbon_appdir_x} in
11986 y | ye |
yes) carbon_appdir
=/Applications
;;
11987 * ) carbon_appdir
=${carbon_appdir_x} ;;
11990 # We also have mouse menus.
11994 ### Use session management (-lSM -lICE) if available
11996 if test "${HAVE_X11}" = "yes"; then
11997 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11998 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11999 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12000 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12004 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12006 # Is the header compilable?
12007 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12008 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 $ac_includes_default
12016 #include <X11/SM/SMlib.h>
12018 rm -f conftest.
$ac_objext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12020 (eval $ac_compile) 2>conftest.er1
12022 grep -v '^ *+' conftest.er1
>conftest.err
12024 cat conftest.err
>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try
='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try
='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler
=yes
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.
$ac_ext >&5
12045 ac_header_compiler
=no
12047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12049 echo "${ECHO_T}$ac_header_compiler" >&6
12051 # Is the header present?
12052 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12053 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12054 cat >conftest.
$ac_ext <<_ACEOF
12057 cat confdefs.h
>>conftest.
$ac_ext
12058 cat >>conftest.
$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <X11/SM/SMlib.h>
12062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12063 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12065 grep -v '^ *+' conftest.er1
>conftest.err
12067 cat conftest.err
>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } >/dev
/null
; then
12070 if test -s conftest.err
; then
12071 ac_cpp_err
=$ac_c_preproc_warn_flag
12072 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12079 if test -z "$ac_cpp_err"; then
12080 ac_header_preproc
=yes
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.
$ac_ext >&5
12085 ac_header_preproc
=no
12087 rm -f conftest.err conftest.
$ac_ext
12088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12089 echo "${ECHO_T}$ac_header_preproc" >&6
12091 # So? What about this header?
12092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12094 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12095 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12096 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12097 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12098 ac_header_preproc
=yes
12101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12102 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12104 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12106 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12108 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12110 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12112 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12115 ## ------------------------------------------ ##
12116 ## Report this to the AC_PACKAGE_NAME lists. ##
12117 ## ------------------------------------------ ##
12120 sed "s/^/$as_me: WARNING: /" >&2
12123 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12124 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12125 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12130 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12131 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12134 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12135 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12136 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12137 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 ac_check_lib_save_LIBS
=$LIBS
12141 LIBS
="-lSM -lICE $LIBS"
12142 cat >conftest.
$ac_ext <<_ACEOF
12145 cat confdefs.h
>>conftest.
$ac_ext
12146 cat >>conftest.
$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12149 /* Override any gcc2 internal prototype to avoid an error. */
12153 /* We use char because int might match the return type of a gcc2
12154 builtin and then its argument prototype would still apply. */
12155 char SmcOpenConnection ();
12159 SmcOpenConnection ();
12164 rm -f conftest.
$ac_objext conftest
$ac_exeext
12165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12166 (eval $ac_link) 2>conftest.er1
12168 grep -v '^ *+' conftest.er1
>conftest.err
12170 cat conftest.err
>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try
='test -z "$ac_c_werror_flag"
12174 || test ! -s conftest.err'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; } &&
12180 { ac_try
='test -s conftest$ac_exeext'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 ac_cv_lib_SM_SmcOpenConnection
=yes
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.
$ac_ext >&5
12191 ac_cv_lib_SM_SmcOpenConnection
=no
12193 rm -f conftest.err conftest.
$ac_objext \
12194 conftest
$ac_exeext conftest.
$ac_ext
12195 LIBS
=$ac_check_lib_save_LIBS
12197 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12198 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12199 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12207 if test "${HAVE_X_SM}" = "yes"; then
12209 cat >>confdefs.h
<<\_ACEOF
12210 #define HAVE_X_SM 1
12215 *) LIBS
="-lSM -lICE $LIBS" ;;
12220 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12221 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12222 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12223 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 cat >conftest.
$ac_ext <<_ACEOF
12229 cat confdefs.h
>>conftest.
$ac_ext
12230 cat >>conftest.
$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12241 rm -f conftest.
$ac_objext conftest
$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>conftest.er1
12245 grep -v '^ *+' conftest.er1
>conftest.err
12247 cat conftest.err
>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try
='test -z "$ac_c_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try
='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 emacs_cv_netdb_declares_h_errno
=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.
$ac_ext >&5
12268 emacs_cv_netdb_declares_h_errno
=no
12270 rm -f conftest.err conftest.
$ac_objext \
12271 conftest
$ac_exeext conftest.
$ac_ext
12273 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12274 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12275 if test $emacs_cv_netdb_declares_h_errno = yes; then
12277 cat >>confdefs.h
<<\_ACEOF
12278 #define HAVE_H_ERRNO 1
12283 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12284 # for constant arguments. Useless!
12285 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12286 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12287 if test "${ac_cv_working_alloca_h+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 cat >conftest.
$ac_ext <<_ACEOF
12293 cat confdefs.h
>>conftest.
$ac_ext
12294 cat >>conftest.
$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <alloca.h>
12300 char *p = (char *) alloca (2 * sizeof (int));
12305 rm -f conftest.
$ac_objext conftest
$ac_exeext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12307 (eval $ac_link) 2>conftest.er1
12309 grep -v '^ *+' conftest.er1
>conftest.err
12311 cat conftest.err
>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
12314 { ac_try
='test -z "$ac_c_werror_flag"
12315 || test ! -s conftest.err'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; } &&
12321 { ac_try
='test -s conftest$ac_exeext'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_working_alloca_h
=yes
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.
$ac_ext >&5
12332 ac_cv_working_alloca_h
=no
12334 rm -f conftest.err conftest.
$ac_objext \
12335 conftest
$ac_exeext conftest.
$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12338 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12339 if test $ac_cv_working_alloca_h = yes; then
12341 cat >>confdefs.h
<<\_ACEOF
12342 #define HAVE_ALLOCA_H 1
12347 echo "$as_me:$LINENO: checking for alloca" >&5
12348 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12349 if test "${ac_cv_func_alloca_works+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 cat >conftest.
$ac_ext <<_ACEOF
12355 cat confdefs.h
>>conftest.
$ac_ext
12356 cat >>conftest.
$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12359 # define alloca __builtin_alloca
12362 # include <malloc.h>
12363 # define alloca _alloca
12366 # include <alloca.h>
12371 # ifndef alloca /* predefined by HP cc +Olibcalls */
12382 char *p = (char *) alloca (1);
12387 rm -f conftest.
$ac_objext conftest
$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389 (eval $ac_link) 2>conftest.er1
12391 grep -v '^ *+' conftest.er1
>conftest.err
12393 cat conftest.err
>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try
='test -z "$ac_c_werror_flag"
12397 || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try
='test -s conftest$ac_exeext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_cv_func_alloca_works
=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.
$ac_ext >&5
12414 ac_cv_func_alloca_works
=no
12416 rm -f conftest.err conftest.
$ac_objext \
12417 conftest
$ac_exeext conftest.
$ac_ext
12419 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12420 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12422 if test $ac_cv_func_alloca_works = yes; then
12424 cat >>confdefs.h
<<\_ACEOF
12425 #define HAVE_ALLOCA 1
12429 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12430 # that cause trouble. Some versions do not even contain alloca or
12431 # contain a buggy version. If you still want to use their alloca,
12432 # use ar to extract alloca.o from them instead of compiling alloca.c.
12434 ALLOCA
=alloca.
$ac_objext
12436 cat >>confdefs.h
<<\_ACEOF
12441 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12442 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12443 if test "${ac_cv_os_cray+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 cat >conftest.
$ac_ext <<_ACEOF
12449 cat confdefs.h
>>conftest.
$ac_ext
12450 cat >>conftest.
$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 #if defined(CRAY) && ! defined(CRAY2)
12459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12460 $EGREP "webecray" >/dev
/null
2>&1; then
12468 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12469 echo "${ECHO_T}$ac_cv_os_cray" >&6
12470 if test $ac_cv_os_cray = yes; then
12471 for ac_func
in _getb67 GETB67 getb67
; do
12472 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12473 echo "$as_me:$LINENO: checking for $ac_func" >&5
12474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_var+set}\" = set"; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 cat >conftest.
$ac_ext <<_ACEOF
12481 cat confdefs.h
>>conftest.
$ac_ext
12482 cat >>conftest.
$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12486 #define $ac_func innocuous_$ac_func
12488 /* System header to define __stub macros and hopefully few prototypes,
12489 which can conflict with char $ac_func (); below.
12490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491 <limits.h> exists even on freestanding compilers. */
12494 # include <limits.h>
12496 # include <assert.h>
12501 /* Override any gcc2 internal prototype to avoid an error. */
12506 /* We use char because int might match the return type of a gcc2
12507 builtin and then its argument prototype would still apply. */
12509 /* The GNU C library defines this for functions which it implements
12510 to always fail with ENOSYS. Some functions are actually named
12511 something starting with __ and the normal name is an alias. */
12512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12515 char (*f) () = $ac_func;
12524 return f != $ac_func;
12529 rm -f conftest.
$ac_objext conftest
$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>conftest.er1
12533 grep -v '^ *+' conftest.er1
>conftest.err
12535 cat conftest.err
>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try
='test -z "$ac_c_werror_flag"
12539 || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try
='test -s conftest$ac_exeext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 eval "$as_ac_var=yes"
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.
$ac_ext >&5
12556 eval "$as_ac_var=no"
12558 rm -f conftest.err conftest.
$ac_objext \
12559 conftest
$ac_exeext conftest.
$ac_ext
12561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12565 cat >>confdefs.h
<<_ACEOF
12566 #define CRAY_STACKSEG_END $ac_func
12575 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12576 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12577 if test "${ac_cv_c_stack_direction+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 if test "$cross_compiling" = yes; then
12581 ac_cv_c_stack_direction
=0
12583 cat >conftest.
$ac_ext <<_ACEOF
12586 cat confdefs.h
>>conftest.
$ac_ext
12587 cat >>conftest.
$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12590 find_stack_direction ()
12592 static char *addr = 0;
12597 return find_stack_direction ();
12600 return (&dummy > addr) ? 1 : -1;
12606 exit (find_stack_direction () < 0);
12609 rm -f conftest
$ac_exeext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12611 (eval $ac_link) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_c_stack_direction
=1
12622 echo "$as_me: program exited with status $ac_status" >&5
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.
$ac_ext >&5
12626 ( exit $ac_status )
12627 ac_cv_c_stack_direction
=-1
12629 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12633 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12635 cat >>confdefs.h
<<_ACEOF
12636 #define STACK_DIRECTION $ac_cv_c_stack_direction
12643 # fmod, logb, and frexp are found in -lm on most systems.
12644 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12646 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12647 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12648 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 ac_check_lib_save_LIBS
=$LIBS
12653 cat >conftest.
$ac_ext <<_ACEOF
12656 cat confdefs.h
>>conftest.
$ac_ext
12657 cat >>conftest.
$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12660 /* Override any gcc2 internal prototype to avoid an error. */
12664 /* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12675 rm -f conftest.
$ac_objext conftest
$ac_exeext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12677 (eval $ac_link) 2>conftest.er1
12679 grep -v '^ *+' conftest.er1
>conftest.err
12681 cat conftest.err
>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try
='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try
='test -s conftest$ac_exeext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_cv_lib_m_sqrt
=yes
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.
$ac_ext >&5
12702 ac_cv_lib_m_sqrt
=no
12704 rm -f conftest.err conftest.
$ac_objext \
12705 conftest
$ac_exeext conftest.
$ac_ext
12706 LIBS
=$ac_check_lib_save_LIBS
12708 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12709 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12710 if test $ac_cv_lib_m_sqrt = yes; then
12711 cat >>confdefs.h
<<_ACEOF
12712 #define HAVE_LIBM 1
12720 # Check for mail-locking functions in a "mail" library. Probably this should
12721 # have the same check as for liblockfile below.
12723 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12724 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12725 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 ac_check_lib_save_LIBS
=$LIBS
12729 LIBS
="-lmail $LIBS"
12730 cat >conftest.
$ac_ext <<_ACEOF
12733 cat confdefs.h
>>conftest.
$ac_ext
12734 cat >>conftest.
$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12737 /* Override any gcc2 internal prototype to avoid an error. */
12741 /* We use char because int might match the return type of a gcc2
12742 builtin and then its argument prototype would still apply. */
12752 rm -f conftest.
$ac_objext conftest
$ac_exeext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754 (eval $ac_link) 2>conftest.er1
12756 grep -v '^ *+' conftest.er1
>conftest.err
12758 cat conftest.err
>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try
='test -z "$ac_c_werror_flag"
12762 || test ! -s conftest.err'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; } &&
12768 { ac_try
='test -s conftest$ac_exeext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_lib_mail_maillock
=yes
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.
$ac_ext >&5
12779 ac_cv_lib_mail_maillock
=no
12781 rm -f conftest.err conftest.
$ac_objext \
12782 conftest
$ac_exeext conftest.
$ac_ext
12783 LIBS
=$ac_check_lib_save_LIBS
12785 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12786 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12787 if test $ac_cv_lib_mail_maillock = yes; then
12788 cat >>confdefs.h
<<_ACEOF
12789 #define HAVE_LIBMAIL 1
12792 LIBS
="-lmail $LIBS"
12797 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12798 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12799 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 ac_check_lib_save_LIBS
=$LIBS
12803 LIBS
="-llockfile $LIBS"
12804 cat >conftest.
$ac_ext <<_ACEOF
12807 cat confdefs.h
>>conftest.
$ac_ext
12808 cat >>conftest.
$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12811 /* Override any gcc2 internal prototype to avoid an error. */
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12826 rm -f conftest.
$ac_objext conftest
$ac_exeext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12828 (eval $ac_link) 2>conftest.er1
12830 grep -v '^ *+' conftest.er1
>conftest.err
12832 cat conftest.err
>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try
='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try
='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_cv_lib_lockfile_maillock
=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.
$ac_ext >&5
12853 ac_cv_lib_lockfile_maillock
=no
12855 rm -f conftest.err conftest.
$ac_objext \
12856 conftest
$ac_exeext conftest.
$ac_ext
12857 LIBS
=$ac_check_lib_save_LIBS
12859 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12860 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12861 if test $ac_cv_lib_lockfile_maillock = yes; then
12862 cat >>confdefs.h
<<_ACEOF
12863 #define HAVE_LIBLOCKFILE 1
12866 LIBS
="-llockfile $LIBS"
12870 # If we have the shared liblockfile, assume we must use it for mail
12871 # locking (e.g. Debian). If we couldn't link against liblockfile
12872 # (no liblockfile.a installed), ensure that we don't need to.
12873 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12874 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12875 set dummy liblockfile.so
; ac_word
=$2
12876 echo "$as_me:$LINENO: checking for $ac_word" >&5
12877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12878 if test "${ac_cv_prog_liblockfile+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 if test -n "$liblockfile"; then
12882 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12885 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12886 for as_dir
in $as_dummy
12889 test -z "$as_dir" && as_dir
=.
12890 for ac_exec_ext
in '' $ac_executable_extensions; do
12891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_prog_liblockfile
="yes"
12893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12902 liblockfile
=$ac_cv_prog_liblockfile
12903 if test -n "$liblockfile"; then
12904 echo "$as_me:$LINENO: result: $liblockfile" >&5
12905 echo "${ECHO_T}$liblockfile" >&6
12907 echo "$as_me:$LINENO: result: no" >&5
12908 echo "${ECHO_T}no" >&6
12911 if test $ac_cv_prog_liblockfile = yes; then
12912 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12913 This probably means that movemail could lose mail.
12914 There may be a \`development' package to install containing liblockfile." >&5
12915 echo "$as_me: error: Shared liblockfile found but can't link against it.
12916 This probably means that movemail could lose mail.
12917 There may be a \`development' package to install containing liblockfile." >&2;}
12918 { (exit 1); exit 1; }; }
12923 for ac_func
in touchlock
12925 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12926 echo "$as_me:$LINENO: checking for $ac_func" >&5
12927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_var+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 cat >conftest.
$ac_ext <<_ACEOF
12934 cat confdefs.h
>>conftest.
$ac_ext
12935 cat >>conftest.
$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12939 #define $ac_func innocuous_$ac_func
12941 /* System header to define __stub macros and hopefully few prototypes,
12942 which can conflict with char $ac_func (); below.
12943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944 <limits.h> exists even on freestanding compilers. */
12947 # include <limits.h>
12949 # include <assert.h>
12954 /* Override any gcc2 internal prototype to avoid an error. */
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12962 /* The GNU C library defines this for functions which it implements
12963 to always fail with ENOSYS. Some functions are actually named
12964 something starting with __ and the normal name is an alias. */
12965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 char (*f) () = $ac_func;
12977 return f != $ac_func;
12982 rm -f conftest.
$ac_objext conftest
$ac_exeext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12984 (eval $ac_link) 2>conftest.er1
12986 grep -v '^ *+' conftest.er1
>conftest.err
12988 cat conftest.err
>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try
='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try
='test -s conftest$ac_exeext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 eval "$as_ac_var=yes"
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.
$ac_ext >&5
13009 eval "$as_ac_var=no"
13011 rm -f conftest.err conftest.
$ac_objext \
13012 conftest
$ac_exeext conftest.
$ac_ext
13014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13016 if test `eval echo '${'$as_ac_var'}'` = yes; then
13017 cat >>confdefs.h
<<_ACEOF
13018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13025 for ac_header
in maillock.h
13027 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13037 # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.
$ac_ext <<_ACEOF
13043 cat confdefs.h
>>conftest.
$ac_ext
13044 cat >>conftest.
$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13047 #include <$ac_header>
13049 rm -f conftest.
$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1
>conftest.err
13055 cat conftest.err
>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try
='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try
='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_header_compiler
=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.
$ac_ext >&5
13076 ac_header_compiler
=no
13078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.
$ac_ext <<_ACEOF
13088 cat confdefs.h
>>conftest.
$ac_ext
13089 cat >>conftest.
$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <$ac_header>
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1
>conftest.err
13098 cat conftest.err
>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } >/dev
/null
; then
13101 if test -s conftest.err
; then
13102 ac_cpp_err
=$ac_c_preproc_warn_flag
13103 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13110 if test -z "$ac_cpp_err"; then
13111 ac_header_preproc
=yes
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.
$ac_ext >&5
13116 ac_header_preproc
=no
13118 rm -f conftest.err conftest.
$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13122 # So? What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc
=yes
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13146 ## ------------------------------------------ ##
13147 ## Report this to the AC_PACKAGE_NAME lists. ##
13148 ## ------------------------------------------ ##
13151 sed "s/^/$as_me: WARNING: /" >&2
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 eval "$as_ac_Header=\$ac_header_preproc"
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166 cat >>confdefs.h
<<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13242 for ac_func
in gethostname getdomainname dup2 \
13243 rename closedir mkdir
rmdir sysinfo \
13244 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13245 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13246 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13247 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13248 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13249 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13250 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
13252 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13253 echo "$as_me:$LINENO: checking for $ac_func" >&5
13254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13255 if eval "test \"\${$as_ac_var+set}\" = set"; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 cat >conftest.
$ac_ext <<_ACEOF
13261 cat confdefs.h
>>conftest.
$ac_ext
13262 cat >>conftest.
$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13266 #define $ac_func innocuous_$ac_func
13268 /* System header to define __stub macros and hopefully few prototypes,
13269 which can conflict with char $ac_func (); below.
13270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13271 <limits.h> exists even on freestanding compilers. */
13274 # include <limits.h>
13276 # include <assert.h>
13281 /* Override any gcc2 internal prototype to avoid an error. */
13286 /* We use char because int might match the return type of a gcc2
13287 builtin and then its argument prototype would still apply. */
13289 /* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13295 char (*f) () = $ac_func;
13304 return f != $ac_func;
13309 rm -f conftest.
$ac_objext conftest
$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>conftest.er1
13313 grep -v '^ *+' conftest.er1
>conftest.err
13315 cat conftest.err
>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try
='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try
='test -s conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 eval "$as_ac_var=yes"
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.
$ac_ext >&5
13336 eval "$as_ac_var=no"
13338 rm -f conftest.err conftest.
$ac_objext \
13339 conftest
$ac_exeext conftest.
$ac_ext
13341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13343 if test `eval echo '${'$as_ac_var'}'` = yes; then
13344 cat >>confdefs.h
<<_ACEOF
13345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13353 for ac_header
in sys
/un.h
13355 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13365 # Is the header compilable?
13366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13368 cat >conftest.
$ac_ext <<_ACEOF
13371 cat confdefs.h
>>conftest.
$ac_ext
13372 cat >>conftest.
$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 #include <$ac_header>
13377 rm -f conftest.
$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>conftest.er1
13381 grep -v '^ *+' conftest.er1
>conftest.err
13383 cat conftest.err
>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try
='test -z "$ac_c_werror_flag"
13387 || test ! -s conftest.err'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try
='test -s conftest.$ac_objext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_header_compiler
=yes
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.
$ac_ext >&5
13404 ac_header_compiler
=no
13406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408 echo "${ECHO_T}$ac_header_compiler" >&6
13410 # Is the header present?
13411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13413 cat >conftest.
$ac_ext <<_ACEOF
13416 cat confdefs.h
>>conftest.
$ac_ext
13417 cat >>conftest.
$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include <$ac_header>
13421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13422 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13424 grep -v '^ *+' conftest.er1
>conftest.err
13426 cat conftest.err
>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } >/dev
/null
; then
13429 if test -s conftest.err
; then
13430 ac_cpp_err
=$ac_c_preproc_warn_flag
13431 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13438 if test -z "$ac_cpp_err"; then
13439 ac_header_preproc
=yes
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.
$ac_ext >&5
13444 ac_header_preproc
=no
13446 rm -f conftest.err conftest.
$ac_ext
13447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13448 echo "${ECHO_T}$ac_header_preproc" >&6
13450 # So? What about this header?
13451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13457 ac_header_preproc
=yes
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13474 ## ------------------------------------------ ##
13475 ## Report this to the AC_PACKAGE_NAME lists. ##
13476 ## ------------------------------------------ ##
13479 sed "s/^/$as_me: WARNING: /" >&2
13482 echo "$as_me:$LINENO: checking for $ac_header" >&5
13483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 eval "$as_ac_Header=\$ac_header_preproc"
13489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13494 cat >>confdefs.h
<<_ACEOF
13495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13506 for ac_header
in stdlib.h sys
/time.h unistd.h
13508 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510 echo "$as_me:$LINENO: checking for $ac_header" >&5
13511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13518 # Is the header compilable?
13519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13521 cat >conftest.
$ac_ext <<_ACEOF
13524 cat confdefs.h
>>conftest.
$ac_ext
13525 cat >>conftest.
$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $ac_includes_default
13528 #include <$ac_header>
13530 rm -f conftest.
$ac_objext
13531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13532 (eval $ac_compile) 2>conftest.er1
13534 grep -v '^ *+' conftest.er1
>conftest.err
13536 cat conftest.err
>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try
='test -z "$ac_c_werror_flag"
13540 || test ! -s conftest.err'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try
='test -s conftest.$ac_objext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_header_compiler
=yes
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.
$ac_ext >&5
13557 ac_header_compiler
=no
13559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13561 echo "${ECHO_T}$ac_header_compiler" >&6
13563 # Is the header present?
13564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13566 cat >conftest.
$ac_ext <<_ACEOF
13569 cat confdefs.h
>>conftest.
$ac_ext
13570 cat >>conftest.
$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 #include <$ac_header>
13574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13577 grep -v '^ *+' conftest.er1
>conftest.err
13579 cat conftest.err
>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } >/dev
/null
; then
13582 if test -s conftest.err
; then
13583 ac_cpp_err
=$ac_c_preproc_warn_flag
13584 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13591 if test -z "$ac_cpp_err"; then
13592 ac_header_preproc
=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.
$ac_ext >&5
13597 ac_header_preproc
=no
13599 rm -f conftest.err conftest.
$ac_ext
13600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13601 echo "${ECHO_T}$ac_header_preproc" >&6
13603 # So? What about this header?
13604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13610 ac_header_preproc
=yes
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13627 ## ------------------------------------------ ##
13628 ## Report this to the AC_PACKAGE_NAME lists. ##
13629 ## ------------------------------------------ ##
13632 sed "s/^/$as_me: WARNING: /" >&2
13635 echo "$as_me:$LINENO: checking for $ac_header" >&5
13636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 eval "$as_ac_Header=\$ac_header_preproc"
13642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13647 cat >>confdefs.h
<<_ACEOF
13648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13656 for ac_func
in alarm
13658 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13659 echo "$as_me:$LINENO: checking for $ac_func" >&5
13660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13661 if eval "test \"\${$as_ac_var+set}\" = set"; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 cat >conftest.
$ac_ext <<_ACEOF
13667 cat confdefs.h
>>conftest.
$ac_ext
13668 cat >>conftest.
$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13672 #define $ac_func innocuous_$ac_func
13674 /* System header to define __stub macros and hopefully few prototypes,
13675 which can conflict with char $ac_func (); below.
13676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13677 <limits.h> exists even on freestanding compilers. */
13680 # include <limits.h>
13682 # include <assert.h>
13687 /* Override any gcc2 internal prototype to avoid an error. */
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13695 /* The GNU C library defines this for functions which it implements
13696 to always fail with ENOSYS. Some functions are actually named
13697 something starting with __ and the normal name is an alias. */
13698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13701 char (*f) () = $ac_func;
13710 return f != $ac_func;
13715 rm -f conftest.
$ac_objext conftest
$ac_exeext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>conftest.er1
13719 grep -v '^ *+' conftest.er1
>conftest.err
13721 cat conftest.err
>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try
='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try
='test -s conftest$ac_exeext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 eval "$as_ac_var=yes"
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.
$ac_ext >&5
13742 eval "$as_ac_var=no"
13744 rm -f conftest.err conftest.
$ac_objext \
13745 conftest
$ac_exeext conftest.
$ac_ext
13747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13749 if test `eval echo '${'$as_ac_var'}'` = yes; then
13750 cat >>confdefs.h
<<_ACEOF
13751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757 echo "$as_me:$LINENO: checking for working mktime" >&5
13758 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13759 if test "${ac_cv_func_working_mktime+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 if test "$cross_compiling" = yes; then
13763 ac_cv_func_working_mktime
=no
13765 cat >conftest.
$ac_ext <<_ACEOF
13768 cat confdefs.h
>>conftest.
$ac_ext
13769 cat >>conftest.
$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 /* Test program from Paul Eggert and Tony Leneis. */
13772 #if TIME_WITH_SYS_TIME
13773 # include <sys/time.h>
13776 # if HAVE_SYS_TIME_H
13777 # include <sys/time.h>
13784 # include <stdlib.h>
13788 # include <unistd.h>
13792 # define alarm(X) /* empty */
13795 /* Work around redefinition to rpl_putenv by other config tests. */
13798 static time_t time_t_max;
13799 static time_t time_t_min;
13801 /* Values we'll use to set the TZ environment variable. */
13802 static char *tz_strings[] = {
13803 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13804 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13806 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13808 /* Fail if mktime fails to convert a date in the spring-forward gap.
13809 Based on a problem report from Andreas Jaeger. */
13811 spring_forward_gap ()
13813 /* glibc (up to about 1998-10-07) failed this test. */
13816 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13817 instead of "TZ=America/Vancouver" in order to detect the bug even
13818 on systems that don't support the Olson extension, or don't have the
13819 full zoneinfo tables installed. */
13820 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13829 if (mktime (&tm) == (time_t)-1)
13838 if ((lt = localtime (&now)) && mktime (lt) != now)
13846 mktime_test1 (now);
13847 mktime_test1 ((time_t) (time_t_max - now));
13848 mktime_test1 ((time_t) (time_t_min + now));
13854 /* Based on code from Ariel Faigon. */
13864 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13874 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13875 now = mktime (&tm);
13876 if (now != (time_t) -1)
13878 struct tm *lt = localtime (&now);
13880 && lt->tm_year == tm.tm_year
13881 && lt->tm_mon == tm.tm_mon
13882 && lt->tm_mday == tm.tm_mday
13883 && lt->tm_hour == tm.tm_hour
13884 && lt->tm_min == tm.tm_min
13885 && lt->tm_sec == tm.tm_sec
13886 && lt->tm_yday == tm.tm_yday
13887 && lt->tm_wday == tm.tm_wday
13888 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13889 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13900 /* This test makes some buggy mktime implementations loop.
13901 Give up after 60 seconds; a mktime slower than that
13902 isn't worth using anyway. */
13905 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13908 if ((time_t) -1 < 0)
13909 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13911 delta = time_t_max / 997; /* a suitable prime number */
13912 for (i = 0; i < N_STRINGS; i++)
13915 putenv (tz_strings[i]);
13917 for (t = 0; t <= time_t_max - delta; t += delta)
13919 mktime_test ((time_t) 1);
13920 mktime_test ((time_t) (60 * 60));
13921 mktime_test ((time_t) (60 * 60 * 24));
13923 for (j = 1; 0 < j; j *= 2)
13925 bigtime_test (j - 1);
13928 spring_forward_gap ();
13932 rm -f conftest
$ac_exeext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13934 (eval $ac_link) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_func_working_mktime
=yes
13945 echo "$as_me: program exited with status $ac_status" >&5
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.
$ac_ext >&5
13949 ( exit $ac_status )
13950 ac_cv_func_working_mktime
=no
13952 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13956 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13957 if test $ac_cv_func_working_mktime = no
; then
13959 "mktime.$ac_objext" | \
13960 *" mktime.$ac_objext" | \
13961 "mktime.$ac_objext "* | \
13962 *" mktime.$ac_objext "* ) ;;
13963 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
13968 if test "$ac_cv_func_working_mktime" = no
; then
13970 cat >>confdefs.h
<<\_ACEOF
13971 #define BROKEN_MKTIME 1
13976 ac_have_func
=no
# yes means we've found a way to get the load average.
13978 # Make sure getloadavg.c is where it belongs, at configure-time.
13979 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13980 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13981 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13982 { (exit 1); exit 1; }; }
13986 # Check for getloadavg, but be sure not to touch the cache variable.
13987 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13988 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13989 if test "${ac_cv_func_getloadavg+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 cat >conftest.
$ac_ext <<_ACEOF
13995 cat confdefs.h
>>conftest.
$ac_ext
13996 cat >>conftest.
$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14000 #define getloadavg innocuous_getloadavg
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char getloadavg (); below.
14004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14005 <limits.h> exists even on freestanding compilers. */
14008 # include <limits.h>
14010 # include <assert.h>
14015 /* Override any gcc2 internal prototype to avoid an error. */
14020 /* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14022 char getloadavg ();
14023 /* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14029 char (*f) () = getloadavg;
14038 return f != getloadavg;
14043 rm -f conftest.
$ac_objext conftest
$ac_exeext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14045 (eval $ac_link) 2>conftest.er1
14047 grep -v '^ *+' conftest.er1
>conftest.err
14049 cat conftest.err
>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try
='test -z "$ac_c_werror_flag"
14053 || test ! -s conftest.err'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try
='test -s conftest$ac_exeext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 ac_cv_func_getloadavg
=yes
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.
$ac_ext >&5
14070 ac_cv_func_getloadavg
=no
14072 rm -f conftest.err conftest.
$ac_objext \
14073 conftest
$ac_exeext conftest.
$ac_ext
14075 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14076 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14077 if test $ac_cv_func_getloadavg = yes; then
14082 ) && ac_have_func
=yes
14084 # On HPUX9, an unprivileged user can get load averages through this function.
14086 for ac_func
in pstat_getdynamic
14088 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14089 echo "$as_me:$LINENO: checking for $ac_func" >&5
14090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_var+set}\" = set"; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 cat >conftest.
$ac_ext <<_ACEOF
14097 cat confdefs.h
>>conftest.
$ac_ext
14098 cat >>conftest.
$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14102 #define $ac_func innocuous_$ac_func
14104 /* System header to define __stub macros and hopefully few prototypes,
14105 which can conflict with char $ac_func (); below.
14106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14107 <limits.h> exists even on freestanding compilers. */
14110 # include <limits.h>
14112 # include <assert.h>
14117 /* Override any gcc2 internal prototype to avoid an error. */
14122 /* We use char because int might match the return type of a gcc2
14123 builtin and then its argument prototype would still apply. */
14125 /* The GNU C library defines this for functions which it implements
14126 to always fail with ENOSYS. Some functions are actually named
14127 something starting with __ and the normal name is an alias. */
14128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14131 char (*f) () = $ac_func;
14140 return f != $ac_func;
14145 rm -f conftest.
$ac_objext conftest
$ac_exeext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>conftest.er1
14149 grep -v '^ *+' conftest.er1
>conftest.err
14151 cat conftest.err
>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try
='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try
='test -s conftest$ac_exeext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 eval "$as_ac_var=yes"
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.
$ac_ext >&5
14172 eval "$as_ac_var=no"
14174 rm -f conftest.err conftest.
$ac_objext \
14175 conftest
$ac_exeext conftest.
$ac_ext
14177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14179 if test `eval echo '${'$as_ac_var'}'` = yes; then
14180 cat >>confdefs.h
<<_ACEOF
14181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14188 # Solaris has libkstat which does not require root.
14190 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14191 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14192 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 ac_check_lib_save_LIBS
=$LIBS
14196 LIBS
="-lkstat $LIBS"
14197 cat >conftest.
$ac_ext <<_ACEOF
14200 cat confdefs.h
>>conftest.
$ac_ext
14201 cat >>conftest.
$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14204 /* Override any gcc2 internal prototype to avoid an error. */
14208 /* We use char because int might match the return type of a gcc2
14209 builtin and then its argument prototype would still apply. */
14210 char kstat_open ();
14219 rm -f conftest.
$ac_objext conftest
$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>conftest.er1
14223 grep -v '^ *+' conftest.er1
>conftest.err
14225 cat conftest.err
>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try
='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try
='test -s conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_lib_kstat_kstat_open
=yes
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.
$ac_ext >&5
14246 ac_cv_lib_kstat_kstat_open
=no
14248 rm -f conftest.err conftest.
$ac_objext \
14249 conftest
$ac_exeext conftest.
$ac_ext
14250 LIBS
=$ac_check_lib_save_LIBS
14252 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14253 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14254 if test $ac_cv_lib_kstat_kstat_open = yes; then
14255 cat >>confdefs.h
<<_ACEOF
14256 #define HAVE_LIBKSTAT 1
14259 LIBS
="-lkstat $LIBS"
14263 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14265 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14266 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14267 # to get the right answer into the cache.
14268 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14269 if test $ac_have_func = no
; then
14270 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14271 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14272 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 ac_check_lib_save_LIBS
=$LIBS
14277 cat >conftest.
$ac_ext <<_ACEOF
14280 cat confdefs.h
>>conftest.
$ac_ext
14281 cat >>conftest.
$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14284 /* Override any gcc2 internal prototype to avoid an error. */
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14299 rm -f conftest.
$ac_objext conftest
$ac_exeext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301 (eval $ac_link) 2>conftest.er1
14303 grep -v '^ *+' conftest.er1
>conftest.err
14305 cat conftest.err
>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try
='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try
='test -s conftest$ac_exeext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_cv_lib_elf_elf_begin
=yes
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.
$ac_ext >&5
14326 ac_cv_lib_elf_elf_begin
=no
14328 rm -f conftest.err conftest.
$ac_objext \
14329 conftest
$ac_exeext conftest.
$ac_ext
14330 LIBS
=$ac_check_lib_save_LIBS
14332 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14333 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14334 if test $ac_cv_lib_elf_elf_begin = yes; then
14339 if test $ac_have_func = no
; then
14340 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14341 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14342 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 ac_check_lib_save_LIBS
=$LIBS
14347 cat >conftest.
$ac_ext <<_ACEOF
14350 cat confdefs.h
>>conftest.
$ac_ext
14351 cat >>conftest.
$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 /* Override any gcc2 internal prototype to avoid an error. */
14358 /* We use char because int might match the return type of a gcc2
14359 builtin and then its argument prototype would still apply. */
14369 rm -f conftest.
$ac_objext conftest
$ac_exeext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>conftest.er1
14373 grep -v '^ *+' conftest.er1
>conftest.err
14375 cat conftest.err
>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try
='test -z "$ac_c_werror_flag"
14379 || test ! -s conftest.err'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; } &&
14385 { ac_try
='test -s conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_cv_lib_kvm_kvm_open
=yes
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.
$ac_ext >&5
14396 ac_cv_lib_kvm_kvm_open
=no
14398 rm -f conftest.err conftest.
$ac_objext \
14399 conftest
$ac_exeext conftest.
$ac_ext
14400 LIBS
=$ac_check_lib_save_LIBS
14402 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14403 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14404 if test $ac_cv_lib_kvm_kvm_open = yes; then
14408 # Check for the 4.4BSD definition of getloadavg.
14409 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14410 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14411 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 ac_check_lib_save_LIBS
=$LIBS
14415 LIBS
="-lutil $LIBS"
14416 cat >conftest.
$ac_ext <<_ACEOF
14419 cat confdefs.h
>>conftest.
$ac_ext
14420 cat >>conftest.
$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14423 /* Override any gcc2 internal prototype to avoid an error. */
14427 /* We use char because int might match the return type of a gcc2
14428 builtin and then its argument prototype would still apply. */
14429 char getloadavg ();
14438 rm -f conftest.
$ac_objext conftest
$ac_exeext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14440 (eval $ac_link) 2>conftest.er1
14442 grep -v '^ *+' conftest.er1
>conftest.err
14444 cat conftest.err
>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try
='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try
='test -s conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_lib_util_getloadavg
=yes
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.
$ac_ext >&5
14465 ac_cv_lib_util_getloadavg
=no
14467 rm -f conftest.err conftest.
$ac_objext \
14468 conftest
$ac_exeext conftest.
$ac_ext
14469 LIBS
=$ac_check_lib_save_LIBS
14471 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14472 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14473 if test $ac_cv_lib_util_getloadavg = yes; then
14474 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14479 if test $ac_have_func = no
; then
14480 # There is a commonly available library for RS/6000 AIX.
14481 # Since it is not a standard part of AIX, it might be installed locally.
14482 ac_getloadavg_LIBS
=$LIBS
14483 LIBS
="-L/usr/local/lib $LIBS"
14484 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14485 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14486 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 ac_check_lib_save_LIBS
=$LIBS
14490 LIBS
="-lgetloadavg $LIBS"
14491 cat >conftest.
$ac_ext <<_ACEOF
14494 cat confdefs.h
>>conftest.
$ac_ext
14495 cat >>conftest.
$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14498 /* Override any gcc2 internal prototype to avoid an error. */
14502 /* We use char because int might match the return type of a gcc2
14503 builtin and then its argument prototype would still apply. */
14504 char getloadavg ();
14513 rm -f conftest.
$ac_objext conftest
$ac_exeext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>conftest.er1
14517 grep -v '^ *+' conftest.er1
>conftest.err
14519 cat conftest.err
>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try
='test -z "$ac_c_werror_flag"
14523 || test ! -s conftest.err'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try
='test -s conftest$ac_exeext'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 ac_cv_lib_getloadavg_getloadavg
=yes
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.
$ac_ext >&5
14540 ac_cv_lib_getloadavg_getloadavg
=no
14542 rm -f conftest.err conftest.
$ac_objext \
14543 conftest
$ac_exeext conftest.
$ac_ext
14544 LIBS
=$ac_check_lib_save_LIBS
14546 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14547 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14548 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14549 LIBS
="-lgetloadavg $LIBS"
14551 LIBS
=$ac_getloadavg_LIBS
14556 # Make sure it is really in the library, if we think we found it,
14557 # otherwise set up the replacement function.
14559 for ac_func
in getloadavg
14561 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14562 echo "$as_me:$LINENO: checking for $ac_func" >&5
14563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14564 if eval "test \"\${$as_ac_var+set}\" = set"; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 cat >conftest.
$ac_ext <<_ACEOF
14570 cat confdefs.h
>>conftest.
$ac_ext
14571 cat >>conftest.
$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14575 #define $ac_func innocuous_$ac_func
14577 /* System header to define __stub macros and hopefully few prototypes,
14578 which can conflict with char $ac_func (); below.
14579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14580 <limits.h> exists even on freestanding compilers. */
14583 # include <limits.h>
14585 # include <assert.h>
14590 /* Override any gcc2 internal prototype to avoid an error. */
14595 /* We use char because int might match the return type of a gcc2
14596 builtin and then its argument prototype would still apply. */
14598 /* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
14601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14604 char (*f) () = $ac_func;
14613 return f != $ac_func;
14618 rm -f conftest.
$ac_objext conftest
$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620 (eval $ac_link) 2>conftest.er1
14622 grep -v '^ *+' conftest.er1
>conftest.err
14624 cat conftest.err
>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try
='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try
='test -s conftest$ac_exeext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 eval "$as_ac_var=yes"
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.
$ac_ext >&5
14645 eval "$as_ac_var=no"
14647 rm -f conftest.err conftest.
$ac_objext \
14648 conftest
$ac_exeext conftest.
$ac_ext
14650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14652 if test `eval echo '${'$as_ac_var'}'` = yes; then
14653 cat >>confdefs.h
<<_ACEOF
14654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14659 "getloadavg.$ac_objext" | \
14660 *" getloadavg.$ac_objext" | \
14661 "getloadavg.$ac_objext "* | \
14662 *" getloadavg.$ac_objext "* ) ;;
14663 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14667 cat >>confdefs.h
<<\_ACEOF
14668 #define C_GETLOADAVG 1
14671 # Figure out what our getloadavg.c needs.
14673 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14674 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14675 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14676 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14680 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14682 # Is the header compilable?
14683 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14684 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14685 cat >conftest.
$ac_ext <<_ACEOF
14688 cat confdefs.h
>>conftest.
$ac_ext
14689 cat >>conftest.
$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 $ac_includes_default
14692 #include <sys/dg_sys_info.h>
14694 rm -f conftest.
$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>conftest.er1
14698 grep -v '^ *+' conftest.er1
>conftest.err
14700 cat conftest.err
>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try
='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try
='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_header_compiler
=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.
$ac_ext >&5
14721 ac_header_compiler
=no
14723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6
14727 # Is the header present?
14728 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14729 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14730 cat >conftest.
$ac_ext <<_ACEOF
14733 cat confdefs.h
>>conftest.
$ac_ext
14734 cat >>conftest.
$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <sys/dg_sys_info.h>
14738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14739 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14741 grep -v '^ *+' conftest.er1
>conftest.err
14743 cat conftest.err
>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } >/dev
/null
; then
14746 if test -s conftest.err
; then
14747 ac_cpp_err
=$ac_c_preproc_warn_flag
14748 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14755 if test -z "$ac_cpp_err"; then
14756 ac_header_preproc
=yes
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.
$ac_ext >&5
14761 ac_header_preproc
=no
14763 rm -f conftest.err conftest.
$ac_ext
14764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765 echo "${ECHO_T}$ac_header_preproc" >&6
14767 # So? What about this header?
14768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14770 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14771 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14773 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14774 ac_header_preproc
=yes
14777 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14778 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14780 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14782 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14784 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14786 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14788 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14791 ## ------------------------------------------ ##
14792 ## Report this to the AC_PACKAGE_NAME lists. ##
14793 ## ------------------------------------------ ##
14796 sed "s/^/$as_me: WARNING: /" >&2
14799 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14800 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14801 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14806 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14807 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14810 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14813 cat >>confdefs.h
<<\_ACEOF
14818 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14819 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14820 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 ac_check_lib_save_LIBS
=$LIBS
14825 cat >conftest.
$ac_ext <<_ACEOF
14828 cat confdefs.h
>>conftest.
$ac_ext
14829 cat >>conftest.
$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14832 /* Override any gcc2 internal prototype to avoid an error. */
14836 /* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14838 char dg_sys_info ();
14847 rm -f conftest.
$ac_objext conftest
$ac_exeext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14849 (eval $ac_link) 2>conftest.er1
14851 grep -v '^ *+' conftest.er1
>conftest.err
14853 cat conftest.err
>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try
='test -z "$ac_c_werror_flag"
14857 || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try
='test -s conftest$ac_exeext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_cv_lib_dgc_dg_sys_info
=yes
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.
$ac_ext >&5
14874 ac_cv_lib_dgc_dg_sys_info
=no
14876 rm -f conftest.err conftest.
$ac_objext \
14877 conftest
$ac_exeext conftest.
$ac_ext
14878 LIBS
=$ac_check_lib_save_LIBS
14880 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14881 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14882 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14883 cat >>confdefs.h
<<_ACEOF
14884 #define HAVE_LIBDGC 1
14895 if test "${ac_cv_header_locale_h+set}" = set; then
14896 echo "$as_me:$LINENO: checking for locale.h" >&5
14897 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14898 if test "${ac_cv_header_locale_h+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14902 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14904 # Is the header compilable?
14905 echo "$as_me:$LINENO: checking locale.h usability" >&5
14906 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14907 cat >conftest.
$ac_ext <<_ACEOF
14910 cat confdefs.h
>>conftest.
$ac_ext
14911 cat >>conftest.
$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 $ac_includes_default
14914 #include <locale.h>
14916 rm -f conftest.
$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918 (eval $ac_compile) 2>conftest.er1
14920 grep -v '^ *+' conftest.er1
>conftest.err
14922 cat conftest.err
>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try
='test -z "$ac_c_werror_flag"
14926 || test ! -s conftest.err'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try
='test -s conftest.$ac_objext'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_header_compiler
=yes
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.
$ac_ext >&5
14943 ac_header_compiler
=no
14945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6
14949 # Is the header present?
14950 echo "$as_me:$LINENO: checking locale.h presence" >&5
14951 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14952 cat >conftest.
$ac_ext <<_ACEOF
14955 cat confdefs.h
>>conftest.
$ac_ext
14956 cat >>conftest.
$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <locale.h>
14960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14961 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14963 grep -v '^ *+' conftest.er1
>conftest.err
14965 cat conftest.err
>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } >/dev
/null
; then
14968 if test -s conftest.err
; then
14969 ac_cpp_err
=$ac_c_preproc_warn_flag
14970 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14977 if test -z "$ac_cpp_err"; then
14978 ac_header_preproc
=yes
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.
$ac_ext >&5
14983 ac_header_preproc
=no
14985 rm -f conftest.err conftest.
$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6
14989 # So? What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14992 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc
=yes
14999 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15013 ## ------------------------------------------ ##
15014 ## Report this to the AC_PACKAGE_NAME lists. ##
15015 ## ------------------------------------------ ##
15018 sed "s/^/$as_me: WARNING: /" >&2
15021 echo "$as_me:$LINENO: checking for locale.h" >&5
15022 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15023 if test "${ac_cv_header_locale_h+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 ac_cv_header_locale_h
=$ac_header_preproc
15028 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15029 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15035 for ac_func
in setlocale
15037 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15038 echo "$as_me:$LINENO: checking for $ac_func" >&5
15039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15040 if eval "test \"\${$as_ac_var+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 cat >conftest.
$ac_ext <<_ACEOF
15046 cat confdefs.h
>>conftest.
$ac_ext
15047 cat >>conftest.
$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15051 #define $ac_func innocuous_$ac_func
15053 /* System header to define __stub macros and hopefully few prototypes,
15054 which can conflict with char $ac_func (); below.
15055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15056 <limits.h> exists even on freestanding compilers. */
15059 # include <limits.h>
15061 # include <assert.h>
15066 /* Override any gcc2 internal prototype to avoid an error. */
15071 /* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15074 /* The GNU C library defines this for functions which it implements
15075 to always fail with ENOSYS. Some functions are actually named
15076 something starting with __ and the normal name is an alias. */
15077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15080 char (*f) () = $ac_func;
15089 return f != $ac_func;
15094 rm -f conftest.
$ac_objext conftest
$ac_exeext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>conftest.er1
15098 grep -v '^ *+' conftest.er1
>conftest.err
15100 cat conftest.err
>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try
='test -z "$ac_c_werror_flag"
15104 || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try
='test -s conftest$ac_exeext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 eval "$as_ac_var=yes"
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.
$ac_ext >&5
15121 eval "$as_ac_var=no"
15123 rm -f conftest.err conftest.
$ac_objext \
15124 conftest
$ac_exeext conftest.
$ac_ext
15126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15128 if test `eval echo '${'$as_ac_var'}'` = yes; then
15129 cat >>confdefs.h
<<_ACEOF
15130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15137 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15138 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15139 # Irix 4.0.5F has the header but not the library.
15140 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15143 cat >>confdefs.h
<<\_ACEOF
15149 if test $ac_have_func = no
; then
15150 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15151 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15152 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15153 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15157 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15159 # Is the header compilable?
15160 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15161 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15162 cat >conftest.
$ac_ext <<_ACEOF
15165 cat confdefs.h
>>conftest.
$ac_ext
15166 cat >>conftest.
$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 $ac_includes_default
15169 #include <inq_stats/cpustats.h>
15171 rm -f conftest.
$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>conftest.er1
15175 grep -v '^ *+' conftest.er1
>conftest.err
15177 cat conftest.err
>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try
='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try
='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler
=yes
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.
$ac_ext >&5
15198 ac_header_compiler
=no
15200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15202 echo "${ECHO_T}$ac_header_compiler" >&6
15204 # Is the header present?
15205 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15206 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15207 cat >conftest.
$ac_ext <<_ACEOF
15210 cat confdefs.h
>>conftest.
$ac_ext
15211 cat >>conftest.
$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 #include <inq_stats/cpustats.h>
15215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15216 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15218 grep -v '^ *+' conftest.er1
>conftest.err
15220 cat conftest.err
>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } >/dev
/null
; then
15223 if test -s conftest.err
; then
15224 ac_cpp_err
=$ac_c_preproc_warn_flag
15225 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15232 if test -z "$ac_cpp_err"; then
15233 ac_header_preproc
=yes
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.
$ac_ext >&5
15238 ac_header_preproc
=no
15240 rm -f conftest.err conftest.
$ac_ext
15241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15242 echo "${ECHO_T}$ac_header_preproc" >&6
15244 # So? What about this header?
15245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15247 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15248 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15250 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15251 ac_header_preproc
=yes
15254 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15255 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15257 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15259 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15261 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15263 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15265 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15268 ## ------------------------------------------ ##
15269 ## Report this to the AC_PACKAGE_NAME lists. ##
15270 ## ------------------------------------------ ##
15273 sed "s/^/$as_me: WARNING: /" >&2
15276 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15277 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15278 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15283 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15284 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15287 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15290 cat >>confdefs.h
<<\_ACEOF
15295 cat >>confdefs.h
<<\_ACEOF
15304 if test $ac_have_func = no
; then
15305 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15306 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15307 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15308 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15312 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15314 # Is the header compilable?
15315 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15316 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15317 cat >conftest.
$ac_ext <<_ACEOF
15320 cat confdefs.h
>>conftest.
$ac_ext
15321 cat >>conftest.
$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 $ac_includes_default
15324 #include <sys/cpustats.h>
15326 rm -f conftest.
$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15330 grep -v '^ *+' conftest.er1
>conftest.err
15332 cat conftest.err
>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try
='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try
='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler
=yes
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.
$ac_ext >&5
15353 ac_header_compiler
=no
15355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6
15359 # Is the header present?
15360 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15361 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15362 cat >conftest.
$ac_ext <<_ACEOF
15365 cat confdefs.h
>>conftest.
$ac_ext
15366 cat >>conftest.
$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <sys/cpustats.h>
15370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15371 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15373 grep -v '^ *+' conftest.er1
>conftest.err
15375 cat conftest.err
>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } >/dev
/null
; then
15378 if test -s conftest.err
; then
15379 ac_cpp_err
=$ac_c_preproc_warn_flag
15380 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15387 if test -z "$ac_cpp_err"; then
15388 ac_header_preproc
=yes
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.
$ac_ext >&5
15393 ac_header_preproc
=no
15395 rm -f conftest.err conftest.
$ac_ext
15396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15405 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc
=yes
15409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15414 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15416 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15418 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15420 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15423 ## ------------------------------------------ ##
15424 ## Report this to the AC_PACKAGE_NAME lists. ##
15425 ## ------------------------------------------ ##
15428 sed "s/^/$as_me: WARNING: /" >&2
15431 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15432 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15433 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15438 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15439 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15442 if test $ac_cv_header_sys_cpustats_h = yes; then
15443 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15452 if test $ac_have_func = no
; then
15454 for ac_header
in mach
/mach.h
15456 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15458 echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15466 # Is the header compilable?
15467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15469 cat >conftest.
$ac_ext <<_ACEOF
15472 cat confdefs.h
>>conftest.
$ac_ext
15473 cat >>conftest.
$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 $ac_includes_default
15476 #include <$ac_header>
15478 rm -f conftest.
$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480 (eval $ac_compile) 2>conftest.er1
15482 grep -v '^ *+' conftest.er1
>conftest.err
15484 cat conftest.err
>&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } &&
15487 { ac_try
='test -z "$ac_c_werror_flag"
15488 || test ! -s conftest.err'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try
='test -s conftest.$ac_objext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_header_compiler
=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.
$ac_ext >&5
15505 ac_header_compiler
=no
15507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509 echo "${ECHO_T}$ac_header_compiler" >&6
15511 # Is the header present?
15512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15514 cat >conftest.
$ac_ext <<_ACEOF
15517 cat confdefs.h
>>conftest.
$ac_ext
15518 cat >>conftest.
$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #include <$ac_header>
15522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15523 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15525 grep -v '^ *+' conftest.er1
>conftest.err
15527 cat conftest.err
>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } >/dev
/null
; then
15530 if test -s conftest.err
; then
15531 ac_cpp_err
=$ac_c_preproc_warn_flag
15532 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15539 if test -z "$ac_cpp_err"; then
15540 ac_header_preproc
=yes
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.
$ac_ext >&5
15545 ac_header_preproc
=no
15547 rm -f conftest.err conftest.
$ac_ext
15548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15549 echo "${ECHO_T}$ac_header_preproc" >&6
15551 # So? What about this header?
15552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15558 ac_header_preproc
=yes
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15575 ## ------------------------------------------ ##
15576 ## Report this to the AC_PACKAGE_NAME lists. ##
15577 ## ------------------------------------------ ##
15580 sed "s/^/$as_me: WARNING: /" >&2
15583 echo "$as_me:$LINENO: checking for $ac_header" >&5
15584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 eval "$as_ac_Header=\$ac_header_preproc"
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15595 cat >>confdefs.h
<<_ACEOF
15596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15606 for ac_header
in nlist.h
15608 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15610 echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15618 # Is the header compilable?
15619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 $ac_includes_default
15628 #include <$ac_header>
15630 rm -f conftest.
$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15634 grep -v '^ *+' conftest.er1
>conftest.err
15636 cat conftest.err
>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try
='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try
='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler
=yes
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.
$ac_ext >&5
15657 ac_header_compiler
=no
15659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6
15663 # Is the header present?
15664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15666 cat >conftest.
$ac_ext <<_ACEOF
15669 cat confdefs.h
>>conftest.
$ac_ext
15670 cat >>conftest.
$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <$ac_header>
15674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15675 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15677 grep -v '^ *+' conftest.er1
>conftest.err
15679 cat conftest.err
>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } >/dev
/null
; then
15682 if test -s conftest.err
; then
15683 ac_cpp_err
=$ac_c_preproc_warn_flag
15684 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15691 if test -z "$ac_cpp_err"; then
15692 ac_header_preproc
=yes
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.
$ac_ext >&5
15697 ac_header_preproc
=no
15699 rm -f conftest.err conftest.
$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701 echo "${ECHO_T}$ac_header_preproc" >&6
15703 # So? What about this header?
15704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc
=yes
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15727 ## ------------------------------------------ ##
15728 ## Report this to the AC_PACKAGE_NAME lists. ##
15729 ## ------------------------------------------ ##
15732 sed "s/^/$as_me: WARNING: /" >&2
15735 echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 eval "$as_ac_Header=\$ac_header_preproc"
15742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15747 cat >>confdefs.h
<<_ACEOF
15748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15750 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15751 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15752 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 cat >conftest.
$ac_ext <<_ACEOF
15758 cat confdefs.h
>>conftest.
$ac_ext
15759 cat >>conftest.
$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15766 static struct nlist ac_aggr;
15767 if (ac_aggr.n_un.n_name)
15773 rm -f conftest.
$ac_objext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15775 (eval $ac_compile) 2>conftest.er1
15777 grep -v '^ *+' conftest.er1
>conftest.err
15779 cat conftest.err
>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try
='test -z "$ac_c_werror_flag"
15783 || test ! -s conftest.err'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try
='test -s conftest.$ac_objext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_member_struct_nlist_n_un_n_name
=yes
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.
$ac_ext >&5
15800 cat >conftest.
$ac_ext <<_ACEOF
15803 cat confdefs.h
>>conftest.
$ac_ext
15804 cat >>conftest.
$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15811 static struct nlist ac_aggr;
15812 if (sizeof ac_aggr.n_un.n_name)
15818 rm -f conftest.
$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>conftest.er1
15822 grep -v '^ *+' conftest.er1
>conftest.err
15824 cat conftest.err
>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try
='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try
='test -s conftest.$ac_objext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_member_struct_nlist_n_un_n_name
=yes
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.
$ac_ext >&5
15845 ac_cv_member_struct_nlist_n_un_n_name
=no
15847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15851 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15852 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15853 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15855 cat >>confdefs.h
<<_ACEOF
15856 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15860 cat >>confdefs.h
<<\_ACEOF
15861 #define NLIST_NAME_UNION 1
15875 # Some definitions of getloadavg require that the program be installed setgid.
15876 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15877 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15878 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 cat >conftest.
$ac_ext <<_ACEOF
15884 cat confdefs.h
>>conftest.
$ac_ext
15885 cat >>conftest.
$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15888 #ifdef LDAV_PRIVILEGED
15889 Yowza Am I SETGID yet
15892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15893 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
15894 ac_cv_func_getloadavg_setgid
=yes
15896 ac_cv_func_getloadavg_setgid
=no
15901 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15902 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15903 if test $ac_cv_func_getloadavg_setgid = yes; then
15906 cat >>confdefs.h
<<\_ACEOF
15907 #define GETLOADAVG_PRIVILEGED 1
15914 if test $ac_cv_func_getloadavg_setgid = yes; then
15915 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15916 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15917 if test "${ac_cv_group_kmem+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15921 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
15922 # If we got an error (system does not support symlinks), try without -L.
15923 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
15924 ac_cv_group_kmem
=`echo $ac_ls_output \
15925 | sed -ne 's/[ ][ ]*/ /g;
15926 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15930 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15931 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15932 KMEM_GROUP
=$ac_cv_group_kmem
15934 if test "x$ac_save_LIBS" = x
; then
15935 GETLOADAVG_LIBS
=$LIBS
15937 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15943 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15944 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15945 if test "${ac_cv_sys_largefile_source+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 ac_cv_sys_largefile_source
=no
15950 cat >conftest.
$ac_ext <<_ACEOF
15953 cat confdefs.h
>>conftest.
$ac_ext
15954 cat >>conftest.
$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15965 rm -f conftest.
$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967 (eval $ac_compile) 2>conftest.er1
15969 grep -v '^ *+' conftest.er1
>conftest.err
15971 cat conftest.err
>&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try
='test -z "$ac_c_werror_flag"
15975 || test ! -s conftest.err'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try
='test -s conftest.$ac_objext'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.
$ac_ext >&5
15993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15994 cat >conftest.
$ac_ext <<_ACEOF
15997 cat confdefs.h
>>conftest.
$ac_ext
15998 cat >>conftest.
$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16000 #define _LARGEFILE_SOURCE 1
16010 rm -f conftest.
$ac_objext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16012 (eval $ac_compile) 2>conftest.er1
16014 grep -v '^ *+' conftest.er1
>conftest.err
16016 cat conftest.err
>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try
='test -z "$ac_c_werror_flag"
16020 || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try
='test -s conftest.$ac_objext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 ac_cv_sys_largefile_source
=1; break
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.
$ac_ext >&5
16038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16042 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16043 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16044 if test "$ac_cv_sys_largefile_source" != no
; then
16046 cat >>confdefs.h
<<_ACEOF
16047 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16053 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16054 # in glibc 2.1.3, but that breaks too many other things.
16055 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16056 echo "$as_me:$LINENO: checking for fseeko" >&5
16057 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16058 if test "${ac_cv_func_fseeko+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 cat >conftest.
$ac_ext <<_ACEOF
16064 cat confdefs.h
>>conftest.
$ac_ext
16065 cat >>conftest.
$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16071 return fseeko && fseeko (stdin, 0, 0);
16076 rm -f conftest.
$ac_objext conftest
$ac_exeext
16077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16078 (eval $ac_link) 2>conftest.er1
16080 grep -v '^ *+' conftest.er1
>conftest.err
16082 cat conftest.err
>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
16085 { ac_try
='test -z "$ac_c_werror_flag"
16086 || test ! -s conftest.err'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try
='test -s conftest$ac_exeext'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_func_fseeko
=yes
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.
$ac_ext >&5
16103 ac_cv_func_fseeko
=no
16105 rm -f conftest.err conftest.
$ac_objext \
16106 conftest
$ac_exeext conftest.
$ac_ext
16108 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16109 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16110 if test $ac_cv_func_fseeko = yes; then
16112 cat >>confdefs.h
<<\_ACEOF
16113 #define HAVE_FSEEKO 1
16119 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16120 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16121 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 # Use it with a single arg.
16125 cat >conftest.
$ac_ext <<_ACEOF
16128 cat confdefs.h
>>conftest.
$ac_ext
16129 cat >>conftest.
$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 $ac_includes_default
16140 rm -f conftest.
$ac_objext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16142 (eval $ac_compile) 2>conftest.er1
16144 grep -v '^ *+' conftest.er1
>conftest.err
16146 cat conftest.err
>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try
='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try
='test -s conftest.$ac_objext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_cv_func_getpgrp_void
=no
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.
$ac_ext >&5
16167 ac_cv_func_getpgrp_void
=yes
16169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16172 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16173 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16174 if test $ac_cv_func_getpgrp_void = yes; then
16176 cat >>confdefs.h
<<\_ACEOF
16177 #define GETPGRP_VOID 1
16184 for ac_func
in strftime
16186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16187 echo "$as_me:$LINENO: checking for $ac_func" >&5
16188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16189 if eval "test \"\${$as_ac_var+set}\" = set"; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 cat >conftest.
$ac_ext <<_ACEOF
16195 cat confdefs.h
>>conftest.
$ac_ext
16196 cat >>conftest.
$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16200 #define $ac_func innocuous_$ac_func
16202 /* System header to define __stub macros and hopefully few prototypes,
16203 which can conflict with char $ac_func (); below.
16204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16205 <limits.h> exists even on freestanding compilers. */
16208 # include <limits.h>
16210 # include <assert.h>
16215 /* Override any gcc2 internal prototype to avoid an error. */
16220 /* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16223 /* The GNU C library defines this for functions which it implements
16224 to always fail with ENOSYS. Some functions are actually named
16225 something starting with __ and the normal name is an alias. */
16226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16229 char (*f) () = $ac_func;
16238 return f != $ac_func;
16243 rm -f conftest.
$ac_objext conftest
$ac_exeext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16245 (eval $ac_link) 2>conftest.er1
16247 grep -v '^ *+' conftest.er1
>conftest.err
16249 cat conftest.err
>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try
='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try
='test -s conftest$ac_exeext'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 eval "$as_ac_var=yes"
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.
$ac_ext >&5
16270 eval "$as_ac_var=no"
16272 rm -f conftest.err conftest.
$ac_objext \
16273 conftest
$ac_exeext conftest.
$ac_ext
16275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16277 if test `eval echo '${'$as_ac_var'}'` = yes; then
16278 cat >>confdefs.h
<<_ACEOF
16279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16283 # strftime is in -lintl on SCO UNIX.
16284 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16285 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16286 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 ac_check_lib_save_LIBS
=$LIBS
16290 LIBS
="-lintl $LIBS"
16291 cat >conftest.
$ac_ext <<_ACEOF
16294 cat confdefs.h
>>conftest.
$ac_ext
16295 cat >>conftest.
$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16298 /* Override any gcc2 internal prototype to avoid an error. */
16302 /* We use char because int might match the return type of a gcc2
16303 builtin and then its argument prototype would still apply. */
16313 rm -f conftest.
$ac_objext conftest
$ac_exeext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315 (eval $ac_link) 2>conftest.er1
16317 grep -v '^ *+' conftest.er1
>conftest.err
16319 cat conftest.err
>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try
='test -z "$ac_c_werror_flag"
16323 || test ! -s conftest.err'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try
='test -s conftest$ac_exeext'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_cv_lib_intl_strftime
=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.
$ac_ext >&5
16340 ac_cv_lib_intl_strftime
=no
16342 rm -f conftest.err conftest.
$ac_objext \
16343 conftest
$ac_exeext conftest.
$ac_ext
16344 LIBS
=$ac_check_lib_save_LIBS
16346 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16348 if test $ac_cv_lib_intl_strftime = yes; then
16349 cat >>confdefs.h
<<\_ACEOF
16350 #define HAVE_STRFTIME 1
16353 LIBS
="-lintl $LIBS"
16362 for ac_func
in grantpt
16364 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16365 echo "$as_me:$LINENO: checking for $ac_func" >&5
16366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16367 if eval "test \"\${$as_ac_var+set}\" = set"; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 cat >conftest.
$ac_ext <<_ACEOF
16373 cat confdefs.h
>>conftest.
$ac_ext
16374 cat >>conftest.
$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16378 #define $ac_func innocuous_$ac_func
16380 /* System header to define __stub macros and hopefully few prototypes,
16381 which can conflict with char $ac_func (); below.
16382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16383 <limits.h> exists even on freestanding compilers. */
16386 # include <limits.h>
16388 # include <assert.h>
16393 /* Override any gcc2 internal prototype to avoid an error. */
16398 /* We use char because int might match the return type of a gcc2
16399 builtin and then its argument prototype would still apply. */
16401 /* The GNU C library defines this for functions which it implements
16402 to always fail with ENOSYS. Some functions are actually named
16403 something starting with __ and the normal name is an alias. */
16404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16407 char (*f) () = $ac_func;
16416 return f != $ac_func;
16421 rm -f conftest.
$ac_objext conftest
$ac_exeext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16423 (eval $ac_link) 2>conftest.er1
16425 grep -v '^ *+' conftest.er1
>conftest.err
16427 cat conftest.err
>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try
='test -z "$ac_c_werror_flag"
16431 || test ! -s conftest.err'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try
='test -s conftest$ac_exeext'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 eval "$as_ac_var=yes"
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.
$ac_ext >&5
16448 eval "$as_ac_var=no"
16450 rm -f conftest.err conftest.
$ac_objext \
16451 conftest
$ac_exeext conftest.
$ac_ext
16453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16455 if test `eval echo '${'$as_ac_var'}'` = yes; then
16456 cat >>confdefs.h
<<_ACEOF
16457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16464 # PTY-related GNU extensions.
16466 for ac_func
in getpt
16468 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16469 echo "$as_me:$LINENO: checking for $ac_func" >&5
16470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16471 if eval "test \"\${$as_ac_var+set}\" = set"; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 cat >conftest.
$ac_ext <<_ACEOF
16477 cat confdefs.h
>>conftest.
$ac_ext
16478 cat >>conftest.
$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16482 #define $ac_func innocuous_$ac_func
16484 /* System header to define __stub macros and hopefully few prototypes,
16485 which can conflict with char $ac_func (); below.
16486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16487 <limits.h> exists even on freestanding compilers. */
16490 # include <limits.h>
16492 # include <assert.h>
16497 /* Override any gcc2 internal prototype to avoid an error. */
16502 /* We use char because int might match the return type of a gcc2
16503 builtin and then its argument prototype would still apply. */
16505 /* The GNU C library defines this for functions which it implements
16506 to always fail with ENOSYS. Some functions are actually named
16507 something starting with __ and the normal name is an alias. */
16508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16511 char (*f) () = $ac_func;
16520 return f != $ac_func;
16525 rm -f conftest.
$ac_objext conftest
$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527 (eval $ac_link) 2>conftest.er1
16529 grep -v '^ *+' conftest.er1
>conftest.err
16531 cat conftest.err
>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try
='test -z "$ac_c_werror_flag"
16535 || test ! -s conftest.err'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try
='test -s conftest$ac_exeext'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 eval "$as_ac_var=yes"
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.
$ac_ext >&5
16552 eval "$as_ac_var=no"
16554 rm -f conftest.err conftest.
$ac_objext \
16555 conftest
$ac_exeext conftest.
$ac_ext
16557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16559 if test `eval echo '${'$as_ac_var'}'` = yes; then
16560 cat >>confdefs.h
<<_ACEOF
16561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16568 # Check this now, so that we will NOT find the above functions in ncurses.
16569 # That is because we have not set up to link ncurses in lib-src.
16570 # It's better to believe a function is not available
16571 # than to expect to find it in ncurses.
16573 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16574 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16575 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 ac_check_lib_save_LIBS
=$LIBS
16579 LIBS
="-lncurses $LIBS"
16580 cat >conftest.
$ac_ext <<_ACEOF
16583 cat confdefs.h
>>conftest.
$ac_ext
16584 cat >>conftest.
$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16587 /* Override any gcc2 internal prototype to avoid an error. */
16591 /* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16602 rm -f conftest.
$ac_objext conftest
$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>conftest.er1
16606 grep -v '^ *+' conftest.er1
>conftest.err
16608 cat conftest.err
>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try
='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try
='test -s conftest$ac_exeext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_ncurses_tparm
=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.
$ac_ext >&5
16629 ac_cv_lib_ncurses_tparm
=no
16631 rm -f conftest.err conftest.
$ac_objext \
16632 conftest
$ac_exeext conftest.
$ac_ext
16633 LIBS
=$ac_check_lib_save_LIBS
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16636 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16637 if test $ac_cv_lib_ncurses_tparm = yes; then
16638 cat >>confdefs.h
<<_ACEOF
16639 #define HAVE_LIBNCURSES 1
16642 LIBS
="-lncurses $LIBS"
16647 # Do we need the Hesiod library to provide the support routines?
16648 if test "$with_hesiod" = yes ; then
16649 # Don't set $LIBS here -- see comments above.
16651 echo "$as_me:$LINENO: checking for res_send" >&5
16652 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16653 if test "${ac_cv_func_res_send+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 cat >conftest.
$ac_ext <<_ACEOF
16659 cat confdefs.h
>>conftest.
$ac_ext
16660 cat >>conftest.
$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664 #define res_send innocuous_res_send
16666 /* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char res_send (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16672 # include <limits.h>
16674 # include <assert.h>
16679 /* Override any gcc2 internal prototype to avoid an error. */
16684 /* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined (__stub_res_send) || defined (__stub___res_send)
16693 char (*f) () = res_send;
16702 return f != res_send;
16707 rm -f conftest.
$ac_objext conftest
$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709 (eval $ac_link) 2>conftest.er1
16711 grep -v '^ *+' conftest.er1
>conftest.err
16713 cat conftest.err
>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try
='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try
='test -s conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_func_res_send
=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.
$ac_ext >&5
16734 ac_cv_func_res_send
=no
16736 rm -f conftest.err conftest.
$ac_objext \
16737 conftest
$ac_exeext conftest.
$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16740 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16741 if test $ac_cv_func_res_send = yes; then
16744 echo "$as_me:$LINENO: checking for __res_send" >&5
16745 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16746 if test "${ac_cv_func___res_send+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 cat >conftest.
$ac_ext <<_ACEOF
16752 cat confdefs.h
>>conftest.
$ac_ext
16753 cat >>conftest.
$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16757 #define __res_send innocuous___res_send
16759 /* System header to define __stub macros and hopefully few prototypes,
16760 which can conflict with char __res_send (); below.
16761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16762 <limits.h> exists even on freestanding compilers. */
16765 # include <limits.h>
16767 # include <assert.h>
16772 /* Override any gcc2 internal prototype to avoid an error. */
16777 /* We use char because int might match the return type of a gcc2
16778 builtin and then its argument prototype would still apply. */
16779 char __res_send ();
16780 /* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783 #if defined (__stub___res_send) || defined (__stub_____res_send)
16786 char (*f) () = __res_send;
16795 return f != __res_send;
16800 rm -f conftest.
$ac_objext conftest
$ac_exeext
16801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16802 (eval $ac_link) 2>conftest.er1
16804 grep -v '^ *+' conftest.er1
>conftest.err
16806 cat conftest.err
>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try
='test -z "$ac_c_werror_flag"
16810 || test ! -s conftest.err'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try
='test -s conftest$ac_exeext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_func___res_send
=yes
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.
$ac_ext >&5
16827 ac_cv_func___res_send
=no
16829 rm -f conftest.err conftest.
$ac_objext \
16830 conftest
$ac_exeext conftest.
$ac_ext
16832 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16833 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16834 if test $ac_cv_func___res_send = yes; then
16837 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16838 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16839 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 ac_check_lib_save_LIBS
=$LIBS
16843 LIBS
="-lresolv $LIBS"
16844 cat >conftest.
$ac_ext <<_ACEOF
16847 cat confdefs.h
>>conftest.
$ac_ext
16848 cat >>conftest.
$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16851 /* Override any gcc2 internal prototype to avoid an error. */
16855 /* We use char because int might match the return type of a gcc2
16856 builtin and then its argument prototype would still apply. */
16866 rm -f conftest.
$ac_objext conftest
$ac_exeext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16868 (eval $ac_link) 2>conftest.er1
16870 grep -v '^ *+' conftest.er1
>conftest.err
16872 cat conftest.err
>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try
='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try
='test -s conftest$ac_exeext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_lib_resolv_res_send
=yes
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.
$ac_ext >&5
16893 ac_cv_lib_resolv_res_send
=no
16895 rm -f conftest.err conftest.
$ac_objext \
16896 conftest
$ac_exeext conftest.
$ac_ext
16897 LIBS
=$ac_check_lib_save_LIBS
16899 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16900 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16901 if test $ac_cv_lib_resolv_res_send = yes; then
16904 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16905 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16906 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16909 ac_check_lib_save_LIBS
=$LIBS
16910 LIBS
="-lresolv $LIBS"
16911 cat >conftest.
$ac_ext <<_ACEOF
16914 cat confdefs.h
>>conftest.
$ac_ext
16915 cat >>conftest.
$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16918 /* Override any gcc2 internal prototype to avoid an error. */
16922 /* We use char because int might match the return type of a gcc2
16923 builtin and then its argument prototype would still apply. */
16924 char __res_send ();
16933 rm -f conftest.
$ac_objext conftest
$ac_exeext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16935 (eval $ac_link) 2>conftest.er1
16937 grep -v '^ *+' conftest.er1
>conftest.err
16939 cat conftest.err
>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try
='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try
='test -s conftest$ac_exeext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 ac_cv_lib_resolv___res_send
=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.
$ac_ext >&5
16960 ac_cv_lib_resolv___res_send
=no
16962 rm -f conftest.err conftest.
$ac_objext \
16963 conftest
$ac_exeext conftest.
$ac_ext
16964 LIBS
=$ac_check_lib_save_LIBS
16966 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16967 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16968 if test $ac_cv_lib_resolv___res_send = yes; then
16978 if test "$resolv" = yes ; then
16981 cat >>confdefs.h
<<\_ACEOF
16982 #define HAVE_LIBRESOLV 1
16988 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16989 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16990 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 cat >conftest.
$ac_ext <<_ACEOF
16996 cat confdefs.h
>>conftest.
$ac_ext
16997 cat >>conftest.
$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17001 #define hes_getmailhost innocuous_hes_getmailhost
17003 /* System header to define __stub macros and hopefully few prototypes,
17004 which can conflict with char hes_getmailhost (); below.
17005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17006 <limits.h> exists even on freestanding compilers. */
17009 # include <limits.h>
17011 # include <assert.h>
17014 #undef hes_getmailhost
17016 /* Override any gcc2 internal prototype to avoid an error. */
17021 /* We use char because int might match the return type of a gcc2
17022 builtin and then its argument prototype would still apply. */
17023 char hes_getmailhost ();
17024 /* The GNU C library defines this for functions which it implements
17025 to always fail with ENOSYS. Some functions are actually named
17026 something starting with __ and the normal name is an alias. */
17027 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17030 char (*f) () = hes_getmailhost;
17039 return f != hes_getmailhost;
17044 rm -f conftest.
$ac_objext conftest
$ac_exeext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046 (eval $ac_link) 2>conftest.er1
17048 grep -v '^ *+' conftest.er1
>conftest.err
17050 cat conftest.err
>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try
='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try
='test -s conftest$ac_exeext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_func_hes_getmailhost
=yes
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.
$ac_ext >&5
17071 ac_cv_func_hes_getmailhost
=no
17073 rm -f conftest.err conftest.
$ac_objext \
17074 conftest
$ac_exeext conftest.
$ac_ext
17076 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17077 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17078 if test $ac_cv_func_hes_getmailhost = yes; then
17081 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17082 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17083 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 ac_check_lib_save_LIBS
=$LIBS
17087 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17088 cat >conftest.
$ac_ext <<_ACEOF
17091 cat confdefs.h
>>conftest.
$ac_ext
17092 cat >>conftest.
$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17095 /* Override any gcc2 internal prototype to avoid an error. */
17099 /* We use char because int might match the return type of a gcc2
17100 builtin and then its argument prototype would still apply. */
17101 char hes_getmailhost ();
17105 hes_getmailhost ();
17110 rm -f conftest.
$ac_objext conftest
$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112 (eval $ac_link) 2>conftest.er1
17114 grep -v '^ *+' conftest.er1
>conftest.err
17116 cat conftest.err
>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try
='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try
='test -s conftest$ac_exeext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_cv_lib_hesiod_hes_getmailhost
=yes
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.
$ac_ext >&5
17137 ac_cv_lib_hesiod_hes_getmailhost
=no
17139 rm -f conftest.err conftest.
$ac_objext \
17140 conftest
$ac_exeext conftest.
$ac_ext
17141 LIBS
=$ac_check_lib_save_LIBS
17143 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17144 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17145 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17147 cat >>confdefs.h
<<\_ACEOF
17148 #define HAVE_LIBHESIOD 1
17159 # These tell us which Kerberos-related libraries to use.
17160 if test "${with_kerberos+set}" = set; then
17162 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17163 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17164 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 ac_check_lib_save_LIBS
=$LIBS
17168 LIBS
="-lcom_err $LIBS"
17169 cat >conftest.
$ac_ext <<_ACEOF
17172 cat confdefs.h
>>conftest.
$ac_ext
17173 cat >>conftest.
$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17176 /* Override any gcc2 internal prototype to avoid an error. */
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17191 rm -f conftest.
$ac_objext conftest
$ac_exeext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>conftest.er1
17195 grep -v '^ *+' conftest.er1
>conftest.err
17197 cat conftest.err
>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try
='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try
='test -s conftest$ac_exeext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_lib_com_err_com_err
=yes
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.
$ac_ext >&5
17218 ac_cv_lib_com_err_com_err
=no
17220 rm -f conftest.err conftest.
$ac_objext \
17221 conftest
$ac_exeext conftest.
$ac_ext
17222 LIBS
=$ac_check_lib_save_LIBS
17224 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17225 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17226 if test $ac_cv_lib_com_err_com_err = yes; then
17227 cat >>confdefs.h
<<_ACEOF
17228 #define HAVE_LIBCOM_ERR 1
17231 LIBS
="-lcom_err $LIBS"
17236 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17237 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17238 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 ac_check_lib_save_LIBS
=$LIBS
17242 LIBS
="-lk5crypto $LIBS"
17243 cat >conftest.
$ac_ext <<_ACEOF
17246 cat confdefs.h
>>conftest.
$ac_ext
17247 cat >>conftest.
$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17250 /* Override any gcc2 internal prototype to avoid an error. */
17254 /* We use char because int might match the return type of a gcc2
17255 builtin and then its argument prototype would still apply. */
17256 char mit_des_cbc_encrypt ();
17260 mit_des_cbc_encrypt ();
17265 rm -f conftest.
$ac_objext conftest
$ac_exeext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17267 (eval $ac_link) 2>conftest.er1
17269 grep -v '^ *+' conftest.er1
>conftest.err
17271 cat conftest.err
>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try
='test -z "$ac_c_werror_flag"
17275 || test ! -s conftest.err'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try
='test -s conftest$ac_exeext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.
$ac_ext >&5
17292 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17294 rm -f conftest.err conftest.
$ac_objext \
17295 conftest
$ac_exeext conftest.
$ac_ext
17296 LIBS
=$ac_check_lib_save_LIBS
17298 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17299 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17300 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17301 cat >>confdefs.h
<<_ACEOF
17302 #define HAVE_LIBK5CRYPTO 1
17305 LIBS
="-lk5crypto $LIBS"
17310 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17311 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17312 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 ac_check_lib_save_LIBS
=$LIBS
17316 LIBS
="-lcrypto $LIBS"
17317 cat >conftest.
$ac_ext <<_ACEOF
17320 cat confdefs.h
>>conftest.
$ac_ext
17321 cat >>conftest.
$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17324 /* Override any gcc2 internal prototype to avoid an error. */
17328 /* We use char because int might match the return type of a gcc2
17329 builtin and then its argument prototype would still apply. */
17330 char mit_des_cbc_encrypt ();
17334 mit_des_cbc_encrypt ();
17339 rm -f conftest.
$ac_objext conftest
$ac_exeext
17340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17341 (eval $ac_link) 2>conftest.er1
17343 grep -v '^ *+' conftest.er1
>conftest.err
17345 cat conftest.err
>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try
='test -z "$ac_c_werror_flag"
17349 || test ! -s conftest.err'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; } &&
17355 { ac_try
='test -s conftest$ac_exeext'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.
$ac_ext >&5
17366 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17368 rm -f conftest.err conftest.
$ac_objext \
17369 conftest
$ac_exeext conftest.
$ac_ext
17370 LIBS
=$ac_check_lib_save_LIBS
17372 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17373 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17374 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17375 cat >>confdefs.h
<<_ACEOF
17376 #define HAVE_LIBCRYPTO 1
17379 LIBS
="-lcrypto $LIBS"
17384 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17385 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17386 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 ac_check_lib_save_LIBS
=$LIBS
17390 LIBS
="-lkrb5 $LIBS"
17391 cat >conftest.
$ac_ext <<_ACEOF
17394 cat confdefs.h
>>conftest.
$ac_ext
17395 cat >>conftest.
$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17398 /* Override any gcc2 internal prototype to avoid an error. */
17402 /* We use char because int might match the return type of a gcc2
17403 builtin and then its argument prototype would still apply. */
17404 char krb5_init_context ();
17408 krb5_init_context ();
17413 rm -f conftest.
$ac_objext conftest
$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17417 grep -v '^ *+' conftest.er1
>conftest.err
17419 cat conftest.err
>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try
='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try
='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_lib_krb5_krb5_init_context
=yes
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.
$ac_ext >&5
17440 ac_cv_lib_krb5_krb5_init_context
=no
17442 rm -f conftest.err conftest.
$ac_objext \
17443 conftest
$ac_exeext conftest.
$ac_ext
17444 LIBS
=$ac_check_lib_save_LIBS
17446 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17447 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17448 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17449 cat >>confdefs.h
<<_ACEOF
17450 #define HAVE_LIBKRB5 1
17453 LIBS
="-lkrb5 $LIBS"
17457 if test "${with_kerberos5+set}" != set; then
17459 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17460 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17461 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 ac_check_lib_save_LIBS
=$LIBS
17465 LIBS
="-ldes425 $LIBS"
17466 cat >conftest.
$ac_ext <<_ACEOF
17469 cat confdefs.h
>>conftest.
$ac_ext
17470 cat >>conftest.
$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 /* Override any gcc2 internal prototype to avoid an error. */
17477 /* We use char because int might match the return type of a gcc2
17478 builtin and then its argument prototype would still apply. */
17479 char des_cbc_encrypt ();
17483 des_cbc_encrypt ();
17488 rm -f conftest.
$ac_objext conftest
$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490 (eval $ac_link) 2>conftest.er1
17492 grep -v '^ *+' conftest.er1
>conftest.err
17494 cat conftest.err
>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try
='test -z "$ac_c_werror_flag"
17498 || test ! -s conftest.err'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try
='test -s conftest$ac_exeext'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_lib_des425_des_cbc_encrypt
=yes
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.
$ac_ext >&5
17515 ac_cv_lib_des425_des_cbc_encrypt
=no
17517 rm -f conftest.err conftest.
$ac_objext \
17518 conftest
$ac_exeext conftest.
$ac_ext
17519 LIBS
=$ac_check_lib_save_LIBS
17521 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17522 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17523 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17524 cat >>confdefs.h
<<_ACEOF
17525 #define HAVE_LIBDES425 1
17528 LIBS
="-ldes425 $LIBS"
17532 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17533 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17534 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 ac_check_lib_save_LIBS
=$LIBS
17539 cat >conftest.
$ac_ext <<_ACEOF
17542 cat confdefs.h
>>conftest.
$ac_ext
17543 cat >>conftest.
$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17546 /* Override any gcc2 internal prototype to avoid an error. */
17550 /* We use char because int might match the return type of a gcc2
17551 builtin and then its argument prototype would still apply. */
17552 char des_cbc_encrypt ();
17556 des_cbc_encrypt ();
17561 rm -f conftest.
$ac_objext conftest
$ac_exeext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563 (eval $ac_link) 2>conftest.er1
17565 grep -v '^ *+' conftest.er1
>conftest.err
17567 cat conftest.err
>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try
='test -z "$ac_c_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try
='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_lib_des_des_cbc_encrypt
=yes
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.
$ac_ext >&5
17588 ac_cv_lib_des_des_cbc_encrypt
=no
17590 rm -f conftest.err conftest.
$ac_objext \
17591 conftest
$ac_exeext conftest.
$ac_ext
17592 LIBS
=$ac_check_lib_save_LIBS
17594 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17595 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17596 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17597 cat >>confdefs.h
<<_ACEOF
17598 #define HAVE_LIBDES 1
17608 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17609 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17610 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 ac_check_lib_save_LIBS
=$LIBS
17614 LIBS
="-lkrb4 $LIBS"
17615 cat >conftest.
$ac_ext <<_ACEOF
17618 cat confdefs.h
>>conftest.
$ac_ext
17619 cat >>conftest.
$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17622 /* Override any gcc2 internal prototype to avoid an error. */
17626 /* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17628 char krb_get_cred ();
17637 rm -f conftest.
$ac_objext conftest
$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17641 grep -v '^ *+' conftest.er1
>conftest.err
17643 cat conftest.err
>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try
='test -z "$ac_c_werror_flag"
17647 || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try
='test -s conftest$ac_exeext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_lib_krb4_krb_get_cred
=yes
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.
$ac_ext >&5
17664 ac_cv_lib_krb4_krb_get_cred
=no
17666 rm -f conftest.err conftest.
$ac_objext \
17667 conftest
$ac_exeext conftest.
$ac_ext
17668 LIBS
=$ac_check_lib_save_LIBS
17670 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17671 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17672 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17673 cat >>confdefs.h
<<_ACEOF
17674 #define HAVE_LIBKRB4 1
17677 LIBS
="-lkrb4 $LIBS"
17681 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17682 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17683 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 ac_check_lib_save_LIBS
=$LIBS
17688 cat >conftest.
$ac_ext <<_ACEOF
17691 cat confdefs.h
>>conftest.
$ac_ext
17692 cat >>conftest.
$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17695 /* Override any gcc2 internal prototype to avoid an error. */
17699 /* We use char because int might match the return type of a gcc2
17700 builtin and then its argument prototype would still apply. */
17701 char krb_get_cred ();
17710 rm -f conftest.
$ac_objext conftest
$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>conftest.er1
17714 grep -v '^ *+' conftest.er1
>conftest.err
17716 cat conftest.err
>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try
='test -z "$ac_c_werror_flag"
17720 || test ! -s conftest.err'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try
='test -s conftest$ac_exeext'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_lib_krb_krb_get_cred
=yes
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.
$ac_ext >&5
17737 ac_cv_lib_krb_krb_get_cred
=no
17739 rm -f conftest.err conftest.
$ac_objext \
17740 conftest
$ac_exeext conftest.
$ac_ext
17741 LIBS
=$ac_check_lib_save_LIBS
17743 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17744 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17745 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17746 cat >>confdefs.h
<<_ACEOF
17747 #define HAVE_LIBKRB 1
17758 if test "${with_kerberos5+set}" = set; then
17760 for ac_header
in krb5.h
17762 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17764 echo "$as_me:$LINENO: checking for $ac_header" >&5
17765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17772 # Is the header compilable?
17773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17775 cat >conftest.
$ac_ext <<_ACEOF
17778 cat confdefs.h
>>conftest.
$ac_ext
17779 cat >>conftest.
$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 $ac_includes_default
17782 #include <$ac_header>
17784 rm -f conftest.
$ac_objext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786 (eval $ac_compile) 2>conftest.er1
17788 grep -v '^ *+' conftest.er1
>conftest.err
17790 cat conftest.err
>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try
='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try
='test -s conftest.$ac_objext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_header_compiler
=yes
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.
$ac_ext >&5
17811 ac_header_compiler
=no
17813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17815 echo "${ECHO_T}$ac_header_compiler" >&6
17817 # Is the header present?
17818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17820 cat >conftest.
$ac_ext <<_ACEOF
17823 cat confdefs.h
>>conftest.
$ac_ext
17824 cat >>conftest.
$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 #include <$ac_header>
17828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17829 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17831 grep -v '^ *+' conftest.er1
>conftest.err
17833 cat conftest.err
>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } >/dev
/null
; then
17836 if test -s conftest.err
; then
17837 ac_cpp_err
=$ac_c_preproc_warn_flag
17838 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17845 if test -z "$ac_cpp_err"; then
17846 ac_header_preproc
=yes
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.
$ac_ext >&5
17851 ac_header_preproc
=no
17853 rm -f conftest.err conftest.
$ac_ext
17854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17855 echo "${ECHO_T}$ac_header_preproc" >&6
17857 # So? What about this header?
17858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17864 ac_header_preproc
=yes
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17881 ## ------------------------------------------ ##
17882 ## Report this to the AC_PACKAGE_NAME lists. ##
17883 ## ------------------------------------------ ##
17886 sed "s/^/$as_me: WARNING: /" >&2
17889 echo "$as_me:$LINENO: checking for $ac_header" >&5
17890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 eval "$as_ac_Header=\$ac_header_preproc"
17896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17901 cat >>confdefs.h
<<_ACEOF
17902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17911 for ac_header
in des.h
17913 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17915 echo "$as_me:$LINENO: checking for $ac_header" >&5
17916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17923 # Is the header compilable?
17924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17926 cat >conftest.
$ac_ext <<_ACEOF
17929 cat confdefs.h
>>conftest.
$ac_ext
17930 cat >>conftest.
$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 $ac_includes_default
17933 #include <$ac_header>
17935 rm -f conftest.
$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937 (eval $ac_compile) 2>conftest.er1
17939 grep -v '^ *+' conftest.er1
>conftest.err
17941 cat conftest.err
>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try
='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try
='test -s conftest.$ac_objext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_header_compiler
=yes
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.
$ac_ext >&5
17962 ac_header_compiler
=no
17964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17966 echo "${ECHO_T}$ac_header_compiler" >&6
17968 # Is the header present?
17969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17971 cat >conftest.
$ac_ext <<_ACEOF
17974 cat confdefs.h
>>conftest.
$ac_ext
17975 cat >>conftest.
$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 #include <$ac_header>
17979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17980 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17982 grep -v '^ *+' conftest.er1
>conftest.err
17984 cat conftest.err
>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } >/dev
/null
; then
17987 if test -s conftest.err
; then
17988 ac_cpp_err
=$ac_c_preproc_warn_flag
17989 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17996 if test -z "$ac_cpp_err"; then
17997 ac_header_preproc
=yes
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.
$ac_ext >&5
18002 ac_header_preproc
=no
18004 rm -f conftest.err conftest.
$ac_ext
18005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18006 echo "${ECHO_T}$ac_header_preproc" >&6
18008 # So? What about this header?
18009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18015 ac_header_preproc
=yes
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18032 ## ------------------------------------------ ##
18033 ## Report this to the AC_PACKAGE_NAME lists. ##
18034 ## ------------------------------------------ ##
18037 sed "s/^/$as_me: WARNING: /" >&2
18040 echo "$as_me:$LINENO: checking for $ac_header" >&5
18041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 eval "$as_ac_Header=\$ac_header_preproc"
18047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18052 cat >>confdefs.h
<<_ACEOF
18053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18058 for ac_header
in kerberosIV
/des.h
18060 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18062 echo "$as_me:$LINENO: checking for $ac_header" >&5
18063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18070 # Is the header compilable?
18071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18073 cat >conftest.
$ac_ext <<_ACEOF
18076 cat confdefs.h
>>conftest.
$ac_ext
18077 cat >>conftest.
$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 $ac_includes_default
18080 #include <$ac_header>
18082 rm -f conftest.
$ac_objext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084 (eval $ac_compile) 2>conftest.er1
18086 grep -v '^ *+' conftest.er1
>conftest.err
18088 cat conftest.err
>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try
='test -z "$ac_c_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try
='test -s conftest.$ac_objext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_header_compiler
=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.
$ac_ext >&5
18109 ac_header_compiler
=no
18111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18113 echo "${ECHO_T}$ac_header_compiler" >&6
18115 # Is the header present?
18116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18118 cat >conftest.
$ac_ext <<_ACEOF
18121 cat confdefs.h
>>conftest.
$ac_ext
18122 cat >>conftest.
$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <$ac_header>
18126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18127 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18129 grep -v '^ *+' conftest.er1
>conftest.err
18131 cat conftest.err
>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } >/dev
/null
; then
18134 if test -s conftest.err
; then
18135 ac_cpp_err
=$ac_c_preproc_warn_flag
18136 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18143 if test -z "$ac_cpp_err"; then
18144 ac_header_preproc
=yes
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.
$ac_ext >&5
18149 ac_header_preproc
=no
18151 rm -f conftest.err conftest.
$ac_ext
18152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18153 echo "${ECHO_T}$ac_header_preproc" >&6
18155 # So? What about this header?
18156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18162 ac_header_preproc
=yes
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18179 ## ------------------------------------------ ##
18180 ## Report this to the AC_PACKAGE_NAME lists. ##
18181 ## ------------------------------------------ ##
18184 sed "s/^/$as_me: WARNING: /" >&2
18187 echo "$as_me:$LINENO: checking for $ac_header" >&5
18188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 eval "$as_ac_Header=\$ac_header_preproc"
18194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18199 cat >>confdefs.h
<<_ACEOF
18200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18205 for ac_header
in kerberos
/des.h
18207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18209 echo "$as_me:$LINENO: checking for $ac_header" >&5
18210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18217 # Is the header compilable?
18218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18220 cat >conftest.
$ac_ext <<_ACEOF
18223 cat confdefs.h
>>conftest.
$ac_ext
18224 cat >>conftest.
$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 $ac_includes_default
18227 #include <$ac_header>
18229 rm -f conftest.
$ac_objext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18231 (eval $ac_compile) 2>conftest.er1
18233 grep -v '^ *+' conftest.er1
>conftest.err
18235 cat conftest.err
>&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try
='test -z "$ac_c_werror_flag"
18239 || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try
='test -s conftest.$ac_objext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_header_compiler
=yes
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.
$ac_ext >&5
18256 ac_header_compiler
=no
18258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18260 echo "${ECHO_T}$ac_header_compiler" >&6
18262 # Is the header present?
18263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18265 cat >conftest.
$ac_ext <<_ACEOF
18268 cat confdefs.h
>>conftest.
$ac_ext
18269 cat >>conftest.
$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 #include <$ac_header>
18273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18276 grep -v '^ *+' conftest.er1
>conftest.err
18278 cat conftest.err
>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } >/dev
/null
; then
18281 if test -s conftest.err
; then
18282 ac_cpp_err
=$ac_c_preproc_warn_flag
18283 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18290 if test -z "$ac_cpp_err"; then
18291 ac_header_preproc
=yes
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.
$ac_ext >&5
18296 ac_header_preproc
=no
18298 rm -f conftest.err conftest.
$ac_ext
18299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18309 ac_header_preproc
=yes
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18326 ## ------------------------------------------ ##
18327 ## Report this to the AC_PACKAGE_NAME lists. ##
18328 ## ------------------------------------------ ##
18331 sed "s/^/$as_me: WARNING: /" >&2
18334 echo "$as_me:$LINENO: checking for $ac_header" >&5
18335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 eval "$as_ac_Header=\$ac_header_preproc"
18341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18346 cat >>confdefs.h
<<_ACEOF
18347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18363 for ac_header
in krb.h
18365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18367 echo "$as_me:$LINENO: checking for $ac_header" >&5
18368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18375 # Is the header compilable?
18376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18378 cat >conftest.
$ac_ext <<_ACEOF
18381 cat confdefs.h
>>conftest.
$ac_ext
18382 cat >>conftest.
$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 $ac_includes_default
18385 #include <$ac_header>
18387 rm -f conftest.
$ac_objext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18389 (eval $ac_compile) 2>conftest.er1
18391 grep -v '^ *+' conftest.er1
>conftest.err
18393 cat conftest.err
>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try
='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try
='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_header_compiler
=yes
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.
$ac_ext >&5
18414 ac_header_compiler
=no
18416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18418 echo "${ECHO_T}$ac_header_compiler" >&6
18420 # Is the header present?
18421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18423 cat >conftest.
$ac_ext <<_ACEOF
18426 cat confdefs.h
>>conftest.
$ac_ext
18427 cat >>conftest.
$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 #include <$ac_header>
18431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18434 grep -v '^ *+' conftest.er1
>conftest.err
18436 cat conftest.err
>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } >/dev
/null
; then
18439 if test -s conftest.err
; then
18440 ac_cpp_err
=$ac_c_preproc_warn_flag
18441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18448 if test -z "$ac_cpp_err"; then
18449 ac_header_preproc
=yes
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.
$ac_ext >&5
18454 ac_header_preproc
=no
18456 rm -f conftest.err conftest.
$ac_ext
18457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458 echo "${ECHO_T}$ac_header_preproc" >&6
18460 # So? What about this header?
18461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18467 ac_header_preproc
=yes
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18484 ## ------------------------------------------ ##
18485 ## Report this to the AC_PACKAGE_NAME lists. ##
18486 ## ------------------------------------------ ##
18489 sed "s/^/$as_me: WARNING: /" >&2
18492 echo "$as_me:$LINENO: checking for $ac_header" >&5
18493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 eval "$as_ac_Header=\$ac_header_preproc"
18499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18504 cat >>confdefs.h
<<_ACEOF
18505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18510 for ac_header
in kerberosIV
/krb.h
18512 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18514 echo "$as_me:$LINENO: checking for $ac_header" >&5
18515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18522 # Is the header compilable?
18523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18525 cat >conftest.
$ac_ext <<_ACEOF
18528 cat confdefs.h
>>conftest.
$ac_ext
18529 cat >>conftest.
$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 $ac_includes_default
18532 #include <$ac_header>
18534 rm -f conftest.
$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18538 grep -v '^ *+' conftest.er1
>conftest.err
18540 cat conftest.err
>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try
='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try
='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_header_compiler
=yes
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.
$ac_ext >&5
18561 ac_header_compiler
=no
18563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18565 echo "${ECHO_T}$ac_header_compiler" >&6
18567 # Is the header present?
18568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18570 cat >conftest.
$ac_ext <<_ACEOF
18573 cat confdefs.h
>>conftest.
$ac_ext
18574 cat >>conftest.
$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 #include <$ac_header>
18578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18579 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18581 grep -v '^ *+' conftest.er1
>conftest.err
18583 cat conftest.err
>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } >/dev
/null
; then
18586 if test -s conftest.err
; then
18587 ac_cpp_err
=$ac_c_preproc_warn_flag
18588 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18595 if test -z "$ac_cpp_err"; then
18596 ac_header_preproc
=yes
18598 echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.
$ac_ext >&5
18601 ac_header_preproc
=no
18603 rm -f conftest.err conftest.
$ac_ext
18604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18605 echo "${ECHO_T}$ac_header_preproc" >&6
18607 # So? What about this header?
18608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18614 ac_header_preproc
=yes
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18631 ## ------------------------------------------ ##
18632 ## Report this to the AC_PACKAGE_NAME lists. ##
18633 ## ------------------------------------------ ##
18636 sed "s/^/$as_me: WARNING: /" >&2
18639 echo "$as_me:$LINENO: checking for $ac_header" >&5
18640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 eval "$as_ac_Header=\$ac_header_preproc"
18646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18651 cat >>confdefs.h
<<_ACEOF
18652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18657 for ac_header
in kerberos
/krb.h
18659 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18661 echo "$as_me:$LINENO: checking for $ac_header" >&5
18662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18669 # Is the header compilable?
18670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18672 cat >conftest.
$ac_ext <<_ACEOF
18675 cat confdefs.h
>>conftest.
$ac_ext
18676 cat >>conftest.
$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 $ac_includes_default
18679 #include <$ac_header>
18681 rm -f conftest.
$ac_objext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18683 (eval $ac_compile) 2>conftest.er1
18685 grep -v '^ *+' conftest.er1
>conftest.err
18687 cat conftest.err
>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try
='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try
='test -s conftest.$ac_objext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_header_compiler
=yes
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.
$ac_ext >&5
18708 ac_header_compiler
=no
18710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18712 echo "${ECHO_T}$ac_header_compiler" >&6
18714 # Is the header present?
18715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18717 cat >conftest.
$ac_ext <<_ACEOF
18720 cat confdefs.h
>>conftest.
$ac_ext
18721 cat >>conftest.
$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #include <$ac_header>
18725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18728 grep -v '^ *+' conftest.er1
>conftest.err
18730 cat conftest.err
>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } >/dev
/null
; then
18733 if test -s conftest.err
; then
18734 ac_cpp_err
=$ac_c_preproc_warn_flag
18735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18742 if test -z "$ac_cpp_err"; then
18743 ac_header_preproc
=yes
18745 echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.
$ac_ext >&5
18748 ac_header_preproc
=no
18750 rm -f conftest.err conftest.
$ac_ext
18751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18752 echo "${ECHO_T}$ac_header_preproc" >&6
18754 # So? What about this header?
18755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18761 ac_header_preproc
=yes
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18778 ## ------------------------------------------ ##
18779 ## Report this to the AC_PACKAGE_NAME lists. ##
18780 ## ------------------------------------------ ##
18783 sed "s/^/$as_me: WARNING: /" >&2
18786 echo "$as_me:$LINENO: checking for $ac_header" >&5
18787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 eval "$as_ac_Header=\$ac_header_preproc"
18793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18798 cat >>confdefs.h
<<_ACEOF
18799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18816 for ac_header
in com_err.h
18818 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18820 echo "$as_me:$LINENO: checking for $ac_header" >&5
18821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18828 # Is the header compilable?
18829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18831 cat >conftest.
$ac_ext <<_ACEOF
18834 cat confdefs.h
>>conftest.
$ac_ext
18835 cat >>conftest.
$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 $ac_includes_default
18838 #include <$ac_header>
18840 rm -f conftest.
$ac_objext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18842 (eval $ac_compile) 2>conftest.er1
18844 grep -v '^ *+' conftest.er1
>conftest.err
18846 cat conftest.err
>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try
='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try
='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_header_compiler
=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.
$ac_ext >&5
18867 ac_header_compiler
=no
18869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18871 echo "${ECHO_T}$ac_header_compiler" >&6
18873 # Is the header present?
18874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18876 cat >conftest.
$ac_ext <<_ACEOF
18879 cat confdefs.h
>>conftest.
$ac_ext
18880 cat >>conftest.
$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 #include <$ac_header>
18884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18885 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18887 grep -v '^ *+' conftest.er1
>conftest.err
18889 cat conftest.err
>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } >/dev
/null
; then
18892 if test -s conftest.err
; then
18893 ac_cpp_err
=$ac_c_preproc_warn_flag
18894 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18901 if test -z "$ac_cpp_err"; then
18902 ac_header_preproc
=yes
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.
$ac_ext >&5
18907 ac_header_preproc
=no
18909 rm -f conftest.err conftest.
$ac_ext
18910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18911 echo "${ECHO_T}$ac_header_preproc" >&6
18913 # So? What about this header?
18914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18920 ac_header_preproc
=yes
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18937 ## ------------------------------------------ ##
18938 ## Report this to the AC_PACKAGE_NAME lists. ##
18939 ## ------------------------------------------ ##
18942 sed "s/^/$as_me: WARNING: /" >&2
18945 echo "$as_me:$LINENO: checking for $ac_header" >&5
18946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 eval "$as_ac_Header=\$ac_header_preproc"
18952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18957 cat >>confdefs.h
<<_ACEOF
18958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18967 # Solaris requires -lintl if you want strerror (which calls dgettext)
18968 # to return localized messages.
18970 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18971 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18972 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 ac_check_lib_save_LIBS
=$LIBS
18976 LIBS
="-lintl $LIBS"
18977 cat >conftest.
$ac_ext <<_ACEOF
18980 cat confdefs.h
>>conftest.
$ac_ext
18981 cat >>conftest.
$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18984 /* Override any gcc2 internal prototype to avoid an error. */
18988 /* We use char because int might match the return type of a gcc2
18989 builtin and then its argument prototype would still apply. */
18999 rm -f conftest.
$ac_objext conftest
$ac_exeext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>conftest.er1
19003 grep -v '^ *+' conftest.er1
>conftest.err
19005 cat conftest.err
>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try
='test -z "$ac_c_werror_flag"
19009 || test ! -s conftest.err'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try
='test -s conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_intl_dgettext
=yes
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.
$ac_ext >&5
19026 ac_cv_lib_intl_dgettext
=no
19028 rm -f conftest.err conftest.
$ac_objext \
19029 conftest
$ac_exeext conftest.
$ac_ext
19030 LIBS
=$ac_check_lib_save_LIBS
19032 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19033 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19034 if test $ac_cv_lib_intl_dgettext = yes; then
19035 cat >>confdefs.h
<<_ACEOF
19036 #define HAVE_LIBINTL 1
19039 LIBS
="-lintl $LIBS"
19044 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19045 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19046 if test "${emacs_cv_localtime_cache+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 if test x
$ac_cv_func_tzset = xyes
; then
19050 if test "$cross_compiling" = yes; then
19051 # If we have tzset, assume the worst when cross-compiling.
19052 emacs_cv_localtime_cache
=yes
19054 cat >conftest.
$ac_ext <<_ACEOF
19057 cat confdefs.h
>>conftest.
$ac_ext
19058 cat >>conftest.
$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19061 extern char **environ;
19065 for (to = from = environ; (*to = *from); from++)
19066 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19069 char TZ_GMT0[] = "TZ=GMT0";
19070 char TZ_PST8[] = "TZ=PST8";
19073 time_t now = time ((time_t *) 0);
19074 int hour_GMT0, hour_unset;
19075 if (putenv (TZ_GMT0) != 0)
19077 hour_GMT0 = localtime (&now)->tm_hour;
19079 hour_unset = localtime (&now)->tm_hour;
19080 if (putenv (TZ_PST8) != 0)
19082 if (localtime (&now)->tm_hour == hour_GMT0)
19085 if (localtime (&now)->tm_hour != hour_unset)
19090 rm -f conftest
$ac_exeext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092 (eval $ac_link) 2>&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 emacs_cv_localtime_cache
=no
19103 echo "$as_me: program exited with status $ac_status" >&5
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.
$ac_ext >&5
19107 ( exit $ac_status )
19108 emacs_cv_localtime_cache
=yes
19110 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19113 # If we lack tzset, report that localtime does not cache TZ,
19114 # since we can't invalidate the cache if we don't have tzset.
19115 emacs_cv_localtime_cache
=no
19118 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19119 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19120 if test $emacs_cv_localtime_cache = yes; then
19122 cat >>confdefs.h
<<\_ACEOF
19123 #define LOCALTIME_CACHE 1
19128 if test "x$HAVE_TIMEVAL" = xyes
; then
19130 for ac_func
in gettimeofday
19132 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19133 echo "$as_me:$LINENO: checking for $ac_func" >&5
19134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19135 if eval "test \"\${$as_ac_var+set}\" = set"; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 cat >conftest.
$ac_ext <<_ACEOF
19141 cat confdefs.h
>>conftest.
$ac_ext
19142 cat >>conftest.
$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19146 #define $ac_func innocuous_$ac_func
19148 /* System header to define __stub macros and hopefully few prototypes,
19149 which can conflict with char $ac_func (); below.
19150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19151 <limits.h> exists even on freestanding compilers. */
19154 # include <limits.h>
19156 # include <assert.h>
19161 /* Override any gcc2 internal prototype to avoid an error. */
19166 /* We use char because int might match the return type of a gcc2
19167 builtin and then its argument prototype would still apply. */
19169 /* The GNU C library defines this for functions which it implements
19170 to always fail with ENOSYS. Some functions are actually named
19171 something starting with __ and the normal name is an alias. */
19172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19175 char (*f) () = $ac_func;
19184 return f != $ac_func;
19189 rm -f conftest.
$ac_objext conftest
$ac_exeext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19191 (eval $ac_link) 2>conftest.er1
19193 grep -v '^ *+' conftest.er1
>conftest.err
19195 cat conftest.err
>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try
='test -z "$ac_c_werror_flag"
19199 || test ! -s conftest.err'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try
='test -s conftest$ac_exeext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 eval "$as_ac_var=yes"
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.
$ac_ext >&5
19216 eval "$as_ac_var=no"
19218 rm -f conftest.err conftest.
$ac_objext \
19219 conftest
$ac_exeext conftest.
$ac_ext
19221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19223 if test `eval echo '${'$as_ac_var'}'` = yes; then
19224 cat >>confdefs.h
<<_ACEOF
19225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19231 if test $ac_cv_func_gettimeofday = yes; then
19232 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19233 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19234 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 cat >conftest.
$ac_ext <<_ACEOF
19240 cat confdefs.h
>>conftest.
$ac_ext
19241 cat >>conftest.
$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19244 #ifdef TIME_WITH_SYS_TIME
19245 #include <sys/time.h>
19248 #ifdef HAVE_SYS_TIME_H
19249 #include <sys/time.h>
19257 struct timeval time;
19258 gettimeofday (&time, 0);
19263 rm -f conftest.
$ac_objext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19265 (eval $ac_compile) 2>conftest.er1
19267 grep -v '^ *+' conftest.er1
>conftest.err
19269 cat conftest.err
>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try
='test -z "$ac_c_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try
='test -s conftest.$ac_objext'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 emacs_cv_gettimeofday_two_arguments
=yes
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.
$ac_ext >&5
19290 emacs_cv_gettimeofday_two_arguments
=no
19292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19294 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19295 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19296 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19298 cat >>confdefs.h
<<\_ACEOF
19299 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19306 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19307 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19308 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19309 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 cat >conftest.
$ac_ext <<_ACEOF
19315 cat confdefs.h
>>conftest.
$ac_ext
19316 cat >>conftest.
$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 #include <sys/types.h>
19319 #include <$ac_cv_struct_tm>
19325 static struct tm ac_aggr;
19326 if (ac_aggr.tm_zone)
19332 rm -f conftest.
$ac_objext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>conftest.er1
19336 grep -v '^ *+' conftest.er1
>conftest.err
19338 cat conftest.err
>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try
='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try
='test -s conftest.$ac_objext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_member_struct_tm_tm_zone
=yes
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.
$ac_ext >&5
19359 cat >conftest.
$ac_ext <<_ACEOF
19362 cat confdefs.h
>>conftest.
$ac_ext
19363 cat >>conftest.
$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365 #include <sys/types.h>
19366 #include <$ac_cv_struct_tm>
19372 static struct tm ac_aggr;
19373 if (sizeof ac_aggr.tm_zone)
19379 rm -f conftest.
$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19383 grep -v '^ *+' conftest.er1
>conftest.err
19385 cat conftest.err
>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try
='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try
='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_cv_member_struct_tm_tm_zone
=yes
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.
$ac_ext >&5
19406 ac_cv_member_struct_tm_tm_zone
=no
19408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19412 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19413 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19414 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19416 cat >>confdefs.h
<<_ACEOF
19417 #define HAVE_STRUCT_TM_TM_ZONE 1
19423 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19425 cat >>confdefs.h
<<\_ACEOF
19426 #define HAVE_TM_ZONE 1
19430 echo "$as_me:$LINENO: checking for tzname" >&5
19431 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19432 if test "${ac_cv_var_tzname+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 cat >conftest.
$ac_ext <<_ACEOF
19438 cat confdefs.h
>>conftest.
$ac_ext
19439 cat >>conftest.
$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19442 #ifndef tzname /* For SGI. */
19443 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19454 rm -f conftest.
$ac_objext conftest
$ac_exeext
19455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19456 (eval $ac_link) 2>conftest.er1
19458 grep -v '^ *+' conftest.er1
>conftest.err
19460 cat conftest.err
>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try
='test -z "$ac_c_werror_flag"
19464 || test ! -s conftest.err'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try
='test -s conftest$ac_exeext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_cv_var_tzname
=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.
$ac_ext >&5
19481 ac_cv_var_tzname
=no
19483 rm -f conftest.err conftest.
$ac_objext \
19484 conftest
$ac_exeext conftest.
$ac_ext
19486 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19487 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19488 if test $ac_cv_var_tzname = yes; then
19490 cat >>confdefs.h
<<\_ACEOF
19491 #define HAVE_TZNAME 1
19498 if test "$ac_cv_func_gettimeofday" = yes; then
19499 echo "$as_me:$LINENO: checking for struct timezone" >&5
19500 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19501 if test "${emacs_cv_struct_timezone+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 cat >conftest.
$ac_ext <<_ACEOF
19507 cat confdefs.h
>>conftest.
$ac_ext
19508 cat >>conftest.
$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #include <sys/time.h>
19514 struct timezone tz;
19519 rm -f conftest.
$ac_objext
19520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19521 (eval $ac_compile) 2>conftest.er1
19523 grep -v '^ *+' conftest.er1
>conftest.err
19525 cat conftest.err
>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
19528 { ac_try
='test -z "$ac_c_werror_flag"
19529 || test ! -s conftest.err'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try
='test -s conftest.$ac_objext'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 if test "$cross_compiling" = yes; then
19542 emacs_cv_struct_timezone
=yes
19544 cat >conftest.
$ac_ext <<_ACEOF
19547 cat confdefs.h
>>conftest.
$ac_ext
19548 cat >>conftest.
$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 #ifdef TIME_WITH_SYS_TIME
19552 #include <sys/time.h>
19555 #ifdef HAVE_SYS_TIME_H
19556 #include <sys/time.h>
19562 struct timeval time;
19563 struct timezone dummy;
19564 exit (gettimeofday (&time, &dummy));
19567 rm -f conftest
$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 emacs_cv_struct_timezone
=yes
19580 echo "$as_me: program exited with status $ac_status" >&5
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.
$ac_ext >&5
19584 ( exit $ac_status )
19585 emacs_cv_struct_timezone
=no
19587 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.
$ac_ext >&5
19593 emacs_cv_struct_timezone
=no
19595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19597 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19598 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19602 echo "$as_me:$LINENO: checking for socket" >&5
19603 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19604 if test "${ac_cv_func_socket+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 cat >conftest.
$ac_ext <<_ACEOF
19610 cat confdefs.h
>>conftest.
$ac_ext
19611 cat >>conftest.
$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19615 #define socket innocuous_socket
19617 /* System header to define __stub macros and hopefully few prototypes,
19618 which can conflict with char socket (); below.
19619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19620 <limits.h> exists even on freestanding compilers. */
19623 # include <limits.h>
19625 # include <assert.h>
19630 /* Override any gcc2 internal prototype to avoid an error. */
19635 /* We use char because int might match the return type of a gcc2
19636 builtin and then its argument prototype would still apply. */
19638 /* The GNU C library defines this for functions which it implements
19639 to always fail with ENOSYS. Some functions are actually named
19640 something starting with __ and the normal name is an alias. */
19641 #if defined (__stub_socket) || defined (__stub___socket)
19644 char (*f) () = socket;
19653 return f != socket;
19658 rm -f conftest.
$ac_objext conftest
$ac_exeext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19660 (eval $ac_link) 2>conftest.er1
19662 grep -v '^ *+' conftest.er1
>conftest.err
19664 cat conftest.err
>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try
='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try
='test -s conftest$ac_exeext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_func_socket
=yes
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.
$ac_ext >&5
19685 ac_cv_func_socket
=no
19687 rm -f conftest.err conftest.
$ac_objext \
19688 conftest
$ac_exeext conftest.
$ac_ext
19690 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19691 echo "${ECHO_T}$ac_cv_func_socket" >&6
19692 if test $ac_cv_func_socket = yes; then
19698 if test $ok_so_far = yes; then
19699 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19700 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19701 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19702 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19706 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19708 # Is the header compilable?
19709 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19710 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19711 cat >conftest.
$ac_ext <<_ACEOF
19714 cat confdefs.h
>>conftest.
$ac_ext
19715 cat >>conftest.
$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 $ac_includes_default
19718 #include <netinet/in.h>
19720 rm -f conftest.
$ac_objext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722 (eval $ac_compile) 2>conftest.er1
19724 grep -v '^ *+' conftest.er1
>conftest.err
19726 cat conftest.err
>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
19729 { ac_try
='test -z "$ac_c_werror_flag"
19730 || test ! -s conftest.err'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try
='test -s conftest.$ac_objext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_header_compiler
=yes
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.
$ac_ext >&5
19747 ac_header_compiler
=no
19749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19751 echo "${ECHO_T}$ac_header_compiler" >&6
19753 # Is the header present?
19754 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19755 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19756 cat >conftest.
$ac_ext <<_ACEOF
19759 cat confdefs.h
>>conftest.
$ac_ext
19760 cat >>conftest.
$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 #include <netinet/in.h>
19764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19767 grep -v '^ *+' conftest.er1
>conftest.err
19769 cat conftest.err
>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } >/dev
/null
; then
19772 if test -s conftest.err
; then
19773 ac_cpp_err
=$ac_c_preproc_warn_flag
19774 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19781 if test -z "$ac_cpp_err"; then
19782 ac_header_preproc
=yes
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.
$ac_ext >&5
19787 ac_header_preproc
=no
19789 rm -f conftest.err conftest.
$ac_ext
19790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19791 echo "${ECHO_T}$ac_header_preproc" >&6
19793 # So? What about this header?
19794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19796 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19797 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19798 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19799 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19800 ac_header_preproc
=yes
19803 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19804 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19806 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19808 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19810 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19812 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19814 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19817 ## ------------------------------------------ ##
19818 ## Report this to the AC_PACKAGE_NAME lists. ##
19819 ## ------------------------------------------ ##
19822 sed "s/^/$as_me: WARNING: /" >&2
19825 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19826 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19827 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 ac_cv_header_netinet_in_h
=$ac_header_preproc
19832 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19833 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19836 if test $ac_cv_header_netinet_in_h = yes; then
19844 if test $ok_so_far = yes; then
19845 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19846 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19847 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19848 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19852 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19854 # Is the header compilable?
19855 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19856 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19857 cat >conftest.
$ac_ext <<_ACEOF
19860 cat confdefs.h
>>conftest.
$ac_ext
19861 cat >>conftest.
$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863 $ac_includes_default
19864 #include <arpa/inet.h>
19866 rm -f conftest.
$ac_objext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>conftest.er1
19870 grep -v '^ *+' conftest.er1
>conftest.err
19872 cat conftest.err
>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try
='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try
='test -s conftest.$ac_objext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_header_compiler
=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.
$ac_ext >&5
19893 ac_header_compiler
=no
19895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897 echo "${ECHO_T}$ac_header_compiler" >&6
19899 # Is the header present?
19900 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19901 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19902 cat >conftest.
$ac_ext <<_ACEOF
19905 cat confdefs.h
>>conftest.
$ac_ext
19906 cat >>conftest.
$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19908 #include <arpa/inet.h>
19910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19911 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19913 grep -v '^ *+' conftest.er1
>conftest.err
19915 cat conftest.err
>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } >/dev
/null
; then
19918 if test -s conftest.err
; then
19919 ac_cpp_err
=$ac_c_preproc_warn_flag
19920 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19927 if test -z "$ac_cpp_err"; then
19928 ac_header_preproc
=yes
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.
$ac_ext >&5
19933 ac_header_preproc
=no
19935 rm -f conftest.err conftest.
$ac_ext
19936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937 echo "${ECHO_T}$ac_header_preproc" >&6
19939 # So? What about this header?
19940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19942 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19943 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19945 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19946 ac_header_preproc
=yes
19949 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19950 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19952 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19954 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19956 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19958 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19960 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19963 ## ------------------------------------------ ##
19964 ## Report this to the AC_PACKAGE_NAME lists. ##
19965 ## ------------------------------------------ ##
19968 sed "s/^/$as_me: WARNING: /" >&2
19971 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19972 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19973 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 ac_cv_header_arpa_inet_h
=$ac_header_preproc
19978 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19979 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19982 if test $ac_cv_header_arpa_inet_h = yes; then
19990 if test $ok_so_far = yes; then
19992 cat >>confdefs.h
<<\_ACEOF
19993 #define HAVE_INET_SOCKETS 1
19999 for ac_header
in sys
/ioctl.h
20001 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo "$as_me:$LINENO: checking for $ac_header" >&5
20004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20011 # Is the header compilable?
20012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20014 cat >conftest.
$ac_ext <<_ACEOF
20017 cat confdefs.h
>>conftest.
$ac_ext
20018 cat >>conftest.
$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20021 #include <$ac_header>
20023 rm -f conftest.
$ac_objext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20025 (eval $ac_compile) 2>conftest.er1
20027 grep -v '^ *+' conftest.er1
>conftest.err
20029 cat conftest.err
>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try
='test -z "$ac_c_werror_flag"
20033 || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try
='test -s conftest.$ac_objext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_header_compiler
=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.
$ac_ext >&5
20050 ac_header_compiler
=no
20052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054 echo "${ECHO_T}$ac_header_compiler" >&6
20056 # Is the header present?
20057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20059 cat >conftest.
$ac_ext <<_ACEOF
20062 cat confdefs.h
>>conftest.
$ac_ext
20063 cat >>conftest.
$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <$ac_header>
20067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20070 grep -v '^ *+' conftest.er1
>conftest.err
20072 cat conftest.err
>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } >/dev
/null
; then
20075 if test -s conftest.err
; then
20076 ac_cpp_err
=$ac_c_preproc_warn_flag
20077 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20084 if test -z "$ac_cpp_err"; then
20085 ac_header_preproc
=yes
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.
$ac_ext >&5
20090 ac_header_preproc
=no
20092 rm -f conftest.err conftest.
$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20094 echo "${ECHO_T}$ac_header_preproc" >&6
20096 # So? What about this header?
20097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20103 ac_header_preproc
=yes
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20120 ## ------------------------------------------ ##
20121 ## Report this to the AC_PACKAGE_NAME lists. ##
20122 ## ------------------------------------------ ##
20125 sed "s/^/$as_me: WARNING: /" >&2
20128 echo "$as_me:$LINENO: checking for $ac_header" >&5
20129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 eval "$as_ac_Header=\$ac_header_preproc"
20135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20140 cat >>confdefs.h
<<_ACEOF
20141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20149 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20151 cat >>confdefs.h
<<\_ACEOF
20152 #define HAVE_AIX_SMT_EXP 1
20157 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20158 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20159 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20160 echo "$as_me:$LINENO: result: yes" >&5
20161 echo "${ECHO_T}yes" >&6
20163 cat >>confdefs.h
<<\_ACEOF
20164 #define HAVE_DEV_PTMX 1
20168 echo "$as_me:$LINENO: result: no" >&5
20169 echo "${ECHO_T}no" >&6
20172 echo "$as_me:$LINENO: checking for pid_t" >&5
20173 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20174 if test "${ac_cv_type_pid_t+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 cat >conftest.
$ac_ext <<_ACEOF
20180 cat confdefs.h
>>conftest.
$ac_ext
20181 cat >>conftest.
$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20183 $ac_includes_default
20189 if (sizeof (pid_t))
20195 rm -f conftest.
$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>conftest.er1
20199 grep -v '^ *+' conftest.er1
>conftest.err
20201 cat conftest.err
>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try
='test -z "$ac_c_werror_flag"
20205 || test ! -s conftest.err'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try
='test -s conftest.$ac_objext'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20217 ac_cv_type_pid_t
=yes
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.
$ac_ext >&5
20222 ac_cv_type_pid_t
=no
20224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20226 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20227 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20228 if test $ac_cv_type_pid_t = yes; then
20232 cat >>confdefs.h
<<_ACEOF
20240 for ac_header
in unistd.h vfork.h
20242 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20244 echo "$as_me:$LINENO: checking for $ac_header" >&5
20245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20252 # Is the header compilable?
20253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20255 cat >conftest.
$ac_ext <<_ACEOF
20258 cat confdefs.h
>>conftest.
$ac_ext
20259 cat >>conftest.
$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 $ac_includes_default
20262 #include <$ac_header>
20264 rm -f conftest.
$ac_objext
20265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266 (eval $ac_compile) 2>conftest.er1
20268 grep -v '^ *+' conftest.er1
>conftest.err
20270 cat conftest.err
>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try
='test -z "$ac_c_werror_flag"
20274 || test ! -s conftest.err'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } &&
20280 { ac_try
='test -s conftest.$ac_objext'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_header_compiler
=yes
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.
$ac_ext >&5
20291 ac_header_compiler
=no
20293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20295 echo "${ECHO_T}$ac_header_compiler" >&6
20297 # Is the header present?
20298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20300 cat >conftest.
$ac_ext <<_ACEOF
20303 cat confdefs.h
>>conftest.
$ac_ext
20304 cat >>conftest.
$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306 #include <$ac_header>
20308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20309 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20311 grep -v '^ *+' conftest.er1
>conftest.err
20313 cat conftest.err
>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } >/dev
/null
; then
20316 if test -s conftest.err
; then
20317 ac_cpp_err
=$ac_c_preproc_warn_flag
20318 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20325 if test -z "$ac_cpp_err"; then
20326 ac_header_preproc
=yes
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.
$ac_ext >&5
20331 ac_header_preproc
=no
20333 rm -f conftest.err conftest.
$ac_ext
20334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20335 echo "${ECHO_T}$ac_header_preproc" >&6
20337 # So? What about this header?
20338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20344 ac_header_preproc
=yes
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20361 ## ------------------------------------------ ##
20362 ## Report this to the AC_PACKAGE_NAME lists. ##
20363 ## ------------------------------------------ ##
20366 sed "s/^/$as_me: WARNING: /" >&2
20369 echo "$as_me:$LINENO: checking for $ac_header" >&5
20370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 eval "$as_ac_Header=\$ac_header_preproc"
20376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20381 cat >>confdefs.h
<<_ACEOF
20382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20391 for ac_func
in fork vfork
20393 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20394 echo "$as_me:$LINENO: checking for $ac_func" >&5
20395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20396 if eval "test \"\${$as_ac_var+set}\" = set"; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20399 cat >conftest.
$ac_ext <<_ACEOF
20402 cat confdefs.h
>>conftest.
$ac_ext
20403 cat >>conftest.
$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407 #define $ac_func innocuous_$ac_func
20409 /* System header to define __stub macros and hopefully few prototypes,
20410 which can conflict with char $ac_func (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
20415 # include <limits.h>
20417 # include <assert.h>
20422 /* Override any gcc2 internal prototype to avoid an error. */
20427 /* We use char because int might match the return type of a gcc2
20428 builtin and then its argument prototype would still apply. */
20430 /* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
20433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20436 char (*f) () = $ac_func;
20445 return f != $ac_func;
20450 rm -f conftest.
$ac_objext conftest
$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452 (eval $ac_link) 2>conftest.er1
20454 grep -v '^ *+' conftest.er1
>conftest.err
20456 cat conftest.err
>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try
='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try
='test -s conftest$ac_exeext'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 eval "$as_ac_var=yes"
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.
$ac_ext >&5
20477 eval "$as_ac_var=no"
20479 rm -f conftest.err conftest.
$ac_objext \
20480 conftest
$ac_exeext conftest.
$ac_ext
20482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20484 if test `eval echo '${'$as_ac_var'}'` = yes; then
20485 cat >>confdefs.h
<<_ACEOF
20486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20492 if test "x$ac_cv_func_fork" = xyes
; then
20493 echo "$as_me:$LINENO: checking for working fork" >&5
20494 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20495 if test "${ac_cv_func_fork_works+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 if test "$cross_compiling" = yes; then
20499 ac_cv_func_fork_works
=cross
20501 cat >conftest.
$ac_ext <<_ACEOF
20502 /* By Ruediger Kuhlmann. */
20503 #include <sys/types.h>
20505 # include <unistd.h>
20507 /* Some systems only have a dummy stub for fork() */
20515 rm -f conftest
$ac_exeext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20517 (eval $ac_link) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; }; then
20526 ac_cv_func_fork_works
=yes
20528 echo "$as_me: program exited with status $ac_status" >&5
20529 echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.
$ac_ext >&5
20532 ( exit $ac_status )
20533 ac_cv_func_fork_works
=no
20535 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20538 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20539 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20542 ac_cv_func_fork_works
=$ac_cv_func_fork
20544 if test "x$ac_cv_func_fork_works" = xcross
; then
20546 *-*-amigaos* |
*-*-msdosdjgpp*)
20547 # Override, as these systems have only a dummy fork() stub
20548 ac_cv_func_fork_works
=no
20551 ac_cv_func_fork_works
=yes
20554 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20555 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20557 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20558 if test "x$ac_cv_func_vfork" = xyes
; then
20559 echo "$as_me:$LINENO: checking for working vfork" >&5
20560 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20561 if test "${ac_cv_func_vfork_works+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 if test "$cross_compiling" = yes; then
20565 ac_cv_func_vfork_works
=cross
20567 cat >conftest.
$ac_ext <<_ACEOF
20570 cat confdefs.h
>>conftest.
$ac_ext
20571 cat >>conftest.
$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 /* Thanks to Paul Eggert for this test. */
20575 #include <stdlib.h>
20576 #include <sys/types.h>
20577 #include <sys/stat.h>
20578 #include <sys/wait.h>
20580 # include <unistd.h>
20583 # include <vfork.h>
20585 /* On some sparc systems, changes by the child to local and incoming
20586 argument registers are propagated back to the parent. The compiler
20587 is told about this with #include <vfork.h>, but some compilers
20588 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20589 static variable whose address is put into a register that is
20590 clobbered by the vfork. */
20593 sparc_address_test (int arg)
20595 sparc_address_test (arg) int arg;
20598 static pid_t child;
20616 pid_t parent = getpid ();
20619 sparc_address_test (0);
20624 /* Here is another test for sparc vfork register problems. This
20625 test uses lots of local variables, at least as many local
20626 variables as main has allocated so far including compiler
20627 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20628 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20629 reuse the register of parent for one of the local variables,
20630 since it will think that parent can't possibly be used any more
20631 in this routine. Assigning to the local variable will thus
20632 munge parent in the parent process. */
20634 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20635 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20636 /* Convince the compiler that p..p7 are live; otherwise, it might
20637 use the same hardware register for all 8 local variables. */
20638 if (p != p1 || p != p2 || p != p3 || p != p4
20639 || p != p5 || p != p6 || p != p7)
20642 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20643 from child file descriptors. If the child closes a descriptor
20644 before it execs or exits, this munges the parent's descriptor
20645 as well. Test for this by closing stdout in the child. */
20646 _exit(close(fileno(stdout)) != 0);
20651 while (wait(&status) != child)
20654 /* Was there some problem with vforking? */
20657 /* Did the child fail? (This shouldn't happen.) */
20660 /* Did the vfork/compiler bug occur? */
20661 || parent != getpid()
20663 /* Did the file descriptor bug occur? */
20664 || fstat(fileno(stdout), &st) != 0
20669 rm -f conftest
$ac_exeext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671 (eval $ac_link) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_func_vfork_works
=yes
20682 echo "$as_me: program exited with status $ac_status" >&5
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.
$ac_ext >&5
20686 ( exit $ac_status )
20687 ac_cv_func_vfork_works
=no
20689 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20692 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20693 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20696 if test "x$ac_cv_func_fork_works" = xcross
; then
20697 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20698 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20699 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20702 if test "x$ac_cv_func_vfork_works" = xyes
; then
20704 cat >>confdefs.h
<<\_ACEOF
20705 #define HAVE_WORKING_VFORK 1
20710 cat >>confdefs.h
<<\_ACEOF
20715 if test "x$ac_cv_func_fork_works" = xyes
; then
20717 cat >>confdefs.h
<<\_ACEOF
20718 #define HAVE_WORKING_FORK 1
20724 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20725 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20726 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20729 cat >conftest.
$ac_ext <<_ACEOF
20732 cat confdefs.h
>>conftest.
$ac_ext
20733 cat >>conftest.
$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 #include <langinfo.h>
20739 char* cs = nl_langinfo(CODESET);
20744 rm -f conftest.
$ac_objext conftest
$ac_exeext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746 (eval $ac_link) 2>conftest.er1
20748 grep -v '^ *+' conftest.er1
>conftest.err
20750 cat conftest.err
>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try
='test -z "$ac_c_werror_flag"
20754 || test ! -s conftest.err'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try
='test -s conftest$ac_exeext'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 emacs_cv_langinfo_codeset
=yes
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.
$ac_ext >&5
20771 emacs_cv_langinfo_codeset
=no
20773 rm -f conftest.err conftest.
$ac_objext \
20774 conftest
$ac_exeext conftest.
$ac_ext
20777 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20778 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20779 if test $emacs_cv_langinfo_codeset = yes; then
20781 cat >>confdefs.h
<<\_ACEOF
20782 #define HAVE_LANGINFO_CODESET 1
20787 echo "$as_me:$LINENO: checking for size_t" >&5
20788 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20789 if test "${ac_cv_type_size_t+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 cat >conftest.
$ac_ext <<_ACEOF
20795 cat confdefs.h
>>conftest.
$ac_ext
20796 cat >>conftest.
$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 $ac_includes_default
20804 if (sizeof (size_t))
20810 rm -f conftest.
$ac_objext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>conftest.er1
20814 grep -v '^ *+' conftest.er1
>conftest.err
20816 cat conftest.err
>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try
='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try
='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_type_size_t
=yes
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.
$ac_ext >&5
20837 ac_cv_type_size_t
=no
20839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20841 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20842 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20843 if test $ac_cv_type_size_t = yes; then
20845 cat >>confdefs.h
<<_ACEOF
20846 #define HAVE_SIZE_T 1
20853 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20854 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20855 if test "${ac_cv_type_mbstate_t+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 cat >conftest.
$ac_ext <<_ACEOF
20861 cat confdefs.h
>>conftest.
$ac_ext
20862 cat >>conftest.
$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 $ac_includes_default
20865 # include <wchar.h>
20869 mbstate_t x; return sizeof x;
20874 rm -f conftest.
$ac_objext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876 (eval $ac_compile) 2>conftest.er1
20878 grep -v '^ *+' conftest.er1
>conftest.err
20880 cat conftest.err
>&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try
='test -z "$ac_c_werror_flag"
20884 || test ! -s conftest.err'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try
='test -s conftest.$ac_objext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_type_mbstate_t
=yes
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.
$ac_ext >&5
20901 ac_cv_type_mbstate_t
=no
20903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20905 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20906 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20907 if test $ac_cv_type_mbstate_t = yes; then
20909 cat >>confdefs.h
<<\_ACEOF
20910 #define HAVE_MBSTATE_T 1
20915 cat >>confdefs.h
<<\_ACEOF
20916 #define mbstate_t int
20921 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20922 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20923 if test "${emacs_cv_c_restrict+set}" = set; then
20924 echo $ECHO_N "(cached) $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 void fred (int *restrict x);
20941 rm -f conftest.
$ac_objext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20943 (eval $ac_compile) 2>conftest.er1
20945 grep -v '^ *+' conftest.er1
>conftest.err
20947 cat conftest.err
>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
20950 { ac_try
='test -z "$ac_c_werror_flag"
20951 || test ! -s conftest.err'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try
='test -s conftest.$ac_objext'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 emacs_cv_c_restrict
=yes
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.
$ac_ext >&5
20968 cat >conftest.
$ac_ext <<_ACEOF
20971 cat confdefs.h
>>conftest.
$ac_ext
20972 cat >>conftest.
$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 void fred (int *__restrict x);
20983 rm -f conftest.
$ac_objext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20985 (eval $ac_compile) 2>conftest.er1
20987 grep -v '^ *+' conftest.er1
>conftest.err
20989 cat conftest.err
>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } &&
20992 { ac_try
='test -z "$ac_c_werror_flag"
20993 || test ! -s conftest.err'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try
='test -s conftest.$ac_objext'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 emacs_cv_c_restrict
=__restrict
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.
$ac_ext >&5
21010 emacs_cv_c_restrict
=no
21012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21016 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21017 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21018 case "$emacs_cv_c_restrict" in
21019 yes) emacs_restrict
=restrict
;;
21020 no
) emacs_restrict
="";;
21021 *) emacs_restrict
="$emacs_cv_c_restrict";;
21023 if test "$emacs_restrict" != __restrict
; then
21025 cat >>confdefs.h
<<_ACEOF
21026 #define __restrict $emacs_restrict
21031 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21032 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21033 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 cat >conftest.
$ac_ext <<_ACEOF
21039 cat confdefs.h
>>conftest.
$ac_ext
21040 cat >>conftest.
$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 void fred (int x[__restrict]);
21051 rm -f conftest.
$ac_objext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21053 (eval $ac_compile) 2>conftest.er1
21055 grep -v '^ *+' conftest.er1
>conftest.err
21057 cat conftest.err
>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try
='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try
='test -s conftest.$ac_objext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 emacs_cv_c_restrict_arr
=yes
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.
$ac_ext >&5
21078 emacs_cv_c_restrict_arr
=no
21080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21082 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21083 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21084 if test "$emacs_cv_c_restrict_arr" = yes; then
21086 cat >>confdefs.h
<<\_ACEOF
21087 #define __restrict_arr __restrict
21094 # Set up the CFLAGS for real compilation, so we can substitute it.
21095 CFLAGS
="$REAL_CFLAGS"
21096 CPPFLAGS
="$REAL_CPPFLAGS"
21098 #### Find out which version of Emacs this is.
21099 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21100 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21101 if test x
"${version}" = x
; then
21102 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21103 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21104 { (exit 1); exit 1; }; }
21107 ### Specify what sort of things we'll be editing into Makefile and config.h.
21108 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21144 cat >>confdefs.h
<<_ACEOF
21145 #define EMACS_CONFIGURATION "${canonical}"
21149 cat >>confdefs.h
<<_ACEOF
21150 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21154 cat >>confdefs.h
<<_ACEOF
21155 #define config_machfile "${machfile}"
21159 cat >>confdefs.h
<<_ACEOF
21160 #define config_opsysfile "${opsysfile}"
21164 cat >>confdefs.h
<<_ACEOF
21165 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21169 cat >>confdefs.h
<<_ACEOF
21170 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21174 cat >>confdefs.h
<<_ACEOF
21175 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21179 cat >>confdefs.h
<<_ACEOF
21180 #define UNEXEC_SRC ${UNEXEC_SRC}
21184 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21186 cat >>confdefs.h
<<\_ACEOF
21187 #define HAVE_X_WINDOWS 1
21191 if test "${USE_X_TOOLKIT}" != "none" ; then
21193 cat >>confdefs.h
<<\_ACEOF
21194 #define USE_X_TOOLKIT 1
21198 if test "${HAVE_X11}" = "yes" ; then
21200 cat >>confdefs.h
<<\_ACEOF
21205 if test "${HAVE_XFREE386}" = "yes" ; then
21207 cat >>confdefs.h
<<\_ACEOF
21208 #define HAVE_XFREE386 1
21212 if test "${HAVE_MENUS}" = "yes" ; then
21214 cat >>confdefs.h
<<\_ACEOF
21215 #define HAVE_MENUS 1
21219 if test "${GNU_MALLOC}" = "yes" ; then
21221 cat >>confdefs.h
<<\_ACEOF
21222 #define GNU_MALLOC 1
21226 if test "${REL_ALLOC}" = "yes" ; then
21228 cat >>confdefs.h
<<\_ACEOF
21229 #define REL_ALLOC 1
21238 #### Report on what we decided to do.
21239 #### Report GTK as a toolkit, even if it doesn't use Xt.
21240 #### It makes printing result more understandable as using GTK sets
21241 #### toolkit_scroll_bars to yes by default.
21242 if test "${HAVE_GTK}" = "yes"; then
21247 Configured for \`${canonical}'.
21249 Where should the build process find the source code? ${srcdir}
21250 What operating system and machine description files should Emacs use?
21251 \`${opsysfile}' and \`${machfile}'
21252 What compiler should emacs be built with? ${CC} ${CFLAGS}
21253 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21254 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21255 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21256 What window system should Emacs use? ${window_system}
21257 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21259 if test -n "${x_includes}"; then
21260 echo " Where do we find X Windows header files? ${x_includes}"
21262 echo " Where do we find X Windows header files? Standard dirs"
21264 if test -n "${x_libraries}"; then
21265 echo " Where do we find X Windows libraries? ${x_libraries}"
21267 echo " Where do we find X Windows libraries? Standard dirs"
21270 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21271 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21272 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21273 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21274 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21275 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21276 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21279 # Remove any trailing slashes in these variables.
21280 test "${prefix}" != NONE
&&
21281 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21282 test "${exec_prefix}" != NONE
&&
21283 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21285 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21286 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21287 ## from Makefile.c can correctly provide the arg `-traditional' to the
21290 cat >conftest.
$ac_ext <<_ACEOF
21293 cat confdefs.h
>>conftest.
$ac_ext
21294 cat >>conftest.
$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21299 $EGREP "yes..yes" >/dev
/null
2>&1; then
21300 CPP_NEED_TRADITIONAL
=no
21302 CPP_NEED_TRADITIONAL
=yes
21307 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"
21308 ac_config_commands
="$ac_config_commands default"
21309 cat >confcache
<<\_ACEOF
21310 # This file is a shell script that caches the results of configure
21311 # tests run on this system so they can be shared between configure
21312 # scripts and configure runs, see configure's option --config-cache.
21313 # It is not useful on other systems. If it contains results you don't
21314 # want to keep, you may remove or edit it.
21316 # config.status only pays attention to the cache file if you give it
21317 # the --recheck option to rerun configure.
21319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21321 # following values.
21325 # The following way of writing the cache mishandles newlines in values,
21326 # but we know of no workaround that is simple, portable, and efficient.
21327 # So, don't put newlines in cache variables' values.
21328 # Ultrix sh set writes to stderr and can't be redirected directly,
21329 # and sets the high bit in the cache file unless we assign to the vars.
21332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21334 # `set' does not quote correctly, so add quotes (double-quote
21335 # substitution turns \\\\ into \\, and sed turns \\ into \).
21338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21341 # `set' quotes correctly as required by POSIX, so do not add quotes.
21343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21354 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21355 if test -w $cache_file; then
21356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21357 cat confcache
>$cache_file
21359 echo "not updating unwritable cache $cache_file"
21364 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21365 # Let make expand exec_prefix.
21366 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21368 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21369 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21370 # trailing colons and then remove the whole line if VPATH becomes empty
21371 # (actually we leave an empty line to preserve line numbers).
21372 if test "x$srcdir" = x.
; then
21373 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21374 s/:*\$(srcdir):*/:/;
21375 s/:*\${srcdir}:*/:/;
21377 s/^\([^=]*=[ ]*\):*/\1/;
21383 DEFS
=-DHAVE_CONFIG_H
21387 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21388 # 1. Remove the extension, and $U if already installed.
21389 ac_i
=`echo "$ac_i" |
21390 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21392 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21393 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21395 LIBOBJS
=$ac_libobjs
21397 LTLIBOBJS
=$ac_ltlibobjs
21401 : ${CONFIG_STATUS=./config.status}
21402 ac_clean_files_save
=$ac_clean_files
21403 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21404 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21405 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21406 cat >$CONFIG_STATUS <<_ACEOF
21408 # Generated by $as_me.
21409 # Run this file to recreate the current configuration.
21410 # Compiler output produced by configure, useful for debugging
21411 # configure, is in config.log if it exists.
21414 ac_cs_recheck=false
21416 SHELL=\${CONFIG_SHELL-$SHELL}
21419 cat >>$CONFIG_STATUS <<\_ACEOF
21420 ## --------------------- ##
21421 ## M4sh Initialization. ##
21422 ## --------------------- ##
21424 # Be Bourne compatible
21425 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21428 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21429 # is contrary to our usage. Disable this feature.
21430 alias -g '${1+"$@"}'='"$@"'
21431 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21434 DUALCASE
=1; export DUALCASE
# for MKS sh
21436 # Support unset when possible.
21437 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21444 # Work around bugs in pre-3.0 UWIN ksh.
21445 $as_unset ENV MAIL MAILPATH
21452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21454 LC_TELEPHONE LC_TIME
21456 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21457 eval $as_var=C
; export $as_var
21463 # Required to use basename.
21464 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21470 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21471 as_basename
=basename
21477 # Name of the executable.
21478 as_me
=`$as_basename "$0" ||
21479 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21480 X"$0" : 'X\(//\)$' \| \
21481 X"$0" : 'X\(/\)$' \| \
21482 . : '\(.\)' 2>/dev/null ||
21484 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21485 /^X\/\(\/\/\)$/{ s//\1/; q; }
21486 /^X\/\(\/\).*/{ s//\1/; q; }
21490 # PATH needs CR, and LINENO needs CR and PATH.
21491 # Avoid depending upon Character Ranges.
21492 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21493 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21494 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21495 as_cr_digits
='0123456789'
21496 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21498 # The user is always right.
21499 if test "${PATH_SEPARATOR+set}" != set; then
21500 echo "#! /bin/sh" >conf$$.sh
21501 echo "exit 0" >>conf$$.sh
21503 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21512 as_lineno_1
=$LINENO
21513 as_lineno_2
=$LINENO
21514 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21515 test "x$as_lineno_1" != "x$as_lineno_2" &&
21516 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21517 # Find who we are. Look in the path if we contain no path at all
21520 *[\\/]* ) as_myself
=$0 ;;
21521 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21522 for as_dir
in $PATH
21525 test -z "$as_dir" && as_dir
=.
21526 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21531 # We did not find ourselves, most probably we were run as `sh COMMAND'
21532 # in which case we are not to be found in the path.
21533 if test "x$as_myself" = x
; then
21536 if test ! -f "$as_myself"; then
21537 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21538 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21539 { (exit 1); exit 1; }; }
21541 case $CONFIG_SHELL in
21543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21544 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21547 test -z "$as_dir" && as_dir
=.
21548 for as_base
in sh bash ksh sh5
; do
21551 if ("$as_dir/$as_base" -c '
21552 as_lineno_1=$LINENO
21553 as_lineno_2=$LINENO
21554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21555 test "x$as_lineno_1" != "x$as_lineno_2" &&
21556 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21557 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21558 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21559 CONFIG_SHELL
=$as_dir/$as_base
21560 export CONFIG_SHELL
21561 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21570 # uniformly replaced by the line number. The first 'sed' inserts a
21571 # line-number line before each line; the second 'sed' does the real
21572 # work. The second script uses 'N' to pair each line-number line
21573 # with the numbered line, and appends trailing '-' during
21574 # substitution so that $LINENO is not a special case at line end.
21575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21576 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21577 sed '=' <$as_myself |
21582 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21585 s,^['$as_cr_digits']*\n,,
21586 ' >$as_me.lineno
&&
21587 chmod +x
$as_me.lineno ||
21588 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21589 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21590 { (exit 1); exit 1; }; }
21592 # Don't try to exec as it changes $[0], causing all sort of problems
21593 # (the dirname of $[0] is not the place where we might find the
21594 # original and so on. Autoconf is especially sensible to this).
21596 # Exit status is that of the last command.
21601 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21602 *c
*,-n*) ECHO_N
= ECHO_C
='
21604 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21605 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21608 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21614 rm -f conf$$ conf$$.exe conf$$.
file
21616 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21617 # We could just check for DJGPP; but this test a) works b) is more generic
21618 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21619 if test -f conf$$.exe
; then
21620 # Don't use ln at all; we don't have any links
21625 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21630 rm -f conf$$ conf$$.exe conf$$.
file
21632 if mkdir
-p .
2>/dev
/null
; then
21635 test -d .
/-p && rmdir .
/-p
21639 as_executable_p
="test -f"
21641 # Sed expression to map a string onto a valid CPP name.
21642 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21644 # Sed expression to map a string onto a valid variable name.
21645 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21649 # We need space, tab and new line, in precisely that order.
21659 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21660 # report actual input values of CONFIG_FILES etc. instead of their
21661 # values after options handling. Logging --version etc. is OK.
21665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21666 ## Running $as_me. ##
21671 This file was extended by $as_me, which was
21672 generated by GNU Autoconf 2.59. Invocation command line was
21674 CONFIG_FILES = $CONFIG_FILES
21675 CONFIG_HEADERS = $CONFIG_HEADERS
21676 CONFIG_LINKS = $CONFIG_LINKS
21677 CONFIG_COMMANDS = $CONFIG_COMMANDS
21681 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21685 # Files that config.status was made for.
21686 if test -n "$ac_config_files"; then
21687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21690 if test -n "$ac_config_headers"; then
21691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21694 if test -n "$ac_config_links"; then
21695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21698 if test -n "$ac_config_commands"; then
21699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21702 cat >>$CONFIG_STATUS <<\_ACEOF
21705 \`$as_me' instantiates files from templates according to the
21706 current configuration.
21708 Usage: $0 [OPTIONS] [FILE]...
21710 -h, --help print this help, then exit
21711 -V, --version print version number, then exit
21712 -q, --quiet do not print progress messages
21713 -d, --debug don't remove temporary files
21714 --recheck update $as_me by reconfiguring in the same conditions
21715 --file=FILE[:TEMPLATE]
21716 instantiate the configuration file FILE
21717 --header=FILE[:TEMPLATE]
21718 instantiate the configuration header FILE
21720 Configuration files:
21723 Configuration headers:
21726 Configuration commands:
21729 Report bugs to <bug-autoconf@gnu.org>."
21732 cat >>$CONFIG_STATUS <<_ACEOF
21735 configured by $0, generated by GNU Autoconf 2.59,
21736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21738 Copyright (C) 2003 Free Software Foundation, Inc.
21739 This config.status script is free software; the Free Software Foundation
21740 gives unlimited permission to copy, distribute and modify it."
21745 cat >>$CONFIG_STATUS <<\_ACEOF
21746 # If no file are specified by the user, then we need to provide default
21747 # value. By we need to know if files were specified by the user.
21753 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21754 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21762 *) # This is not an option, so the user has probably given explicit
21765 ac_need_defaults
=false
;;
21769 # Handling of the options.
21771 cat >>$CONFIG_STATUS <<\_ACEOF
21772 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21774 --version |
--vers* |
-V )
21775 echo "$ac_cs_version"; exit 0 ;;
21777 # Conflict between --help and --header
21778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21779 Try \`$0 --help' for more information." >&5
21780 echo "$as_me: error: ambiguous option: $1
21781 Try \`$0 --help' for more information." >&2;}
21782 { (exit 1); exit 1; }; };;
21783 --help |
--hel |
-h )
21784 echo "$ac_cs_usage"; exit 0 ;;
21785 --debug |
--d* |
-d )
21787 --file |
--fil |
--fi |
--f )
21789 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21790 ac_need_defaults
=false
;;
21791 --header |
--heade |
--head |
--hea )
21793 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21794 ac_need_defaults
=false
;;
21795 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21796 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21799 # This is an error.
21800 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21801 Try \`$0 --help' for more information." >&5
21802 echo "$as_me: error: unrecognized option: $1
21803 Try \`$0 --help' for more information." >&2;}
21804 { (exit 1); exit 1; }; } ;;
21806 *) ac_config_targets
="$ac_config_targets $1" ;;
21812 ac_configure_extra_args
=
21814 if $ac_cs_silent; then
21816 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21820 cat >>$CONFIG_STATUS <<_ACEOF
21821 if \$ac_cs_recheck; then
21822 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21823 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21828 cat >>$CONFIG_STATUS <<_ACEOF
21830 # INIT-COMMANDS section.
21833 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21839 cat >>$CONFIG_STATUS <<\_ACEOF
21840 for ac_config_target
in $ac_config_targets
21842 case "$ac_config_target" in
21843 # Handling of arguments.
21844 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21845 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21846 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
21847 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
21848 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
21849 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21850 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
21851 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
21852 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
21853 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
21854 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21855 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21857 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21858 { (exit 1); exit 1; }; };;
21862 # If the user did not use the arguments to specify the items to instantiate,
21863 # then the envvar interface is used. Set only those that are not.
21864 # We use the long form for the default assignment because of an extremely
21865 # bizarre bug on SunOS 4.1.3.
21866 if $ac_need_defaults; then
21867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21872 # Have a temporary directory for convenience. Make it in the build tree
21873 # simply because there is no reason to put it here, and in addition,
21874 # creating and moving files from /tmp can sometimes cause problems.
21875 # Create a temporary directory, and hook for its removal unless debugging.
21878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21879 trap '{ (exit 1); exit 1; }' 1 2 13 15
21882 # Create a (secure) tmp directory for tmp files.
21885 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21886 test -n "$tmp" && test -d "$tmp"
21889 tmp
=.
/confstat$$
-$RANDOM
21890 (umask 077 && mkdir
$tmp)
21893 echo "$me: cannot create a temporary directory in ." >&2
21894 { (exit 1); exit 1; }
21899 cat >>$CONFIG_STATUS <<_ACEOF
21902 # CONFIG_FILES section.
21905 # No need to generate the scripts if there are no CONFIG_FILES.
21906 # This happens for instance when ./config.status config.h
21907 if test -n "\$CONFIG_FILES"; then
21908 # Protect against being on the right side of a sed subst in config.status.
21909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21911 s,@SHELL@,$SHELL,;t t
21912 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21913 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21914 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21915 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21916 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21917 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21918 s,@exec_prefix@,$exec_prefix,;t t
21919 s,@prefix@,$prefix,;t t
21920 s,@program_transform_name@,$program_transform_name,;t t
21921 s,@bindir@,$bindir,;t t
21922 s,@sbindir@,$sbindir,;t t
21923 s,@libexecdir@,$libexecdir,;t t
21924 s,@datadir@,$datadir,;t t
21925 s,@sysconfdir@,$sysconfdir,;t t
21926 s,@sharedstatedir@,$sharedstatedir,;t t
21927 s,@localstatedir@,$localstatedir,;t t
21928 s,@libdir@,$libdir,;t t
21929 s,@includedir@,$includedir,;t t
21930 s,@oldincludedir@,$oldincludedir,;t t
21931 s,@infodir@,$infodir,;t t
21932 s,@mandir@,$mandir,;t t
21933 s,@build_alias@,$build_alias,;t t
21934 s,@host_alias@,$host_alias,;t t
21935 s,@target_alias@,$target_alias,;t t
21936 s,@DEFS@,$DEFS,;t t
21937 s,@ECHO_C@,$ECHO_C,;t t
21938 s,@ECHO_N@,$ECHO_N,;t t
21939 s,@ECHO_T@,$ECHO_T,;t t
21940 s,@LIBS@,$LIBS,;t t
21941 s,@MAINT@,$MAINT,;t t
21942 s,@build@,$build,;t t
21943 s,@build_cpu@,$build_cpu,;t t
21944 s,@build_vendor@,$build_vendor,;t t
21945 s,@build_os@,$build_os,;t t
21946 s,@host@,$host,;t t
21947 s,@host_cpu@,$host_cpu,;t t
21948 s,@host_vendor@,$host_vendor,;t t
21949 s,@host_os@,$host_os,;t t
21951 s,@CFLAGS@,$CFLAGS,;t t
21952 s,@LDFLAGS@,$LDFLAGS,;t t
21953 s,@CPPFLAGS@,$CPPFLAGS,;t t
21954 s,@ac_ct_CC@,$ac_ct_CC,;t t
21955 s,@EXEEXT@,$EXEEXT,;t t
21956 s,@OBJEXT@,$OBJEXT,;t t
21957 s,@LN_S@,$LN_S,;t t
21959 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21960 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21961 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21962 s,@RANLIB@,$RANLIB,;t t
21963 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21964 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21965 s,@EGREP@,$EGREP,;t t
21966 s,@LIBSOUND@,$LIBSOUND,;t t
21967 s,@SET_MAKE@,$SET_MAKE,;t t
21968 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21969 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21970 s,@GTK_LIBS@,$GTK_LIBS,;t t
21971 s,@ALLOCA@,$ALLOCA,;t t
21972 s,@liblockfile@,$liblockfile,;t t
21973 s,@LIBOBJS@,$LIBOBJS,;t t
21974 s,@NEED_SETGID@,$NEED_SETGID,;t t
21975 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21976 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21977 s,@version@,$version,;t t
21978 s,@configuration@,$configuration,;t t
21979 s,@canonical@,$canonical,;t t
21980 s,@srcdir@,$srcdir,;t t
21981 s,@lispdir@,$lispdir,;t t
21982 s,@locallisppath@,$locallisppath,;t t
21983 s,@lisppath@,$lisppath,;t t
21984 s,@x_default_search_path@,$x_default_search_path,;t t
21985 s,@etcdir@,$etcdir,;t t
21986 s,@archlibdir@,$archlibdir,;t t
21987 s,@docdir@,$docdir,;t t
21988 s,@bitmapdir@,$bitmapdir,;t t
21989 s,@gamedir@,$gamedir,;t t
21990 s,@gameuser@,$gameuser,;t t
21991 s,@c_switch_system@,$c_switch_system,;t t
21992 s,@c_switch_machine@,$c_switch_machine,;t t
21993 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21994 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21995 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21996 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21997 s,@machfile@,$machfile,;t t
21998 s,@opsysfile@,$opsysfile,;t t
21999 s,@carbon_appdir@,$carbon_appdir,;t t
22000 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22005 cat >>$CONFIG_STATUS <<\_ACEOF
22006 # Split the substitutions into bite-sized pieces for seds with
22007 # small command number limits, like on Digital OSF/1 and HP-UX.
22008 ac_max_sed_lines
=48
22009 ac_sed_frag
=1 # Number of current file.
22010 ac_beg
=1 # First line for current file.
22011 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22014 while $ac_more_lines; do
22015 if test $ac_beg -gt 1; then
22016 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22018 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22020 if test ! -s $tmp/subs.frag
; then
22021 ac_more_lines
=false
22023 # The purpose of the label and of the branching condition is to
22024 # speed up the sed processing (if there are no `@' at all, there
22025 # is no need to browse any of the substitutions).
22026 # These are the two extra sed commands mentioned above.
22028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22029 if test -z "$ac_sed_cmds"; then
22030 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22032 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22034 ac_sed_frag
=`expr $ac_sed_frag + 1`
22036 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22039 if test -z "$ac_sed_cmds"; then
22042 fi # test -n "$CONFIG_FILES"
22045 cat >>$CONFIG_STATUS <<\_ACEOF
22046 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22049 - |
*:- |
*:-:* ) # input from stdin
22051 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22052 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22053 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22054 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22055 * ) ac_file_in
=$ac_file.
in ;;
22058 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22059 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$ac_file" : 'X\(//\)[^/]' \| \
22062 X"$ac_file" : 'X\(//\)$' \| \
22063 X"$ac_file" : 'X\(/\)' \| \
22064 . : '\(.\)' 2>/dev/null ||
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068 /^X\(\/\/\)$/{ s//\1/; q; }
22069 /^X\(\/\).*/{ s//\1/; q; }
22071 { if $as_mkdir_p; then
22076 while test ! -d "$as_dir"; do
22077 as_dirs
="$as_dir $as_dirs"
22078 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080 X"$as_dir" : 'X\(//\)[^/]' \| \
22081 X"$as_dir" : 'X\(//\)$' \| \
22082 X"$as_dir" : 'X\(/\)' \| \
22083 . : '\(.\)' 2>/dev/null ||
22085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22087 /^X\(\/\/\)$/{ s//\1/; q; }
22088 /^X\(\/\).*/{ s//\1/; q; }
22091 test ! -n "$as_dirs" || mkdir
$as_dirs
22092 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22094 { (exit 1); exit 1; }; }; }
22098 if test "$ac_dir" != .
; then
22099 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22100 # A "../" for each directory in $ac_dir_suffix.
22101 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22103 ac_dir_suffix
= ac_top_builddir
=
22107 .
) # No --srcdir option. We are building in place.
22109 if test -z "$ac_top_builddir"; then
22112 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22114 [\\/]* | ?
:[\\/]* ) # Absolute path.
22115 ac_srcdir
=$srcdir$ac_dir_suffix;
22116 ac_top_srcdir
=$srcdir ;;
22117 *) # Relative path.
22118 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22119 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22122 # Do not use `cd foo && pwd` to compute absolute paths, because
22123 # the directories may not exist.
22125 .
) ac_abs_builddir
="$ac_dir";;
22128 .
) ac_abs_builddir
=`pwd`;;
22129 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22130 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22133 case $ac_abs_builddir in
22134 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22136 case ${ac_top_builddir}.
in
22137 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22138 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22139 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22142 case $ac_abs_builddir in
22143 .
) ac_abs_srcdir
=$ac_srcdir;;
22146 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22147 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22148 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22151 case $ac_abs_builddir in
22152 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22154 case $ac_top_srcdir in
22155 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22156 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22157 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22163 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22164 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22167 if test x
"$ac_file" != x-
; then
22168 { echo "$as_me:$LINENO: creating $ac_file" >&5
22169 echo "$as_me: creating $ac_file" >&6;}
22172 # Let's still pretend it is `configure' which instantiates (i.e., don't
22173 # use $as_me), people would be surprised to read:
22174 # /* config.h. Generated by config.status. */
22175 if test x
"$ac_file" = x-
; then
22178 configure_input
="$ac_file. "
22180 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22181 sed 's,.*/,,'` by configure."
22183 # First look for the input files in the build tree, otherwise in the
22185 ac_file_inputs
=`IFS=:
22186 for f in $ac_file_in; do
22188 -) echo $tmp/stdin ;;
22190 # Absolute (can't be DOS-style, as IFS=:)
22191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22192 echo "$as_me: error: cannot find input file: $f" >&2;}
22193 { (exit 1); exit 1; }; }
22196 if test -f "$f"; then
22199 elif test -f "$srcdir/$f"; then
22204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22205 echo "$as_me: error: cannot find input file: $f" >&2;}
22206 { (exit 1); exit 1; }; }
22209 done` ||
{ (exit 1); exit 1; }
22211 cat >>$CONFIG_STATUS <<_ACEOF
22215 cat >>$CONFIG_STATUS <<\_ACEOF
22217 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22218 s
,@configure_input@
,$configure_input,;t t
22219 s
,@srcdir@
,$ac_srcdir,;t t
22220 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22221 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22222 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22223 s
,@builddir@
,$ac_builddir,;t t
22224 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22225 s
,@top_builddir@
,$ac_top_builddir,;t t
22226 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22227 s
,@INSTALL@
,$ac_INSTALL,;t t
22228 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22230 if test x"$ac_file" != x-; then
22231 mv $tmp/out $ac_file
22239 cat >>$CONFIG_STATUS <<\_ACEOF
22242 # CONFIG_HEADER section.
22245 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22246 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22248 # ac_d sets the value in "#define NAME VALUE" lines.
22249 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22250 ac_dB
='[ ].*$,\1#\2'
22253 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22254 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22255 ac_uB
='$,\1#\2define\3'
22259 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22262 - |
*:- |
*:-:* ) # input from stdin
22264 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22265 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22266 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22267 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22268 * ) ac_file_in
=$ac_file.
in ;;
22271 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22272 echo "$as_me: creating $ac_file" >&6;}
22274 # First look for the input files in the build tree, otherwise in the
22276 ac_file_inputs
=`IFS=:
22277 for f in $ac_file_in; do
22279 -) echo $tmp/stdin ;;
22281 # Absolute (can't be DOS-style, as IFS=:)
22282 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22283 echo "$as_me: error: cannot find input file: $f" >&2;}
22284 { (exit 1); exit 1; }; }
22285 # Do quote $f, to prevent DOS paths from being IFS'd.
22288 if test -f "$f"; then
22291 elif test -f "$srcdir/$f"; then
22296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22297 echo "$as_me: error: cannot find input file: $f" >&2;}
22298 { (exit 1); exit 1; }; }
22301 done` ||
{ (exit 1); exit 1; }
22302 # Remove the trailing spaces.
22303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22307 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22308 # `conftest.undefs', that substitutes the proper values into
22309 # config.h.in to produce config.h. The first handles `#define'
22310 # templates, and the second `#undef' templates.
22311 # And first: Protect against being on the right side of a sed subst in
22312 # config.status. Protect against being in an unquoted here document
22313 # in config.status.
22314 rm -f conftest.defines conftest.undefs
22315 # Using a here document instead of a string reduces the quoting nightmare.
22316 # Putting comments in sed scripts is not portable.
22318 # `end' is used to avoid that the second main sed command (meant for
22319 # 0-ary CPP macros) applies to n-ary macro definitions.
22320 # See the Autoconf documentation for `clear'.
22321 cat >confdef2sed.
sed <<\_ACEOF
22326 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22328 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22331 # If some macros were called several times there might be several times
22332 # the same #defines, which is useless. Nevertheless, we may not want to
22333 # sort them, since we want the *last* AC-DEFINE to be honored.
22334 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22335 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22336 rm -f confdef2sed.sed
22338 # This sed command replaces #undef with comments. This is necessary, for
22339 # example, in the case of _POSIX_SOURCE, which is predefined and required
22340 # on some systems where configure will not decide to define it.
22341 cat >>conftest.undefs <<\_ACEOF
22342 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22345 # Break up conftest.defines because some shells have a limit on the size
22346 # of here documents, and old seds have small limits too (100 cmds).
22347 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22348 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22349 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22350 echo ' :' >>$CONFIG_STATUS
22351 rm -f conftest.tail
22352 while grep . conftest.defines >/dev/null
22354 # Write a limited-size here document to $tmp/defines.sed.
22355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22356 # Speed up: don't consider the non `#define' lines.
22357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22358 # Work around the forget-to-reset-the-flag bug.
22359 echo 't clr' >>$CONFIG_STATUS
22360 echo ': clr' >>$CONFIG_STATUS
22361 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22365 mv $tmp/out $tmp/in
22367 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22368 rm -f conftest.defines
22369 mv conftest.
tail conftest.defines
22371 rm -f conftest.defines
22372 echo ' fi # grep' >>$CONFIG_STATUS
22373 echo >>$CONFIG_STATUS
22375 # Break up conftest.undefs because some shells have a limit on the size
22376 # of here documents, and old seds have small limits too (100 cmds).
22377 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22378 rm -f conftest.
tail
22379 while grep . conftest.undefs
>/dev
/null
22381 # Write a limited-size here document to $tmp/undefs.sed.
22382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22383 # Speed up: don't consider the non
`#undef'
22384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22385 # Work around the forget-to-reset-the-flag bug.
22386 echo 't clr' >>$CONFIG_STATUS
22387 echo ': clr' >>$CONFIG_STATUS
22388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22392 mv $tmp/out $tmp/in
22394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22395 rm -f conftest.undefs
22396 mv conftest.tail conftest.undefs
22398 rm -f conftest.undefs
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22401 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22402 # use $as_me), people would be surprised to read:
22403 # /* config.h. Generated by config.status. */
22404 if test x
"$ac_file" = x-
; then
22405 echo "/* Generated by configure. */" >$tmp/config.h
22407 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22409 cat $tmp/in >>$tmp/config.h
22411 if test x
"$ac_file" != x-
; then
22412 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22413 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22414 echo "$as_me: $ac_file is unchanged" >&6;}
22416 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22418 X"$ac_file" : 'X\(//\)[^/]' \| \
22419 X"$ac_file" : 'X\(//\)$' \| \
22420 X"$ac_file" : 'X\(/\)' \| \
22421 . : '\(.\)' 2>/dev/null ||
22423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22425 /^X\(\/\/\)$/{ s//\1/; q; }
22426 /^X\(\/\).*/{ s//\1/; q; }
22428 { if $as_mkdir_p; then
22433 while test ! -d "$as_dir"; do
22434 as_dirs
="$as_dir $as_dirs"
22435 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22437 X"$as_dir" : 'X\(//\)[^/]' \| \
22438 X"$as_dir" : 'X\(//\)$' \| \
22439 X"$as_dir" : 'X\(/\)' \| \
22440 . : '\(.\)' 2>/dev/null ||
22442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22444 /^X\(\/\/\)$/{ s//\1/; q; }
22445 /^X\(\/\).*/{ s//\1/; q; }
22448 test ! -n "$as_dirs" || mkdir
$as_dirs
22449 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22451 { (exit 1); exit 1; }; }; }
22454 mv $tmp/config.h
$ac_file
22458 rm -f $tmp/config.h
22462 cat >>$CONFIG_STATUS <<\_ACEOF
22465 # CONFIG_COMMANDS section.
22467 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22468 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22469 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22470 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22471 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22472 X"$ac_dest" : 'X\(//\)[^/]' \| \
22473 X"$ac_dest" : 'X\(//\)$' \| \
22474 X"$ac_dest" : 'X\(/\)' \| \
22475 . : '\(.\)' 2>/dev/null ||
22477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22479 /^X\(\/\/\)$/{ s//\1/; q; }
22480 /^X\(\/\).*/{ s//\1/; q; }
22482 { if $as_mkdir_p; then
22487 while test ! -d "$as_dir"; do
22488 as_dirs
="$as_dir $as_dirs"
22489 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$as_dir" : 'X\(//\)[^/]' \| \
22492 X"$as_dir" : 'X\(//\)$' \| \
22493 X"$as_dir" : 'X\(/\)' \| \
22494 . : '\(.\)' 2>/dev/null ||
22496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22498 /^X\(\/\/\)$/{ s//\1/; q; }
22499 /^X\(\/\).*/{ s//\1/; q; }
22502 test ! -n "$as_dirs" || mkdir
$as_dirs
22503 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22505 { (exit 1); exit 1; }; }; }
22509 if test "$ac_dir" != .
; then
22510 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22511 # A "../" for each directory in $ac_dir_suffix.
22512 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22514 ac_dir_suffix
= ac_top_builddir
=
22518 .
) # No --srcdir option. We are building in place.
22520 if test -z "$ac_top_builddir"; then
22523 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22525 [\\/]* | ?
:[\\/]* ) # Absolute path.
22526 ac_srcdir
=$srcdir$ac_dir_suffix;
22527 ac_top_srcdir
=$srcdir ;;
22528 *) # Relative path.
22529 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22530 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22533 # Do not use `cd foo && pwd` to compute absolute paths, because
22534 # the directories may not exist.
22536 .
) ac_abs_builddir
="$ac_dir";;
22539 .
) ac_abs_builddir
=`pwd`;;
22540 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22541 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22544 case $ac_abs_builddir in
22545 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22547 case ${ac_top_builddir}.
in
22548 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22549 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22550 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22553 case $ac_abs_builddir in
22554 .
) ac_abs_srcdir
=$ac_srcdir;;
22557 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22558 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22559 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22562 case $ac_abs_builddir in
22563 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22565 case $ac_top_srcdir in
22566 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22567 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22568 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22574 echo "$as_me: executing $ac_dest commands" >&6;}
22578 ### Make the necessary directories, if they don't exist.
22579 for dir
in etc lisp
; do
22580 test -d ${dir} || mkdir
${dir}
22583 # Build src/Makefile from ${srcdir}/src/Makefile.c
22584 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22585 # This must be done after src/config.h is built, since we rely on that file.
22587 # Now get this: Some word that is part of the ${srcdir} directory name
22588 # or the ${configuration} value might, just might, happen to be an
22589 # identifier like `sun4' or `i386' or something, and be predefined by
22590 # the C preprocessor to some helpful value like 1, or maybe the empty
22591 # string. Needless to say consequent macro substitutions are less
22592 # than conducive to the makefile finding the correct directory.
22593 undefs
="`echo $top_srcdir $configuration $canonical |
22594 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22595 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22598 echo creating src
/epaths.h
22599 ${MAKE-make} epaths-force
22601 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22602 # `..' to `. .' unless invoked with -traditional
22604 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22605 CPPFLAGS
="$CPPFLAGS -traditional"
22608 echo creating lib-src
/Makefile
22610 rm -f junk.c junk1.c junk2.c
22611 sed -e '/start of cpp stuff/q' \
22612 < Makefile.c
> junk1.c
22613 sed -e '1,/start of cpp stuff/d'\
22614 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22615 < Makefile.c
> junk.c
22616 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22617 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22618 cat junk1.c junk2.c
> Makefile.new
22619 rm -f junk.c junk1.c junk2.c
22620 chmod 444 Makefile.new
22621 mv -f Makefile.new Makefile
22624 echo creating src
/Makefile
22626 rm -f junk.c junk1.c junk2.c
22627 sed -e '/start of cpp stuff/q' \
22628 < Makefile.c
> junk1.c
22629 sed -e '1,/start of cpp stuff/d'\
22630 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22631 < Makefile.c
> junk.c
22632 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22633 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22634 cat junk1.c junk2.c
> Makefile.new
22635 rm -f junk.c junk1.c junk2.c
22636 chmod 444 Makefile.new
22637 mv -f Makefile.new Makefile
22640 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22641 echo creating src
/.gdbinit
22642 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22645 # This is how we know whether to re-run configure in certain cases.
22646 touch src
/config.stamp
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22655 { (exit 0); exit 0; }
22657 chmod +x
$CONFIG_STATUS
22658 ac_clean_files
=$ac_clean_files_save
22661 # configure is writing to config.log, and then calls config.status.
22662 # config.status does its own redirection, appending to config.log.
22663 # Unfortunately, on DOS this fails, as config.log is still kept open
22664 # by configure, so config.status won't be able to write to it; its
22665 # output is simply discarded. So we exec the FD to /dev/null,
22666 # effectively closing config.log, so it can be properly (re)opened and
22667 # appended to by config.status. When coming back to configure, we
22668 # need to make the FD available again.
22669 if test "$no_create" != yes; then
22671 ac_config_status_args
=
22672 test "$silent" = yes &&
22673 ac_config_status_args
="$ac_config_status_args --quiet"
22675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22678 # would make configure fail if this is the last instruction.
22679 $ac_cs_success ||
{ (exit 1); exit 1; }