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;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1584 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1585 if test -f $ac_dir/install-sh
; then
1587 ac_install_sh
="$ac_aux_dir/install-sh -c"
1589 elif test -f $ac_dir/install.sh
; then
1591 ac_install_sh
="$ac_aux_dir/install.sh -c"
1593 elif test -f $ac_dir/shtool
; then
1595 ac_install_sh
="$ac_aux_dir/shtool install -c"
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias
=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias
=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias
=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias
=$ac_cv_build_alias
1648 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 configuration
=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine
='' opsys
='' unported
=no
1691 case "${canonical}" in
1696 case "${canonical}" in
1697 alpha
*-*-freebsd*) machine
=alpha
;;
1698 i
[3456]86-*-freebsd*) machine
=intel386
;;
1705 if test -f /usr
/lib
/crti.o
; then
1707 cat >>confdefs.h
<<\_ACEOF
1713 case "${canonical}" in
1714 alpha
*-*-netbsd*) machine
=alpha
;;
1715 i
[3456]86-*-netbsd*) machine
=intel386
;;
1717 # This is somewhat bogus.
1718 machine
=hp9000s300
;;
1719 powerpc-apple-netbsd
*) machine
=macppc
;;
1720 mips-
*-netbsd*) machine
=pmax
;;
1721 mipsel-
*-netbsd*) machine
=pmax
;;
1722 mipseb-
*-netbsd*) machine
=pmax
;;
1723 ns32k-
*-netbsd*) machine
=ns32000
;;
1724 powerpc-
*-netbsd*) machine
=macppc
;;
1725 sparc
*-*-netbsd*) machine
=sparc
;;
1726 vax-
*-netbsd*) machine
=vax
;;
1727 arm-
*-netbsd*) machine
=arm
;;
1734 case "${canonical}" in
1735 alpha
*-*-openbsd*) machine
=alpha
;;
1736 i386-
*-openbsd*) machine
=intel386
;;
1737 m68k-
*-openbsd*) machine
=hp9000s300
;;
1738 mipsel-
*-openbsd*) machine
=pmax
;;
1739 ns32k-
*-openbsd*) machine
=ns32000
;;
1740 sparc-
*-openbsd*) machine
=sparc
;;
1741 vax-
*-openbsd*) machine
=vax
;;
1746 arm-acorn-riscix1.1
* )
1747 machine
=acorn opsys
=riscix1-1
1749 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine
=acorn opsys
=riscix12
1758 case "${canonical}" in
1759 i
[345]86-*-bsdi*) machine
=intel386
;;
1760 sparc-
*-bsdi*) machine
=sparc
;;
1761 powerpc-
*-bsdi*) machine
=macppc
;;
1763 case "${canonical}" in
1764 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1765 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1766 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1767 *-*-bsdi3* ) opsys
=bsdos3
;;
1768 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1779 machine
=alliant4 opsys
=bsd4-2
1782 machine
=alliant-2800 opsys
=bsd4-3
1785 ## Alpha (DEC) machines.
1787 machine
=alpha opsys
=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1790 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP
=/usr
/bin
/cpp
1796 case "${canonical}" in
1797 alpha
*-dec-osf[5-9]*)
1802 alpha
*-*-linux-gnu* )
1803 machine
=alpha opsys
=gnu-linux
1807 machine
=arm opsys
=gnu-linux
1812 machine
=macppc opsys
=gnu-linux
1817 machine
=altos opsys
=usg5-2
1822 machine
=amdahl opsys
=usg5-2-2
1825 ## Apollo, Domain/OS
1827 machine
=apollo opsys
=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1832 machine
=att3b opsys
=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1837 machine
=7300 opsys
=usg5-2-2
1842 machine
=ibmrs6000 opsys
=aix3-2
1847 machine
=dpx2 opsys
=usg5-3
1852 machine
=sps7 opsys
=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd
* )
1862 machine
=celerity opsys
=bsd4-2
1866 ## What operating systems does this chip run that Emacs has been
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1875 mips-compaq-nonstopux
* )
1876 machine
=nonstopux opsys
=nonstopux
1880 *-convex-bsd* |
*-convex-convexos* )
1881 machine
=convex opsys
=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP
="cc -E -P"
1887 i
[3456]86-cubix-sysv* )
1888 machine
=intel386 opsys
=usg5-3
1892 cydra
*-cydrome-sysv* )
1893 machine
=cydra5 opsys
=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1903 machine
=aviion opsys
=dgux4
1905 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine
=aviion opsys
=dgux5-4-3
1910 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1911 machine
=aviion opsys
=dgux5-4r2
1914 machine
=aviion opsys
=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i
[345]86-dg-dguxR4* )
1921 machine
=aviion-intel opsys
=dgux4
1925 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1926 machine
=pmax opsys
=bsd4-2
1928 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1929 machine
=pmax opsys
=bsd4-3
1932 machine
=pmax opsys
=ultrix4-3
1935 machine
=pmax opsys
=osf1
1937 mips-dec-mach_bsd4.3
* )
1938 machine
=pmax opsys
=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1943 machine
=delta opsys
=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1946 if test -s /etc
/167config
1947 then CC
="gnucc -m68040"
1948 else CC
="gnucc -m68881"
1951 if test -z "`type gcc | grep 'not found'`"
1957 m88k-motorola-sysv4
* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine
=delta88k opsys
=usg5-4-2
1964 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1965 machine
=delta88k opsys
=usg5-3
1970 machine
=dual opsys
=usg5-2
1972 m68
*-dual-uniplus* )
1973 machine
=dual opsys
=unipl5-2
1978 machine
=elxsi opsys
=usg5-2
1983 machine
=ns16000 opsys
=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1991 machine
=gould opsys
=bsd4-2
1994 machine
=gould opsys
=bsd4-3
1997 machine
=gould-np1 opsys
=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2006 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2008 NON_GNU_CPP
="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2012 machine
=nh3000 opsys
=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix
)
2016 machine
=nh6000 opsys
=powerunix
2017 NON_GNU_CPP
="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1
-hitachi-hiuxmpp* )
2021 machine
=sr2k opsys
=hiuxmpp
2023 hppa1.1
-hitachi-hiuxwe2* )
2024 machine
=sr2k opsys
=hiuxwe2
2027 xps
*-honeywell-sysv* )
2028 machine
=xps100 opsys
=usg5-2
2031 ## HP 9000 series 200 or 300
2033 machine
=hp9000s300 opsys
=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2041 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2042 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2043 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2044 *) machine
=hp9000s300 opsys
=hpux
;;
2048 ## HP 9000 series 700 and 800, running HP/UX
2050 machine
=hp800 opsys
=hpux
2053 machine
=hp800 opsys
=hpux8
2055 hppa
*-hp-hpux9shr* )
2056 machine
=hp800 opsys
=hpux9shr
2059 machine
=hp800 opsys
=hpux9
2061 hppa
*-hp-hpux10.2
* )
2062 machine
=hp800 opsys
=hpux10-20
2065 machine
=hp800 opsys
=hpux10
2067 hppa
*-hp-hpux1[1-9]* )
2068 machine
=hp800 opsys
=hpux11
2071 hppa
*-*-linux-gnu* )
2072 machine
=hp800 opsys
=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2082 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2083 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2084 *) machine
=hp800 opsys
=hpux10
;;
2088 machine
=hp800 opsys
=nextstep
2093 machine
=orion opsys
=bsd4-2
2095 clipper-orion-bsd
* )
2096 machine
=orion105 opsys
=bsd4-2
2100 i
[3456]86-ibm-aix1.1
* )
2101 machine
=ibmps2-aix opsys
=usg5-2-2
2103 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2104 machine
=ibmps2-aix opsys
=usg5-3
2107 machine
=ibm370aix opsys
=usg5-3
2110 machine
=ibms390 opsys
=gnu-linux
2112 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2113 machine
=ibmrs6000 opsys
=aix3-1
2115 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2116 machine
=ibmrs6000 opsys
=aix3-2-5
2118 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2119 machine
=ibmrs6000 opsys
=aix4-1
2121 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2122 machine
=ibmrs6000 opsys
=aix4-2
2124 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2125 machine
=ibmrs6000 opsys
=aix4-2
2127 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2128 machine
=ibmrs6000 opsys
=aix4
2130 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2131 machine
=ibmrs6000 opsys
=aix4-1
2133 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2134 machine
=ibmrs6000 opsys
=aix3-2
2137 machine
=ibmrt opsys
=bsd4-3
2140 machine
=ibmrt opsys
=bsd4-2
2143 machine
=ibmrt opsys
=bsd4-3
2146 machine
=ibmrt opsys
=bsd4-2
2149 machine
=ibmrt opsys
=bsd4-3
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt-aix opsys
=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2160 machine
=isi-ov opsys
=bsd4-2
2163 machine
=isi-ov opsys
=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i
[3456]86-intsys-sysv* )
2168 machine
=is386 opsys
=usg5-2-2
2172 i
[3456]86-prime-sysv* )
2173 machine
=i386 opsys
=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i
[3456]86-sequent-bsd* )
2178 machine
=symmetry opsys
=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2183 machine
=sequent-ptx opsys
=ptx4
2184 NON_GNU_CPP
=/lib
/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i
[3456]86-sequent-ptx* )
2190 machine
=sequent-ptx opsys
=ptx
2191 NON_GNU_CPP
="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i
[3456]86-ncr-sysv4.3
)
2196 machine
=ncr386 opsys
=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i
[3456]86-ncr-sysv* )
2202 machine
=ncr386 opsys
=usg5-4-2
2205 ## Intel Paragon OSF/1
2207 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2212 machine
=i860 opsys
=usg5-4
2213 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc
*-*-linux-gnu* )
2219 machine
=macppc opsys
=gnu-linux
2222 ## Masscomp machines
2223 m68
*-masscomp-rtu* )
2224 machine
=masscomp opsys
=rtu
2227 ## Megatest machines
2228 m68
*-megatest-bsd* )
2229 machine
=mega68 opsys
=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4
* )
2248 machine
=mips4 opsys
=bsd4-3
2249 NON_GNU_CC
="cc -systype bsd43"
2250 NON_GNU_CPP
="cc -systype bsd43 -E"
2252 mips-mips-riscos5
* )
2253 machine
=mips4 opsys
=riscos5
2254 NON_GNU_CC
="cc -systype bsd43"
2255 NON_GNU_CPP
="cc -systype bsd43 -E"
2258 machine
=mips opsys
=bsd4-3
2261 machine
=mips opsys
=usg5-2-2
2265 m68
*-next-* | m68k-
*-nextstep* )
2266 machine
=m68k opsys
=nextstep
2269 ## The complete machine from National Semiconductor
2271 machine
=ns32000 opsys
=usg5-2
2275 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2276 machine
=tower32 opsys
=usg5-2-2
2278 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2279 machine
=tower32v3 opsys
=usg5-3
2284 machine
=ews4800 opsys
=ux4800
2287 ## Nixdorf Targon 31
2288 m68
*-nixdorf-sysv* )
2289 machine
=targon31 opsys
=usg5-2-2
2294 machine
=nu opsys
=usg5-2
2299 machine
=plexus opsys
=usg5-2
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd
* )
2306 machine
=pyramid opsys
=bsd4-2
2310 ns32k-sequent-bsd4.2
* )
2311 machine
=sequent opsys
=bsd4-2
2313 ns32k-sequent-bsd4.3
* )
2314 machine
=sequent opsys
=bsd4-3
2318 mips-siemens-sysv
* | mips-sni-sysv
*)
2319 machine
=mips-siemens opsys
=usg5-4
2320 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2321 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2327 machine
=irist opsys
=iris3-5
2329 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2330 machine
=irist opsys
=iris3-6
2334 machine
=iris4d opsys
=irix3-3
2337 machine
=iris4d opsys
=irix4-0
2340 machine
=iris4d opsys
=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2348 machine
=iris4d opsys
=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS
=-32
2355 mips-sgi-irix5.
[01]* )
2356 machine
=iris4d opsys
=irix5-0
2358 mips-sgi-irix5
* | mips-sgi-irix
* )
2359 machine
=iris4d opsys
=irix5-2
2364 machine
=news opsys
=bsd4-2
2367 machine
=news opsys
=bsd4-3
2369 m68
*-sony-newsos3* | m68
*-sony-news3*)
2370 machine
=news opsys
=bsd4-3
2372 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2373 machine
=news-risc opsys
=bsd4-3
2375 mips-sony-newsos6
* )
2376 machine
=news-r6 opsys
=newsos6
2379 machine
=news-risc opsys
=newsos5
2384 machine
=stride opsys
=usg5-2
2388 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2389 machine
=sparc opsys
=gnu-linux
2392 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2393 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2394 | rs6000-
*-solaris2*)
2395 case "${canonical}" in
2396 m68
*-sunos1* ) machine
=sun1
;;
2397 m68
*-sunos2* ) machine
=sun2
;;
2398 m68
* ) machine
=sun3
;;
2399 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2400 i
[3456]86-*-* ) machine
=intel386
;;
2401 powerpcle
* ) machine
=powerpcle
;;
2402 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2403 sparc
* ) machine
=sparc
;;
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2409 *-sunos4.0
* ) opsys
=sunos4-0
;;
2410 *-sunos4.1.
[3-9]*noshare
)
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2414 NON_GNU_CPP
=/usr
/lib
/cpp
2415 NON_GCC_TEST_OPTIONS
=-Bstatic
2416 GCC_TEST_OPTIONS
=-static
2418 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2420 NON_GNU_CPP
=/usr
/lib
/cpp
2422 *-sunos4* |
*-sunos )
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos5.3
* |
*-solaris2.3
* )
2429 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2431 *-sunos5.4
* |
*-solaris2.4
* )
2433 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2436 *-sunos5.5
* |
*-solaris2.5
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2441 *-sunos5.6
* |
*-solaris2.6
* )
2443 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2446 *-sunos5* |
*-solaris* )
2448 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* |
*-sunos5* )
2455 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2465 machine
=sparc opsys
=nextstep
2469 m68
*-tadpole-sysv* )
2470 machine
=tad68k opsys
=usg5-3
2474 tahoe-tahoe-bsd4.2
* )
2475 machine
=tahoe opsys
=bsd4-2
2477 tahoe-tahoe-bsd4.3
* )
2478 machine
=tahoe opsys
=bsd4-3
2481 ## Tandem Integrity S2
2483 machine
=tandem-s2 opsys
=usg5-3
2487 m88k-tektronix-sysv3
* )
2488 machine
=tekxd88 opsys
=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd
* )
2493 machine
=ns16000 opsys
=bsd4-2
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68
*-tektronix-bsd* )
2498 machine
=tek4300 opsys
=bsd4-3
2502 ## We seem to have lost the machine-description file titan.h!
2504 machine
=titan opsys
=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68
*-unisys-uniplus* )
2509 machine
=ustation opsystem
=unipl5-2
2515 case "${canonical}" in
2516 *-bsd4.1
* ) opsys
=bsd4-1
;;
2517 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2518 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2519 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2520 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2521 *-vms* ) opsys
=vms
;;
2527 ns16k-whitechapel-
* )
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2535 machine
=wicat opsys
=usg5-2
2540 machine
=ia64 opsys
=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2546 case "${canonical}" in
2547 *-cygwin ) opsys
=cygwin
;;
2548 *-lynxos* ) opsys
=lynxos
;;
2549 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2550 *-isc2.2
* ) opsys
=isc2-2
;;
2551 *-isc4.0
* ) opsys
=isc4-0
;;
2552 *-isc4.
* ) opsys
=isc4-1
2553 GCC_TEST_OPTIONS
=-posix
2554 NON_GCC_TEST_OPTIONS
=-Xp
2556 *-isc* ) opsys
=isc3-0
;;
2557 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2558 *-esix* ) opsys
=esix
;;
2559 *-xenix* ) opsys
=xenix
;;
2560 *-linux-gnu* ) opsys
=gnu-linux
;;
2561 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2562 *-sco3.2v5
* ) opsys
=sco5
2563 NON_GNU_CPP
=/lib
/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS
=" "
2568 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2569 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2570 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-386bsd* ) opsys
=386bsd
;;
2572 *-nextstep* ) opsys
=nextstep
;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2577 ## m68k Linux-based GNU system
2579 machine
=m68k opsys
=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2584 machine
=mips opsys
=gnu-linux
2588 sparc-fujitsu-sysv4
* )
2589 machine
=sparc opsys
=uxpds
2590 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 f301-fujitsu-uxpv4.1
)
2596 machine
=f301 opsys
=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin
* )
2601 machine
=powermac opsys
=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP
="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw
/include
&& test -d /sw
/lib
; then
2606 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2607 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-
*-linux-gnu* )
2614 machine
=amdx86-64 opsys
=gnu-linux
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2628 if test x
"${opsys}" = x
; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys
=gnu
;;
2631 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2632 *-bsd4.2
) opsys
=bsd4-2
;;
2633 *-bsd4.3
) opsys
=bsd4-3
;;
2634 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2635 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2636 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2637 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2638 *-sysv4.2uw
* ) opsys
=unixware
;;
2639 *-sysv5uw* ) opsys
=unixware
;;
2640 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2641 *-sysv4.1
* |
*-sysvr4.1
* )
2642 NON_GNU_CPP
=/usr
/lib
/cpp
2644 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2645 if [ x
$NON_GNU_CPP = x
]; then
2646 if [ -f /usr
/ccs
/lib
/cpp
]; then
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2649 NON_GNU_CPP
=/lib
/cpp
2653 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile
="m/${machine}.h"
2671 opsysfile
="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified
=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS
="$CFLAGS"
2681 "yes" ) CC
="gcc" GCC
=yes ;;
2682 "no" ) : ${CC=cc} ;;
2686 ac_cpp
='$CPP $CPPFLAGS'
2687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC
="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC
="$CC" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc
; ac_word
=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC
="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc
; ac_word
=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC
="$CC" # Let the user override the test.
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir
=.
2867 for ac_exec_ext
in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected
=yes
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy
$ac_cv_prog_CC
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2889 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC
="$CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2946 if test -z "$CC"; then
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy
$ac_prog; ac_word
=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler
=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.
$ac_ext <<_ACEOF
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 ac_clean_files_save
=$ac_clean_files
3036 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3055 # b.out is created by i960 compilers.
3056 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3058 test -f "$ac_file" ||
continue
3060 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3063 # This is the source file.
3066 # We found the default executable, but exeext='' is most
3070 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext
=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try
='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 if test "$cross_compiling" = maybe
; then
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3127 ac_clean_files
=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3146 for ac_file
in conftest.exe conftest conftest.
*; do
3147 test -f "$ac_file" ||
continue
3149 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3150 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest
$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.
$ac_ext
3169 EXEEXT
=$ac_cv_exeext
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3199 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3200 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.
$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT
=$ac_cv_objext
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1
>conftest.err
3250 cat conftest.err
>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try
='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.
$ac_ext >&5
3273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3274 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS
=${CFLAGS+set}
3281 ac_save_CFLAGS
=$CFLAGS
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 cat >conftest.
$ac_ext <<_ACEOF
3291 cat confdefs.h
>>conftest.
$ac_ext
3292 cat >>conftest.
$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3303 rm -f conftest.
$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3307 grep -v '^ *+' conftest.er1
>conftest.err
3309 cat conftest.err
>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try
='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try
='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.
$ac_ext >&5
3332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS
=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3345 if test "$GCC" = yes; then
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 ac_cv_prog_cc_stdc
=no
3358 cat >conftest.
$ac_ext <<_ACEOF
3361 cat confdefs.h
>>conftest.
$ac_ext
3362 cat >>conftest.
$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3382 s = g (p, va_arg (v,int));
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC
="$ac_save_CC $ac_arg"
3420 rm -f conftest.
$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1
>conftest.err
3426 cat conftest.err
>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try
='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try
='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc
=$ac_arg
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3449 rm -f conftest.err conftest.
$ac_objext
3451 rm -f conftest.
$ac_ext conftest.
$ac_objext
3456 case "x$ac_cv_prog_cc_stdc" in
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.
$ac_ext <<_ACEOF
3475 rm -f conftest.
$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3479 grep -v '^ *+' conftest.er1
>conftest.err
3481 cat conftest.err
>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try
='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try
='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration
in \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3505 cat >conftest.
$ac_ext <<_ACEOF
3508 cat confdefs.h
>>conftest.
$ac_ext
3509 cat >>conftest.
$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try
='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try
='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3551 cat >conftest.
$ac_ext <<_ACEOF
3554 cat confdefs.h
>>conftest.
$ac_ext
3555 cat >>conftest.
$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.
$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1
>conftest.err
3572 cat conftest.err
>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try
='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try
='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.
$ac_ext >&5
3594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3610 ac_cpp
='$CPP $CPPFLAGS'
3611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3633 test x
$cc_specified != xyes
3638 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3640 CC
="$CC $GCC_TEST_OPTIONS"
3643 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3645 CC
="$CC $NON_GCC_TEST_OPTIONS"
3648 #### Some other nice autoconf tests.
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3662 ac_cpp
='$CPP $CPPFLAGS'
3663 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 # Double quotes because CPP needs to be expanded
3677 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680 for ac_c_preproc_warn_flag
in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.
$ac_ext <<_ACEOF
3691 cat confdefs.h
>>conftest.
$ac_ext
3692 cat >>conftest.
$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3695 # include <limits.h>
3697 # include <assert.h>
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3704 grep -v '^ *+' conftest.er1
>conftest.err
3706 cat conftest.err
>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev
/null
; then
3709 if test -s conftest.err
; then
3710 ac_cpp_err
=$ac_c_preproc_warn_flag
3711 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3718 if test -z "$ac_cpp_err"; then
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.
$ac_ext >&5
3724 # Broken: fails on valid input.
3727 rm -f conftest.err conftest.
$ac_ext
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev
/null
; then
3747 if test -s conftest.err
; then
3748 ac_cpp_err
=$ac_c_preproc_warn_flag
3749 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.
$ac_ext >&5
3763 # Passes both tests.
3767 rm -f conftest.err conftest.
$ac_ext
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.
$ac_ext
3772 if $ac_preproc_ok; then
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3787 for ac_c_preproc_warn_flag
in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.
$ac_ext <<_ACEOF
3798 cat confdefs.h
>>conftest.
$ac_ext
3799 cat >>conftest.
$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3802 # include <limits.h>
3804 # include <assert.h>
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev
/null
; then
3816 if test -s conftest.err
; then
3817 ac_cpp_err
=$ac_c_preproc_warn_flag
3818 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3825 if test -z "$ac_cpp_err"; then
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.
$ac_ext >&5
3831 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.
$ac_ext
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev
/null
; then
3854 if test -s conftest.err
; then
3855 ac_cpp_err
=$ac_c_preproc_warn_flag
3856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 # Passes both tests.
3874 rm -f conftest.err conftest.
$ac_ext
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.
$ac_ext
3879 if $ac_preproc_ok; then
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3890 ac_cpp
='$CPP $CPPFLAGS'
3891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir
=.
3919 # Account for people who put trailing slashes in PATH elements.
3921 .
/ | .
// |
/cC
/* | \
3922 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3923 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3929 for ac_prog
in ginstall scoinst
install; do
3930 for ac_exec_ext
in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3941 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL
=$ac_cv_path_install
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL
=$ac_install_sh
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3974 if test "x$RANLIB" = x
; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 RANLIB
=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB
=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib
; ac_word
=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4041 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 RANLIB
=$ac_ct_RANLIB
4052 RANLIB
="$ac_cv_prog_RANLIB"
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info
; ac_word
=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 case $INSTALL_INFO in
4065 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info
; ac_word
=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 case $INSTALL_INFO in
4104 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 for as_dir
in /usr
/sbin
4111 test -z "$as_dir" && as_dir
=.
4112 for ac_exec_ext
in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info
; ac_word
=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 case $INSTALL_INFO in
4143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4176 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4178 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4181 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4183 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4187 late_LDFLAGS
=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4191 LDFLAGS
="$LDFLAGS -znocombreloc"
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 rm -f conftest.
$ac_objext conftest
$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4204 grep -v '^ *+' conftest.er1
>conftest.err
4206 cat conftest.err
>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try
='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try
='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4228 LDFLAGS
=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 rm -f conftest.err conftest.
$ac_objext \
4233 conftest
$ac_exeext conftest.
$ac_ext
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4242 then ac_cv_prog_egrep
='grep -E'
4243 else ac_cv_prog_egrep
='egrep'
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP
=$ac_cv_prog_egrep
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev
/null
2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h
<<\_ACEOF
4270 #define _ALL_SOURCE 1
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4282 #### Extract some information from the operating system and machine files.
4284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4285 - which libraries the lib-src programs will want, and
4286 - whether the GNU malloc routines are usable..." >&5
4287 echo "$as_me: checking the machine- and system-dependent files to find out
4288 - which libraries the lib-src programs will want, and
4289 - whether the GNU malloc routines are usable..." >&6;}
4291 ### First figure out CFLAGS (which we use for running the compiler here)
4292 ### and REAL_CFLAGS (which we use for real compilation).
4293 ### The two are the same except on a few systems, where they are made
4294 ### different to work around various lossages. For example,
4295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4296 ### as implying static linking.
4298 ### If the CFLAGS env var is specified, we use that value
4299 ### instead of the default.
4301 ### It's not important that this name contain the PID; you can't run
4302 ### two configures in the same directory and have anything work
4304 tempcname
="conftest.c"
4307 #include "'${srcdir}'/src/'${opsysfile}'"
4308 #include "'${srcdir}'/src/'${machfile}'"
4309 #ifndef LIBS_MACHINE
4310 #define LIBS_MACHINE
4315 #ifndef C_SWITCH_SYSTEM
4316 #define C_SWITCH_SYSTEM
4318 #ifndef C_SWITCH_MACHINE
4319 #define C_SWITCH_MACHINE
4321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4322 configure___ c_switch_system=C_SWITCH_SYSTEM
4323 configure___ c_switch_machine=C_SWITCH_MACHINE
4326 #define LIB_X11_LIB -lX11
4329 #ifndef LIBX11_MACHINE
4330 #define LIBX11_MACHINE
4333 #ifndef LIBX11_SYSTEM
4334 #define LIBX11_SYSTEM
4336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4339 configure___ unexec=UNEXEC
4341 configure___ unexec=unexec.o
4344 #ifdef SYSTEM_MALLOC
4345 configure___ system_malloc=yes
4347 configure___ system_malloc=no
4350 #ifdef USE_MMAP_FOR_BUFFERS
4351 configure___ use_mmap_for_buffers=yes
4353 configure___ use_mmap_for_buffers=no
4356 #ifndef C_DEBUG_SWITCH
4357 #define C_DEBUG_SWITCH -g
4360 #ifndef C_OPTIMIZE_SWITCH
4362 #define C_OPTIMIZE_SWITCH -O2
4364 #define C_OPTIMIZE_SWITCH -O
4368 #ifndef LD_SWITCH_MACHINE
4369 #define LD_SWITCH_MACHINE
4372 #ifndef LD_SWITCH_SYSTEM
4373 #define LD_SWITCH_SYSTEM
4376 #ifndef LD_SWITCH_X_SITE_AUX
4377 #define LD_SWITCH_X_SITE_AUX
4380 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4381 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4383 #ifdef THIS_IS_CONFIGURE
4385 /* Get the CFLAGS for tests in configure. */
4387 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4389 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4392 #else /* not THIS_IS_CONFIGURE */
4394 /* Get the CFLAGS for real compilation. */
4396 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4398 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4401 #endif /* not THIS_IS_CONFIGURE */
4404 # The value of CPP is a quoted variable reference, so we need to do this
4405 # to get its actual value...
4406 CPP
=`eval "echo $CPP"`
4407 eval `${CPP} -Isrc ${tempcname} \
4408 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4409 if test "x$SPECIFIED_CFLAGS" = x
; then
4410 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4413 REAL_CFLAGS
="$CFLAGS"
4417 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4419 ### Make sure subsequent tests use flags consistent with the build flags.
4421 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4422 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4424 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4430 cat >>confdefs.h
<<\_ACEOF
4431 #define _GNU_SOURCE 1
4436 # Check whether --enable-largefile or --disable-largefile was given.
4437 if test "${enable_largefile+set}" = set; then
4438 enableval
="$enable_largefile"
4441 if test "$enable_largefile" != no
; then
4443 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4444 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4445 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_sys_largefile_CC
=no
4449 if test "$GCC" != yes; then
4452 # IRIX 6.2 and later do not support large files by default,
4453 # so use the C compiler's -n32 option if that helps.
4454 cat >conftest.
$ac_ext <<_ACEOF
4457 cat confdefs.h
>>conftest.
$ac_ext
4458 cat >>conftest.
$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4477 rm -f conftest.
$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1
>conftest.err
4483 cat conftest.err
>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try
='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try
='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.
$ac_ext >&5
4505 rm -f conftest.err conftest.
$ac_objext
4507 rm -f conftest.
$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1
>conftest.err
4513 cat conftest.err
>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try
='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try
='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_largefile_CC
=' -n32'; break
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4535 rm -f conftest.err conftest.
$ac_objext
4539 rm -f conftest.
$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4543 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4544 if test "$ac_cv_sys_largefile_CC" != no
; then
4545 CC
=$CC$ac_cv_sys_largefile_CC
4548 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4549 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cv_sys_file_offset_bits
=no
4555 cat >conftest.
$ac_ext <<_ACEOF
4558 cat confdefs.h
>>conftest.
$ac_ext
4559 cat >>conftest.
$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4578 rm -f conftest.
$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1
>conftest.err
4584 cat conftest.err
>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try
='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try
='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.
$ac_ext >&5
4606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4631 rm -f conftest.
$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4635 grep -v '^ *+' conftest.er1
>conftest.err
4637 cat conftest.err
>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try
='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try
='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_sys_file_offset_bits
=64; break
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.
$ac_ext >&5
4659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4664 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4665 if test "$ac_cv_sys_file_offset_bits" != no
; then
4667 cat >>confdefs.h
<<_ACEOF
4668 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4673 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_large_files+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_sys_large_files
=no
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4703 rm -f conftest.
$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4707 grep -v '^ *+' conftest.er1
>conftest.err
4709 cat conftest.err
>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try
='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try
='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.
$ac_ext >&5
4731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4732 cat >conftest.
$ac_ext <<_ACEOF
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #define _LARGE_FILES 1
4739 #include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4756 rm -f conftest.
$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1
>conftest.err
4762 cat conftest.err
>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try
='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try
='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_large_files
=1; break
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.
$ac_ext >&5
4784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4789 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4790 if test "$ac_cv_sys_large_files" != no
; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define _LARGE_FILES $ac_cv_sys_large_files
4801 if test "${with_sound}" != "no"; then
4802 # Sound support for GNU/Linux and the free BSDs.
4803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805 if test "${ac_cv_header_stdc+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 cat >conftest.
$ac_ext <<_ACEOF
4811 cat confdefs.h
>>conftest.
$ac_ext
4812 cat >>conftest.
$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4827 rm -f conftest.
$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1
>conftest.err
4833 cat conftest.err
>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try
='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try
='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc
=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4854 ac_cv_header_stdc
=no
4856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.
$ac_ext <<_ACEOF
4863 cat confdefs.h
>>conftest.
$ac_ext
4864 cat >>conftest.
$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev
/null
2>&1; then
4873 ac_cv_header_stdc
=no
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev
/null
2>&1; then
4894 ac_cv_header_stdc
=no
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4905 cat >conftest.
$ac_ext <<_ACEOF
4908 cat confdefs.h
>>conftest.
$ac_ext
4909 cat >>conftest.
$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4935 rm -f conftest
$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.
$ac_ext >&5
4953 ac_cv_header_stdc
=no
4955 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4963 cat >>confdefs.h
<<\_ACEOF
4964 #define STDC_HEADERS 1
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4980 inttypes.h stdint.h unistd.h
4982 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 cat >conftest.
$ac_ext <<_ACEOF
4991 cat confdefs.h
>>conftest.
$ac_ext
4992 cat >>conftest.
$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4996 #include <$ac_header>
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 eval "$as_ac_Header=no"
5027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h
<<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5046 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5056 # Is the header compilable?
5057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059 cat >conftest.
$ac_ext <<_ACEOF
5062 cat confdefs.h
>>conftest.
$ac_ext
5063 cat >>conftest.
$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5068 rm -f conftest.
$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5072 grep -v '^ *+' conftest.er1
>conftest.err
5074 cat conftest.err
>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try
='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try
='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_header_compiler
=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.
$ac_ext >&5
5095 ac_header_compiler
=no
5097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099 echo "${ECHO_T}$ac_header_compiler" >&6
5101 # Is the header present?
5102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <$ac_header>
5112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5115 grep -v '^ *+' conftest.er1
>conftest.err
5117 cat conftest.err
>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev
/null
; then
5120 if test -s conftest.err
; then
5121 ac_cpp_err
=$ac_c_preproc_warn_flag
5122 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5129 if test -z "$ac_cpp_err"; then
5130 ac_header_preproc
=yes
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.
$ac_ext >&5
5135 ac_header_preproc
=no
5137 rm -f conftest.err conftest.
$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139 echo "${ECHO_T}$ac_header_preproc" >&6
5141 # So? What about this header?
5142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc
=yes
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5165 ## ------------------------------------------ ##
5166 ## Report this to the AC_PACKAGE_NAME lists. ##
5167 ## ------------------------------------------ ##
5170 sed "s/^/$as_me: WARNING: /" >&2
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 eval "$as_ac_Header=\$ac_header_preproc"
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h
<<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5193 # Emulation library used on NetBSD.
5194 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5195 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_check_lib_save_LIBS
=$LIBS
5200 LIBS
="-lossaudio $LIBS"
5201 cat >conftest.
$ac_ext <<_ACEOF
5204 cat confdefs.h
>>conftest.
$ac_ext
5205 cat >>conftest.
$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5208 /* Override any gcc2 internal prototype to avoid an error. */
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5223 rm -f conftest.
$ac_objext conftest
$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5227 grep -v '^ *+' conftest.er1
>conftest.err
5229 cat conftest.err
>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try
='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try
='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 ac_cv_lib_ossaudio__oss_ioctl
=no
5252 rm -f conftest.err conftest.
$ac_objext \
5253 conftest
$ac_exeext conftest.
$ac_ext
5254 LIBS
=$ac_check_lib_save_LIBS
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5290 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5291 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5292 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5293 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5295 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297 echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5305 # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.
$ac_ext <<_ACEOF
5311 cat confdefs.h
>>conftest.
$ac_ext
5312 cat >>conftest.
$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5317 rm -f conftest.
$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1
>conftest.err
5323 cat conftest.err
>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try
='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try
='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_header_compiler
=yes
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.
$ac_ext >&5
5344 ac_header_compiler
=no
5346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5348 echo "${ECHO_T}$ac_header_compiler" >&6
5350 # Is the header present?
5351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5353 cat >conftest.
$ac_ext <<_ACEOF
5356 cat confdefs.h
>>conftest.
$ac_ext
5357 cat >>conftest.
$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <$ac_header>
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev
/null
; then
5369 if test -s conftest.err
; then
5370 ac_cpp_err
=$ac_c_preproc_warn_flag
5371 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5378 if test -z "$ac_cpp_err"; then
5379 ac_header_preproc
=yes
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.
$ac_ext >&5
5384 ac_header_preproc
=no
5386 rm -f conftest.err conftest.
$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5397 ac_header_preproc
=yes
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5414 ## ------------------------------------------ ##
5415 ## Report this to the AC_PACKAGE_NAME lists. ##
5416 ## ------------------------------------------ ##
5419 sed "s/^/$as_me: WARNING: /" >&2
5422 echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 eval "$as_ac_Header=\$ac_header_preproc"
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5434 cat >>confdefs.h
<<_ACEOF
5435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5444 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5445 cat >conftest.
$ac_ext <<_ACEOF
5448 cat confdefs.h
>>conftest.
$ac_ext
5449 cat >>conftest.
$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <sys/personality.h>
5455 personality (PER_LINUX32)
5460 rm -f conftest.
$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5464 grep -v '^ *+' conftest.er1
>conftest.err
5466 cat conftest.err
>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try
='test -z "$ac_c_werror_flag"
5470 || test ! -s conftest.err'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; } &&
5476 { ac_try
='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 emacs_cv_personality_linux32
=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.
$ac_ext >&5
5487 emacs_cv_personality_linux32
=no
5489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5490 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5491 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5493 if test $emacs_cv_personality_linux32 = yes; then
5495 cat >>confdefs.h
<<\_ACEOF
5496 #define HAVE_PERSONALITY_LINUX32 1
5502 for ac_header
in term.h
5504 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 echo "$as_me:$LINENO: checking for $ac_header" >&5
5506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 cat >conftest.
$ac_ext <<_ACEOF
5513 cat confdefs.h
>>conftest.
$ac_ext
5514 cat >>conftest.
$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <$ac_header>
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5521 grep -v '^ *+' conftest.er1
>conftest.err
5523 cat conftest.err
>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev
/null
; then
5526 if test -s conftest.err
; then
5527 ac_cpp_err
=$ac_c_preproc_warn_flag
5528 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5535 if test -z "$ac_cpp_err"; then
5536 eval "$as_ac_Header=yes"
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.
$ac_ext >&5
5541 eval "$as_ac_Header=no"
5543 rm -f conftest.err conftest.
$ac_ext
5545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h
<<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5557 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5558 if test "${ac_cv_header_stdc+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 cat >conftest.
$ac_ext <<_ACEOF
5564 cat confdefs.h
>>conftest.
$ac_ext
5565 cat >>conftest.
$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5580 rm -f conftest.
$ac_objext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>conftest.er1
5584 grep -v '^ *+' conftest.er1
>conftest.err
5586 cat conftest.err
>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try
='test -z "$ac_c_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try
='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_header_stdc
=yes
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.
$ac_ext >&5
5607 ac_cv_header_stdc
=no
5609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5611 if test $ac_cv_header_stdc = yes; then
5612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5613 cat >conftest.
$ac_ext <<_ACEOF
5616 cat confdefs.h
>>conftest.
$ac_ext
5617 cat >>conftest.
$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev
/null
2>&1; then
5626 ac_cv_header_stdc
=no
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat >conftest.
$ac_ext <<_ACEOF
5637 cat confdefs.h
>>conftest.
$ac_ext
5638 cat >>conftest.
$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5644 $EGREP "free" >/dev
/null
2>&1; then
5647 ac_cv_header_stdc
=no
5653 if test $ac_cv_header_stdc = yes; then
5654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5655 if test "$cross_compiling" = yes; then
5658 cat >conftest.
$ac_ext <<_ACEOF
5661 cat confdefs.h
>>conftest.
$ac_ext
5662 cat >>conftest.
$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 #if ((' ' & 0x0FF) == 0x020)
5666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5669 # define ISLOWER(c) \
5670 (('a' <= (c) && (c) <= 'i') \
5671 || ('j' <= (c) && (c) <= 'r') \
5672 || ('s' <= (c) && (c) <= 'z'))
5673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5681 for (i = 0; i < 256; i++)
5682 if (XOR (islower (i), ISLOWER (i))
5683 || toupper (i) != TOUPPER (i))
5688 rm -f conftest
$ac_exeext
5689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5690 (eval $ac_link) 2>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5701 echo "$as_me: program exited with status $ac_status" >&5
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.
$ac_ext >&5
5706 ac_cv_header_stdc
=no
5708 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5712 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5713 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5714 if test $ac_cv_header_stdc = yes; then
5716 cat >>confdefs.h
<<\_ACEOF
5717 #define STDC_HEADERS 1
5722 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5724 if test "${ac_cv_header_time+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 cat >conftest.
$ac_ext <<_ACEOF
5730 cat confdefs.h
>>conftest.
$ac_ext
5731 cat >>conftest.
$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 #include <sys/time.h>
5740 if ((struct tm *) 0)
5746 rm -f conftest.
$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5750 grep -v '^ *+' conftest.er1
>conftest.err
5752 cat conftest.err
>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try
='test -z "$ac_c_werror_flag"
5756 || test ! -s conftest.err'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try
='test -s conftest.$ac_objext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_header_time
=yes
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.
$ac_ext >&5
5773 ac_cv_header_time
=no
5775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5777 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5778 echo "${ECHO_T}$ac_cv_header_time" >&6
5779 if test $ac_cv_header_time = yes; then
5781 cat >>confdefs.h
<<\_ACEOF
5782 #define TIME_WITH_SYS_TIME 1
5787 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5788 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5789 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.
$ac_ext <<_ACEOF
5795 cat confdefs.h
>>conftest.
$ac_ext
5796 cat >>conftest.
$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5803 char *p = (char *) sys_siglist;
5810 rm -f conftest.
$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5814 grep -v '^ *+' conftest.er1
>conftest.err
5816 cat conftest.err
>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try
='test -z "$ac_c_werror_flag"
5820 || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try
='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_have_decl_sys_siglist
=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.
$ac_ext >&5
5837 ac_cv_have_decl_sys_siglist
=no
5839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5841 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5842 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5843 if test $ac_cv_have_decl_sys_siglist = yes; then
5845 cat >>confdefs.h
<<_ACEOF
5846 #define HAVE_DECL_SYS_SIGLIST 1
5851 cat >>confdefs.h
<<_ACEOF
5852 #define HAVE_DECL_SYS_SIGLIST 0
5859 if test $ac_cv_have_decl_sys_siglist != yes; then
5860 # For Tru64, at least:
5861 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5862 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5863 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 cat >conftest.
$ac_ext <<_ACEOF
5869 cat confdefs.h
>>conftest.
$ac_ext
5870 cat >>conftest.
$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 $ac_includes_default
5876 #ifndef __sys_siglist
5877 char *p = (char *) __sys_siglist;
5884 rm -f conftest.
$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>conftest.er1
5888 grep -v '^ *+' conftest.er1
>conftest.err
5890 cat conftest.err
>&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try
='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try
='test -s conftest.$ac_objext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_have_decl___sys_siglist
=yes
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.
$ac_ext >&5
5911 ac_cv_have_decl___sys_siglist
=no
5913 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5916 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5917 if test $ac_cv_have_decl___sys_siglist = yes; then
5919 cat >>confdefs.h
<<_ACEOF
5920 #define HAVE_DECL___SYS_SIGLIST 1
5925 cat >>confdefs.h
<<_ACEOF
5926 #define HAVE_DECL___SYS_SIGLIST 0
5933 if test $ac_cv_have_decl___sys_siglist = yes; then
5935 cat >>confdefs.h
<<\_ACEOF
5936 #define sys_siglist __sys_siglist
5941 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5942 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5943 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.
$ac_ext <<_ACEOF
5949 cat confdefs.h
>>conftest.
$ac_ext
5950 cat >>conftest.
$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 #include <sys/wait.h>
5955 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5958 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5971 rm -f conftest.
$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1
>conftest.err
5977 cat conftest.err
>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try
='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try
='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_header_sys_wait_h
=yes
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.
$ac_ext >&5
5998 ac_cv_header_sys_wait_h
=no
6000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6002 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6003 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6004 if test $ac_cv_header_sys_wait_h = yes; then
6006 cat >>confdefs.h
<<\_ACEOF
6007 #define HAVE_SYS_WAIT_H 1
6013 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6014 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6015 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #ifdef TIME_WITH_SYS_TIME
6025 #include <sys/time.h>
6028 #ifdef HAVE_SYS_TIME_H
6029 #include <sys/time.h>
6040 static struct utimbuf x; x.actime = x.modtime;
6045 rm -f conftest.
$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6049 grep -v '^ *+' conftest.er1
>conftest.err
6051 cat conftest.err
>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try
='test -z "$ac_c_werror_flag"
6055 || test ! -s conftest.err'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; } &&
6061 { ac_try
='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 emacs_cv_struct_utimbuf
=yes
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.
$ac_ext >&5
6072 emacs_cv_struct_utimbuf
=no
6074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6076 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6077 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6078 if test $emacs_cv_struct_utimbuf = yes; then
6080 cat >>confdefs.h
<<\_ACEOF
6081 #define HAVE_STRUCT_UTIMBUF 1
6086 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6087 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6088 if test "${ac_cv_type_signal+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 cat >conftest.
$ac_ext <<_ACEOF
6094 cat confdefs.h
>>conftest.
$ac_ext
6095 cat >>conftest.
$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 #include <sys/types.h>
6103 extern "C" void (*signal (int, void (*)(int)))(int);
6105 void (*signal ()) ();
6116 rm -f conftest.
$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6120 grep -v '^ *+' conftest.er1
>conftest.err
6122 cat conftest.err
>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try
='test -z "$ac_c_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try
='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_type_signal
=void
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.
$ac_ext >&5
6143 ac_cv_type_signal
=int
6145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6148 echo "${ECHO_T}$ac_cv_type_signal" >&6
6150 cat >>confdefs.h
<<_ACEOF
6151 #define RETSIGTYPE $ac_cv_type_signal
6156 echo "$as_me:$LINENO: checking for speed_t" >&5
6157 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6158 if test "${emacs_cv_speed_t+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 cat >conftest.
$ac_ext <<_ACEOF
6164 cat confdefs.h
>>conftest.
$ac_ext
6165 cat >>conftest.
$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <termios.h>
6176 rm -f conftest.
$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1
>conftest.err
6182 cat conftest.err
>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try
='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try
='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 emacs_cv_speed_t
=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.
$ac_ext >&5
6205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6207 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6208 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6209 if test $emacs_cv_speed_t = yes; then
6211 cat >>confdefs.h
<<\_ACEOF
6212 #define HAVE_SPEED_T 1
6217 echo "$as_me:$LINENO: checking for struct timeval" >&5
6218 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6219 if test "${emacs_cv_struct_timeval+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 cat >conftest.
$ac_ext <<_ACEOF
6225 cat confdefs.h
>>conftest.
$ac_ext
6226 cat >>conftest.
$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #ifdef TIME_WITH_SYS_TIME
6229 #include <sys/time.h>
6232 #ifdef HAVE_SYS_TIME_H
6233 #include <sys/time.h>
6241 static struct timeval x; x.tv_sec = x.tv_usec;
6246 rm -f conftest.
$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1
>conftest.err
6252 cat conftest.err
>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try
='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try
='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 emacs_cv_struct_timeval
=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.
$ac_ext >&5
6273 emacs_cv_struct_timeval
=no
6275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6278 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6279 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6280 if test $emacs_cv_struct_timeval = yes; then
6282 cat >>confdefs.h
<<\_ACEOF
6283 #define HAVE_TIMEVAL 1
6288 echo "$as_me:$LINENO: checking for struct exception" >&5
6289 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6290 if test "${emacs_cv_struct_exception+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 cat >conftest.
$ac_ext <<_ACEOF
6296 cat confdefs.h
>>conftest.
$ac_ext
6297 cat >>conftest.
$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6303 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6308 rm -f conftest.
$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>conftest.er1
6312 grep -v '^ *+' conftest.er1
>conftest.err
6314 cat conftest.err
>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try
='test -z "$ac_c_werror_flag"
6318 || test ! -s conftest.err'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; } &&
6324 { ac_try
='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 emacs_cv_struct_exception
=yes
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.
$ac_ext >&5
6335 emacs_cv_struct_exception
=no
6337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6339 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6340 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6341 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6342 if test $emacs_cv_struct_exception != yes; then
6344 cat >>confdefs.h
<<\_ACEOF
6345 #define NO_MATHERR 1
6351 for ac_header
in sys
/socket.h
6353 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355 echo "$as_me:$LINENO: checking for $ac_header" >&5
6356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6363 # Is the header compilable?
6364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6366 cat >conftest.
$ac_ext <<_ACEOF
6369 cat confdefs.h
>>conftest.
$ac_ext
6370 cat >>conftest.
$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6373 #include <$ac_header>
6375 rm -f conftest.
$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6379 grep -v '^ *+' conftest.er1
>conftest.err
6381 cat conftest.err
>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try
='test -z "$ac_c_werror_flag"
6385 || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try
='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_header_compiler
=yes
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.
$ac_ext >&5
6402 ac_header_compiler
=no
6404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6406 echo "${ECHO_T}$ac_header_compiler" >&6
6408 # Is the header present?
6409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6411 cat >conftest.
$ac_ext <<_ACEOF
6414 cat confdefs.h
>>conftest.
$ac_ext
6415 cat >>conftest.
$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #include <$ac_header>
6419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6420 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6422 grep -v '^ *+' conftest.er1
>conftest.err
6424 cat conftest.err
>&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } >/dev
/null
; then
6427 if test -s conftest.err
; then
6428 ac_cpp_err
=$ac_c_preproc_warn_flag
6429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6436 if test -z "$ac_cpp_err"; then
6437 ac_header_preproc
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 ac_header_preproc
=no
6444 rm -f conftest.err conftest.
$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6446 echo "${ECHO_T}$ac_header_preproc" >&6
6448 # So? What about this header?
6449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6455 ac_header_preproc
=yes
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6472 ## ------------------------------------------ ##
6473 ## Report this to the AC_PACKAGE_NAME lists. ##
6474 ## ------------------------------------------ ##
6477 sed "s/^/$as_me: WARNING: /" >&2
6480 echo "$as_me:$LINENO: checking for $ac_header" >&5
6481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 eval "$as_ac_Header=\$ac_header_preproc"
6487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6492 cat >>confdefs.h
<<_ACEOF
6493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 for ac_header
in net
/if.h
6503 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.
$ac_ext <<_ACEOF
6512 cat confdefs.h
>>conftest.
$ac_ext
6513 cat >>conftest.
$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516 #if HAVE_SYS_SOCKET_H
6517 #include <sys/socket.h>
6520 #include <$ac_header>
6522 rm -f conftest.
$ac_objext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524 (eval $ac_compile) 2>conftest.er1
6526 grep -v '^ *+' conftest.er1
>conftest.err
6528 cat conftest.err
>&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try
='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try
='test -s conftest.$ac_objext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 eval "$as_ac_Header=yes"
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.
$ac_ext >&5
6549 eval "$as_ac_Header=no"
6551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556 cat >>confdefs.h
<<_ACEOF
6557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6566 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6567 if test "${ac_cv_struct_tm+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 cat >conftest.
$ac_ext <<_ACEOF
6573 cat confdefs.h
>>conftest.
$ac_ext
6574 cat >>conftest.
$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <sys/types.h>
6582 struct tm *tp; tp->tm_sec;
6587 rm -f conftest.
$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589 (eval $ac_compile) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1
>conftest.err
6593 cat conftest.err
>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try
='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try
='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_struct_tm
=time.h
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.
$ac_ext >&5
6614 ac_cv_struct_tm
=sys
/time.h
6616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6619 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6620 if test $ac_cv_struct_tm = sys
/time.h
; then
6622 cat >>confdefs.h
<<\_ACEOF
6623 #define TM_IN_SYS_TIME 1
6628 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6629 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6630 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 cat >conftest.
$ac_ext <<_ACEOF
6636 cat confdefs.h
>>conftest.
$ac_ext
6637 cat >>conftest.
$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <sys/types.h>
6640 #include <$ac_cv_struct_tm>
6646 static struct tm ac_aggr;
6647 if (ac_aggr.tm_zone)
6653 rm -f conftest.
$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>conftest.er1
6657 grep -v '^ *+' conftest.er1
>conftest.err
6659 cat conftest.err
>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try
='test -z "$ac_c_werror_flag"
6663 || test ! -s conftest.err'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try
='test -s conftest.$ac_objext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 ac_cv_member_struct_tm_tm_zone
=yes
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.
$ac_ext >&5
6680 cat >conftest.
$ac_ext <<_ACEOF
6683 cat confdefs.h
>>conftest.
$ac_ext
6684 cat >>conftest.
$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <sys/types.h>
6687 #include <$ac_cv_struct_tm>
6693 static struct tm ac_aggr;
6694 if (sizeof ac_aggr.tm_zone)
6700 rm -f conftest.
$ac_objext
6701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6702 (eval $ac_compile) 2>conftest.er1
6704 grep -v '^ *+' conftest.er1
>conftest.err
6706 cat conftest.err
>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try
='test -z "$ac_c_werror_flag"
6710 || test ! -s conftest.err'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; } &&
6716 { ac_try
='test -s conftest.$ac_objext'
6717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6722 ac_cv_member_struct_tm_tm_zone
=yes
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.
$ac_ext >&5
6727 ac_cv_member_struct_tm_tm_zone
=no
6729 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6734 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6735 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6737 cat >>confdefs.h
<<_ACEOF
6738 #define HAVE_STRUCT_TM_TM_ZONE 1
6744 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6746 cat >>confdefs.h
<<\_ACEOF
6747 #define HAVE_TM_ZONE 1
6751 echo "$as_me:$LINENO: checking for tzname" >&5
6752 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6753 if test "${ac_cv_var_tzname+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 cat >conftest.
$ac_ext <<_ACEOF
6759 cat confdefs.h
>>conftest.
$ac_ext
6760 cat >>conftest.
$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6763 #ifndef tzname /* For SGI. */
6764 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6775 rm -f conftest.
$ac_objext conftest
$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>conftest.er1
6779 grep -v '^ *+' conftest.er1
>conftest.err
6781 cat conftest.err
>&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try
='test -z "$ac_c_werror_flag"
6785 || test ! -s conftest.err'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try
='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_var_tzname
=yes
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.
$ac_ext >&5
6804 rm -f conftest.err conftest.
$ac_objext \
6805 conftest
$ac_exeext conftest.
$ac_ext
6807 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6808 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6809 if test $ac_cv_var_tzname = yes; then
6811 cat >>confdefs.h
<<\_ACEOF
6812 #define HAVE_TZNAME 1
6818 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6819 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6820 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.
$ac_ext <<_ACEOF
6826 cat confdefs.h
>>conftest.
$ac_ext
6827 cat >>conftest.
$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6834 static struct tm ac_aggr;
6835 if (ac_aggr.tm_gmtoff)
6841 rm -f conftest.
$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>conftest.er1
6845 grep -v '^ *+' conftest.er1
>conftest.err
6847 cat conftest.err
>&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try
='test -z "$ac_c_werror_flag"
6851 || test ! -s conftest.err'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; } &&
6857 { ac_try
='test -s conftest.$ac_objext'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6863 ac_cv_member_struct_tm_tm_gmtoff
=yes
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.
$ac_ext >&5
6868 cat >conftest.
$ac_ext <<_ACEOF
6871 cat confdefs.h
>>conftest.
$ac_ext
6872 cat >>conftest.
$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6879 static struct tm ac_aggr;
6880 if (sizeof ac_aggr.tm_gmtoff)
6886 rm -f conftest.
$ac_objext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>conftest.er1
6890 grep -v '^ *+' conftest.er1
>conftest.err
6892 cat conftest.err
>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try
='test -z "$ac_c_werror_flag"
6896 || test ! -s conftest.err'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; } &&
6902 { ac_try
='test -s conftest.$ac_objext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 ac_cv_member_struct_tm_tm_gmtoff
=yes
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.
$ac_ext >&5
6913 ac_cv_member_struct_tm_tm_gmtoff
=no
6915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6919 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6920 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6921 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6923 cat >>confdefs.h
<<\_ACEOF
6924 #define HAVE_TM_GMTOFF 1
6929 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6930 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6931 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 cat >conftest.
$ac_ext <<_ACEOF
6937 cat confdefs.h
>>conftest.
$ac_ext
6938 cat >>conftest.
$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6941 #if HAVE_SYS_SOCKET_H
6942 #include <sys/socket.h>
6951 static struct ifreq ac_aggr;
6952 if (ac_aggr.ifr_flags)
6958 rm -f conftest.
$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>conftest.er1
6962 grep -v '^ *+' conftest.er1
>conftest.err
6964 cat conftest.err
>&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try
='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try
='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_member_struct_ifreq_ifr_flags
=yes
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.
$ac_ext >&5
6985 cat >conftest.
$ac_ext <<_ACEOF
6988 cat confdefs.h
>>conftest.
$ac_ext
6989 cat >>conftest.
$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 $ac_includes_default
6992 #if HAVE_SYS_SOCKET_H
6993 #include <sys/socket.h>
7002 static struct ifreq ac_aggr;
7003 if (sizeof ac_aggr.ifr_flags)
7009 rm -f conftest.
$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1
>conftest.err
7015 cat conftest.err
>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try
='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try
='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_member_struct_ifreq_ifr_flags
=yes
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.
$ac_ext >&5
7036 ac_cv_member_struct_ifreq_ifr_flags
=no
7038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7043 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7044 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7046 cat >>confdefs.h
<<_ACEOF
7047 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7052 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7053 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7054 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 cat >conftest.
$ac_ext <<_ACEOF
7060 cat confdefs.h
>>conftest.
$ac_ext
7061 cat >>conftest.
$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 #if HAVE_SYS_SOCKET_H
7065 #include <sys/socket.h>
7074 static struct ifreq ac_aggr;
7075 if (ac_aggr.ifr_hwaddr)
7081 rm -f conftest.
$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>conftest.er1
7085 grep -v '^ *+' conftest.er1
>conftest.err
7087 cat conftest.err
>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try
='test -z "$ac_c_werror_flag"
7091 || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try
='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.
$ac_ext >&5
7108 cat >conftest.
$ac_ext <<_ACEOF
7111 cat confdefs.h
>>conftest.
$ac_ext
7112 cat >>conftest.
$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7115 #if HAVE_SYS_SOCKET_H
7116 #include <sys/socket.h>
7125 static struct ifreq ac_aggr;
7126 if (sizeof ac_aggr.ifr_hwaddr)
7132 rm -f conftest.
$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>conftest.er1
7136 grep -v '^ *+' conftest.er1
>conftest.err
7138 cat conftest.err
>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } &&
7141 { ac_try
='test -z "$ac_c_werror_flag"
7142 || test ! -s conftest.err'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; } &&
7148 { ac_try
='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.
$ac_ext >&5
7159 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7165 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7166 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7167 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7169 cat >>confdefs.h
<<_ACEOF
7170 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7175 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7176 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7177 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 cat >conftest.
$ac_ext <<_ACEOF
7183 cat confdefs.h
>>conftest.
$ac_ext
7184 cat >>conftest.
$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 #if HAVE_SYS_SOCKET_H
7188 #include <sys/socket.h>
7197 static struct ifreq ac_aggr;
7198 if (ac_aggr.ifr_netmask)
7204 rm -f conftest.
$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1
>conftest.err
7210 cat conftest.err
>&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try
='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try
='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.
$ac_ext >&5
7231 cat >conftest.
$ac_ext <<_ACEOF
7234 cat confdefs.h
>>conftest.
$ac_ext
7235 cat >>conftest.
$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 $ac_includes_default
7238 #if HAVE_SYS_SOCKET_H
7239 #include <sys/socket.h>
7248 static struct ifreq ac_aggr;
7249 if (sizeof ac_aggr.ifr_netmask)
7255 rm -f conftest.
$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>conftest.er1
7259 grep -v '^ *+' conftest.er1
>conftest.err
7261 cat conftest.err
>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try
='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try
='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.
$ac_ext >&5
7282 ac_cv_member_struct_ifreq_ifr_netmask
=no
7284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7289 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7290 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7292 cat >>confdefs.h
<<_ACEOF
7293 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7298 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7299 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7300 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #if HAVE_SYS_SOCKET_H
7311 #include <sys/socket.h>
7320 static struct ifreq ac_aggr;
7321 if (ac_aggr.ifr_broadaddr)
7327 rm -f conftest.
$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>conftest.er1
7331 grep -v '^ *+' conftest.er1
>conftest.err
7333 cat conftest.err
>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try
='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try
='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.
$ac_ext >&5
7354 cat >conftest.
$ac_ext <<_ACEOF
7357 cat confdefs.h
>>conftest.
$ac_ext
7358 cat >>conftest.
$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 $ac_includes_default
7361 #if HAVE_SYS_SOCKET_H
7362 #include <sys/socket.h>
7371 static struct ifreq ac_aggr;
7372 if (sizeof ac_aggr.ifr_broadaddr)
7378 rm -f conftest.
$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>conftest.er1
7382 grep -v '^ *+' conftest.er1
>conftest.err
7384 cat conftest.err
>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try
='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try
='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.
$ac_ext >&5
7405 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7412 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7413 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7415 cat >>confdefs.h
<<_ACEOF
7416 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7421 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7422 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7423 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 cat >conftest.
$ac_ext <<_ACEOF
7429 cat confdefs.h
>>conftest.
$ac_ext
7430 cat >>conftest.
$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 #if HAVE_SYS_SOCKET_H
7434 #include <sys/socket.h>
7443 static struct ifreq ac_aggr;
7444 if (ac_aggr.ifr_addr)
7450 rm -f conftest.
$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>conftest.er1
7454 grep -v '^ *+' conftest.er1
>conftest.err
7456 cat conftest.err
>&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try
='test -z "$ac_c_werror_flag"
7460 || test ! -s conftest.err'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try
='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_cv_member_struct_ifreq_ifr_addr
=yes
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.
$ac_ext >&5
7477 cat >conftest.
$ac_ext <<_ACEOF
7480 cat confdefs.h
>>conftest.
$ac_ext
7481 cat >>conftest.
$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 #if HAVE_SYS_SOCKET_H
7485 #include <sys/socket.h>
7494 static struct ifreq ac_aggr;
7495 if (sizeof ac_aggr.ifr_addr)
7501 rm -f conftest.
$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7505 grep -v '^ *+' conftest.er1
>conftest.err
7507 cat conftest.err
>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try
='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try
='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_member_struct_ifreq_ifr_addr
=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.
$ac_ext >&5
7528 ac_cv_member_struct_ifreq_ifr_addr
=no
7530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7536 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7538 cat >>confdefs.h
<<_ACEOF
7539 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7547 echo "$as_me:$LINENO: checking for function prototypes" >&5
7548 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7549 if test "$ac_cv_prog_cc_stdc" != no
; then
7550 echo "$as_me:$LINENO: result: yes" >&5
7551 echo "${ECHO_T}yes" >&6
7553 cat >>confdefs.h
<<\_ACEOF
7554 #define PROTOTYPES 1
7558 cat >>confdefs.h
<<\_ACEOF
7559 #define __PROTOTYPES 1
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7567 echo "$as_me:$LINENO: checking for working volatile" >&5
7568 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7569 if test "${ac_cv_c_volatile+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 cat >conftest.
$ac_ext <<_ACEOF
7575 cat confdefs.h
>>conftest.
$ac_ext
7576 cat >>conftest.
$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7589 rm -f conftest.
$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7593 grep -v '^ *+' conftest.er1
>conftest.err
7595 cat conftest.err
>&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try
='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try
='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_c_volatile
=yes
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.
$ac_ext >&5
7618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7621 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7622 if test $ac_cv_c_volatile = no
; then
7624 cat >>confdefs.h
<<\_ACEOF
7630 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7632 if test "${ac_cv_c_const+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 cat >conftest.
$ac_ext <<_ACEOF
7638 cat confdefs.h
>>conftest.
$ac_ext
7639 cat >>conftest.
$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7645 /* FIXME: Include the comments suggested by Paul. */
7647 /* Ultrix mips cc rejects this. */
7648 typedef int charset[2];
7650 /* SunOS 4.1.1 cc rejects this. */
7651 char const *const *ccp;
7653 /* NEC SVR4.0.2 mips cc rejects this. */
7654 struct point {int x, y;};
7655 static struct point const zero = {0,0};
7656 /* AIX XL C 1.02.0.0 rejects this.
7657 It does not let you subtract one const X* pointer from another in
7658 an arm of an if-expression whose if-part is not a constant
7660 const char *g = "string";
7661 ccp = &g + (g ? g-g : 0);
7662 /* HPUX 7.0 cc rejects these. */
7665 ccp = (char const *const *) p;
7666 { /* SCO 3.2v4 cc rejects this. */
7668 char const *s = 0 ? (char *) 0 : (char const *) 0;
7672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7674 const int *foo = &x[0];
7677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7678 typedef const int *iptr;
7682 { /* AIX XL C 1.02.0.0 rejects this saying
7683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7684 struct s { int j; const int *ap[3]; };
7685 struct s *b; b->j = 5;
7687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7696 rm -f conftest.
$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7700 grep -v '^ *+' conftest.er1
>conftest.err
7702 cat conftest.err
>&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try
='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try
='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7727 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7728 echo "${ECHO_T}$ac_cv_c_const" >&6
7729 if test $ac_cv_c_const = no
; then
7731 cat >>confdefs.h
<<\_ACEOF
7737 echo "$as_me:$LINENO: checking for void * support" >&5
7738 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7739 if test "${emacs_cv_void_star+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 cat >conftest.
$ac_ext <<_ACEOF
7745 cat confdefs.h
>>conftest.
$ac_ext
7746 cat >>conftest.
$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7757 rm -f conftest.
$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7761 grep -v '^ *+' conftest.er1
>conftest.err
7763 cat conftest.err
>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try
='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try
='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 emacs_cv_void_star
=yes
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.
$ac_ext >&5
7784 emacs_cv_void_star
=no
7786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7788 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7789 echo "${ECHO_T}$emacs_cv_void_star" >&6
7790 if test $emacs_cv_void_star = yes; then
7791 cat >>confdefs.h
<<\_ACEOF
7792 #define POINTER_TYPE void
7796 cat >>confdefs.h
<<\_ACEOF
7797 #define POINTER_TYPE char
7806 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7807 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7808 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7809 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 cat >conftest.
make <<\_ACEOF
7814 @
echo 'ac_maketemp="$(MAKE)"'
7816 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7817 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7818 if test -n "$ac_maketemp"; then
7819 eval ac_cv_prog_make_
${ac_make}_set
=yes
7821 eval ac_cv_prog_make_
${ac_make}_set
=no
7825 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827 echo "${ECHO_T}yes" >&6
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832 SET_MAKE
="MAKE=${MAKE-make}"
7836 echo "$as_me:$LINENO: checking for long file names" >&5
7837 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7838 if test "${ac_cv_sys_long_file_names+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cv_sys_long_file_names
=yes
7842 # Test for long file names in all the places we know might matter:
7843 # . the current directory, where building will happen
7844 # $prefix/lib where we will be installing things
7845 # $exec_prefix/lib likewise
7846 # eval it to expand exec_prefix.
7847 # $TMPDIR if set, where it might want to write temporary files
7848 # if $TMPDIR is not set:
7849 # /tmp where it might want to write temporary files
7852 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7855 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7857 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7858 test -d $ac_dir ||
continue
7859 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7860 ac_xdir
=$ac_dir/cf$$
7861 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7862 ac_tf1
=$ac_xdir/conftest9012345
7863 ac_tf2
=$ac_xdir/conftest9012346
7864 (echo 1 >$ac_tf1) 2>/dev
/null
7865 (echo 2 >$ac_tf2) 2>/dev
/null
7866 ac_val
=`cat $ac_tf1 2>/dev/null`
7867 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7868 ac_cv_sys_long_file_names
=no
7869 rm -rf $ac_xdir 2>/dev
/null
7872 rm -rf $ac_xdir 2>/dev
/null
7875 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7876 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7877 if test $ac_cv_sys_long_file_names = yes; then
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define HAVE_LONG_FILE_NAMES 1
7886 #### Choose a window system.
7888 echo "$as_me:$LINENO: checking for X" >&5
7889 echo $ECHO_N "checking for X... $ECHO_C" >&6
7892 # Check whether --with-x or --without-x was given.
7893 if test "${with_x+set}" = set; then
7897 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7898 if test "x$with_x" = xno
; then
7899 # The user explicitly disabled X.
7902 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7903 # Both variables are already set.
7906 if test "${ac_cv_have_x+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 # One or both of the vars are not set, and there is no cached value.
7910 ac_x_includes
=no ac_x_libraries
=no
7912 if mkdir conftest.dir
; then
7914 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7915 cat >Imakefile
<<'_ACEOF'
7917 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7919 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7921 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7922 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7923 for ac_extension
in a so sl
; do
7924 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7925 test -f $ac_im_libdir/libX11.
$ac_extension; then
7926 ac_im_usrlibdir
=$ac_im_libdir; break
7929 # Screen out bogus values from the imake configuration. They are
7930 # bogus both because they are the default anyway, and because
7931 # using them would break gcc on systems where it needs fixed includes.
7932 case $ac_im_incroot in
7934 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7936 case $ac_im_usrlibdir in
7938 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7945 # Standard set of common directories for X headers.
7946 # Check X11 before X11Rn because it is often a symlink to the current release.
7958 /usr/local/X11/include
7959 /usr/local/X11R6/include
7960 /usr/local/X11R5/include
7961 /usr/local/X11R4/include
7963 /usr/local/include/X11
7964 /usr/local/include/X11R6
7965 /usr/local/include/X11R5
7966 /usr/local/include/X11R4
7970 /usr/XFree86/include/X11
7974 /usr/unsupported/include
7976 /usr/local/x11r5/include
7977 /usr/lpp/Xamples/include
7979 /usr/openwin/include
7980 /usr/openwin/share/include'
7982 if test "$ac_x_includes" = no
; then
7983 # Guess where to find include files, by looking for Intrinsic.h.
7984 # First, try using that file with no special directory specified.
7985 cat >conftest.
$ac_ext <<_ACEOF
7988 cat confdefs.h
>>conftest.
$ac_ext
7989 cat >>conftest.
$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 #include <X11/Intrinsic.h>
7993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7994 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7996 grep -v '^ *+' conftest.er1
>conftest.err
7998 cat conftest.err
>&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } >/dev
/null
; then
8001 if test -s conftest.err
; then
8002 ac_cpp_err
=$ac_c_preproc_warn_flag
8003 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8010 if test -z "$ac_cpp_err"; then
8011 # We can compile using X headers with no special include directory.
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.
$ac_ext >&5
8017 for ac_dir
in $ac_x_header_dirs; do
8018 if test -r "$ac_dir/X11/Intrinsic.h"; then
8019 ac_x_includes
=$ac_dir
8024 rm -f conftest.err conftest.
$ac_ext
8025 fi # $ac_x_includes = no
8027 if test "$ac_x_libraries" = no
; then
8028 # Check for the libraries.
8029 # See if we find them without any special options.
8030 # Don't add to $LIBS permanently.
8033 cat >conftest.
$ac_ext <<_ACEOF
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <X11/Intrinsic.h>
8048 rm -f conftest.
$ac_objext conftest
$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>conftest.er1
8052 grep -v '^ *+' conftest.er1
>conftest.err
8054 cat conftest.err
>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try
='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try
='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8071 # We can link X programs with no special library path.
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.
$ac_ext >&5
8078 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8080 # Don't even attempt the hair of trying to link an X program!
8081 for ac_extension
in a so sl
; do
8082 if test -r $ac_dir/libXt.
$ac_extension; then
8083 ac_x_libraries
=$ac_dir
8089 rm -f conftest.err conftest.
$ac_objext \
8090 conftest
$ac_exeext conftest.
$ac_ext
8091 fi # $ac_x_libraries = no
8093 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8094 # Didn't find X anywhere. Cache the known absence of X.
8095 ac_cv_have_x
="have_x=no"
8097 # Record where we found X for the cache.
8098 ac_cv_have_x
="have_x=yes \
8099 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8104 eval "$ac_cv_have_x"
8107 if test "$have_x" != yes; then
8108 echo "$as_me:$LINENO: result: $have_x" >&5
8109 echo "${ECHO_T}$have_x" >&6
8112 # If each of the values was on the command line, it overrides each guess.
8113 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8114 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8115 # Update the cache value to reflect the command line values.
8116 ac_cv_have_x
="have_x=yes \
8117 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8118 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8119 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8122 if test "$no_x" = yes; then
8128 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8129 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8130 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8131 x_default_search_path
=""
8132 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8134 ${x_library}/X11/%L/%T/%N%C%S:\
8135 ${x_library}/X11/%l/%T/%N%C%S:\
8136 ${x_library}/X11/%T/%N%C%S:\
8137 ${x_library}/X11/%L/%T/%N%S:\
8138 ${x_library}/X11/%l/%T/%N%S:\
8139 ${x_library}/X11/%T/%N%S"
8140 if test x
"${x_default_search_path}" = x
; then
8141 x_default_search_path
=${x_search_path}
8143 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8147 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8148 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8151 if test x
"${x_includes}" = x
; then
8152 bitmapdir
=/usr
/include
/X11
/bitmaps
8154 # accumulate include directories that have X11 bitmap subdirectories
8156 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8157 if test -d "${bmd}/X11/bitmaps"; then
8158 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8160 if test -d "${bmd}/bitmaps"; then
8161 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8164 if test ${bmd_acc} != "dummyval"; then
8165 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8169 case "${window_system}" in
8173 case "${with_x_toolkit}" in
8174 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8175 motif
) USE_X_TOOLKIT
=MOTIF
;;
8177 USE_X_TOOLKIT
=none
;;
8178 no
) USE_X_TOOLKIT
=none
;;
8179 * ) USE_X_TOOLKIT
=maybe
;;
8189 ### If we're using X11, we should use the X menu package.
8192 yes ) HAVE_MENUS
=yes ;;
8195 if test "${opsys}" = "hpux9"; then
8196 case "${x_libraries}" in
8198 opsysfile
="s/hpux9-x11r4.h"
8203 if test "${opsys}" = "hpux9shr"; then
8204 case "${x_libraries}" in
8206 opsysfile
="s/hpux9shxr4.h"
8211 ### Compute the unexec source name from the object name.
8212 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8214 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8215 # Assume not, until told otherwise.
8218 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8219 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8220 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 cat >conftest.
$ac_ext <<_ACEOF
8226 cat confdefs.h
>>conftest.
$ac_ext
8227 cat >>conftest.
$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8231 #define malloc_get_state innocuous_malloc_get_state
8233 /* System header to define __stub macros and hopefully few prototypes,
8234 which can conflict with char malloc_get_state (); below.
8235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8236 <limits.h> exists even on freestanding compilers. */
8239 # include <limits.h>
8241 # include <assert.h>
8244 #undef malloc_get_state
8246 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char malloc_get_state ();
8254 /* The GNU C library defines this for functions which it implements
8255 to always fail with ENOSYS. Some functions are actually named
8256 something starting with __ and the normal name is an alias. */
8257 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8260 char (*f) () = malloc_get_state;
8269 return f != malloc_get_state;
8274 rm -f conftest.
$ac_objext conftest
$ac_exeext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>conftest.er1
8278 grep -v '^ *+' conftest.er1
>conftest.err
8280 cat conftest.err
>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try
='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try
='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_func_malloc_get_state
=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.
$ac_ext >&5
8301 ac_cv_func_malloc_get_state
=no
8303 rm -f conftest.err conftest.
$ac_objext \
8304 conftest
$ac_exeext conftest.
$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8307 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8308 if test $ac_cv_func_malloc_get_state = yes; then
8314 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8315 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8316 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8327 #define malloc_set_state innocuous_malloc_set_state
8329 /* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char malloc_set_state (); below.
8331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8332 <limits.h> exists even on freestanding compilers. */
8335 # include <limits.h>
8337 # include <assert.h>
8340 #undef malloc_set_state
8342 /* Override any gcc2 internal prototype to avoid an error. */
8347 /* We use char because int might match the return type of a gcc2
8348 builtin and then its argument prototype would still apply. */
8349 char malloc_set_state ();
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8356 char (*f) () = malloc_set_state;
8365 return f != malloc_set_state;
8370 rm -f conftest.
$ac_objext conftest
$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>conftest.er1
8374 grep -v '^ *+' conftest.er1
>conftest.err
8376 cat conftest.err
>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try
='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try
='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_func_malloc_set_state
=yes
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.
$ac_ext >&5
8397 ac_cv_func_malloc_set_state
=no
8399 rm -f conftest.err conftest.
$ac_objext \
8400 conftest
$ac_exeext conftest.
$ac_ext
8402 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8403 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8404 if test $ac_cv_func_malloc_set_state = yes; then
8410 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8411 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8412 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 cat >conftest.
$ac_ext <<_ACEOF
8418 cat confdefs.h
>>conftest.
$ac_ext
8419 cat >>conftest.
$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 extern void (* __after_morecore_hook)();
8425 __after_morecore_hook = 0
8430 rm -f conftest.
$ac_objext conftest
$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432 (eval $ac_link) 2>conftest.er1
8434 grep -v '^ *+' conftest.er1
>conftest.err
8436 cat conftest.err
>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try
='test -z "$ac_c_werror_flag"
8440 || test ! -s conftest.err'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try
='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 emacs_cv_var___after_morecore_hook
=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.
$ac_ext >&5
8457 emacs_cv_var___after_morecore_hook
=no
8459 rm -f conftest.err conftest.
$ac_objext \
8460 conftest
$ac_exeext conftest.
$ac_ext
8462 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8463 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8464 if test $emacs_cv_var___after_morecore_hook = no
; then
8467 if test "${system_malloc}" = "yes"; then
8470 (The GNU allocators don't work with this system configuration.)"
8472 if test "$doug_lea_malloc" = "yes" ; then
8473 if test "$GNU_MALLOC" = yes ; then
8475 (Using Doug Lea's new malloc from the GNU C Library.)"
8478 cat >>confdefs.h
<<\_ACEOF
8479 #define DOUG_LEA_MALLOC 1
8484 if test x
"${REL_ALLOC}" = x
; then
8485 REL_ALLOC
=${GNU_MALLOC}
8491 for ac_header
in stdlib.h unistd.h
8493 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495 echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8503 # Is the header compilable?
8504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8506 cat >conftest.
$ac_ext <<_ACEOF
8509 cat confdefs.h
>>conftest.
$ac_ext
8510 cat >>conftest.
$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 #include <$ac_header>
8515 rm -f conftest.
$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1
>conftest.err
8521 cat conftest.err
>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try
='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try
='test -s conftest.$ac_objext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_header_compiler
=yes
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.
$ac_ext >&5
8542 ac_header_compiler
=no
8544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8546 echo "${ECHO_T}$ac_header_compiler" >&6
8548 # Is the header present?
8549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8551 cat >conftest.
$ac_ext <<_ACEOF
8554 cat confdefs.h
>>conftest.
$ac_ext
8555 cat >>conftest.
$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 #include <$ac_header>
8559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8560 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1
>conftest.err
8564 cat conftest.err
>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } >/dev
/null
; then
8567 if test -s conftest.err
; then
8568 ac_cpp_err
=$ac_c_preproc_warn_flag
8569 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8576 if test -z "$ac_cpp_err"; then
8577 ac_header_preproc
=yes
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.
$ac_ext >&5
8582 ac_header_preproc
=no
8584 rm -f conftest.err conftest.
$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8586 echo "${ECHO_T}$ac_header_preproc" >&6
8588 # So? What about this header?
8589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8595 ac_header_preproc
=yes
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8612 ## ------------------------------------------ ##
8613 ## Report this to the AC_PACKAGE_NAME lists. ##
8614 ## ------------------------------------------ ##
8617 sed "s/^/$as_me: WARNING: /" >&2
8620 echo "$as_me:$LINENO: checking for $ac_header" >&5
8621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 eval "$as_ac_Header=\$ac_header_preproc"
8627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h
<<_ACEOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641 for ac_func
in getpagesize
8643 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8644 echo "$as_me:$LINENO: checking for $ac_func" >&5
8645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8646 if eval "test \"\${$as_ac_var+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 cat >conftest.
$ac_ext <<_ACEOF
8652 cat confdefs.h
>>conftest.
$ac_ext
8653 cat >>conftest.
$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8657 #define $ac_func innocuous_$ac_func
8659 /* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char $ac_func (); below.
8661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662 <limits.h> exists even on freestanding compilers. */
8665 # include <limits.h>
8667 # include <assert.h>
8672 /* Override any gcc2 internal prototype to avoid an error. */
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8680 /* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8686 char (*f) () = $ac_func;
8695 return f != $ac_func;
8700 rm -f conftest.
$ac_objext conftest
$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8704 grep -v '^ *+' conftest.er1
>conftest.err
8706 cat conftest.err
>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try
='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try
='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 eval "$as_ac_var=yes"
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.
$ac_ext >&5
8727 eval "$as_ac_var=no"
8729 rm -f conftest.err conftest.
$ac_objext \
8730 conftest
$ac_exeext conftest.
$ac_ext
8732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8734 if test `eval echo '${'$as_ac_var'}'` = yes; then
8735 cat >>confdefs.h
<<_ACEOF
8736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8742 echo "$as_me:$LINENO: checking for working mmap" >&5
8743 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8744 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 if test "$cross_compiling" = yes; then
8748 ac_cv_func_mmap_fixed_mapped
=no
8750 cat >conftest.
$ac_ext <<_ACEOF
8753 cat confdefs.h
>>conftest.
$ac_ext
8754 cat >>conftest.
$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 /* malloc might have been renamed as rpl_malloc. */
8760 /* Thanks to Mike Haertel and Jim Avera for this test.
8761 Here is a matrix of mmap possibilities:
8762 mmap private not fixed
8763 mmap private fixed at somewhere currently unmapped
8764 mmap private fixed at somewhere already mapped
8765 mmap shared not fixed
8766 mmap shared fixed at somewhere currently unmapped
8767 mmap shared fixed at somewhere already mapped
8768 For private mappings, we should verify that changes cannot be read()
8769 back from the file, nor mmap's back from the file at a different
8770 address. (There have been systems where private was not correctly
8771 implemented like the infamous i386 svr4.0, and systems where the
8772 VM page cache was not coherent with the file system buffer cache
8773 like early versions of FreeBSD and possibly contemporary NetBSD.)
8774 For shared mappings, we should conversely verify that changes get
8775 propagated back to all the places they're supposed to be.
8777 Grep wants private fixed already mapped.
8778 The main things grep needs to know about mmap are:
8779 * does it exist and is it safe to write into the mmap'd area
8780 * how to use it (BSD variants) */
8783 #include <sys/mman.h>
8785 #if !STDC_HEADERS && !HAVE_STDLIB_H
8789 /* This mess was copied from the GNU getpagesize.h. */
8790 #if !HAVE_GETPAGESIZE
8791 /* Assume that all systems that can run configure have sys/param.h. */
8792 # if !HAVE_SYS_PARAM_H
8793 # define HAVE_SYS_PARAM_H 1
8796 # ifdef _SC_PAGESIZE
8797 # define getpagesize() sysconf(_SC_PAGESIZE)
8798 # else /* no _SC_PAGESIZE */
8799 # if HAVE_SYS_PARAM_H
8800 # include <sys/param.h>
8801 # ifdef EXEC_PAGESIZE
8802 # define getpagesize() EXEC_PAGESIZE
8803 # else /* no EXEC_PAGESIZE */
8805 # define getpagesize() NBPG * CLSIZE
8808 # endif /* no CLSIZE */
8809 # else /* no NBPG */
8811 # define getpagesize() NBPC
8812 # else /* no NBPC */
8814 # define getpagesize() PAGESIZE
8815 # endif /* PAGESIZE */
8816 # endif /* no NBPC */
8817 # endif /* no NBPG */
8818 # endif /* no EXEC_PAGESIZE */
8819 # else /* no HAVE_SYS_PARAM_H */
8820 # define getpagesize() 8192 /* punt totally */
8821 # endif /* no HAVE_SYS_PARAM_H */
8822 # endif /* no _SC_PAGESIZE */
8824 #endif /* no HAVE_GETPAGESIZE */
8829 char *data, *data2, *data3;
8833 pagesize = getpagesize ();
8835 /* First, make a file with some known garbage in it. */
8836 data = (char *) malloc (pagesize);
8839 for (i = 0; i < pagesize; ++i)
8840 *(data + i) = rand ();
8842 fd = creat ("conftest.mmap", 0600);
8845 if (write (fd, data, pagesize) != pagesize)
8849 /* Next, try to mmap the file at a fixed address which already has
8850 something else allocated at it. If we can, also make sure that
8851 we see the same garbage. */
8852 fd = open ("conftest.mmap", O_RDWR);
8855 data2 = (char *) malloc (2 * pagesize);
8858 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8859 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8860 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8862 for (i = 0; i < pagesize; ++i)
8863 if (*(data + i) != *(data2 + i))
8866 /* Finally, make sure that changes to the mapped area do not
8867 percolate back to the file as seen by read(). (This is a bug on
8868 some variants of i386 svr4.0.) */
8869 for (i = 0; i < pagesize; ++i)
8870 *(data2 + i) = *(data2 + i) + 1;
8871 data3 = (char *) malloc (pagesize);
8874 if (read (fd, data3, pagesize) != pagesize)
8876 for (i = 0; i < pagesize; ++i)
8877 if (*(data + i) != *(data3 + i))
8883 rm -f conftest
$ac_exeext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8885 (eval $ac_link) 2>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_func_mmap_fixed_mapped
=yes
8896 echo "$as_me: program exited with status $ac_status" >&5
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8901 ac_cv_func_mmap_fixed_mapped
=no
8903 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8906 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8907 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8908 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8910 cat >>confdefs.h
<<\_ACEOF
8917 if test $use_mmap_for_buffers = yes; then
8921 LIBS
="$libsrc_libs $LIBS"
8924 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8925 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8926 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 ac_check_lib_save_LIBS
=$LIBS
8931 cat >conftest.
$ac_ext <<_ACEOF
8934 cat confdefs.h
>>conftest.
$ac_ext
8935 cat >>conftest.
$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8938 /* Override any gcc2 internal prototype to avoid an error. */
8942 /* We use char because int might match the return type of a gcc2
8943 builtin and then its argument prototype would still apply. */
8953 rm -f conftest.
$ac_objext conftest
$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>conftest.er1
8957 grep -v '^ *+' conftest.er1
>conftest.err
8959 cat conftest.err
>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try
='test -z "$ac_c_werror_flag"
8963 || test ! -s conftest.err'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } &&
8969 { ac_try
='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 ac_cv_lib_dnet_dnet_ntoa
=yes
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.
$ac_ext >&5
8980 ac_cv_lib_dnet_dnet_ntoa
=no
8982 rm -f conftest.err conftest.
$ac_objext \
8983 conftest
$ac_exeext conftest.
$ac_ext
8984 LIBS
=$ac_check_lib_save_LIBS
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8987 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8988 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8989 cat >>confdefs.h
<<_ACEOF
8990 #define HAVE_LIBDNET 1
8998 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8999 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9000 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9001 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 ac_check_lib_save_LIBS
=$LIBS
9005 cat >conftest.
$ac_ext <<_ACEOF
9008 cat confdefs.h
>>conftest.
$ac_ext
9009 cat >>conftest.
$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9021 rm -f conftest.
$ac_objext conftest
$ac_exeext
9022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9023 (eval $ac_link) 2>conftest.er1
9025 grep -v '^ *+' conftest.er1
>conftest.err
9027 cat conftest.err
>&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try
='test -z "$ac_c_werror_flag"
9031 || test ! -s conftest.err'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; } &&
9037 { ac_try
='test -s conftest$ac_exeext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_lib_Xbsd_main
=yes
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.
$ac_ext >&5
9048 ac_cv_lib_Xbsd_main
=no
9050 rm -f conftest.err conftest.
$ac_objext \
9051 conftest
$ac_exeext conftest.
$ac_ext
9052 LIBS
=$ac_check_lib_save_LIBS
9054 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9055 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9056 if test $ac_cv_lib_Xbsd_main = yes; then
9057 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9062 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9063 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9064 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 ac_check_lib_save_LIBS
=$LIBS
9068 LIBS
="-lpthreads $LIBS"
9069 cat >conftest.
$ac_ext <<_ACEOF
9072 cat confdefs.h
>>conftest.
$ac_ext
9073 cat >>conftest.
$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9076 /* Override any gcc2 internal prototype to avoid an error. */
9080 /* We use char because int might match the return type of a gcc2
9081 builtin and then its argument prototype would still apply. */
9091 rm -f conftest.
$ac_objext conftest
$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093 (eval $ac_link) 2>conftest.er1
9095 grep -v '^ *+' conftest.er1
>conftest.err
9097 cat conftest.err
>&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try
='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try
='test -s conftest$ac_exeext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_lib_pthreads_cma_open
=yes
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.
$ac_ext >&5
9118 ac_cv_lib_pthreads_cma_open
=no
9120 rm -f conftest.err conftest.
$ac_objext \
9121 conftest
$ac_exeext conftest.
$ac_ext
9122 LIBS
=$ac_check_lib_save_LIBS
9124 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9125 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9126 if test $ac_cv_lib_pthreads_cma_open = yes; then
9127 cat >>confdefs.h
<<_ACEOF
9128 #define HAVE_LIBPTHREADS 1
9131 LIBS
="-lpthreads $LIBS"
9136 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9137 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9138 if test -d /usr
/X386
/include
; then
9140 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9144 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9145 echo "${ECHO_T}$HAVE_XFREE386" >&6
9150 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9151 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9152 if test "${gdb_cv_bigtoc+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9158 *) gdb_cv_bigtoc
=-bbigtoc ;;
9161 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9162 cat >conftest.
$ac_ext <<_ACEOF
9165 cat confdefs.h
>>conftest.
$ac_ext
9166 cat >>conftest.
$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9177 rm -f conftest.
$ac_objext conftest
$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try
='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try
='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.
$ac_ext >&5
9206 rm -f conftest.err conftest.
$ac_objext \
9207 conftest
$ac_exeext conftest.
$ac_ext
9210 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9211 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9215 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9216 # used for the tests that follow. We set them back to REAL_CFLAGS and
9217 # REAL_CPPFLAGS later on.
9219 REAL_CPPFLAGS
="$CPPFLAGS"
9221 if test "${HAVE_X11}" = "yes"; then
9222 DEFS
="$C_SWITCH_X_SITE $DEFS"
9223 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9225 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9226 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9228 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9229 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9230 # but it's more convenient here to set LD_RUN_PATH
9231 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9232 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9233 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9237 if test "${opsys}" = "gnu-linux"; then
9238 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9239 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9250 XOpenDisplay ("foo");
9255 rm -f conftest.
$ac_objext conftest
$ac_exeext
9256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257 (eval $ac_link) 2>conftest.er1
9259 grep -v '^ *+' conftest.er1
>conftest.err
9261 cat conftest.err
>&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } &&
9264 { ac_try
='test -z "$ac_c_werror_flag"
9265 || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try
='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 xlinux_first_failure
=no
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.
$ac_ext >&5
9282 xlinux_first_failure
=yes
9284 rm -f conftest.err conftest.
$ac_objext \
9285 conftest
$ac_exeext conftest.
$ac_ext
9286 if test "${xlinux_first_failure}" = "yes"; then
9287 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9288 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9289 OLD_CPPFLAGS
="$CPPFLAGS"
9291 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9292 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9293 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9294 LIBS
="$LIBS -b i486-linuxaout"
9295 cat >conftest.
$ac_ext <<_ACEOF
9298 cat confdefs.h
>>conftest.
$ac_ext
9299 cat >>conftest.
$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9305 XOpenDisplay ("foo");
9310 rm -f conftest.
$ac_objext conftest
$ac_exeext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312 (eval $ac_link) 2>conftest.er1
9314 grep -v '^ *+' conftest.er1
>conftest.err
9316 cat conftest.err
>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try
='test -z "$ac_c_werror_flag"
9320 || test ! -s conftest.err'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; } &&
9326 { ac_try
='test -s conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 xlinux_second_failure
=no
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.
$ac_ext >&5
9337 xlinux_second_failure
=yes
9339 rm -f conftest.err conftest.
$ac_objext \
9340 conftest
$ac_exeext conftest.
$ac_ext
9341 if test "${xlinux_second_failure}" = "yes"; then
9342 # If we get the same failure with -b, there is no use adding -b.
9343 # So take it out. This plays safe.
9344 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9345 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9346 CPPFLAGS
="$OLD_CPPFLAGS"
9348 echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6
9351 echo "$as_me:$LINENO: result: yes" >&5
9352 echo "${ECHO_T}yes" >&6
9355 echo "$as_me:$LINENO: result: no" >&5
9356 echo "${ECHO_T}no" >&6
9360 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9361 # header files included from there.
9362 echo "$as_me:$LINENO: checking for Xkb" >&5
9363 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9364 cat >conftest.
$ac_ext <<_ACEOF
9367 cat confdefs.h
>>conftest.
$ac_ext
9368 cat >>conftest.
$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 #include <X11/Xlib.h>
9371 #include <X11/XKBlib.h>
9375 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9380 rm -f conftest.
$ac_objext conftest
$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9384 grep -v '^ *+' conftest.er1
>conftest.err
9386 cat conftest.err
>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try
='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try
='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.
$ac_ext >&5
9409 rm -f conftest.err conftest.
$ac_objext \
9410 conftest
$ac_exeext conftest.
$ac_ext
9411 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9412 echo "${ECHO_T}$emacs_xkb" >&6
9413 if test $emacs_xkb = yes; then
9415 cat >>confdefs.h
<<\_ACEOF
9416 #define HAVE_XKBGETKEYBOARD 1
9425 for ac_func
in XrmSetDatabase XScreenResourceString \
9426 XScreenNumberOfScreen XSetWMProtocols
9428 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9429 echo "$as_me:$LINENO: checking for $ac_func" >&5
9430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9431 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442 #define $ac_func innocuous_$ac_func
9444 /* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char $ac_func (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9450 # include <limits.h>
9452 # include <assert.h>
9457 /* Override any gcc2 internal prototype to avoid an error. */
9462 /* We use char because int might match the return type of a gcc2
9463 builtin and then its argument prototype would still apply. */
9465 /* The GNU C library defines this for functions which it implements
9466 to always fail with ENOSYS. Some functions are actually named
9467 something starting with __ and the normal name is an alias. */
9468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9471 char (*f) () = $ac_func;
9480 return f != $ac_func;
9485 rm -f conftest.
$ac_objext conftest
$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>conftest.er1
9489 grep -v '^ *+' conftest.er1
>conftest.err
9491 cat conftest.err
>&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try
='test -z "$ac_c_werror_flag"
9495 || test ! -s conftest.err'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; } &&
9501 { ac_try
='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 eval "$as_ac_var=yes"
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.
$ac_ext >&5
9512 eval "$as_ac_var=no"
9514 rm -f conftest.err conftest.
$ac_objext \
9515 conftest
$ac_exeext conftest.
$ac_ext
9517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9519 if test `eval echo '${'$as_ac_var'}'` = yes; then
9520 cat >>confdefs.h
<<_ACEOF
9521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9529 if test "${window_system}" = "x11"; then
9530 echo "$as_me:$LINENO: checking X11 version 6" >&5
9531 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9532 if test "${emacs_cv_x11_version_6+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 cat >conftest.
$ac_ext <<_ACEOF
9538 cat confdefs.h
>>conftest.
$ac_ext
9539 cat >>conftest.
$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 #include <X11/Xlib.h>
9545 #if XlibSpecificationRelease < 6
9553 rm -f conftest.
$ac_objext conftest
$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>conftest.er1
9557 grep -v '^ *+' conftest.er1
>conftest.err
9559 cat conftest.err
>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try
='test -z "$ac_c_werror_flag"
9563 || test ! -s conftest.err'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try
='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 emacs_cv_x11_version_6
=yes
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.
$ac_ext >&5
9580 emacs_cv_x11_version_6
=no
9582 rm -f conftest.err conftest.
$ac_objext \
9583 conftest
$ac_exeext conftest.
$ac_ext
9586 if test $emacs_cv_x11_version_6 = yes; then
9587 echo "$as_me:$LINENO: result: 6 or newer" >&5
9588 echo "${ECHO_T}6 or newer" >&6
9590 cat >>confdefs.h
<<\_ACEOF
9591 #define HAVE_X11R6 1
9595 echo "$as_me:$LINENO: result: before 6" >&5
9596 echo "${ECHO_T}before 6" >&6
9600 if test "${window_system}" = "x11"; then
9601 echo "$as_me:$LINENO: checking X11 version 5" >&5
9602 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9603 if test "${emacs_cv_x11_version_5+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 cat >conftest.
$ac_ext <<_ACEOF
9609 cat confdefs.h
>>conftest.
$ac_ext
9610 cat >>conftest.
$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 #include <X11/Xlib.h>
9616 #if XlibSpecificationRelease < 5
9624 rm -f conftest.
$ac_objext conftest
$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>conftest.er1
9628 grep -v '^ *+' conftest.er1
>conftest.err
9630 cat conftest.err
>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try
='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try
='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 emacs_cv_x11_version_5
=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.
$ac_ext >&5
9651 emacs_cv_x11_version_5
=no
9653 rm -f conftest.err conftest.
$ac_objext \
9654 conftest
$ac_exeext conftest.
$ac_ext
9657 if test $emacs_cv_x11_version_5 = yes; then
9658 echo "$as_me:$LINENO: result: 5 or newer" >&5
9659 echo "${ECHO_T}5 or newer" >&6
9662 cat >>confdefs.h
<<\_ACEOF
9663 #define HAVE_X11R5 1
9668 echo "$as_me:$LINENO: result: before 5" >&5
9669 echo "${ECHO_T}before 5" >&6
9676 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9677 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9678 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9679 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9680 { (exit 1); exit 1; }; };
9684 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9686 if test "X${with_pkg_config_prog}" != X
; then
9687 PKG_CONFIG
="${with_pkg_config_prog}"
9692 if test -z "$PKG_CONFIG"; then
9693 # Extract the first word of "pkg-config", so it can be a program name with args.
9694 set dummy pkg-config
; ac_word
=$2
9695 echo "$as_me:$LINENO: checking for $ac_word" >&5
9696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9697 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9709 test -z "$as_dir" && as_dir
=.
9710 for ac_exec_ext
in '' $ac_executable_extensions; do
9711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9723 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9725 if test -n "$PKG_CONFIG"; then
9726 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9727 echo "${ECHO_T}$PKG_CONFIG" >&6
9729 echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6
9735 if test "$PKG_CONFIG" = "no" ; then
9736 echo "*** The pkg-config script could not be found. Make sure it is"
9737 echo "*** in your path, or give the full path to pkg-config with"
9738 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9739 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9741 PKG_CONFIG_MIN_VERSION
=0.9.0
9742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9743 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9744 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9746 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9747 echo "$as_me:$LINENO: result: yes" >&5
9748 echo "${ECHO_T}yes" >&6
9751 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9752 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9753 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9754 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9755 echo "${ECHO_T}$GTK_CFLAGS" >&6
9757 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9758 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9759 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9760 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9761 echo "${ECHO_T}$GTK_LIBS" >&6
9765 ## If we have a custom action on failure, don't print errors, but
9766 ## do set a variable so people can do so.
9767 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9768 echo $GTK_PKG_ERRORS
9774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9779 if test $succeeded = yes; then
9782 { { 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
9783 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;}
9784 { (exit 1); exit 1; }; }
9789 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9790 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9791 LIBS
="$GTK_LIBS $LIBS"
9794 cat >>confdefs.h
<<\_ACEOF
9800 if test "$with_toolkit_scroll_bars" != no
; then
9801 with_toolkit_scroll_bars
=yes
9804 HAVE_GTK_MULTIDISPLAY
=no
9806 for ac_func
in gdk_display_open
9808 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809 echo "$as_me:$LINENO: checking for $ac_func" >&5
9810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9811 if eval "test \"\${$as_ac_var+set}\" = set"; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.
$ac_ext <<_ACEOF
9817 cat confdefs.h
>>conftest.
$ac_ext
9818 cat >>conftest.
$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9822 #define $ac_func innocuous_$ac_func
9824 /* System header to define __stub macros and hopefully few prototypes,
9825 which can conflict with char $ac_func (); below.
9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827 <limits.h> exists even on freestanding compilers. */
9830 # include <limits.h>
9832 # include <assert.h>
9837 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9845 /* The GNU C library defines this for functions which it implements
9846 to always fail with ENOSYS. Some functions are actually named
9847 something starting with __ and the normal name is an alias. */
9848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9851 char (*f) () = $ac_func;
9860 return f != $ac_func;
9865 rm -f conftest.
$ac_objext conftest
$ac_exeext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>conftest.er1
9869 grep -v '^ *+' conftest.er1
>conftest.err
9871 cat conftest.err
>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try
='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try
='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 eval "$as_ac_var=yes"
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.
$ac_ext >&5
9892 eval "$as_ac_var=no"
9894 rm -f conftest.err conftest.
$ac_objext \
9895 conftest
$ac_exeext conftest.
$ac_ext
9897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9899 if test `eval echo '${'$as_ac_var'}'` = yes; then
9900 cat >>confdefs.h
<<_ACEOF
9901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9903 HAVE_GTK_MULTIDISPLAY
=yes
9907 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9909 cat >>confdefs.h
<<\_ACEOF
9910 #define HAVE_GTK_MULTIDISPLAY 1
9914 HAVE_GTK_FILE_SELECTION
=no
9916 for ac_func
in gtk_file_selection_new
9918 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 echo "$as_me:$LINENO: checking for $ac_func" >&5
9920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_var+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 cat >conftest.
$ac_ext <<_ACEOF
9927 cat confdefs.h
>>conftest.
$ac_ext
9928 cat >>conftest.
$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9932 #define $ac_func innocuous_$ac_func
9934 /* System header to define __stub macros and hopefully few prototypes,
9935 which can conflict with char $ac_func (); below.
9936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9937 <limits.h> exists even on freestanding compilers. */
9940 # include <limits.h>
9942 # include <assert.h>
9947 /* Override any gcc2 internal prototype to avoid an error. */
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9955 /* The GNU C library defines this for functions which it implements
9956 to always fail with ENOSYS. Some functions are actually named
9957 something starting with __ and the normal name is an alias. */
9958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9961 char (*f) () = $ac_func;
9970 return f != $ac_func;
9975 rm -f conftest.
$ac_objext conftest
$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>conftest.er1
9979 grep -v '^ *+' conftest.er1
>conftest.err
9981 cat conftest.err
>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try
='test -z "$ac_c_werror_flag"
9985 || test ! -s conftest.err'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try
='test -s conftest$ac_exeext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 eval "$as_ac_var=yes"
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.
$ac_ext >&5
10002 eval "$as_ac_var=no"
10004 rm -f conftest.err conftest.
$ac_objext \
10005 conftest
$ac_exeext conftest.
$ac_ext
10007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10009 if test `eval echo '${'$as_ac_var'}'` = yes; then
10010 cat >>confdefs.h
<<_ACEOF
10011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10013 HAVE_GTK_FILE_SELECTION
=yes
10018 HAVE_GTK_FILE_CHOOSER
=no
10020 for ac_func
in gtk_file_chooser_dialog_new
10022 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10023 echo "$as_me:$LINENO: checking for $ac_func" >&5
10024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10025 if eval "test \"\${$as_ac_var+set}\" = set"; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 cat >conftest.
$ac_ext <<_ACEOF
10031 cat confdefs.h
>>conftest.
$ac_ext
10032 cat >>conftest.
$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10036 #define $ac_func innocuous_$ac_func
10038 /* System header to define __stub macros and hopefully few prototypes,
10039 which can conflict with char $ac_func (); below.
10040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10041 <limits.h> exists even on freestanding compilers. */
10044 # include <limits.h>
10046 # include <assert.h>
10051 /* Override any gcc2 internal prototype to avoid an error. */
10056 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10059 /* The GNU C library defines this for functions which it implements
10060 to always fail with ENOSYS. Some functions are actually named
10061 something starting with __ and the normal name is an alias. */
10062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10065 char (*f) () = $ac_func;
10074 return f != $ac_func;
10079 rm -f conftest.
$ac_objext conftest
$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10083 grep -v '^ *+' conftest.er1
>conftest.err
10085 cat conftest.err
>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try
='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
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); }; } &&
10095 { ac_try
='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 eval "$as_ac_var=yes"
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.
$ac_ext >&5
10106 eval "$as_ac_var=no"
10108 rm -f conftest.err conftest.
$ac_objext \
10109 conftest
$ac_exeext conftest.
$ac_ext
10111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10113 if test `eval echo '${'$as_ac_var'}'` = yes; then
10114 cat >>confdefs.h
<<_ACEOF
10115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10117 HAVE_GTK_FILE_CHOOSER
=yes
10122 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10123 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10125 cat >>confdefs.h
<<\_ACEOF
10126 #define HAVE_GTK_FILE_BOTH 1
10131 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10132 HAVE_GTK_AND_PTHREAD
=no
10134 for ac_header
in pthread.h
10136 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10138 echo "$as_me:$LINENO: checking for $ac_header" >&5
10139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10146 # Is the header compilable?
10147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10149 cat >conftest.
$ac_ext <<_ACEOF
10152 cat confdefs.h
>>conftest.
$ac_ext
10153 cat >>conftest.
$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 $ac_includes_default
10156 #include <$ac_header>
10158 rm -f conftest.
$ac_objext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10160 (eval $ac_compile) 2>conftest.er1
10162 grep -v '^ *+' conftest.er1
>conftest.err
10164 cat conftest.err
>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try
='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try
='test -s conftest.$ac_objext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_header_compiler
=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.
$ac_ext >&5
10185 ac_header_compiler
=no
10187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10189 echo "${ECHO_T}$ac_header_compiler" >&6
10191 # Is the header present?
10192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10194 cat >conftest.
$ac_ext <<_ACEOF
10197 cat confdefs.h
>>conftest.
$ac_ext
10198 cat >>conftest.
$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <$ac_header>
10202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10203 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10205 grep -v '^ *+' conftest.er1
>conftest.err
10207 cat conftest.err
>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } >/dev
/null
; then
10210 if test -s conftest.err
; then
10211 ac_cpp_err
=$ac_c_preproc_warn_flag
10212 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10219 if test -z "$ac_cpp_err"; then
10220 ac_header_preproc
=yes
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.
$ac_ext >&5
10225 ac_header_preproc
=no
10227 rm -f conftest.err conftest.
$ac_ext
10228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10229 echo "${ECHO_T}$ac_header_preproc" >&6
10231 # So? What about this header?
10232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10238 ac_header_preproc
=yes
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10255 ## ------------------------------------------ ##
10256 ## Report this to the AC_PACKAGE_NAME lists. ##
10257 ## ------------------------------------------ ##
10260 sed "s/^/$as_me: WARNING: /" >&2
10263 echo "$as_me:$LINENO: checking for $ac_header" >&5
10264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 eval "$as_ac_Header=\$ac_header_preproc"
10270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10275 cat >>confdefs.h
<<_ACEOF
10276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10283 if test "$ac_cv_header_pthread_h"; then
10284 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10285 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10286 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 ac_check_lib_save_LIBS
=$LIBS
10290 LIBS
="-lpthread $LIBS"
10291 cat >conftest.
$ac_ext <<_ACEOF
10294 cat confdefs.h
>>conftest.
$ac_ext
10295 cat >>conftest.
$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10298 /* Override any gcc2 internal prototype to avoid an error. */
10302 /* We use char because int might match the return type of a gcc2
10303 builtin and then its argument prototype would still apply. */
10304 char pthread_self ();
10313 rm -f conftest.
$ac_objext conftest
$ac_exeext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10315 (eval $ac_link) 2>conftest.er1
10317 grep -v '^ *+' conftest.er1
>conftest.err
10319 cat conftest.err
>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try
='test -z "$ac_c_werror_flag"
10323 || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try
='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_cv_lib_pthread_pthread_self
=yes
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.
$ac_ext >&5
10340 ac_cv_lib_pthread_pthread_self
=no
10342 rm -f conftest.err conftest.
$ac_objext \
10343 conftest
$ac_exeext conftest.
$ac_ext
10344 LIBS
=$ac_check_lib_save_LIBS
10346 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10347 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10348 if test $ac_cv_lib_pthread_pthread_self = yes; then
10349 HAVE_GTK_AND_PTHREAD
=yes
10353 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10354 GTK_LIBS
="$GTK_LIBS -lpthread"
10356 cat >>confdefs.h
<<\_ACEOF
10357 #define HAVE_GTK_AND_PTHREAD 1
10364 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10365 if test x
"${HAVE_X11R5}" = xyes
; then
10366 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10367 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10368 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 cat >conftest.
$ac_ext <<_ACEOF
10374 cat confdefs.h
>>conftest.
$ac_ext
10375 cat >>conftest.
$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10378 #include <X11/Intrinsic.h>
10379 #include <X11/Xaw/Simple.h>
10388 rm -f conftest.
$ac_objext conftest
$ac_exeext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10392 grep -v '^ *+' conftest.er1
>conftest.err
10394 cat conftest.err
>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
10397 { ac_try
='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try
='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 emacs_cv_x11_version_5_with_xaw
=yes
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.
$ac_ext >&5
10415 emacs_cv_x11_version_5_with_xaw
=no
10417 rm -f conftest.err conftest.
$ac_objext \
10418 conftest
$ac_exeext conftest.
$ac_ext
10421 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10422 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10423 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10424 USE_X_TOOLKIT
=LUCID
10426 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10427 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10435 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10437 if test "${USE_X_TOOLKIT}" != "none"; then
10438 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10439 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10440 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 cat >conftest.
$ac_ext <<_ACEOF
10446 cat confdefs.h
>>conftest.
$ac_ext
10447 cat >>conftest.
$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 #include <X11/Intrinsic.h>
10453 #if XtSpecificationRelease < 6
10461 rm -f conftest.
$ac_objext conftest
$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>conftest.er1
10465 grep -v '^ *+' conftest.er1
>conftest.err
10467 cat conftest.err
>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try
='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try
='test -s conftest$ac_exeext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 emacs_cv_x11_toolkit_version_6
=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.
$ac_ext >&5
10488 emacs_cv_x11_toolkit_version_6
=no
10490 rm -f conftest.err conftest.
$ac_objext \
10491 conftest
$ac_exeext conftest.
$ac_ext
10494 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10495 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10496 echo "$as_me:$LINENO: result: 6 or newer" >&5
10497 echo "${ECHO_T}6 or newer" >&6
10499 cat >>confdefs.h
<<\_ACEOF
10500 #define HAVE_X11XTR6 1
10504 echo "$as_me:$LINENO: result: before 6" >&5
10505 echo "${ECHO_T}before 6" >&6
10509 if test x
$HAVE_X11XTR6 = xyes
; then
10510 LIBS
="-lXt -lSM -lICE $LIBS"
10515 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10516 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10517 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 ac_check_lib_save_LIBS
=$LIBS
10522 cat >conftest.
$ac_ext <<_ACEOF
10525 cat confdefs.h
>>conftest.
$ac_ext
10526 cat >>conftest.
$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10529 /* Override any gcc2 internal prototype to avoid an error. */
10533 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10535 char XmuConvertStandardSelection ();
10539 XmuConvertStandardSelection ();
10544 rm -f conftest.
$ac_objext conftest
$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>conftest.er1
10548 grep -v '^ *+' conftest.er1
>conftest.err
10550 cat conftest.err
>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try
='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try
='test -s conftest$ac_exeext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.
$ac_ext >&5
10571 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10573 rm -f conftest.err conftest.
$ac_objext \
10574 conftest
$ac_exeext conftest.
$ac_ext
10575 LIBS
=$ac_check_lib_save_LIBS
10577 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10578 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10579 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10580 cat >>confdefs.h
<<_ACEOF
10581 #define HAVE_LIBXMU 1
10588 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10591 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10592 if test "${HAVE_X11}" = "yes"; then
10593 if test "${USE_X_TOOLKIT}" != "none"; then
10595 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10596 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10597 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 ac_check_lib_save_LIBS
=$LIBS
10601 LIBS
="-lXext $LIBS"
10602 cat >conftest.
$ac_ext <<_ACEOF
10605 cat confdefs.h
>>conftest.
$ac_ext
10606 cat >>conftest.
$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10609 /* Override any gcc2 internal prototype to avoid an error. */
10613 /* We use char because int might match the return type of a gcc2
10614 builtin and then its argument prototype would still apply. */
10615 char XShapeQueryExtension ();
10619 XShapeQueryExtension ();
10624 rm -f conftest.
$ac_objext conftest
$ac_exeext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626 (eval $ac_link) 2>conftest.er1
10628 grep -v '^ *+' conftest.er1
>conftest.err
10630 cat conftest.err
>&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try
='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try
='test -s conftest$ac_exeext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.
$ac_ext >&5
10651 ac_cv_lib_Xext_XShapeQueryExtension
=no
10653 rm -f conftest.err conftest.
$ac_objext \
10654 conftest
$ac_exeext conftest.
$ac_ext
10655 LIBS
=$ac_check_lib_save_LIBS
10657 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10658 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10659 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10660 cat >>confdefs.h
<<_ACEOF
10661 #define HAVE_LIBXEXT 1
10664 LIBS
="-lXext $LIBS"
10671 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10672 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10673 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10674 if test "${emacs_cv_lesstif+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 # We put this in CFLAGS temporarily to precede other -I options
10678 # that might be in CFLAGS temporarily.
10679 # We put this in CPPFLAGS where it precedes the other -I options.
10680 OLD_CPPFLAGS
=$CPPFLAGS
10682 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10683 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10684 cat >conftest.
$ac_ext <<_ACEOF
10687 cat confdefs.h
>>conftest.
$ac_ext
10688 cat >>conftest.
$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10699 rm -f conftest.
$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1
>conftest.err
10705 cat conftest.err
>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try
='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try
='test -s conftest.$ac_objext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 emacs_cv_lesstif
=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.
$ac_ext >&5
10726 emacs_cv_lesstif
=no
10728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10730 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10731 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10732 if test $emacs_cv_lesstif = yes; then
10733 # Make sure this -I option remains in CPPFLAGS after it is set
10734 # back to REAL_CPPFLAGS.
10735 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10736 # have those other -I options anyway. Ultimately, having this
10737 # directory ultimately in CPPFLAGS will be enough.
10738 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10739 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10742 CPPFLAGS
=$OLD_CPPFLAGS
10744 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10745 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10746 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 cat >conftest.
$ac_ext <<_ACEOF
10752 cat confdefs.h
>>conftest.
$ac_ext
10753 cat >>conftest.
$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10759 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10762 Motif version prior to 2.1.
10768 rm -f conftest.
$ac_objext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770 (eval $ac_compile) 2>conftest.er1
10772 grep -v '^ *+' conftest.er1
>conftest.err
10774 cat conftest.err
>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try
='test -z "$ac_c_werror_flag"
10778 || test ! -s conftest.err'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try
='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 emacs_cv_motif_version_2_1
=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.
$ac_ext >&5
10795 emacs_cv_motif_version_2_1
=no
10797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10799 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10800 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10801 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10802 if test $emacs_cv_motif_version_2_1 = yes; then
10805 cat >>confdefs.h
<<\_ACEOF
10806 #define HAVE_MOTIF_2_1 1
10809 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10810 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10811 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 ac_check_lib_save_LIBS
=$LIBS
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10823 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10829 char XpCreateContext ();
10833 XpCreateContext ();
10838 rm -f conftest.
$ac_objext conftest
$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840 (eval $ac_link) 2>conftest.er1
10842 grep -v '^ *+' conftest.er1
>conftest.err
10844 cat conftest.err
>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try
='test -z "$ac_c_werror_flag"
10848 || test ! -s conftest.err'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try
='test -s conftest$ac_exeext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_cv_lib_Xp_XpCreateContext
=yes
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.
$ac_ext >&5
10865 ac_cv_lib_Xp_XpCreateContext
=no
10867 rm -f conftest.err conftest.
$ac_objext \
10868 conftest
$ac_exeext conftest.
$ac_ext
10869 LIBS
=$ac_check_lib_save_LIBS
10871 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10872 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10873 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10877 if test ${HAVE_LIBXP} = yes; then
10879 cat >>confdefs.h
<<\_ACEOF
10880 #define HAVE_LIBXP 1
10887 ### Is -lXaw3d available?
10889 if test "${HAVE_X11}" = "yes"; then
10890 if test "${USE_X_TOOLKIT}" != "none"; then
10891 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10892 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10893 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 cat >conftest.
$ac_ext <<_ACEOF
10899 cat confdefs.h
>>conftest.
$ac_ext
10900 cat >>conftest.
$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 #include <X11/Xaw3d/Scrollbar.h>
10904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10907 grep -v '^ *+' conftest.er1
>conftest.err
10909 cat conftest.err
>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } >/dev
/null
; then
10912 if test -s conftest.err
; then
10913 ac_cpp_err
=$ac_c_preproc_warn_flag
10914 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10921 if test -z "$ac_cpp_err"; then
10922 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.
$ac_ext >&5
10927 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10929 rm -f conftest.err conftest.
$ac_ext
10931 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10932 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10933 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10934 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10935 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10936 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 ac_check_lib_save_LIBS
=$LIBS
10940 LIBS
="-lXaw3d $LIBS"
10941 cat >conftest.
$ac_ext <<_ACEOF
10944 cat confdefs.h
>>conftest.
$ac_ext
10945 cat >>conftest.
$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10948 /* Override any gcc2 internal prototype to avoid an error. */
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char XawScrollbarSetThumb ();
10958 XawScrollbarSetThumb ();
10963 rm -f conftest.
$ac_objext conftest
$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>conftest.er1
10967 grep -v '^ *+' conftest.er1
>conftest.err
10969 cat conftest.err
>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try
='test -z "$ac_c_werror_flag"
10973 || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try
='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.
$ac_ext >&5
10990 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10992 rm -f conftest.err conftest.
$ac_objext \
10993 conftest
$ac_exeext conftest.
$ac_ext
10994 LIBS
=$ac_check_lib_save_LIBS
10996 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10997 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10998 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11005 if test "${HAVE_XAW3D}" = "yes"; then
11007 cat >>confdefs.h
<<\_ACEOF
11008 #define HAVE_XAW3D 1
11017 USE_TOOLKIT_SCROLL_BARS
=no
11018 if test "${with_toolkit_scroll_bars}" != "no"; then
11019 if test "${USE_X_TOOLKIT}" != "none"; then
11020 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11021 cat >>confdefs.h
<<\_ACEOF
11022 #define USE_TOOLKIT_SCROLL_BARS 1
11026 USE_TOOLKIT_SCROLL_BARS
=yes
11027 elif test "${HAVE_XAW3D}" = "yes"; then
11028 cat >>confdefs.h
<<\_ACEOF
11029 #define USE_TOOLKIT_SCROLL_BARS 1
11032 USE_TOOLKIT_SCROLL_BARS
=yes
11034 elif test "${HAVE_GTK}" = "yes"; then
11035 cat >>confdefs.h
<<\_ACEOF
11036 #define USE_TOOLKIT_SCROLL_BARS 1
11039 USE_TOOLKIT_SCROLL_BARS
=yes
11043 cat >conftest.
$ac_ext <<_ACEOF
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 #include <X11/Xlib.h>
11051 #include <X11/Xresource.h>
11060 rm -f conftest.
$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1
>conftest.err
11066 cat conftest.err
>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try
='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try
='test -s conftest.$ac_objext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11084 cat >>confdefs.h
<<\_ACEOF
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.
$ac_ext >&5
11094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11097 if test "${with_xim}" != "no"; then
11099 cat >>confdefs.h
<<\_ACEOF
11106 if test "${HAVE_XIM}" != "no"; then
11107 late_CFLAGS
=$CFLAGS
11108 if test "$GCC" = yes; then
11109 CFLAGS
="$CFLAGS --pedantic-errors"
11111 cat >conftest.
$ac_ext <<_ACEOF
11114 cat confdefs.h
>>conftest.
$ac_ext
11115 cat >>conftest.
$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11118 #include <X11/Xlib.h>
11119 #include <X11/Xresource.h>
11128 XPointer *client_data;
11130 /* If we're not using GCC, it's probably not XFree86, and this is
11131 probably right, but we can't use something like --pedantic-errors. */
11132 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11133 char*, XIMProc, XPointer*);
11135 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11141 rm -f conftest.
$ac_objext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11143 (eval $ac_compile) 2>conftest.er1
11145 grep -v '^ *+' conftest.er1
>conftest.err
11147 cat conftest.err
>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try
='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try
='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 emacs_cv_arg6_star
=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.
$ac_ext >&5
11169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11171 if test "$emacs_cv_arg6_star" = yes; then
11172 cat >>confdefs.h
<<\_ACEOF
11173 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11177 cat >>confdefs.h
<<\_ACEOF
11178 #define XRegisterIMInstantiateCallback_arg6 XPointer
11182 CFLAGS
=$late_CFLAGS
11185 ### Use -lXpm if available, unless `--with-xpm=no'.
11187 if test "${HAVE_X11}" = "yes"; then
11188 if test "${with_xpm}" != "no"; then
11189 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11190 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11191 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11192 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11196 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11198 # Is the header compilable?
11199 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11200 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11201 cat >conftest.
$ac_ext <<_ACEOF
11204 cat confdefs.h
>>conftest.
$ac_ext
11205 cat >>conftest.
$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 $ac_includes_default
11208 #include <X11/xpm.h>
11210 rm -f conftest.
$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>conftest.er1
11214 grep -v '^ *+' conftest.er1
>conftest.err
11216 cat conftest.err
>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try
='test -z "$ac_c_werror_flag"
11220 || test ! -s conftest.err'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; } &&
11226 { ac_try
='test -s conftest.$ac_objext'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 ac_header_compiler
=yes
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.
$ac_ext >&5
11237 ac_header_compiler
=no
11239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241 echo "${ECHO_T}$ac_header_compiler" >&6
11243 # Is the header present?
11244 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11245 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11246 cat >conftest.
$ac_ext <<_ACEOF
11249 cat confdefs.h
>>conftest.
$ac_ext
11250 cat >>conftest.
$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 #include <X11/xpm.h>
11254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11255 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11257 grep -v '^ *+' conftest.er1
>conftest.err
11259 cat conftest.err
>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } >/dev
/null
; then
11262 if test -s conftest.err
; then
11263 ac_cpp_err
=$ac_c_preproc_warn_flag
11264 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11271 if test -z "$ac_cpp_err"; then
11272 ac_header_preproc
=yes
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.
$ac_ext >&5
11277 ac_header_preproc
=no
11279 rm -f conftest.err conftest.
$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281 echo "${ECHO_T}$ac_header_preproc" >&6
11283 # So? What about this header?
11284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11286 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11287 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11289 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11290 ac_header_preproc
=yes
11293 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11294 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11296 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11298 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11300 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11302 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11304 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11307 ## ------------------------------------------ ##
11308 ## Report this to the AC_PACKAGE_NAME lists. ##
11309 ## ------------------------------------------ ##
11312 sed "s/^/$as_me: WARNING: /" >&2
11315 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11316 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11317 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11322 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11323 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11326 if test $ac_cv_header_X11_xpm_h = yes; then
11327 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11328 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11329 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 ac_check_lib_save_LIBS
=$LIBS
11333 LIBS
="-lXpm -lX11 $LIBS"
11334 cat >conftest.
$ac_ext <<_ACEOF
11337 cat confdefs.h
>>conftest.
$ac_ext
11338 cat >>conftest.
$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11341 /* Override any gcc2 internal prototype to avoid an error. */
11345 /* We use char because int might match the return type of a gcc2
11346 builtin and then its argument prototype would still apply. */
11347 char XpmReadFileToPixmap ();
11351 XpmReadFileToPixmap ();
11356 rm -f conftest.
$ac_objext conftest
$ac_exeext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11358 (eval $ac_link) 2>conftest.er1
11360 grep -v '^ *+' conftest.er1
>conftest.err
11362 cat conftest.err
>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try
='test -z "$ac_c_werror_flag"
11366 || test ! -s conftest.err'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try
='test -s conftest$ac_exeext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.
$ac_ext >&5
11383 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11385 rm -f conftest.err conftest.
$ac_objext \
11386 conftest
$ac_exeext conftest.
$ac_ext
11387 LIBS
=$ac_check_lib_save_LIBS
11389 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11390 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11391 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11398 if test "${HAVE_XPM}" = "yes"; then
11399 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11400 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11401 cat >conftest.
$ac_ext <<_ACEOF
11404 cat confdefs.h
>>conftest.
$ac_ext
11405 cat >>conftest.
$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 #include "X11/xpm.h"
11408 #ifndef XpmReturnAllocPixels
11409 no_return_alloc_pixels
11413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11414 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11422 if test "${HAVE_XPM}" = "yes"; then
11423 echo "$as_me:$LINENO: result: yes" >&5
11424 echo "${ECHO_T}yes" >&6
11426 echo "$as_me:$LINENO: result: no" >&5
11427 echo "${ECHO_T}no" >&6
11432 if test "${HAVE_XPM}" = "yes"; then
11434 cat >>confdefs.h
<<\_ACEOF
11441 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11443 if test "${HAVE_X11}" = "yes"; then
11444 if test "${with_jpeg}" != "no"; then
11445 if test "${ac_cv_header_jerror_h+set}" = set; then
11446 echo "$as_me:$LINENO: checking for jerror.h" >&5
11447 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11448 if test "${ac_cv_header_jerror_h+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11452 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11454 # Is the header compilable?
11455 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11456 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11457 cat >conftest.
$ac_ext <<_ACEOF
11460 cat confdefs.h
>>conftest.
$ac_ext
11461 cat >>conftest.
$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 $ac_includes_default
11464 #include <jerror.h>
11466 rm -f conftest.
$ac_objext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468 (eval $ac_compile) 2>conftest.er1
11470 grep -v '^ *+' conftest.er1
>conftest.err
11472 cat conftest.err
>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try
='test -z "$ac_c_werror_flag"
11476 || test ! -s conftest.err'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try
='test -s conftest.$ac_objext'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11488 ac_header_compiler
=yes
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.
$ac_ext >&5
11493 ac_header_compiler
=no
11495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11497 echo "${ECHO_T}$ac_header_compiler" >&6
11499 # Is the header present?
11500 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11501 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11502 cat >conftest.
$ac_ext <<_ACEOF
11505 cat confdefs.h
>>conftest.
$ac_ext
11506 cat >>conftest.
$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include <jerror.h>
11510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11511 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11513 grep -v '^ *+' conftest.er1
>conftest.err
11515 cat conftest.err
>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } >/dev
/null
; then
11518 if test -s conftest.err
; then
11519 ac_cpp_err
=$ac_c_preproc_warn_flag
11520 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11527 if test -z "$ac_cpp_err"; then
11528 ac_header_preproc
=yes
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.
$ac_ext >&5
11533 ac_header_preproc
=no
11535 rm -f conftest.err conftest.
$ac_ext
11536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11537 echo "${ECHO_T}$ac_header_preproc" >&6
11539 # So? What about this header?
11540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11542 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11543 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11545 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11546 ac_header_preproc
=yes
11549 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11550 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11551 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11552 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11554 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11556 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11558 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11560 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11563 ## ------------------------------------------ ##
11564 ## Report this to the AC_PACKAGE_NAME lists. ##
11565 ## ------------------------------------------ ##
11568 sed "s/^/$as_me: WARNING: /" >&2
11571 echo "$as_me:$LINENO: checking for jerror.h" >&5
11572 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11573 if test "${ac_cv_header_jerror_h+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 ac_cv_header_jerror_h
=$ac_header_preproc
11578 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11579 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11582 if test $ac_cv_header_jerror_h = yes; then
11583 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11584 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11585 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 ac_check_lib_save_LIBS
=$LIBS
11589 LIBS
="-ljpeg $LIBS"
11590 cat >conftest.
$ac_ext <<_ACEOF
11593 cat confdefs.h
>>conftest.
$ac_ext
11594 cat >>conftest.
$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11597 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603 char jpeg_destroy_compress ();
11607 jpeg_destroy_compress ();
11612 rm -f conftest.
$ac_objext conftest
$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>conftest.er1
11616 grep -v '^ *+' conftest.er1
>conftest.err
11618 cat conftest.err
>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try
='test -z "$ac_c_werror_flag"
11622 || test ! -s conftest.err'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; } &&
11628 { ac_try
='test -s conftest$ac_exeext'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.
$ac_ext >&5
11639 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11641 rm -f conftest.err conftest.
$ac_objext \
11642 conftest
$ac_exeext conftest.
$ac_ext
11643 LIBS
=$ac_check_lib_save_LIBS
11645 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11646 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11647 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11657 if test "${HAVE_JPEG}" = "yes"; then
11658 cat >>confdefs.h
<<\_ACEOF
11659 #define HAVE_JPEG 1
11662 cat >conftest.
$ac_ext <<_ACEOF
11665 cat confdefs.h
>>conftest.
$ac_ext
11666 cat >>conftest.
$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <jpeglib.h>
11669 version=JPEG_LIB_VERSION
11672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11673 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11674 cat >>confdefs.h
<<\_ACEOF
11675 #define HAVE_JPEG 1
11679 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11680 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11688 ### Use -lpng if available, unless `--with-png=no'.
11690 if test "${HAVE_X11}" = "yes"; then
11691 if test "${with_png}" != "no"; then
11692 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11693 # in /usr/include/libpng.
11696 for ac_header
in png.h libpng
/png.h
11698 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11700 echo "$as_me:$LINENO: checking for $ac_header" >&5
11701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11708 # Is the header compilable?
11709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11711 cat >conftest.
$ac_ext <<_ACEOF
11714 cat confdefs.h
>>conftest.
$ac_ext
11715 cat >>conftest.
$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11718 #include <$ac_header>
11720 rm -f conftest.
$ac_objext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11722 (eval $ac_compile) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1
>conftest.err
11726 cat conftest.err
>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try
='test -z "$ac_c_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try
='test -s conftest.$ac_objext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 ac_header_compiler
=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.
$ac_ext >&5
11747 ac_header_compiler
=no
11749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11751 echo "${ECHO_T}$ac_header_compiler" >&6
11753 # Is the header present?
11754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11756 cat >conftest.
$ac_ext <<_ACEOF
11759 cat confdefs.h
>>conftest.
$ac_ext
11760 cat >>conftest.
$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11762 #include <$ac_header>
11764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11767 grep -v '^ *+' conftest.er1
>conftest.err
11769 cat conftest.err
>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } >/dev
/null
; then
11772 if test -s conftest.err
; then
11773 ac_cpp_err
=$ac_c_preproc_warn_flag
11774 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11781 if test -z "$ac_cpp_err"; then
11782 ac_header_preproc
=yes
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.
$ac_ext >&5
11787 ac_header_preproc
=no
11789 rm -f conftest.err conftest.
$ac_ext
11790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11791 echo "${ECHO_T}$ac_header_preproc" >&6
11793 # So? What about this header?
11794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11800 ac_header_preproc
=yes
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11817 ## ------------------------------------------ ##
11818 ## Report this to the AC_PACKAGE_NAME lists. ##
11819 ## ------------------------------------------ ##
11822 sed "s/^/$as_me: WARNING: /" >&2
11825 echo "$as_me:$LINENO: checking for $ac_header" >&5
11826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 eval "$as_ac_Header=\$ac_header_preproc"
11832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11837 cat >>confdefs.h
<<_ACEOF
11838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11845 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11846 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11847 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11848 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 ac_check_lib_save_LIBS
=$LIBS
11852 LIBS
="-lpng -lz -lm $LIBS"
11853 cat >conftest.
$ac_ext <<_ACEOF
11856 cat confdefs.h
>>conftest.
$ac_ext
11857 cat >>conftest.
$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11860 /* Override any gcc2 internal prototype to avoid an error. */
11864 /* We use char because int might match the return type of a gcc2
11865 builtin and then its argument prototype would still apply. */
11866 char png_get_channels ();
11870 png_get_channels ();
11875 rm -f conftest.
$ac_objext conftest
$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>conftest.er1
11879 grep -v '^ *+' conftest.er1
>conftest.err
11881 cat conftest.err
>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try
='test -z "$ac_c_werror_flag"
11885 || test ! -s conftest.err'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try
='test -s conftest$ac_exeext'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_lib_png_png_get_channels
=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.
$ac_ext >&5
11902 ac_cv_lib_png_png_get_channels
=no
11904 rm -f conftest.err conftest.
$ac_objext \
11905 conftest
$ac_exeext conftest.
$ac_ext
11906 LIBS
=$ac_check_lib_save_LIBS
11908 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11909 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11910 if test $ac_cv_lib_png_png_get_channels = yes; then
11917 if test "${HAVE_PNG}" = "yes"; then
11919 cat >>confdefs.h
<<\_ACEOF
11926 ### Use -ltiff if available, unless `--with-tiff=no'.
11928 if test "${HAVE_X11}" = "yes"; then
11929 if test "${with_tiff}" != "no"; then
11930 if test "${ac_cv_header_tiffio_h+set}" = set; then
11931 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11932 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11933 if test "${ac_cv_header_tiffio_h+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11937 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11939 # Is the header compilable?
11940 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11941 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11942 cat >conftest.
$ac_ext <<_ACEOF
11945 cat confdefs.h
>>conftest.
$ac_ext
11946 cat >>conftest.
$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 $ac_includes_default
11949 #include <tiffio.h>
11951 rm -f conftest.
$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1
>conftest.err
11957 cat conftest.err
>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try
='test -z "$ac_c_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try
='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_header_compiler
=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.
$ac_ext >&5
11978 ac_header_compiler
=no
11980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11982 echo "${ECHO_T}$ac_header_compiler" >&6
11984 # Is the header present?
11985 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11986 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11987 cat >conftest.
$ac_ext <<_ACEOF
11990 cat confdefs.h
>>conftest.
$ac_ext
11991 cat >>conftest.
$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 #include <tiffio.h>
11995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11996 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11998 grep -v '^ *+' conftest.er1
>conftest.err
12000 cat conftest.err
>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } >/dev
/null
; then
12003 if test -s conftest.err
; then
12004 ac_cpp_err
=$ac_c_preproc_warn_flag
12005 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12012 if test -z "$ac_cpp_err"; then
12013 ac_header_preproc
=yes
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.
$ac_ext >&5
12018 ac_header_preproc
=no
12020 rm -f conftest.err conftest.
$ac_ext
12021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12022 echo "${ECHO_T}$ac_header_preproc" >&6
12024 # So? What about this header?
12025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12027 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12028 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12030 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12031 ac_header_preproc
=yes
12034 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12035 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12037 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12039 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12041 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12043 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12045 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12048 ## ------------------------------------------ ##
12049 ## Report this to the AC_PACKAGE_NAME lists. ##
12050 ## ------------------------------------------ ##
12053 sed "s/^/$as_me: WARNING: /" >&2
12056 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12057 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12058 if test "${ac_cv_header_tiffio_h+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 ac_cv_header_tiffio_h
=$ac_header_preproc
12063 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12064 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12067 if test $ac_cv_header_tiffio_h = yes; then
12069 # At least one tiff package requires the jpeg library.
12070 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12071 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12072 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12073 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 ac_check_lib_save_LIBS
=$LIBS
12077 LIBS
="-ltiff $tifflibs $LIBS"
12078 cat >conftest.
$ac_ext <<_ACEOF
12081 cat confdefs.h
>>conftest.
$ac_ext
12082 cat >>conftest.
$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12085 /* Override any gcc2 internal prototype to avoid an error. */
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12091 char TIFFGetVersion ();
12100 rm -f conftest.
$ac_objext conftest
$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12104 grep -v '^ *+' conftest.er1
>conftest.err
12106 cat conftest.err
>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try
='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try
='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_lib_tiff_TIFFGetVersion
=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.
$ac_ext >&5
12127 ac_cv_lib_tiff_TIFFGetVersion
=no
12129 rm -f conftest.err conftest.
$ac_objext \
12130 conftest
$ac_exeext conftest.
$ac_ext
12131 LIBS
=$ac_check_lib_save_LIBS
12133 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12134 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12135 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12144 if test "${HAVE_TIFF}" = "yes"; then
12146 cat >>confdefs.h
<<\_ACEOF
12147 #define HAVE_TIFF 1
12153 ### Use -lgif if available, unless `--with-gif=no'.
12155 if test "${HAVE_X11}" = "yes"; then
12156 if test "${with_gif}" != "no"; then
12157 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12158 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12159 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12160 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12164 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12166 # Is the header compilable?
12167 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12168 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12169 cat >conftest.
$ac_ext <<_ACEOF
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 $ac_includes_default
12176 #include <gif_lib.h>
12178 rm -f conftest.
$ac_objext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>conftest.er1
12182 grep -v '^ *+' conftest.er1
>conftest.err
12184 cat conftest.err
>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try
='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try
='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_header_compiler
=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.
$ac_ext >&5
12205 ac_header_compiler
=no
12207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209 echo "${ECHO_T}$ac_header_compiler" >&6
12211 # Is the header present?
12212 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12213 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12214 cat >conftest.
$ac_ext <<_ACEOF
12217 cat confdefs.h
>>conftest.
$ac_ext
12218 cat >>conftest.
$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <gif_lib.h>
12222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1
>conftest.err
12227 cat conftest.err
>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } >/dev
/null
; then
12230 if test -s conftest.err
; then
12231 ac_cpp_err
=$ac_c_preproc_warn_flag
12232 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12239 if test -z "$ac_cpp_err"; then
12240 ac_header_preproc
=yes
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.
$ac_ext >&5
12245 ac_header_preproc
=no
12247 rm -f conftest.err conftest.
$ac_ext
12248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 echo "${ECHO_T}$ac_header_preproc" >&6
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12254 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12255 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12257 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc
=yes
12261 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12262 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12264 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12266 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12268 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12270 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12272 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12275 ## ------------------------------------------ ##
12276 ## Report this to the AC_PACKAGE_NAME lists. ##
12277 ## ------------------------------------------ ##
12280 sed "s/^/$as_me: WARNING: /" >&2
12283 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12284 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12285 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 ac_cv_header_gif_lib_h
=$ac_header_preproc
12290 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12291 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12294 if test $ac_cv_header_gif_lib_h = yes; then
12295 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12296 # Earlier versions can crash Emacs.
12297 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12298 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12299 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 ac_check_lib_save_LIBS
=$LIBS
12303 LIBS
="-lungif $LIBS"
12304 cat >conftest.
$ac_ext <<_ACEOF
12307 cat confdefs.h
>>conftest.
$ac_ext
12308 cat >>conftest.
$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12311 /* Override any gcc2 internal prototype to avoid an error. */
12315 /* We use char because int might match the return type of a gcc2
12316 builtin and then its argument prototype would still apply. */
12317 char EGifPutExtensionLast ();
12321 EGifPutExtensionLast ();
12326 rm -f conftest.
$ac_objext conftest
$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328 (eval $ac_link) 2>conftest.er1
12330 grep -v '^ *+' conftest.er1
>conftest.err
12332 cat conftest.err
>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try
='test -z "$ac_c_werror_flag"
12336 || test ! -s conftest.err'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try
='test -s conftest$ac_exeext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.
$ac_ext >&5
12353 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12355 rm -f conftest.err conftest.
$ac_objext \
12356 conftest
$ac_exeext conftest.
$ac_ext
12357 LIBS
=$ac_check_lib_save_LIBS
12359 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12360 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12361 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12370 if test "${HAVE_GIF}" = "yes"; then
12372 cat >>confdefs.h
<<\_ACEOF
12379 ### Use Mac OS X Carbon API to implement GUI.
12381 if test "${with_carbon}" != "no"; then
12382 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12383 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12384 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12389 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12391 # Is the header compilable?
12392 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12393 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12394 cat >conftest.
$ac_ext <<_ACEOF
12397 cat confdefs.h
>>conftest.
$ac_ext
12398 cat >>conftest.
$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 $ac_includes_default
12401 #include <Carbon/Carbon.h>
12403 rm -f conftest.
$ac_objext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12405 (eval $ac_compile) 2>conftest.er1
12407 grep -v '^ *+' conftest.er1
>conftest.err
12409 cat conftest.err
>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try
='test -z "$ac_c_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try
='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_header_compiler
=yes
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.
$ac_ext >&5
12430 ac_header_compiler
=no
12432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12434 echo "${ECHO_T}$ac_header_compiler" >&6
12436 # Is the header present?
12437 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12438 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12439 cat >conftest.
$ac_ext <<_ACEOF
12442 cat confdefs.h
>>conftest.
$ac_ext
12443 cat >>conftest.
$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 #include <Carbon/Carbon.h>
12447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12450 grep -v '^ *+' conftest.er1
>conftest.err
12452 cat conftest.err
>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } >/dev
/null
; then
12455 if test -s conftest.err
; then
12456 ac_cpp_err
=$ac_c_preproc_warn_flag
12457 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12464 if test -z "$ac_cpp_err"; then
12465 ac_header_preproc
=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.
$ac_ext >&5
12470 ac_header_preproc
=no
12472 rm -f conftest.err conftest.
$ac_ext
12473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12474 echo "${ECHO_T}$ac_header_preproc" >&6
12476 # So? What about this header?
12477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12480 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12482 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12483 ac_header_preproc
=yes
12486 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12487 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12489 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12491 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12493 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12495 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12497 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12500 ## ------------------------------------------ ##
12501 ## Report this to the AC_PACKAGE_NAME lists. ##
12502 ## ------------------------------------------ ##
12505 sed "s/^/$as_me: WARNING: /" >&2
12508 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12509 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12510 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12515 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12516 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12519 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12526 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12527 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12528 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12529 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12533 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12535 # Is the header compilable?
12536 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12537 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12538 cat >conftest.
$ac_ext <<_ACEOF
12541 cat confdefs.h
>>conftest.
$ac_ext
12542 cat >>conftest.
$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 $ac_includes_default
12545 #include <malloc/malloc.h>
12547 rm -f conftest.
$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>conftest.er1
12551 grep -v '^ *+' conftest.er1
>conftest.err
12553 cat conftest.err
>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try
='test -z "$ac_c_werror_flag"
12557 || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try
='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_header_compiler
=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.
$ac_ext >&5
12574 ac_header_compiler
=no
12576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12578 echo "${ECHO_T}$ac_header_compiler" >&6
12580 # Is the header present?
12581 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12582 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12583 cat >conftest.
$ac_ext <<_ACEOF
12586 cat confdefs.h
>>conftest.
$ac_ext
12587 cat >>conftest.
$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 #include <malloc/malloc.h>
12591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12592 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12594 grep -v '^ *+' conftest.er1
>conftest.err
12596 cat conftest.err
>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } >/dev
/null
; then
12599 if test -s conftest.err
; then
12600 ac_cpp_err
=$ac_c_preproc_warn_flag
12601 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12608 if test -z "$ac_cpp_err"; then
12609 ac_header_preproc
=yes
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.
$ac_ext >&5
12614 ac_header_preproc
=no
12616 rm -f conftest.err conftest.
$ac_ext
12617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12618 echo "${ECHO_T}$ac_header_preproc" >&6
12620 # So? What about this header?
12621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12623 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12624 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12626 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12627 ac_header_preproc
=yes
12630 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12631 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12633 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12635 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12637 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12639 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12641 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12644 ## ------------------------------------------ ##
12645 ## Report this to the AC_PACKAGE_NAME lists. ##
12646 ## ------------------------------------------ ##
12649 sed "s/^/$as_me: WARNING: /" >&2
12652 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12653 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12654 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12659 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12660 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12663 if test $ac_cv_header_malloc_malloc_h = yes; then
12665 cat >>confdefs.h
<<\_ACEOF
12666 #define HAVE_MALLOC_MALLOC_H 1
12673 if test "${HAVE_CARBON}" = "yes"; then
12675 cat >>confdefs.h
<<\_ACEOF
12676 #define HAVE_CARBON 1
12680 ## Specify the install directory
12682 if test "${carbon_appdir_x}" != ""; then
12683 case ${carbon_appdir_x} in
12684 y | ye |
yes) carbon_appdir
=/Applications
;;
12685 * ) carbon_appdir
=${carbon_appdir_x} ;;
12688 # We also have mouse menus.
12692 ### Use session management (-lSM -lICE) if available
12694 if test "${HAVE_X11}" = "yes"; then
12695 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12696 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12697 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12698 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12702 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12704 # Is the header compilable?
12705 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12706 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12707 cat >conftest.
$ac_ext <<_ACEOF
12710 cat confdefs.h
>>conftest.
$ac_ext
12711 cat >>conftest.
$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 $ac_includes_default
12714 #include <X11/SM/SMlib.h>
12716 rm -f conftest.
$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>conftest.er1
12720 grep -v '^ *+' conftest.er1
>conftest.err
12722 cat conftest.err
>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try
='test -z "$ac_c_werror_flag"
12726 || test ! -s conftest.err'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try
='test -s conftest.$ac_objext'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_header_compiler
=yes
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.
$ac_ext >&5
12743 ac_header_compiler
=no
12745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12747 echo "${ECHO_T}$ac_header_compiler" >&6
12749 # Is the header present?
12750 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12751 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12752 cat >conftest.
$ac_ext <<_ACEOF
12755 cat confdefs.h
>>conftest.
$ac_ext
12756 cat >>conftest.
$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 #include <X11/SM/SMlib.h>
12760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12761 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12763 grep -v '^ *+' conftest.er1
>conftest.err
12765 cat conftest.err
>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } >/dev
/null
; then
12768 if test -s conftest.err
; then
12769 ac_cpp_err
=$ac_c_preproc_warn_flag
12770 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12777 if test -z "$ac_cpp_err"; then
12778 ac_header_preproc
=yes
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.
$ac_ext >&5
12783 ac_header_preproc
=no
12785 rm -f conftest.err conftest.
$ac_ext
12786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12787 echo "${ECHO_T}$ac_header_preproc" >&6
12789 # So? What about this header?
12790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12792 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12793 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12795 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12796 ac_header_preproc
=yes
12799 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12800 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12802 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12804 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12806 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12808 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12810 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12813 ## ------------------------------------------ ##
12814 ## Report this to the AC_PACKAGE_NAME lists. ##
12815 ## ------------------------------------------ ##
12818 sed "s/^/$as_me: WARNING: /" >&2
12821 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12822 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12823 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12828 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12829 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12832 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12833 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12834 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12835 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 ac_check_lib_save_LIBS
=$LIBS
12839 LIBS
="-lSM -lICE $LIBS"
12840 cat >conftest.
$ac_ext <<_ACEOF
12843 cat confdefs.h
>>conftest.
$ac_ext
12844 cat >>conftest.
$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12847 /* Override any gcc2 internal prototype to avoid an error. */
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12853 char SmcOpenConnection ();
12857 SmcOpenConnection ();
12862 rm -f conftest.
$ac_objext conftest
$ac_exeext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12864 (eval $ac_link) 2>conftest.er1
12866 grep -v '^ *+' conftest.er1
>conftest.err
12868 cat conftest.err
>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try
='test -z "$ac_c_werror_flag"
12872 || test ! -s conftest.err'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try
='test -s conftest$ac_exeext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_cv_lib_SM_SmcOpenConnection
=yes
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.
$ac_ext >&5
12889 ac_cv_lib_SM_SmcOpenConnection
=no
12891 rm -f conftest.err conftest.
$ac_objext \
12892 conftest
$ac_exeext conftest.
$ac_ext
12893 LIBS
=$ac_check_lib_save_LIBS
12895 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12896 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12897 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12905 if test "${HAVE_X_SM}" = "yes"; then
12907 cat >>confdefs.h
<<\_ACEOF
12908 #define HAVE_X_SM 1
12913 *) LIBS
="-lSM -lICE $LIBS" ;;
12918 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12919 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12920 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12921 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 cat >conftest.
$ac_ext <<_ACEOF
12927 cat confdefs.h
>>conftest.
$ac_ext
12928 cat >>conftest.
$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12939 rm -f conftest.
$ac_objext conftest
$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>conftest.er1
12943 grep -v '^ *+' conftest.er1
>conftest.err
12945 cat conftest.err
>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try
='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try
='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 emacs_cv_netdb_declares_h_errno
=yes
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.
$ac_ext >&5
12966 emacs_cv_netdb_declares_h_errno
=no
12968 rm -f conftest.err conftest.
$ac_objext \
12969 conftest
$ac_exeext conftest.
$ac_ext
12971 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12972 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12973 if test $emacs_cv_netdb_declares_h_errno = yes; then
12975 cat >>confdefs.h
<<\_ACEOF
12976 #define HAVE_H_ERRNO 1
12981 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12982 # for constant arguments. Useless!
12983 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12984 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12985 if test "${ac_cv_working_alloca_h+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 cat >conftest.
$ac_ext <<_ACEOF
12991 cat confdefs.h
>>conftest.
$ac_ext
12992 cat >>conftest.
$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12994 #include <alloca.h>
12998 char *p = (char *) alloca (2 * sizeof (int));
13003 rm -f conftest.
$ac_objext conftest
$ac_exeext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13005 (eval $ac_link) 2>conftest.er1
13007 grep -v '^ *+' conftest.er1
>conftest.err
13009 cat conftest.err
>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
13012 { ac_try
='test -z "$ac_c_werror_flag"
13013 || test ! -s conftest.err'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try
='test -s conftest$ac_exeext'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 ac_cv_working_alloca_h
=yes
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.
$ac_ext >&5
13030 ac_cv_working_alloca_h
=no
13032 rm -f conftest.err conftest.
$ac_objext \
13033 conftest
$ac_exeext conftest.
$ac_ext
13035 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13036 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13037 if test $ac_cv_working_alloca_h = yes; then
13039 cat >>confdefs.h
<<\_ACEOF
13040 #define HAVE_ALLOCA_H 1
13045 echo "$as_me:$LINENO: checking for alloca" >&5
13046 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13047 if test "${ac_cv_func_alloca_works+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.
$ac_ext <<_ACEOF
13053 cat confdefs.h
>>conftest.
$ac_ext
13054 cat >>conftest.
$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13057 # define alloca __builtin_alloca
13060 # include <malloc.h>
13061 # define alloca _alloca
13064 # include <alloca.h>
13069 # ifndef alloca /* predefined by HP cc +Olibcalls */
13080 char *p = (char *) alloca (1);
13085 rm -f conftest.
$ac_objext conftest
$ac_exeext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13087 (eval $ac_link) 2>conftest.er1
13089 grep -v '^ *+' conftest.er1
>conftest.err
13091 cat conftest.err
>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } &&
13094 { ac_try
='test -z "$ac_c_werror_flag"
13095 || test ! -s conftest.err'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try
='test -s conftest$ac_exeext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_func_alloca_works
=yes
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.
$ac_ext >&5
13112 ac_cv_func_alloca_works
=no
13114 rm -f conftest.err conftest.
$ac_objext \
13115 conftest
$ac_exeext conftest.
$ac_ext
13117 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13118 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13120 if test $ac_cv_func_alloca_works = yes; then
13122 cat >>confdefs.h
<<\_ACEOF
13123 #define HAVE_ALLOCA 1
13127 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13128 # that cause trouble. Some versions do not even contain alloca or
13129 # contain a buggy version. If you still want to use their alloca,
13130 # use ar to extract alloca.o from them instead of compiling alloca.c.
13132 ALLOCA
=alloca.
$ac_objext
13134 cat >>confdefs.h
<<\_ACEOF
13139 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13140 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13141 if test "${ac_cv_os_cray+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 cat >conftest.
$ac_ext <<_ACEOF
13147 cat confdefs.h
>>conftest.
$ac_ext
13148 cat >>conftest.
$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13150 #if defined(CRAY) && ! defined(CRAY2)
13157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13158 $EGREP "webecray" >/dev
/null
2>&1; then
13166 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13167 echo "${ECHO_T}$ac_cv_os_cray" >&6
13168 if test $ac_cv_os_cray = yes; then
13169 for ac_func
in _getb67 GETB67 getb67
; do
13170 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13171 echo "$as_me:$LINENO: checking for $ac_func" >&5
13172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13173 if eval "test \"\${$as_ac_var+set}\" = set"; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 cat >conftest.
$ac_ext <<_ACEOF
13179 cat confdefs.h
>>conftest.
$ac_ext
13180 cat >>conftest.
$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13184 #define $ac_func innocuous_$ac_func
13186 /* System header to define __stub macros and hopefully few prototypes,
13187 which can conflict with char $ac_func (); below.
13188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13189 <limits.h> exists even on freestanding compilers. */
13192 # include <limits.h>
13194 # include <assert.h>
13199 /* Override any gcc2 internal prototype to avoid an error. */
13204 /* We use char because int might match the return type of a gcc2
13205 builtin and then its argument prototype would still apply. */
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13213 char (*f) () = $ac_func;
13222 return f != $ac_func;
13227 rm -f conftest.
$ac_objext conftest
$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>conftest.er1
13231 grep -v '^ *+' conftest.er1
>conftest.err
13233 cat conftest.err
>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try
='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try
='test -s conftest$ac_exeext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 eval "$as_ac_var=yes"
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.
$ac_ext >&5
13254 eval "$as_ac_var=no"
13256 rm -f conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13261 if test `eval echo '${'$as_ac_var'}'` = yes; then
13263 cat >>confdefs.h
<<_ACEOF
13264 #define CRAY_STACKSEG_END $ac_func
13273 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13274 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13275 if test "${ac_cv_c_stack_direction+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 if test "$cross_compiling" = yes; then
13279 ac_cv_c_stack_direction
=0
13281 cat >conftest.
$ac_ext <<_ACEOF
13284 cat confdefs.h
>>conftest.
$ac_ext
13285 cat >>conftest.
$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13288 find_stack_direction ()
13290 static char *addr = 0;
13295 return find_stack_direction ();
13298 return (&dummy > addr) ? 1 : -1;
13304 exit (find_stack_direction () < 0);
13307 rm -f conftest
$ac_exeext
13308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13309 (eval $ac_link) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13318 ac_cv_c_stack_direction
=1
13320 echo "$as_me: program exited with status $ac_status" >&5
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.
$ac_ext >&5
13324 ( exit $ac_status )
13325 ac_cv_c_stack_direction
=-1
13327 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13330 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13331 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13333 cat >>confdefs.h
<<_ACEOF
13334 #define STACK_DIRECTION $ac_cv_c_stack_direction
13341 # fmod, logb, and frexp are found in -lm on most systems.
13342 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13344 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13345 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13346 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 ac_check_lib_save_LIBS
=$LIBS
13351 cat >conftest.
$ac_ext <<_ACEOF
13354 cat confdefs.h
>>conftest.
$ac_ext
13355 cat >>conftest.
$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13358 /* Override any gcc2 internal prototype to avoid an error. */
13362 /* We use char because int might match the return type of a gcc2
13363 builtin and then its argument prototype would still apply. */
13373 rm -f conftest.
$ac_objext conftest
$ac_exeext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13375 (eval $ac_link) 2>conftest.er1
13377 grep -v '^ *+' conftest.er1
>conftest.err
13379 cat conftest.err
>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
13382 { ac_try
='test -z "$ac_c_werror_flag"
13383 || test ! -s conftest.err'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try
='test -s conftest$ac_exeext'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 ac_cv_lib_m_sqrt
=yes
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.
$ac_ext >&5
13400 ac_cv_lib_m_sqrt
=no
13402 rm -f conftest.err conftest.
$ac_objext \
13403 conftest
$ac_exeext conftest.
$ac_ext
13404 LIBS
=$ac_check_lib_save_LIBS
13406 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13407 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13408 if test $ac_cv_lib_m_sqrt = yes; then
13409 cat >>confdefs.h
<<_ACEOF
13410 #define HAVE_LIBM 1
13418 # Check for mail-locking functions in a "mail" library. Probably this should
13419 # have the same check as for liblockfile below.
13421 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13422 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13423 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 ac_check_lib_save_LIBS
=$LIBS
13427 LIBS
="-lmail $LIBS"
13428 cat >conftest.
$ac_ext <<_ACEOF
13431 cat confdefs.h
>>conftest.
$ac_ext
13432 cat >>conftest.
$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13435 /* Override any gcc2 internal prototype to avoid an error. */
13439 /* We use char because int might match the return type of a gcc2
13440 builtin and then its argument prototype would still apply. */
13450 rm -f conftest.
$ac_objext conftest
$ac_exeext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13452 (eval $ac_link) 2>conftest.er1
13454 grep -v '^ *+' conftest.er1
>conftest.err
13456 cat conftest.err
>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try
='test -z "$ac_c_werror_flag"
13460 || test ! -s conftest.err'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try
='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 ac_cv_lib_mail_maillock
=yes
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.
$ac_ext >&5
13477 ac_cv_lib_mail_maillock
=no
13479 rm -f conftest.err conftest.
$ac_objext \
13480 conftest
$ac_exeext conftest.
$ac_ext
13481 LIBS
=$ac_check_lib_save_LIBS
13483 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13484 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13485 if test $ac_cv_lib_mail_maillock = yes; then
13486 cat >>confdefs.h
<<_ACEOF
13487 #define HAVE_LIBMAIL 1
13490 LIBS
="-lmail $LIBS"
13495 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13496 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13497 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 ac_check_lib_save_LIBS
=$LIBS
13501 LIBS
="-llockfile $LIBS"
13502 cat >conftest.
$ac_ext <<_ACEOF
13505 cat confdefs.h
>>conftest.
$ac_ext
13506 cat >>conftest.
$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13509 /* Override any gcc2 internal prototype to avoid an error. */
13513 /* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13524 rm -f conftest.
$ac_objext conftest
$ac_exeext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13526 (eval $ac_link) 2>conftest.er1
13528 grep -v '^ *+' conftest.er1
>conftest.err
13530 cat conftest.err
>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try
='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
13546 ac_cv_lib_lockfile_maillock
=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.
$ac_ext >&5
13551 ac_cv_lib_lockfile_maillock
=no
13553 rm -f conftest.err conftest.
$ac_objext \
13554 conftest
$ac_exeext conftest.
$ac_ext
13555 LIBS
=$ac_check_lib_save_LIBS
13557 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13558 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13559 if test $ac_cv_lib_lockfile_maillock = yes; then
13560 cat >>confdefs.h
<<_ACEOF
13561 #define HAVE_LIBLOCKFILE 1
13564 LIBS
="-llockfile $LIBS"
13568 # If we have the shared liblockfile, assume we must use it for mail
13569 # locking (e.g. Debian). If we couldn't link against liblockfile
13570 # (no liblockfile.a installed), ensure that we don't need to.
13571 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13572 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13573 set dummy liblockfile.so
; ac_word
=$2
13574 echo "$as_me:$LINENO: checking for $ac_word" >&5
13575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13576 if test "${ac_cv_prog_liblockfile+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 if test -n "$liblockfile"; then
13580 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13583 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13584 for as_dir
in $as_dummy
13587 test -z "$as_dir" && as_dir
=.
13588 for ac_exec_ext
in '' $ac_executable_extensions; do
13589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_prog_liblockfile
="yes"
13591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13600 liblockfile
=$ac_cv_prog_liblockfile
13601 if test -n "$liblockfile"; then
13602 echo "$as_me:$LINENO: result: $liblockfile" >&5
13603 echo "${ECHO_T}$liblockfile" >&6
13605 echo "$as_me:$LINENO: result: no" >&5
13606 echo "${ECHO_T}no" >&6
13609 if test $ac_cv_prog_liblockfile = yes; then
13610 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13611 This probably means that movemail could lose mail.
13612 There may be a \`development' package to install containing liblockfile." >&5
13613 echo "$as_me: error: Shared liblockfile found but can't link against it.
13614 This probably means that movemail could lose mail.
13615 There may be a \`development' package to install containing liblockfile." >&2;}
13616 { (exit 1); exit 1; }; }
13621 for ac_func
in touchlock
13623 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13624 echo "$as_me:$LINENO: checking for $ac_func" >&5
13625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13626 if eval "test \"\${$as_ac_var+set}\" = set"; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 cat >conftest.
$ac_ext <<_ACEOF
13632 cat confdefs.h
>>conftest.
$ac_ext
13633 cat >>conftest.
$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13637 #define $ac_func innocuous_$ac_func
13639 /* System header to define __stub macros and hopefully few prototypes,
13640 which can conflict with char $ac_func (); below.
13641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13642 <limits.h> exists even on freestanding compilers. */
13645 # include <limits.h>
13647 # include <assert.h>
13652 /* Override any gcc2 internal prototype to avoid an error. */
13657 /* We use char because int might match the return type of a gcc2
13658 builtin and then its argument prototype would still apply. */
13660 /* The GNU C library defines this for functions which it implements
13661 to always fail with ENOSYS. Some functions are actually named
13662 something starting with __ and the normal name is an alias. */
13663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13666 char (*f) () = $ac_func;
13675 return f != $ac_func;
13680 rm -f conftest.
$ac_objext conftest
$ac_exeext
13681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13682 (eval $ac_link) 2>conftest.er1
13684 grep -v '^ *+' conftest.er1
>conftest.err
13686 cat conftest.err
>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } &&
13689 { ac_try
='test -z "$ac_c_werror_flag"
13690 || test ! -s conftest.err'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; } &&
13696 { ac_try
='test -s conftest$ac_exeext'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }; then
13702 eval "$as_ac_var=yes"
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.
$ac_ext >&5
13707 eval "$as_ac_var=no"
13709 rm -f conftest.err conftest.
$ac_objext \
13710 conftest
$ac_exeext conftest.
$ac_ext
13712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13714 if test `eval echo '${'$as_ac_var'}'` = yes; then
13715 cat >>confdefs.h
<<_ACEOF
13716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13723 for ac_header
in maillock.h
13725 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13727 echo "$as_me:$LINENO: checking for $ac_header" >&5
13728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13735 # Is the header compilable?
13736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13738 cat >conftest.
$ac_ext <<_ACEOF
13741 cat confdefs.h
>>conftest.
$ac_ext
13742 cat >>conftest.
$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 $ac_includes_default
13745 #include <$ac_header>
13747 rm -f conftest.
$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1
>conftest.err
13753 cat conftest.err
>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try
='test -z "$ac_c_werror_flag"
13757 || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try
='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_header_compiler
=yes
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.
$ac_ext >&5
13774 ac_header_compiler
=no
13776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13778 echo "${ECHO_T}$ac_header_compiler" >&6
13780 # Is the header present?
13781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13783 cat >conftest.
$ac_ext <<_ACEOF
13786 cat confdefs.h
>>conftest.
$ac_ext
13787 cat >>conftest.
$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 #include <$ac_header>
13791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13792 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13794 grep -v '^ *+' conftest.er1
>conftest.err
13796 cat conftest.err
>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } >/dev
/null
; then
13799 if test -s conftest.err
; then
13800 ac_cpp_err
=$ac_c_preproc_warn_flag
13801 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13808 if test -z "$ac_cpp_err"; then
13809 ac_header_preproc
=yes
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.
$ac_ext >&5
13814 ac_header_preproc
=no
13816 rm -f conftest.err conftest.
$ac_ext
13817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13818 echo "${ECHO_T}$ac_header_preproc" >&6
13820 # So? What about this header?
13821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13827 ac_header_preproc
=yes
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13844 ## ------------------------------------------ ##
13845 ## Report this to the AC_PACKAGE_NAME lists. ##
13846 ## ------------------------------------------ ##
13849 sed "s/^/$as_me: WARNING: /" >&2
13852 echo "$as_me:$LINENO: checking for $ac_header" >&5
13853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 eval "$as_ac_Header=\$ac_header_preproc"
13859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13864 cat >>confdefs.h
<<_ACEOF
13865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13940 for ac_func
in gethostname getdomainname dup2 \
13941 rename closedir mkdir
rmdir sysinfo getrusage \
13942 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13943 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13944 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13945 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13946 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13947 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13948 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13950 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13951 echo "$as_me:$LINENO: checking for $ac_func" >&5
13952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13953 if eval "test \"\${$as_ac_var+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 cat >conftest.
$ac_ext <<_ACEOF
13959 cat confdefs.h
>>conftest.
$ac_ext
13960 cat >>conftest.
$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13964 #define $ac_func innocuous_$ac_func
13966 /* System header to define __stub macros and hopefully few prototypes,
13967 which can conflict with char $ac_func (); below.
13968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13969 <limits.h> exists even on freestanding compilers. */
13972 # include <limits.h>
13974 # include <assert.h>
13979 /* Override any gcc2 internal prototype to avoid an error. */
13984 /* We use char because int might match the return type of a gcc2
13985 builtin and then its argument prototype would still apply. */
13987 /* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13993 char (*f) () = $ac_func;
14002 return f != $ac_func;
14007 rm -f conftest.
$ac_objext conftest
$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>conftest.er1
14011 grep -v '^ *+' conftest.er1
>conftest.err
14013 cat conftest.err
>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try
='test -z "$ac_c_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try
='test -s conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 eval "$as_ac_var=yes"
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.
$ac_ext >&5
14034 eval "$as_ac_var=no"
14036 rm -f conftest.err conftest.
$ac_objext \
14037 conftest
$ac_exeext conftest.
$ac_ext
14039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14041 if test `eval echo '${'$as_ac_var'}'` = yes; then
14042 cat >>confdefs.h
<<_ACEOF
14043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14051 for ac_header
in sys
/un.h
14053 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14055 echo "$as_me:$LINENO: checking for $ac_header" >&5
14056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14063 # Is the header compilable?
14064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14066 cat >conftest.
$ac_ext <<_ACEOF
14069 cat confdefs.h
>>conftest.
$ac_ext
14070 cat >>conftest.
$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072 $ac_includes_default
14073 #include <$ac_header>
14075 rm -f conftest.
$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>conftest.er1
14079 grep -v '^ *+' conftest.er1
>conftest.err
14081 cat conftest.err
>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try
='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try
='test -s conftest.$ac_objext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_header_compiler
=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.
$ac_ext >&5
14102 ac_header_compiler
=no
14104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14106 echo "${ECHO_T}$ac_header_compiler" >&6
14108 # Is the header present?
14109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14111 cat >conftest.
$ac_ext <<_ACEOF
14114 cat confdefs.h
>>conftest.
$ac_ext
14115 cat >>conftest.
$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 #include <$ac_header>
14119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14120 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14122 grep -v '^ *+' conftest.er1
>conftest.err
14124 cat conftest.err
>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } >/dev
/null
; then
14127 if test -s conftest.err
; then
14128 ac_cpp_err
=$ac_c_preproc_warn_flag
14129 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14136 if test -z "$ac_cpp_err"; then
14137 ac_header_preproc
=yes
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.
$ac_ext >&5
14142 ac_header_preproc
=no
14144 rm -f conftest.err conftest.
$ac_ext
14145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14146 echo "${ECHO_T}$ac_header_preproc" >&6
14148 # So? What about this header?
14149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14155 ac_header_preproc
=yes
14158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14172 ## ------------------------------------------ ##
14173 ## Report this to the AC_PACKAGE_NAME lists. ##
14174 ## ------------------------------------------ ##
14177 sed "s/^/$as_me: WARNING: /" >&2
14180 echo "$as_me:$LINENO: checking for $ac_header" >&5
14181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 eval "$as_ac_Header=\$ac_header_preproc"
14187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14192 cat >>confdefs.h
<<_ACEOF
14193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14204 for ac_header
in stdlib.h sys
/time.h unistd.h
14206 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14208 echo "$as_me:$LINENO: checking for $ac_header" >&5
14209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14216 # Is the header compilable?
14217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14219 cat >conftest.
$ac_ext <<_ACEOF
14222 cat confdefs.h
>>conftest.
$ac_ext
14223 cat >>conftest.
$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 $ac_includes_default
14226 #include <$ac_header>
14228 rm -f conftest.
$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>conftest.er1
14232 grep -v '^ *+' conftest.er1
>conftest.err
14234 cat conftest.err
>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try
='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try
='test -s conftest.$ac_objext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_header_compiler
=yes
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.
$ac_ext >&5
14255 ac_header_compiler
=no
14257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14259 echo "${ECHO_T}$ac_header_compiler" >&6
14261 # Is the header present?
14262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14264 cat >conftest.
$ac_ext <<_ACEOF
14267 cat confdefs.h
>>conftest.
$ac_ext
14268 cat >>conftest.
$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 #include <$ac_header>
14272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14273 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14275 grep -v '^ *+' conftest.er1
>conftest.err
14277 cat conftest.err
>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } >/dev
/null
; then
14280 if test -s conftest.err
; then
14281 ac_cpp_err
=$ac_c_preproc_warn_flag
14282 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14289 if test -z "$ac_cpp_err"; then
14290 ac_header_preproc
=yes
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.
$ac_ext >&5
14295 ac_header_preproc
=no
14297 rm -f conftest.err conftest.
$ac_ext
14298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14299 echo "${ECHO_T}$ac_header_preproc" >&6
14301 # So? What about this header?
14302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14308 ac_header_preproc
=yes
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14325 ## ------------------------------------------ ##
14326 ## Report this to the AC_PACKAGE_NAME lists. ##
14327 ## ------------------------------------------ ##
14330 sed "s/^/$as_me: WARNING: /" >&2
14333 echo "$as_me:$LINENO: checking for $ac_header" >&5
14334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 eval "$as_ac_Header=\$ac_header_preproc"
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14345 cat >>confdefs.h
<<_ACEOF
14346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14354 for ac_func
in alarm
14356 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14357 echo "$as_me:$LINENO: checking for $ac_func" >&5
14358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14359 if eval "test \"\${$as_ac_var+set}\" = set"; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 cat >conftest.
$ac_ext <<_ACEOF
14365 cat confdefs.h
>>conftest.
$ac_ext
14366 cat >>conftest.
$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14370 #define $ac_func innocuous_$ac_func
14372 /* System header to define __stub macros and hopefully few prototypes,
14373 which can conflict with char $ac_func (); below.
14374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14375 <limits.h> exists even on freestanding compilers. */
14378 # include <limits.h>
14380 # include <assert.h>
14385 /* Override any gcc2 internal prototype to avoid an error. */
14390 /* We use char because int might match the return type of a gcc2
14391 builtin and then its argument prototype would still apply. */
14393 /* The GNU C library defines this for functions which it implements
14394 to always fail with ENOSYS. Some functions are actually named
14395 something starting with __ and the normal name is an alias. */
14396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14399 char (*f) () = $ac_func;
14408 return f != $ac_func;
14413 rm -f conftest.
$ac_objext conftest
$ac_exeext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14415 (eval $ac_link) 2>conftest.er1
14417 grep -v '^ *+' conftest.er1
>conftest.err
14419 cat conftest.err
>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try
='test -z "$ac_c_werror_flag"
14423 || test ! -s conftest.err'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try
='test -s conftest$ac_exeext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 eval "$as_ac_var=yes"
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.
$ac_ext >&5
14440 eval "$as_ac_var=no"
14442 rm -f conftest.err conftest.
$ac_objext \
14443 conftest
$ac_exeext conftest.
$ac_ext
14445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14447 if test `eval echo '${'$as_ac_var'}'` = yes; then
14448 cat >>confdefs.h
<<_ACEOF
14449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14455 echo "$as_me:$LINENO: checking for working mktime" >&5
14456 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14457 if test "${ac_cv_func_working_mktime+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 if test "$cross_compiling" = yes; then
14461 ac_cv_func_working_mktime
=no
14463 cat >conftest.
$ac_ext <<_ACEOF
14466 cat confdefs.h
>>conftest.
$ac_ext
14467 cat >>conftest.
$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 /* Test program from Paul Eggert and Tony Leneis. */
14470 #if TIME_WITH_SYS_TIME
14471 # include <sys/time.h>
14474 # if HAVE_SYS_TIME_H
14475 # include <sys/time.h>
14482 # include <stdlib.h>
14486 # include <unistd.h>
14490 # define alarm(X) /* empty */
14493 /* Work around redefinition to rpl_putenv by other config tests. */
14496 static time_t time_t_max;
14497 static time_t time_t_min;
14499 /* Values we'll use to set the TZ environment variable. */
14500 static char *tz_strings[] = {
14501 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14502 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14504 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14506 /* Fail if mktime fails to convert a date in the spring-forward gap.
14507 Based on a problem report from Andreas Jaeger. */
14509 spring_forward_gap ()
14511 /* glibc (up to about 1998-10-07) failed this test. */
14514 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14515 instead of "TZ=America/Vancouver" in order to detect the bug even
14516 on systems that don't support the Olson extension, or don't have the
14517 full zoneinfo tables installed. */
14518 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14527 if (mktime (&tm) == (time_t)-1)
14536 if ((lt = localtime (&now)) && mktime (lt) != now)
14544 mktime_test1 (now);
14545 mktime_test1 ((time_t) (time_t_max - now));
14546 mktime_test1 ((time_t) (time_t_min + now));
14552 /* Based on code from Ariel Faigon. */
14562 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14572 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14573 now = mktime (&tm);
14574 if (now != (time_t) -1)
14576 struct tm *lt = localtime (&now);
14578 && lt->tm_year == tm.tm_year
14579 && lt->tm_mon == tm.tm_mon
14580 && lt->tm_mday == tm.tm_mday
14581 && lt->tm_hour == tm.tm_hour
14582 && lt->tm_min == tm.tm_min
14583 && lt->tm_sec == tm.tm_sec
14584 && lt->tm_yday == tm.tm_yday
14585 && lt->tm_wday == tm.tm_wday
14586 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14587 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14598 /* This test makes some buggy mktime implementations loop.
14599 Give up after 60 seconds; a mktime slower than that
14600 isn't worth using anyway. */
14603 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14606 if ((time_t) -1 < 0)
14607 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14609 delta = time_t_max / 997; /* a suitable prime number */
14610 for (i = 0; i < N_STRINGS; i++)
14613 putenv (tz_strings[i]);
14615 for (t = 0; t <= time_t_max - delta; t += delta)
14617 mktime_test ((time_t) 1);
14618 mktime_test ((time_t) (60 * 60));
14619 mktime_test ((time_t) (60 * 60 * 24));
14621 for (j = 1; 0 < j; j *= 2)
14623 bigtime_test (j - 1);
14626 spring_forward_gap ();
14630 rm -f conftest
$ac_exeext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632 (eval $ac_link) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_cv_func_working_mktime
=yes
14643 echo "$as_me: program exited with status $ac_status" >&5
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.
$ac_ext >&5
14647 ( exit $ac_status )
14648 ac_cv_func_working_mktime
=no
14650 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14653 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14654 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14655 if test $ac_cv_func_working_mktime = no
; then
14657 "mktime.$ac_objext" | \
14658 *" mktime.$ac_objext" | \
14659 "mktime.$ac_objext "* | \
14660 *" mktime.$ac_objext "* ) ;;
14661 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14666 if test "$ac_cv_func_working_mktime" = no
; then
14668 cat >>confdefs.h
<<\_ACEOF
14669 #define BROKEN_MKTIME 1
14674 ac_have_func
=no
# yes means we've found a way to get the load average.
14676 # Make sure getloadavg.c is where it belongs, at configure-time.
14677 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14678 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14679 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14680 { (exit 1); exit 1; }; }
14684 # Check for getloadavg, but be sure not to touch the cache variable.
14685 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14686 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14687 if test "${ac_cv_func_getloadavg+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 cat >conftest.
$ac_ext <<_ACEOF
14693 cat confdefs.h
>>conftest.
$ac_ext
14694 cat >>conftest.
$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14698 #define getloadavg innocuous_getloadavg
14700 /* System header to define __stub macros and hopefully few prototypes,
14701 which can conflict with char getloadavg (); below.
14702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14703 <limits.h> exists even on freestanding compilers. */
14706 # include <limits.h>
14708 # include <assert.h>
14713 /* Override any gcc2 internal prototype to avoid an error. */
14718 /* We use char because int might match the return type of a gcc2
14719 builtin and then its argument prototype would still apply. */
14720 char getloadavg ();
14721 /* The GNU C library defines this for functions which it implements
14722 to always fail with ENOSYS. Some functions are actually named
14723 something starting with __ and the normal name is an alias. */
14724 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14727 char (*f) () = getloadavg;
14736 return f != getloadavg;
14741 rm -f conftest.
$ac_objext conftest
$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743 (eval $ac_link) 2>conftest.er1
14745 grep -v '^ *+' conftest.er1
>conftest.err
14747 cat conftest.err
>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try
='test -z "$ac_c_werror_flag"
14751 || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try
='test -s conftest$ac_exeext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_cv_func_getloadavg
=yes
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.
$ac_ext >&5
14768 ac_cv_func_getloadavg
=no
14770 rm -f conftest.err conftest.
$ac_objext \
14771 conftest
$ac_exeext conftest.
$ac_ext
14773 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14774 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14775 if test $ac_cv_func_getloadavg = yes; then
14780 ) && ac_have_func
=yes
14782 # On HPUX9, an unprivileged user can get load averages through this function.
14784 for ac_func
in pstat_getdynamic
14786 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14787 echo "$as_me:$LINENO: checking for $ac_func" >&5
14788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14789 if eval "test \"\${$as_ac_var+set}\" = set"; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 cat >conftest.
$ac_ext <<_ACEOF
14795 cat confdefs.h
>>conftest.
$ac_ext
14796 cat >>conftest.
$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14800 #define $ac_func innocuous_$ac_func
14802 /* System header to define __stub macros and hopefully few prototypes,
14803 which can conflict with char $ac_func (); below.
14804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14805 <limits.h> exists even on freestanding compilers. */
14808 # include <limits.h>
14810 # include <assert.h>
14815 /* Override any gcc2 internal prototype to avoid an error. */
14820 /* We use char because int might match the return type of a gcc2
14821 builtin and then its argument prototype would still apply. */
14823 /* The GNU C library defines this for functions which it implements
14824 to always fail with ENOSYS. Some functions are actually named
14825 something starting with __ and the normal name is an alias. */
14826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14829 char (*f) () = $ac_func;
14838 return f != $ac_func;
14843 rm -f conftest.
$ac_objext conftest
$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845 (eval $ac_link) 2>conftest.er1
14847 grep -v '^ *+' conftest.er1
>conftest.err
14849 cat conftest.err
>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
14852 { ac_try
='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try
='test -s conftest$ac_exeext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 eval "$as_ac_var=yes"
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.
$ac_ext >&5
14870 eval "$as_ac_var=no"
14872 rm -f conftest.err conftest.
$ac_objext \
14873 conftest
$ac_exeext conftest.
$ac_ext
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14877 if test `eval echo '${'$as_ac_var'}'` = yes; then
14878 cat >>confdefs.h
<<_ACEOF
14879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14886 # Solaris has libkstat which does not require root.
14888 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14889 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14890 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14893 ac_check_lib_save_LIBS
=$LIBS
14894 LIBS
="-lkstat $LIBS"
14895 cat >conftest.
$ac_ext <<_ACEOF
14898 cat confdefs.h
>>conftest.
$ac_ext
14899 cat >>conftest.
$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14902 /* Override any gcc2 internal prototype to avoid an error. */
14906 /* We use char because int might match the return type of a gcc2
14907 builtin and then its argument prototype would still apply. */
14908 char kstat_open ();
14917 rm -f conftest.
$ac_objext conftest
$ac_exeext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919 (eval $ac_link) 2>conftest.er1
14921 grep -v '^ *+' conftest.er1
>conftest.err
14923 cat conftest.err
>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try
='test -z "$ac_c_werror_flag"
14927 || test ! -s conftest.err'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try
='test -s conftest$ac_exeext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_lib_kstat_kstat_open
=yes
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.
$ac_ext >&5
14944 ac_cv_lib_kstat_kstat_open
=no
14946 rm -f conftest.err conftest.
$ac_objext \
14947 conftest
$ac_exeext conftest.
$ac_ext
14948 LIBS
=$ac_check_lib_save_LIBS
14950 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14951 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14952 if test $ac_cv_lib_kstat_kstat_open = yes; then
14953 cat >>confdefs.h
<<_ACEOF
14954 #define HAVE_LIBKSTAT 1
14957 LIBS
="-lkstat $LIBS"
14961 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14963 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14964 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14965 # to get the right answer into the cache.
14966 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14967 if test $ac_have_func = no
; then
14968 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14969 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14970 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 ac_check_lib_save_LIBS
=$LIBS
14975 cat >conftest.
$ac_ext <<_ACEOF
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14982 /* Override any gcc2 internal prototype to avoid an error. */
14986 /* We use char because int might match the return type of a gcc2
14987 builtin and then its argument prototype would still apply. */
14997 rm -f conftest.
$ac_objext conftest
$ac_exeext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14999 (eval $ac_link) 2>conftest.er1
15001 grep -v '^ *+' conftest.er1
>conftest.err
15003 cat conftest.err
>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try
='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try
='test -s conftest$ac_exeext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_cv_lib_elf_elf_begin
=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.
$ac_ext >&5
15024 ac_cv_lib_elf_elf_begin
=no
15026 rm -f conftest.err conftest.
$ac_objext \
15027 conftest
$ac_exeext conftest.
$ac_ext
15028 LIBS
=$ac_check_lib_save_LIBS
15030 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15031 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15032 if test $ac_cv_lib_elf_elf_begin = yes; then
15037 if test $ac_have_func = no
; then
15038 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15039 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15040 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 ac_check_lib_save_LIBS
=$LIBS
15045 cat >conftest.
$ac_ext <<_ACEOF
15048 cat confdefs.h
>>conftest.
$ac_ext
15049 cat >>conftest.
$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15052 /* Override any gcc2 internal prototype to avoid an error. */
15056 /* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15067 rm -f conftest.
$ac_objext conftest
$ac_exeext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>conftest.er1
15071 grep -v '^ *+' conftest.er1
>conftest.err
15073 cat conftest.err
>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try
='test -z "$ac_c_werror_flag"
15077 || test ! -s conftest.err'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; } &&
15083 { ac_try
='test -s conftest$ac_exeext'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_cv_lib_kvm_kvm_open
=yes
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.
$ac_ext >&5
15094 ac_cv_lib_kvm_kvm_open
=no
15096 rm -f conftest.err conftest.
$ac_objext \
15097 conftest
$ac_exeext conftest.
$ac_ext
15098 LIBS
=$ac_check_lib_save_LIBS
15100 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15101 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15102 if test $ac_cv_lib_kvm_kvm_open = yes; then
15106 # Check for the 4.4BSD definition of getloadavg.
15107 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15108 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15109 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 ac_check_lib_save_LIBS
=$LIBS
15113 LIBS
="-lutil $LIBS"
15114 cat >conftest.
$ac_ext <<_ACEOF
15117 cat confdefs.h
>>conftest.
$ac_ext
15118 cat >>conftest.
$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15121 /* Override any gcc2 internal prototype to avoid an error. */
15125 /* We use char because int might match the return type of a gcc2
15126 builtin and then its argument prototype would still apply. */
15127 char getloadavg ();
15136 rm -f conftest.
$ac_objext conftest
$ac_exeext
15137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15138 (eval $ac_link) 2>conftest.er1
15140 grep -v '^ *+' conftest.er1
>conftest.err
15142 cat conftest.err
>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try
='test -z "$ac_c_werror_flag"
15146 || test ! -s conftest.err'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try
='test -s conftest$ac_exeext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_lib_util_getloadavg
=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.
$ac_ext >&5
15163 ac_cv_lib_util_getloadavg
=no
15165 rm -f conftest.err conftest.
$ac_objext \
15166 conftest
$ac_exeext conftest.
$ac_ext
15167 LIBS
=$ac_check_lib_save_LIBS
15169 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15170 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15171 if test $ac_cv_lib_util_getloadavg = yes; then
15172 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15177 if test $ac_have_func = no
; then
15178 # There is a commonly available library for RS/6000 AIX.
15179 # Since it is not a standard part of AIX, it might be installed locally.
15180 ac_getloadavg_LIBS
=$LIBS
15181 LIBS
="-L/usr/local/lib $LIBS"
15182 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15183 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15184 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 ac_check_lib_save_LIBS
=$LIBS
15188 LIBS
="-lgetloadavg $LIBS"
15189 cat >conftest.
$ac_ext <<_ACEOF
15192 cat confdefs.h
>>conftest.
$ac_ext
15193 cat >>conftest.
$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15196 /* Override any gcc2 internal prototype to avoid an error. */
15200 /* We use char because int might match the return type of a gcc2
15201 builtin and then its argument prototype would still apply. */
15202 char getloadavg ();
15211 rm -f conftest.
$ac_objext conftest
$ac_exeext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15213 (eval $ac_link) 2>conftest.er1
15215 grep -v '^ *+' conftest.er1
>conftest.err
15217 cat conftest.err
>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try
='test -z "$ac_c_werror_flag"
15221 || test ! -s conftest.err'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try
='test -s conftest$ac_exeext'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_cv_lib_getloadavg_getloadavg
=yes
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.
$ac_ext >&5
15238 ac_cv_lib_getloadavg_getloadavg
=no
15240 rm -f conftest.err conftest.
$ac_objext \
15241 conftest
$ac_exeext conftest.
$ac_ext
15242 LIBS
=$ac_check_lib_save_LIBS
15244 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15245 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15246 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15247 LIBS
="-lgetloadavg $LIBS"
15249 LIBS
=$ac_getloadavg_LIBS
15254 # Make sure it is really in the library, if we think we found it,
15255 # otherwise set up the replacement function.
15257 for ac_func
in getloadavg
15259 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15260 echo "$as_me:$LINENO: checking for $ac_func" >&5
15261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15262 if eval "test \"\${$as_ac_var+set}\" = set"; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 cat >conftest.
$ac_ext <<_ACEOF
15268 cat confdefs.h
>>conftest.
$ac_ext
15269 cat >>conftest.
$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15273 #define $ac_func innocuous_$ac_func
15275 /* System header to define __stub macros and hopefully few prototypes,
15276 which can conflict with char $ac_func (); below.
15277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15278 <limits.h> exists even on freestanding compilers. */
15281 # include <limits.h>
15283 # include <assert.h>
15288 /* Override any gcc2 internal prototype to avoid an error. */
15293 /* We use char because int might match the return type of a gcc2
15294 builtin and then its argument prototype would still apply. */
15296 /* The GNU C library defines this for functions which it implements
15297 to always fail with ENOSYS. Some functions are actually named
15298 something starting with __ and the normal name is an alias. */
15299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15302 char (*f) () = $ac_func;
15311 return f != $ac_func;
15316 rm -f conftest.
$ac_objext conftest
$ac_exeext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318 (eval $ac_link) 2>conftest.er1
15320 grep -v '^ *+' conftest.er1
>conftest.err
15322 cat conftest.err
>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try
='test -z "$ac_c_werror_flag"
15326 || test ! -s conftest.err'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try
='test -s conftest$ac_exeext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 eval "$as_ac_var=yes"
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.
$ac_ext >&5
15343 eval "$as_ac_var=no"
15345 rm -f conftest.err conftest.
$ac_objext \
15346 conftest
$ac_exeext conftest.
$ac_ext
15348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15350 if test `eval echo '${'$as_ac_var'}'` = yes; then
15351 cat >>confdefs.h
<<_ACEOF
15352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15357 "getloadavg.$ac_objext" | \
15358 *" getloadavg.$ac_objext" | \
15359 "getloadavg.$ac_objext "* | \
15360 *" getloadavg.$ac_objext "* ) ;;
15361 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15365 cat >>confdefs.h
<<\_ACEOF
15366 #define C_GETLOADAVG 1
15369 # Figure out what our getloadavg.c needs.
15371 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15372 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15373 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15374 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15378 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15380 # Is the header compilable?
15381 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15382 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15383 cat >conftest.
$ac_ext <<_ACEOF
15386 cat confdefs.h
>>conftest.
$ac_ext
15387 cat >>conftest.
$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 $ac_includes_default
15390 #include <sys/dg_sys_info.h>
15392 rm -f conftest.
$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>conftest.er1
15396 grep -v '^ *+' conftest.er1
>conftest.err
15398 cat conftest.err
>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try
='test -z "$ac_c_werror_flag"
15402 || test ! -s conftest.err'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try
='test -s conftest.$ac_objext'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15414 ac_header_compiler
=yes
15416 echo "$as_me: failed program was:" >&5
15417 sed 's/^/| /' conftest.
$ac_ext >&5
15419 ac_header_compiler
=no
15421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15423 echo "${ECHO_T}$ac_header_compiler" >&6
15425 # Is the header present?
15426 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15427 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15428 cat >conftest.
$ac_ext <<_ACEOF
15431 cat confdefs.h
>>conftest.
$ac_ext
15432 cat >>conftest.
$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434 #include <sys/dg_sys_info.h>
15436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15437 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15439 grep -v '^ *+' conftest.er1
>conftest.err
15441 cat conftest.err
>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev
/null
; then
15444 if test -s conftest.err
; then
15445 ac_cpp_err
=$ac_c_preproc_warn_flag
15446 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15453 if test -z "$ac_cpp_err"; then
15454 ac_header_preproc
=yes
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.
$ac_ext >&5
15459 ac_header_preproc
=no
15461 rm -f conftest.err conftest.
$ac_ext
15462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6
15465 # So? What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc
=yes
15475 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15489 ## ------------------------------------------ ##
15490 ## Report this to the AC_PACKAGE_NAME lists. ##
15491 ## ------------------------------------------ ##
15494 sed "s/^/$as_me: WARNING: /" >&2
15497 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15498 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15499 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15504 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15505 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15508 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15511 cat >>confdefs.h
<<\_ACEOF
15516 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15517 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15518 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 ac_check_lib_save_LIBS
=$LIBS
15523 cat >conftest.
$ac_ext <<_ACEOF
15526 cat confdefs.h
>>conftest.
$ac_ext
15527 cat >>conftest.
$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15530 /* Override any gcc2 internal prototype to avoid an error. */
15534 /* We use char because int might match the return type of a gcc2
15535 builtin and then its argument prototype would still apply. */
15536 char dg_sys_info ();
15545 rm -f conftest.
$ac_objext conftest
$ac_exeext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15547 (eval $ac_link) 2>conftest.er1
15549 grep -v '^ *+' conftest.er1
>conftest.err
15551 cat conftest.err
>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try
='test -z "$ac_c_werror_flag"
15555 || test ! -s conftest.err'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try
='test -s conftest$ac_exeext'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 ac_cv_lib_dgc_dg_sys_info
=yes
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.
$ac_ext >&5
15572 ac_cv_lib_dgc_dg_sys_info
=no
15574 rm -f conftest.err conftest.
$ac_objext \
15575 conftest
$ac_exeext conftest.
$ac_ext
15576 LIBS
=$ac_check_lib_save_LIBS
15578 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15579 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15580 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15581 cat >>confdefs.h
<<_ACEOF
15582 #define HAVE_LIBDGC 1
15593 if test "${ac_cv_header_locale_h+set}" = set; then
15594 echo "$as_me:$LINENO: checking for locale.h" >&5
15595 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15596 if test "${ac_cv_header_locale_h+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15600 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15602 # Is the header compilable?
15603 echo "$as_me:$LINENO: checking locale.h usability" >&5
15604 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15605 cat >conftest.
$ac_ext <<_ACEOF
15608 cat confdefs.h
>>conftest.
$ac_ext
15609 cat >>conftest.
$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 $ac_includes_default
15612 #include <locale.h>
15614 rm -f conftest.
$ac_objext
15615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15616 (eval $ac_compile) 2>conftest.er1
15618 grep -v '^ *+' conftest.er1
>conftest.err
15620 cat conftest.err
>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try
='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try
='test -s conftest.$ac_objext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_header_compiler
=yes
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.
$ac_ext >&5
15641 ac_header_compiler
=no
15643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15645 echo "${ECHO_T}$ac_header_compiler" >&6
15647 # Is the header present?
15648 echo "$as_me:$LINENO: checking locale.h presence" >&5
15649 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15650 cat >conftest.
$ac_ext <<_ACEOF
15653 cat confdefs.h
>>conftest.
$ac_ext
15654 cat >>conftest.
$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656 #include <locale.h>
15658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15661 grep -v '^ *+' conftest.er1
>conftest.err
15663 cat conftest.err
>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } >/dev
/null
; then
15666 if test -s conftest.err
; then
15667 ac_cpp_err
=$ac_c_preproc_warn_flag
15668 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15675 if test -z "$ac_cpp_err"; then
15676 ac_header_preproc
=yes
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.
$ac_ext >&5
15681 ac_header_preproc
=no
15683 rm -f conftest.err conftest.
$ac_ext
15684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15685 echo "${ECHO_T}$ac_header_preproc" >&6
15687 # So? What about this header?
15688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15690 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15691 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15693 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15694 ac_header_preproc
=yes
15697 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15698 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15700 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15702 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15704 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15706 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15708 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15711 ## ------------------------------------------ ##
15712 ## Report this to the AC_PACKAGE_NAME lists. ##
15713 ## ------------------------------------------ ##
15716 sed "s/^/$as_me: WARNING: /" >&2
15719 echo "$as_me:$LINENO: checking for locale.h" >&5
15720 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15721 if test "${ac_cv_header_locale_h+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 ac_cv_header_locale_h
=$ac_header_preproc
15726 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15727 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15733 for ac_func
in setlocale
15735 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15736 echo "$as_me:$LINENO: checking for $ac_func" >&5
15737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15738 if eval "test \"\${$as_ac_var+set}\" = set"; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 cat >conftest.
$ac_ext <<_ACEOF
15744 cat confdefs.h
>>conftest.
$ac_ext
15745 cat >>conftest.
$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749 #define $ac_func innocuous_$ac_func
15751 /* System header to define __stub macros and hopefully few prototypes,
15752 which can conflict with char $ac_func (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15757 # include <limits.h>
15759 # include <assert.h>
15764 /* Override any gcc2 internal prototype to avoid an error. */
15769 /* We use char because int might match the return type of a gcc2
15770 builtin and then its argument prototype would still apply. */
15772 /* The GNU C library defines this for functions which it implements
15773 to always fail with ENOSYS. Some functions are actually named
15774 something starting with __ and the normal name is an alias. */
15775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15778 char (*f) () = $ac_func;
15787 return f != $ac_func;
15792 rm -f conftest.
$ac_objext conftest
$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794 (eval $ac_link) 2>conftest.er1
15796 grep -v '^ *+' conftest.er1
>conftest.err
15798 cat conftest.err
>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try
='test -z "$ac_c_werror_flag"
15802 || test ! -s conftest.err'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; } &&
15808 { ac_try
='test -s conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 eval "$as_ac_var=yes"
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.
$ac_ext >&5
15819 eval "$as_ac_var=no"
15821 rm -f conftest.err conftest.
$ac_objext \
15822 conftest
$ac_exeext conftest.
$ac_ext
15824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15826 if test `eval echo '${'$as_ac_var'}'` = yes; then
15827 cat >>confdefs.h
<<_ACEOF
15828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15835 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15836 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15837 # Irix 4.0.5F has the header but not the library.
15838 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15841 cat >>confdefs.h
<<\_ACEOF
15847 if test $ac_have_func = no
; then
15848 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15849 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15850 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15851 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15855 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15857 # Is the header compilable?
15858 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15859 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15860 cat >conftest.
$ac_ext <<_ACEOF
15863 cat confdefs.h
>>conftest.
$ac_ext
15864 cat >>conftest.
$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 $ac_includes_default
15867 #include <inq_stats/cpustats.h>
15869 rm -f conftest.
$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
15873 grep -v '^ *+' conftest.er1
>conftest.err
15875 cat conftest.err
>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try
='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try
='test -s conftest.$ac_objext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ac_header_compiler
=yes
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.
$ac_ext >&5
15896 ac_header_compiler
=no
15898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900 echo "${ECHO_T}$ac_header_compiler" >&6
15902 # Is the header present?
15903 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15904 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15905 cat >conftest.
$ac_ext <<_ACEOF
15908 cat confdefs.h
>>conftest.
$ac_ext
15909 cat >>conftest.
$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 #include <inq_stats/cpustats.h>
15913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15916 grep -v '^ *+' conftest.er1
>conftest.err
15918 cat conftest.err
>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } >/dev
/null
; then
15921 if test -s conftest.err
; then
15922 ac_cpp_err
=$ac_c_preproc_warn_flag
15923 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15930 if test -z "$ac_cpp_err"; then
15931 ac_header_preproc
=yes
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.
$ac_ext >&5
15936 ac_header_preproc
=no
15938 rm -f conftest.err conftest.
$ac_ext
15939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15940 echo "${ECHO_T}$ac_header_preproc" >&6
15942 # So? What about this header?
15943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15945 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15946 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15948 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15949 ac_header_preproc
=yes
15952 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15953 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15955 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15957 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15959 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15961 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15963 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15966 ## ------------------------------------------ ##
15967 ## Report this to the AC_PACKAGE_NAME lists. ##
15968 ## ------------------------------------------ ##
15971 sed "s/^/$as_me: WARNING: /" >&2
15974 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15975 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15976 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15981 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15982 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15985 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15988 cat >>confdefs.h
<<\_ACEOF
15993 cat >>confdefs.h
<<\_ACEOF
16002 if test $ac_have_func = no
; then
16003 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16004 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16005 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16006 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16010 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16012 # Is the header compilable?
16013 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16014 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16015 cat >conftest.
$ac_ext <<_ACEOF
16018 cat confdefs.h
>>conftest.
$ac_ext
16019 cat >>conftest.
$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 $ac_includes_default
16022 #include <sys/cpustats.h>
16024 rm -f conftest.
$ac_objext
16025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026 (eval $ac_compile) 2>conftest.er1
16028 grep -v '^ *+' conftest.er1
>conftest.err
16030 cat conftest.err
>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try
='test -z "$ac_c_werror_flag"
16034 || test ! -s conftest.err'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; } &&
16040 { ac_try
='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_header_compiler
=yes
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.
$ac_ext >&5
16051 ac_header_compiler
=no
16053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055 echo "${ECHO_T}$ac_header_compiler" >&6
16057 # Is the header present?
16058 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16059 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16060 cat >conftest.
$ac_ext <<_ACEOF
16063 cat confdefs.h
>>conftest.
$ac_ext
16064 cat >>conftest.
$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 #include <sys/cpustats.h>
16068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16071 grep -v '^ *+' conftest.er1
>conftest.err
16073 cat conftest.err
>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev
/null
; then
16076 if test -s conftest.err
; then
16077 ac_cpp_err
=$ac_c_preproc_warn_flag
16078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16085 if test -z "$ac_cpp_err"; then
16086 ac_header_preproc
=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.
$ac_ext >&5
16091 ac_header_preproc
=no
16093 rm -f conftest.err conftest.
$ac_ext
16094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc
=yes
16107 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16121 ## ------------------------------------------ ##
16122 ## Report this to the AC_PACKAGE_NAME lists. ##
16123 ## ------------------------------------------ ##
16126 sed "s/^/$as_me: WARNING: /" >&2
16129 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16130 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16131 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16136 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16137 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16140 if test $ac_cv_header_sys_cpustats_h = yes; then
16141 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16150 if test $ac_have_func = no
; then
16152 for ac_header
in mach
/mach.h
16154 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16156 echo "$as_me:$LINENO: checking for $ac_header" >&5
16157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16164 # Is the header compilable?
16165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16167 cat >conftest.
$ac_ext <<_ACEOF
16170 cat confdefs.h
>>conftest.
$ac_ext
16171 cat >>conftest.
$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 $ac_includes_default
16174 #include <$ac_header>
16176 rm -f conftest.
$ac_objext
16177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16178 (eval $ac_compile) 2>conftest.er1
16180 grep -v '^ *+' conftest.er1
>conftest.err
16182 cat conftest.err
>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try
='test -z "$ac_c_werror_flag"
16186 || test ! -s conftest.err'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try
='test -s conftest.$ac_objext'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_header_compiler
=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.
$ac_ext >&5
16203 ac_header_compiler
=no
16205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16207 echo "${ECHO_T}$ac_header_compiler" >&6
16209 # Is the header present?
16210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16212 cat >conftest.
$ac_ext <<_ACEOF
16215 cat confdefs.h
>>conftest.
$ac_ext
16216 cat >>conftest.
$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #include <$ac_header>
16220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16221 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16223 grep -v '^ *+' conftest.er1
>conftest.err
16225 cat conftest.err
>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } >/dev
/null
; then
16228 if test -s conftest.err
; then
16229 ac_cpp_err
=$ac_c_preproc_warn_flag
16230 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16237 if test -z "$ac_cpp_err"; then
16238 ac_header_preproc
=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.
$ac_ext >&5
16243 ac_header_preproc
=no
16245 rm -f conftest.err conftest.
$ac_ext
16246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16247 echo "${ECHO_T}$ac_header_preproc" >&6
16249 # So? What about this header?
16250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16256 ac_header_preproc
=yes
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16273 ## ------------------------------------------ ##
16274 ## Report this to the AC_PACKAGE_NAME lists. ##
16275 ## ------------------------------------------ ##
16278 sed "s/^/$as_me: WARNING: /" >&2
16281 echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 eval "$as_ac_Header=\$ac_header_preproc"
16288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16293 cat >>confdefs.h
<<_ACEOF
16294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16304 for ac_header
in nlist.h
16306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16308 echo "$as_me:$LINENO: checking for $ac_header" >&5
16309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16316 # Is the header compilable?
16317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16319 cat >conftest.
$ac_ext <<_ACEOF
16322 cat confdefs.h
>>conftest.
$ac_ext
16323 cat >>conftest.
$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 $ac_includes_default
16326 #include <$ac_header>
16328 rm -f conftest.
$ac_objext
16329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16330 (eval $ac_compile) 2>conftest.er1
16332 grep -v '^ *+' conftest.er1
>conftest.err
16334 cat conftest.err
>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try
='test -z "$ac_c_werror_flag"
16338 || test ! -s conftest.err'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try
='test -s conftest.$ac_objext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_header_compiler
=yes
16352 echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.
$ac_ext >&5
16355 ac_header_compiler
=no
16357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16359 echo "${ECHO_T}$ac_header_compiler" >&6
16361 # Is the header present?
16362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16364 cat >conftest.
$ac_ext <<_ACEOF
16367 cat confdefs.h
>>conftest.
$ac_ext
16368 cat >>conftest.
$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 #include <$ac_header>
16372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16375 grep -v '^ *+' conftest.er1
>conftest.err
16377 cat conftest.err
>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } >/dev
/null
; then
16380 if test -s conftest.err
; then
16381 ac_cpp_err
=$ac_c_preproc_warn_flag
16382 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16389 if test -z "$ac_cpp_err"; then
16390 ac_header_preproc
=yes
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.
$ac_ext >&5
16395 ac_header_preproc
=no
16397 rm -f conftest.err conftest.
$ac_ext
16398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16399 echo "${ECHO_T}$ac_header_preproc" >&6
16401 # So? What about this header?
16402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16408 ac_header_preproc
=yes
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16425 ## ------------------------------------------ ##
16426 ## Report this to the AC_PACKAGE_NAME lists. ##
16427 ## ------------------------------------------ ##
16430 sed "s/^/$as_me: WARNING: /" >&2
16433 echo "$as_me:$LINENO: checking for $ac_header" >&5
16434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16438 eval "$as_ac_Header=\$ac_header_preproc"
16440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16445 cat >>confdefs.h
<<_ACEOF
16446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16448 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16449 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16450 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 cat >conftest.
$ac_ext <<_ACEOF
16456 cat confdefs.h
>>conftest.
$ac_ext
16457 cat >>conftest.
$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16464 static struct nlist ac_aggr;
16465 if (ac_aggr.n_un.n_name)
16471 rm -f conftest.
$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>conftest.er1
16475 grep -v '^ *+' conftest.er1
>conftest.err
16477 cat conftest.err
>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try
='test -z "$ac_c_werror_flag"
16481 || test ! -s conftest.err'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try
='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_member_struct_nlist_n_un_n_name
=yes
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.
$ac_ext >&5
16498 cat >conftest.
$ac_ext <<_ACEOF
16501 cat confdefs.h
>>conftest.
$ac_ext
16502 cat >>conftest.
$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16509 static struct nlist ac_aggr;
16510 if (sizeof ac_aggr.n_un.n_name)
16516 rm -f conftest.
$ac_objext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518 (eval $ac_compile) 2>conftest.er1
16520 grep -v '^ *+' conftest.er1
>conftest.err
16522 cat conftest.err
>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try
='test -z "$ac_c_werror_flag"
16526 || test ! -s conftest.err'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try
='test -s conftest.$ac_objext'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_cv_member_struct_nlist_n_un_n_name
=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.
$ac_ext >&5
16543 ac_cv_member_struct_nlist_n_un_n_name
=no
16545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16549 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16550 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16551 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16553 cat >>confdefs.h
<<_ACEOF
16554 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16558 cat >>confdefs.h
<<\_ACEOF
16559 #define NLIST_NAME_UNION 1
16573 # Some definitions of getloadavg require that the program be installed setgid.
16574 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16575 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16576 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 cat >conftest.
$ac_ext <<_ACEOF
16582 cat confdefs.h
>>conftest.
$ac_ext
16583 cat >>conftest.
$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16586 #ifdef LDAV_PRIVILEGED
16587 Yowza Am I SETGID yet
16590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16591 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16592 ac_cv_func_getloadavg_setgid
=yes
16594 ac_cv_func_getloadavg_setgid
=no
16599 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16600 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16601 if test $ac_cv_func_getloadavg_setgid = yes; then
16604 cat >>confdefs.h
<<\_ACEOF
16605 #define GETLOADAVG_PRIVILEGED 1
16612 if test $ac_cv_func_getloadavg_setgid = yes; then
16613 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16614 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16615 if test "${ac_cv_group_kmem+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16619 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16620 # If we got an error (system does not support symlinks), try without -L.
16621 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16622 ac_cv_group_kmem
=`echo $ac_ls_output \
16623 | sed -ne 's/[ ][ ]*/ /g;
16624 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16628 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16629 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16630 KMEM_GROUP
=$ac_cv_group_kmem
16632 if test "x$ac_save_LIBS" = x
; then
16633 GETLOADAVG_LIBS
=$LIBS
16635 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16641 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16642 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16643 if test "${ac_cv_sys_largefile_source+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 ac_cv_sys_largefile_source
=no
16648 cat >conftest.
$ac_ext <<_ACEOF
16651 cat confdefs.h
>>conftest.
$ac_ext
16652 cat >>conftest.
$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16663 rm -f conftest.
$ac_objext
16664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>conftest.er1
16667 grep -v '^ *+' conftest.er1
>conftest.err
16669 cat conftest.err
>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try
='test -z "$ac_c_werror_flag"
16673 || test ! -s conftest.err'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try
='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.
$ac_ext >&5
16691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16692 cat >conftest.
$ac_ext <<_ACEOF
16695 cat confdefs.h
>>conftest.
$ac_ext
16696 cat >>conftest.
$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #define _LARGEFILE_SOURCE 1
16708 rm -f conftest.
$ac_objext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710 (eval $ac_compile) 2>conftest.er1
16712 grep -v '^ *+' conftest.er1
>conftest.err
16714 cat conftest.err
>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try
='test -z "$ac_c_werror_flag"
16718 || test ! -s conftest.err'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try
='test -s conftest.$ac_objext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 ac_cv_sys_largefile_source
=1; break
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.
$ac_ext >&5
16736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16741 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16742 if test "$ac_cv_sys_largefile_source" != no
; then
16744 cat >>confdefs.h
<<_ACEOF
16745 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16751 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16752 # in glibc 2.1.3, but that breaks too many other things.
16753 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16754 echo "$as_me:$LINENO: checking for fseeko" >&5
16755 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16756 if test "${ac_cv_func_fseeko+set}" = set; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 cat >conftest.
$ac_ext <<_ACEOF
16762 cat confdefs.h
>>conftest.
$ac_ext
16763 cat >>conftest.
$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16769 return fseeko && fseeko (stdin, 0, 0);
16774 rm -f conftest.
$ac_objext conftest
$ac_exeext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16776 (eval $ac_link) 2>conftest.er1
16778 grep -v '^ *+' conftest.er1
>conftest.err
16780 cat conftest.err
>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try
='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try
='test -s conftest$ac_exeext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 ac_cv_func_fseeko
=yes
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.
$ac_ext >&5
16801 ac_cv_func_fseeko
=no
16803 rm -f conftest.err conftest.
$ac_objext \
16804 conftest
$ac_exeext conftest.
$ac_ext
16806 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16807 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16808 if test $ac_cv_func_fseeko = yes; then
16810 cat >>confdefs.h
<<\_ACEOF
16811 #define HAVE_FSEEKO 1
16817 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16818 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16819 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 # Use it with a single arg.
16823 cat >conftest.
$ac_ext <<_ACEOF
16826 cat confdefs.h
>>conftest.
$ac_ext
16827 cat >>conftest.
$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 $ac_includes_default
16838 rm -f conftest.
$ac_objext
16839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16840 (eval $ac_compile) 2>conftest.er1
16842 grep -v '^ *+' conftest.er1
>conftest.err
16844 cat conftest.err
>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } &&
16847 { ac_try
='test -z "$ac_c_werror_flag"
16848 || test ! -s conftest.err'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try
='test -s conftest.$ac_objext'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_func_getpgrp_void
=no
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.
$ac_ext >&5
16865 ac_cv_func_getpgrp_void
=yes
16867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16870 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16871 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16872 if test $ac_cv_func_getpgrp_void = yes; then
16874 cat >>confdefs.h
<<\_ACEOF
16875 #define GETPGRP_VOID 1
16882 for ac_func
in strftime
16884 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16885 echo "$as_me:$LINENO: checking for $ac_func" >&5
16886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16887 if eval "test \"\${$as_ac_var+set}\" = set"; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 cat >conftest.
$ac_ext <<_ACEOF
16893 cat confdefs.h
>>conftest.
$ac_ext
16894 cat >>conftest.
$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16898 #define $ac_func innocuous_$ac_func
16900 /* System header to define __stub macros and hopefully few prototypes,
16901 which can conflict with char $ac_func (); below.
16902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16903 <limits.h> exists even on freestanding compilers. */
16906 # include <limits.h>
16908 # include <assert.h>
16913 /* Override any gcc2 internal prototype to avoid an error. */
16918 /* We use char because int might match the return type of a gcc2
16919 builtin and then its argument prototype would still apply. */
16921 /* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16927 char (*f) () = $ac_func;
16936 return f != $ac_func;
16941 rm -f conftest.
$ac_objext conftest
$ac_exeext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943 (eval $ac_link) 2>conftest.er1
16945 grep -v '^ *+' conftest.er1
>conftest.err
16947 cat conftest.err
>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try
='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try
='test -s conftest$ac_exeext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 eval "$as_ac_var=yes"
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.
$ac_ext >&5
16968 eval "$as_ac_var=no"
16970 rm -f conftest.err conftest.
$ac_objext \
16971 conftest
$ac_exeext conftest.
$ac_ext
16973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16975 if test `eval echo '${'$as_ac_var'}'` = yes; then
16976 cat >>confdefs.h
<<_ACEOF
16977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16981 # strftime is in -lintl on SCO UNIX.
16982 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16983 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16984 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 ac_check_lib_save_LIBS
=$LIBS
16988 LIBS
="-lintl $LIBS"
16989 cat >conftest.
$ac_ext <<_ACEOF
16992 cat confdefs.h
>>conftest.
$ac_ext
16993 cat >>conftest.
$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any gcc2 internal prototype to avoid an error. */
17000 /* We use char because int might match the return type of a gcc2
17001 builtin and then its argument prototype would still apply. */
17011 rm -f conftest.
$ac_objext conftest
$ac_exeext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013 (eval $ac_link) 2>conftest.er1
17015 grep -v '^ *+' conftest.er1
>conftest.err
17017 cat conftest.err
>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try
='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try
='test -s conftest$ac_exeext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_lib_intl_strftime
=yes
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.
$ac_ext >&5
17038 ac_cv_lib_intl_strftime
=no
17040 rm -f conftest.err conftest.
$ac_objext \
17041 conftest
$ac_exeext conftest.
$ac_ext
17042 LIBS
=$ac_check_lib_save_LIBS
17044 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17045 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17046 if test $ac_cv_lib_intl_strftime = yes; then
17047 cat >>confdefs.h
<<\_ACEOF
17048 #define HAVE_STRFTIME 1
17051 LIBS
="-lintl $LIBS"
17060 for ac_func
in grantpt
17062 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17063 echo "$as_me:$LINENO: checking for $ac_func" >&5
17064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17065 if eval "test \"\${$as_ac_var+set}\" = set"; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 cat >conftest.
$ac_ext <<_ACEOF
17071 cat confdefs.h
>>conftest.
$ac_ext
17072 cat >>conftest.
$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17076 #define $ac_func innocuous_$ac_func
17078 /* System header to define __stub macros and hopefully few prototypes,
17079 which can conflict with char $ac_func (); below.
17080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081 <limits.h> exists even on freestanding compilers. */
17084 # include <limits.h>
17086 # include <assert.h>
17091 /* Override any gcc2 internal prototype to avoid an error. */
17096 /* We use char because int might match the return type of a gcc2
17097 builtin and then its argument prototype would still apply. */
17099 /* The GNU C library defines this for functions which it implements
17100 to always fail with ENOSYS. Some functions are actually named
17101 something starting with __ and the normal name is an alias. */
17102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17105 char (*f) () = $ac_func;
17114 return f != $ac_func;
17119 rm -f conftest.
$ac_objext conftest
$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121 (eval $ac_link) 2>conftest.er1
17123 grep -v '^ *+' conftest.er1
>conftest.err
17125 cat conftest.err
>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try
='test -z "$ac_c_werror_flag"
17129 || test ! -s conftest.err'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try
='test -s conftest$ac_exeext'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 eval "$as_ac_var=yes"
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.
$ac_ext >&5
17146 eval "$as_ac_var=no"
17148 rm -f conftest.err conftest.
$ac_objext \
17149 conftest
$ac_exeext conftest.
$ac_ext
17151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17153 if test `eval echo '${'$as_ac_var'}'` = yes; then
17154 cat >>confdefs.h
<<_ACEOF
17155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17162 # PTY-related GNU extensions.
17164 for ac_func
in getpt
17166 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17167 echo "$as_me:$LINENO: checking for $ac_func" >&5
17168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17169 if eval "test \"\${$as_ac_var+set}\" = set"; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 cat >conftest.
$ac_ext <<_ACEOF
17175 cat confdefs.h
>>conftest.
$ac_ext
17176 cat >>conftest.
$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17180 #define $ac_func innocuous_$ac_func
17182 /* System header to define __stub macros and hopefully few prototypes,
17183 which can conflict with char $ac_func (); below.
17184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17185 <limits.h> exists even on freestanding compilers. */
17188 # include <limits.h>
17190 # include <assert.h>
17195 /* Override any gcc2 internal prototype to avoid an error. */
17200 /* We use char because int might match the return type of a gcc2
17201 builtin and then its argument prototype would still apply. */
17203 /* The GNU C library defines this for functions which it implements
17204 to always fail with ENOSYS. Some functions are actually named
17205 something starting with __ and the normal name is an alias. */
17206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17209 char (*f) () = $ac_func;
17218 return f != $ac_func;
17223 rm -f conftest.
$ac_objext conftest
$ac_exeext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225 (eval $ac_link) 2>conftest.er1
17227 grep -v '^ *+' conftest.er1
>conftest.err
17229 cat conftest.err
>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try
='test -z "$ac_c_werror_flag"
17233 || test ! -s conftest.err'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; } &&
17239 { ac_try
='test -s conftest$ac_exeext'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 eval "$as_ac_var=yes"
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.
$ac_ext >&5
17250 eval "$as_ac_var=no"
17252 rm -f conftest.err conftest.
$ac_objext \
17253 conftest
$ac_exeext conftest.
$ac_ext
17255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17257 if test `eval echo '${'$as_ac_var'}'` = yes; then
17258 cat >>confdefs.h
<<_ACEOF
17259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17266 # Check this now, so that we will NOT find the above functions in ncurses.
17267 # That is because we have not set up to link ncurses in lib-src.
17268 # It's better to believe a function is not available
17269 # than to expect to find it in ncurses.
17271 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17272 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17273 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 ac_check_lib_save_LIBS
=$LIBS
17277 LIBS
="-lncurses $LIBS"
17278 cat >conftest.
$ac_ext <<_ACEOF
17281 cat confdefs.h
>>conftest.
$ac_ext
17282 cat >>conftest.
$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17285 /* Override any gcc2 internal prototype to avoid an error. */
17289 /* We use char because int might match the return type of a gcc2
17290 builtin and then its argument prototype would still apply. */
17300 rm -f conftest.
$ac_objext conftest
$ac_exeext
17301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17302 (eval $ac_link) 2>conftest.er1
17304 grep -v '^ *+' conftest.er1
>conftest.err
17306 cat conftest.err
>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } &&
17309 { ac_try
='test -z "$ac_c_werror_flag"
17310 || test ! -s conftest.err'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try
='test -s conftest$ac_exeext'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; }; then
17322 ac_cv_lib_ncurses_tparm
=yes
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.
$ac_ext >&5
17327 ac_cv_lib_ncurses_tparm
=no
17329 rm -f conftest.err conftest.
$ac_objext \
17330 conftest
$ac_exeext conftest.
$ac_ext
17331 LIBS
=$ac_check_lib_save_LIBS
17333 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17334 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17335 if test $ac_cv_lib_ncurses_tparm = yes; then
17336 cat >>confdefs.h
<<_ACEOF
17337 #define HAVE_LIBNCURSES 1
17340 LIBS
="-lncurses $LIBS"
17345 # Do we need the Hesiod library to provide the support routines?
17346 if test "$with_hesiod" = yes ; then
17347 # Don't set $LIBS here -- see comments above.
17349 echo "$as_me:$LINENO: checking for res_send" >&5
17350 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17351 if test "${ac_cv_func_res_send+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 cat >conftest.
$ac_ext <<_ACEOF
17357 cat confdefs.h
>>conftest.
$ac_ext
17358 cat >>conftest.
$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17362 #define res_send innocuous_res_send
17364 /* System header to define __stub macros and hopefully few prototypes,
17365 which can conflict with char res_send (); below.
17366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17367 <limits.h> exists even on freestanding compilers. */
17370 # include <limits.h>
17372 # include <assert.h>
17377 /* Override any gcc2 internal prototype to avoid an error. */
17382 /* We use char because int might match the return type of a gcc2
17383 builtin and then its argument prototype would still apply. */
17385 /* The GNU C library defines this for functions which it implements
17386 to always fail with ENOSYS. Some functions are actually named
17387 something starting with __ and the normal name is an alias. */
17388 #if defined (__stub_res_send) || defined (__stub___res_send)
17391 char (*f) () = res_send;
17400 return f != res_send;
17405 rm -f conftest.
$ac_objext conftest
$ac_exeext
17406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17407 (eval $ac_link) 2>conftest.er1
17409 grep -v '^ *+' conftest.er1
>conftest.err
17411 cat conftest.err
>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } &&
17414 { ac_try
='test -z "$ac_c_werror_flag"
17415 || test ! -s conftest.err'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; } &&
17421 { ac_try
='test -s conftest$ac_exeext'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 ac_cv_func_res_send
=yes
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.
$ac_ext >&5
17432 ac_cv_func_res_send
=no
17434 rm -f conftest.err conftest.
$ac_objext \
17435 conftest
$ac_exeext conftest.
$ac_ext
17437 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17438 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17439 if test $ac_cv_func_res_send = yes; then
17442 echo "$as_me:$LINENO: checking for __res_send" >&5
17443 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17444 if test "${ac_cv_func___res_send+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 cat >conftest.
$ac_ext <<_ACEOF
17450 cat confdefs.h
>>conftest.
$ac_ext
17451 cat >>conftest.
$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17455 #define __res_send innocuous___res_send
17457 /* System header to define __stub macros and hopefully few prototypes,
17458 which can conflict with char __res_send (); below.
17459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17460 <limits.h> exists even on freestanding compilers. */
17463 # include <limits.h>
17465 # include <assert.h>
17470 /* Override any gcc2 internal prototype to avoid an error. */
17475 /* We use char because int might match the return type of a gcc2
17476 builtin and then its argument prototype would still apply. */
17477 char __res_send ();
17478 /* The GNU C library defines this for functions which it implements
17479 to always fail with ENOSYS. Some functions are actually named
17480 something starting with __ and the normal name is an alias. */
17481 #if defined (__stub___res_send) || defined (__stub_____res_send)
17484 char (*f) () = __res_send;
17493 return f != __res_send;
17498 rm -f conftest.
$ac_objext conftest
$ac_exeext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17500 (eval $ac_link) 2>conftest.er1
17502 grep -v '^ *+' conftest.er1
>conftest.err
17504 cat conftest.err
>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try
='test -z "$ac_c_werror_flag"
17508 || test ! -s conftest.err'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try
='test -s conftest$ac_exeext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_cv_func___res_send
=yes
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.
$ac_ext >&5
17525 ac_cv_func___res_send
=no
17527 rm -f conftest.err conftest.
$ac_objext \
17528 conftest
$ac_exeext conftest.
$ac_ext
17530 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17531 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17532 if test $ac_cv_func___res_send = yes; then
17535 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17536 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17537 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 ac_check_lib_save_LIBS
=$LIBS
17541 LIBS
="-lresolv $LIBS"
17542 cat >conftest.
$ac_ext <<_ACEOF
17545 cat confdefs.h
>>conftest.
$ac_ext
17546 cat >>conftest.
$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17549 /* Override any gcc2 internal prototype to avoid an error. */
17553 /* We use char because int might match the return type of a gcc2
17554 builtin and then its argument prototype would still apply. */
17564 rm -f conftest.
$ac_objext conftest
$ac_exeext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>conftest.er1
17568 grep -v '^ *+' conftest.er1
>conftest.err
17570 cat conftest.err
>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try
='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try
='test -s conftest$ac_exeext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_cv_lib_resolv_res_send
=yes
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.
$ac_ext >&5
17591 ac_cv_lib_resolv_res_send
=no
17593 rm -f conftest.err conftest.
$ac_objext \
17594 conftest
$ac_exeext conftest.
$ac_ext
17595 LIBS
=$ac_check_lib_save_LIBS
17597 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17598 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17599 if test $ac_cv_lib_resolv_res_send = yes; then
17602 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17603 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17604 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 ac_check_lib_save_LIBS
=$LIBS
17608 LIBS
="-lresolv $LIBS"
17609 cat >conftest.
$ac_ext <<_ACEOF
17612 cat confdefs.h
>>conftest.
$ac_ext
17613 cat >>conftest.
$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 /* Override any gcc2 internal prototype to avoid an error. */
17620 /* We use char because int might match the return type of a gcc2
17621 builtin and then its argument prototype would still apply. */
17622 char __res_send ();
17631 rm -f conftest.
$ac_objext conftest
$ac_exeext
17632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17633 (eval $ac_link) 2>conftest.er1
17635 grep -v '^ *+' conftest.er1
>conftest.err
17637 cat conftest.err
>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try
='test -z "$ac_c_werror_flag"
17641 || test ! -s conftest.err'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
17653 ac_cv_lib_resolv___res_send
=yes
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.
$ac_ext >&5
17658 ac_cv_lib_resolv___res_send
=no
17660 rm -f conftest.err conftest.
$ac_objext \
17661 conftest
$ac_exeext conftest.
$ac_ext
17662 LIBS
=$ac_check_lib_save_LIBS
17664 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17665 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17666 if test $ac_cv_lib_resolv___res_send = yes; then
17676 if test "$resolv" = yes ; then
17679 cat >>confdefs.h
<<\_ACEOF
17680 #define HAVE_LIBRESOLV 1
17686 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17687 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17688 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 cat >conftest.
$ac_ext <<_ACEOF
17694 cat confdefs.h
>>conftest.
$ac_ext
17695 cat >>conftest.
$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17699 #define hes_getmailhost innocuous_hes_getmailhost
17701 /* System header to define __stub macros and hopefully few prototypes,
17702 which can conflict with char hes_getmailhost (); below.
17703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17704 <limits.h> exists even on freestanding compilers. */
17707 # include <limits.h>
17709 # include <assert.h>
17712 #undef hes_getmailhost
17714 /* Override any gcc2 internal prototype to avoid an error. */
17719 /* We use char because int might match the return type of a gcc2
17720 builtin and then its argument prototype would still apply. */
17721 char hes_getmailhost ();
17722 /* The GNU C library defines this for functions which it implements
17723 to always fail with ENOSYS. Some functions are actually named
17724 something starting with __ and the normal name is an alias. */
17725 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17728 char (*f) () = hes_getmailhost;
17737 return f != hes_getmailhost;
17742 rm -f conftest.
$ac_objext conftest
$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1
>conftest.err
17748 cat conftest.err
>&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try
='test -z "$ac_c_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try
='test -s conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_func_hes_getmailhost
=yes
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.
$ac_ext >&5
17769 ac_cv_func_hes_getmailhost
=no
17771 rm -f conftest.err conftest.
$ac_objext \
17772 conftest
$ac_exeext conftest.
$ac_ext
17774 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17775 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17776 if test $ac_cv_func_hes_getmailhost = yes; then
17779 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17780 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17781 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 ac_check_lib_save_LIBS
=$LIBS
17785 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17786 cat >conftest.
$ac_ext <<_ACEOF
17789 cat confdefs.h
>>conftest.
$ac_ext
17790 cat >>conftest.
$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17793 /* Override any gcc2 internal prototype to avoid an error. */
17797 /* We use char because int might match the return type of a gcc2
17798 builtin and then its argument prototype would still apply. */
17799 char hes_getmailhost ();
17803 hes_getmailhost ();
17808 rm -f conftest.
$ac_objext conftest
$ac_exeext
17809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17810 (eval $ac_link) 2>conftest.er1
17812 grep -v '^ *+' conftest.er1
>conftest.err
17814 cat conftest.err
>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try
='test -z "$ac_c_werror_flag"
17818 || test ! -s conftest.err'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try
='test -s conftest$ac_exeext'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; }; then
17830 ac_cv_lib_hesiod_hes_getmailhost
=yes
17832 echo "$as_me: failed program was:" >&5
17833 sed 's/^/| /' conftest.
$ac_ext >&5
17835 ac_cv_lib_hesiod_hes_getmailhost
=no
17837 rm -f conftest.err conftest.
$ac_objext \
17838 conftest
$ac_exeext conftest.
$ac_ext
17839 LIBS
=$ac_check_lib_save_LIBS
17841 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17842 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17843 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17845 cat >>confdefs.h
<<\_ACEOF
17846 #define HAVE_LIBHESIOD 1
17857 # These tell us which Kerberos-related libraries to use.
17858 if test "${with_kerberos+set}" = set; then
17860 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17861 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17862 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 ac_check_lib_save_LIBS
=$LIBS
17866 LIBS
="-lcom_err $LIBS"
17867 cat >conftest.
$ac_ext <<_ACEOF
17870 cat confdefs.h
>>conftest.
$ac_ext
17871 cat >>conftest.
$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17874 /* Override any gcc2 internal prototype to avoid an error. */
17878 /* We use char because int might match the return type of a gcc2
17879 builtin and then its argument prototype would still apply. */
17889 rm -f conftest.
$ac_objext conftest
$ac_exeext
17890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17891 (eval $ac_link) 2>conftest.er1
17893 grep -v '^ *+' conftest.er1
>conftest.err
17895 cat conftest.err
>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
17898 { ac_try
='test -z "$ac_c_werror_flag"
17899 || test ! -s conftest.err'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; } &&
17905 { ac_try
='test -s conftest$ac_exeext'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; }; then
17911 ac_cv_lib_com_err_com_err
=yes
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.
$ac_ext >&5
17916 ac_cv_lib_com_err_com_err
=no
17918 rm -f conftest.err conftest.
$ac_objext \
17919 conftest
$ac_exeext conftest.
$ac_ext
17920 LIBS
=$ac_check_lib_save_LIBS
17922 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17923 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17924 if test $ac_cv_lib_com_err_com_err = yes; then
17925 cat >>confdefs.h
<<_ACEOF
17926 #define HAVE_LIBCOM_ERR 1
17929 LIBS
="-lcom_err $LIBS"
17934 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17935 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17936 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 ac_check_lib_save_LIBS
=$LIBS
17940 LIBS
="-lk5crypto $LIBS"
17941 cat >conftest.
$ac_ext <<_ACEOF
17944 cat confdefs.h
>>conftest.
$ac_ext
17945 cat >>conftest.
$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17948 /* Override any gcc2 internal prototype to avoid an error. */
17952 /* We use char because int might match the return type of a gcc2
17953 builtin and then its argument prototype would still apply. */
17954 char mit_des_cbc_encrypt ();
17958 mit_des_cbc_encrypt ();
17963 rm -f conftest.
$ac_objext conftest
$ac_exeext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965 (eval $ac_link) 2>conftest.er1
17967 grep -v '^ *+' conftest.er1
>conftest.err
17969 cat conftest.err
>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try
='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try
='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.
$ac_ext >&5
17990 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17992 rm -f conftest.err conftest.
$ac_objext \
17993 conftest
$ac_exeext conftest.
$ac_ext
17994 LIBS
=$ac_check_lib_save_LIBS
17996 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17997 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17998 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17999 cat >>confdefs.h
<<_ACEOF
18000 #define HAVE_LIBK5CRYPTO 1
18003 LIBS
="-lk5crypto $LIBS"
18008 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18009 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18010 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 ac_check_lib_save_LIBS
=$LIBS
18014 LIBS
="-lcrypto $LIBS"
18015 cat >conftest.
$ac_ext <<_ACEOF
18018 cat confdefs.h
>>conftest.
$ac_ext
18019 cat >>conftest.
$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18022 /* Override any gcc2 internal prototype to avoid an error. */
18026 /* We use char because int might match the return type of a gcc2
18027 builtin and then its argument prototype would still apply. */
18028 char mit_des_cbc_encrypt ();
18032 mit_des_cbc_encrypt ();
18037 rm -f conftest.
$ac_objext conftest
$ac_exeext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>conftest.er1
18041 grep -v '^ *+' conftest.er1
>conftest.err
18043 cat conftest.err
>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try
='test -z "$ac_c_werror_flag"
18047 || test ! -s conftest.err'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; } &&
18053 { ac_try
='test -s conftest$ac_exeext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.
$ac_ext >&5
18064 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18066 rm -f conftest.err conftest.
$ac_objext \
18067 conftest
$ac_exeext conftest.
$ac_ext
18068 LIBS
=$ac_check_lib_save_LIBS
18070 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18071 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18072 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18073 cat >>confdefs.h
<<_ACEOF
18074 #define HAVE_LIBCRYPTO 1
18077 LIBS
="-lcrypto $LIBS"
18082 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18083 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18084 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18087 ac_check_lib_save_LIBS
=$LIBS
18088 LIBS
="-lkrb5 $LIBS"
18089 cat >conftest.
$ac_ext <<_ACEOF
18092 cat confdefs.h
>>conftest.
$ac_ext
18093 cat >>conftest.
$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18096 /* Override any gcc2 internal prototype to avoid an error. */
18100 /* We use char because int might match the return type of a gcc2
18101 builtin and then its argument prototype would still apply. */
18102 char krb5_init_context ();
18106 krb5_init_context ();
18111 rm -f conftest.
$ac_objext conftest
$ac_exeext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>conftest.er1
18115 grep -v '^ *+' conftest.er1
>conftest.err
18117 cat conftest.err
>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try
='test -z "$ac_c_werror_flag"
18121 || test ! -s conftest.err'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try
='test -s conftest$ac_exeext'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_lib_krb5_krb5_init_context
=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.
$ac_ext >&5
18138 ac_cv_lib_krb5_krb5_init_context
=no
18140 rm -f conftest.err conftest.
$ac_objext \
18141 conftest
$ac_exeext conftest.
$ac_ext
18142 LIBS
=$ac_check_lib_save_LIBS
18144 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18145 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18146 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18147 cat >>confdefs.h
<<_ACEOF
18148 #define HAVE_LIBKRB5 1
18151 LIBS
="-lkrb5 $LIBS"
18155 if test "${with_kerberos5+set}" != set; then
18157 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18158 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18159 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18162 ac_check_lib_save_LIBS
=$LIBS
18163 LIBS
="-ldes425 $LIBS"
18164 cat >conftest.
$ac_ext <<_ACEOF
18167 cat confdefs.h
>>conftest.
$ac_ext
18168 cat >>conftest.
$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18171 /* Override any gcc2 internal prototype to avoid an error. */
18175 /* We use char because int might match the return type of a gcc2
18176 builtin and then its argument prototype would still apply. */
18177 char des_cbc_encrypt ();
18181 des_cbc_encrypt ();
18186 rm -f conftest.
$ac_objext conftest
$ac_exeext
18187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18188 (eval $ac_link) 2>conftest.er1
18190 grep -v '^ *+' conftest.er1
>conftest.err
18192 cat conftest.err
>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } &&
18195 { ac_try
='test -z "$ac_c_werror_flag"
18196 || test ! -s conftest.err'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; } &&
18202 { ac_try
='test -s conftest$ac_exeext'
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 ac_cv_lib_des425_des_cbc_encrypt
=yes
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.
$ac_ext >&5
18213 ac_cv_lib_des425_des_cbc_encrypt
=no
18215 rm -f conftest.err conftest.
$ac_objext \
18216 conftest
$ac_exeext conftest.
$ac_ext
18217 LIBS
=$ac_check_lib_save_LIBS
18219 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18220 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18221 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18222 cat >>confdefs.h
<<_ACEOF
18223 #define HAVE_LIBDES425 1
18226 LIBS
="-ldes425 $LIBS"
18230 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18231 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18232 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 ac_check_lib_save_LIBS
=$LIBS
18237 cat >conftest.
$ac_ext <<_ACEOF
18240 cat confdefs.h
>>conftest.
$ac_ext
18241 cat >>conftest.
$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18244 /* Override any gcc2 internal prototype to avoid an error. */
18248 /* We use char because int might match the return type of a gcc2
18249 builtin and then its argument prototype would still apply. */
18250 char des_cbc_encrypt ();
18254 des_cbc_encrypt ();
18259 rm -f conftest.
$ac_objext conftest
$ac_exeext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18261 (eval $ac_link) 2>conftest.er1
18263 grep -v '^ *+' conftest.er1
>conftest.err
18265 cat conftest.err
>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try
='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try
='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_lib_des_des_cbc_encrypt
=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.
$ac_ext >&5
18286 ac_cv_lib_des_des_cbc_encrypt
=no
18288 rm -f conftest.err conftest.
$ac_objext \
18289 conftest
$ac_exeext conftest.
$ac_ext
18290 LIBS
=$ac_check_lib_save_LIBS
18292 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18293 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18294 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18295 cat >>confdefs.h
<<_ACEOF
18296 #define HAVE_LIBDES 1
18306 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18307 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18308 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 ac_check_lib_save_LIBS
=$LIBS
18312 LIBS
="-lkrb4 $LIBS"
18313 cat >conftest.
$ac_ext <<_ACEOF
18316 cat confdefs.h
>>conftest.
$ac_ext
18317 cat >>conftest.
$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18320 /* Override any gcc2 internal prototype to avoid an error. */
18324 /* We use char because int might match the return type of a gcc2
18325 builtin and then its argument prototype would still apply. */
18326 char krb_get_cred ();
18335 rm -f conftest.
$ac_objext conftest
$ac_exeext
18336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18337 (eval $ac_link) 2>conftest.er1
18339 grep -v '^ *+' conftest.er1
>conftest.err
18341 cat conftest.err
>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try
='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try
='test -s conftest$ac_exeext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_krb4_krb_get_cred
=yes
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.
$ac_ext >&5
18362 ac_cv_lib_krb4_krb_get_cred
=no
18364 rm -f conftest.err conftest.
$ac_objext \
18365 conftest
$ac_exeext conftest.
$ac_ext
18366 LIBS
=$ac_check_lib_save_LIBS
18368 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18369 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18370 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18371 cat >>confdefs.h
<<_ACEOF
18372 #define HAVE_LIBKRB4 1
18375 LIBS
="-lkrb4 $LIBS"
18379 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18380 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18381 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 ac_check_lib_save_LIBS
=$LIBS
18386 cat >conftest.
$ac_ext <<_ACEOF
18389 cat confdefs.h
>>conftest.
$ac_ext
18390 cat >>conftest.
$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18393 /* Override any gcc2 internal prototype to avoid an error. */
18397 /* We use char because int might match the return type of a gcc2
18398 builtin and then its argument prototype would still apply. */
18399 char krb_get_cred ();
18408 rm -f conftest.
$ac_objext conftest
$ac_exeext
18409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18410 (eval $ac_link) 2>conftest.er1
18412 grep -v '^ *+' conftest.er1
>conftest.err
18414 cat conftest.err
>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try
='test -z "$ac_c_werror_flag"
18418 || test ! -s conftest.err'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; } &&
18424 { ac_try
='test -s conftest$ac_exeext'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 ac_cv_lib_krb_krb_get_cred
=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.
$ac_ext >&5
18435 ac_cv_lib_krb_krb_get_cred
=no
18437 rm -f conftest.err conftest.
$ac_objext \
18438 conftest
$ac_exeext conftest.
$ac_ext
18439 LIBS
=$ac_check_lib_save_LIBS
18441 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18442 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18443 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18444 cat >>confdefs.h
<<_ACEOF
18445 #define HAVE_LIBKRB 1
18456 if test "${with_kerberos5+set}" = set; then
18458 for ac_header
in krb5.h
18460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18462 echo "$as_me:$LINENO: checking for $ac_header" >&5
18463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18470 # Is the header compilable?
18471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18473 cat >conftest.
$ac_ext <<_ACEOF
18476 cat confdefs.h
>>conftest.
$ac_ext
18477 cat >>conftest.
$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 $ac_includes_default
18480 #include <$ac_header>
18482 rm -f conftest.
$ac_objext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18484 (eval $ac_compile) 2>conftest.er1
18486 grep -v '^ *+' conftest.er1
>conftest.err
18488 cat conftest.err
>&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try
='test -z "$ac_c_werror_flag"
18492 || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try
='test -s conftest.$ac_objext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_header_compiler
=yes
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.
$ac_ext >&5
18509 ac_header_compiler
=no
18511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18513 echo "${ECHO_T}$ac_header_compiler" >&6
18515 # Is the header present?
18516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18518 cat >conftest.
$ac_ext <<_ACEOF
18521 cat confdefs.h
>>conftest.
$ac_ext
18522 cat >>conftest.
$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 #include <$ac_header>
18526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18529 grep -v '^ *+' conftest.er1
>conftest.err
18531 cat conftest.err
>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } >/dev
/null
; then
18534 if test -s conftest.err
; then
18535 ac_cpp_err
=$ac_c_preproc_warn_flag
18536 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18543 if test -z "$ac_cpp_err"; then
18544 ac_header_preproc
=yes
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.
$ac_ext >&5
18549 ac_header_preproc
=no
18551 rm -f conftest.err conftest.
$ac_ext
18552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18553 echo "${ECHO_T}$ac_header_preproc" >&6
18555 # So? What about this header?
18556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18562 ac_header_preproc
=yes
18565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18579 ## ------------------------------------------ ##
18580 ## Report this to the AC_PACKAGE_NAME lists. ##
18581 ## ------------------------------------------ ##
18584 sed "s/^/$as_me: WARNING: /" >&2
18587 echo "$as_me:$LINENO: checking for $ac_header" >&5
18588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 eval "$as_ac_Header=\$ac_header_preproc"
18594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18599 cat >>confdefs.h
<<_ACEOF
18600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18609 for ac_header
in des.h
18611 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18613 echo "$as_me:$LINENO: checking for $ac_header" >&5
18614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18621 # Is the header compilable?
18622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18624 cat >conftest.
$ac_ext <<_ACEOF
18627 cat confdefs.h
>>conftest.
$ac_ext
18628 cat >>conftest.
$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 $ac_includes_default
18631 #include <$ac_header>
18633 rm -f conftest.
$ac_objext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635 (eval $ac_compile) 2>conftest.er1
18637 grep -v '^ *+' conftest.er1
>conftest.err
18639 cat conftest.err
>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try
='test -z "$ac_c_werror_flag"
18643 || test ! -s conftest.err'
18644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try
='test -s conftest.$ac_objext'
18650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651 (eval $ac_try) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; }; then
18655 ac_header_compiler
=yes
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.
$ac_ext >&5
18660 ac_header_compiler
=no
18662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18664 echo "${ECHO_T}$ac_header_compiler" >&6
18666 # Is the header present?
18667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18669 cat >conftest.
$ac_ext <<_ACEOF
18672 cat confdefs.h
>>conftest.
$ac_ext
18673 cat >>conftest.
$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 #include <$ac_header>
18677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18678 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18680 grep -v '^ *+' conftest.er1
>conftest.err
18682 cat conftest.err
>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } >/dev
/null
; then
18685 if test -s conftest.err
; then
18686 ac_cpp_err
=$ac_c_preproc_warn_flag
18687 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18694 if test -z "$ac_cpp_err"; then
18695 ac_header_preproc
=yes
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.
$ac_ext >&5
18700 ac_header_preproc
=no
18702 rm -f conftest.err conftest.
$ac_ext
18703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18704 echo "${ECHO_T}$ac_header_preproc" >&6
18706 # So? What about this header?
18707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18713 ac_header_preproc
=yes
18716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18730 ## ------------------------------------------ ##
18731 ## Report this to the AC_PACKAGE_NAME lists. ##
18732 ## ------------------------------------------ ##
18735 sed "s/^/$as_me: WARNING: /" >&2
18738 echo "$as_me:$LINENO: checking for $ac_header" >&5
18739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 eval "$as_ac_Header=\$ac_header_preproc"
18745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18750 cat >>confdefs.h
<<_ACEOF
18751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18756 for ac_header
in kerberosIV
/des.h
18758 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18760 echo "$as_me:$LINENO: checking for $ac_header" >&5
18761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18768 # Is the header compilable?
18769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18771 cat >conftest.
$ac_ext <<_ACEOF
18774 cat confdefs.h
>>conftest.
$ac_ext
18775 cat >>conftest.
$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 $ac_includes_default
18778 #include <$ac_header>
18780 rm -f conftest.
$ac_objext
18781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18782 (eval $ac_compile) 2>conftest.er1
18784 grep -v '^ *+' conftest.er1
>conftest.err
18786 cat conftest.err
>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try
='test -z "$ac_c_werror_flag"
18790 || test ! -s conftest.err'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try
='test -s conftest.$ac_objext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_header_compiler
=yes
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.
$ac_ext >&5
18807 ac_header_compiler
=no
18809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18811 echo "${ECHO_T}$ac_header_compiler" >&6
18813 # Is the header present?
18814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18816 cat >conftest.
$ac_ext <<_ACEOF
18819 cat confdefs.h
>>conftest.
$ac_ext
18820 cat >>conftest.
$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #include <$ac_header>
18824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18825 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18827 grep -v '^ *+' conftest.er1
>conftest.err
18829 cat conftest.err
>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } >/dev
/null
; then
18832 if test -s conftest.err
; then
18833 ac_cpp_err
=$ac_c_preproc_warn_flag
18834 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18841 if test -z "$ac_cpp_err"; then
18842 ac_header_preproc
=yes
18844 echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.
$ac_ext >&5
18847 ac_header_preproc
=no
18849 rm -f conftest.err conftest.
$ac_ext
18850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18851 echo "${ECHO_T}$ac_header_preproc" >&6
18853 # So? What about this header?
18854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18860 ac_header_preproc
=yes
18863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18877 ## ------------------------------------------ ##
18878 ## Report this to the AC_PACKAGE_NAME lists. ##
18879 ## ------------------------------------------ ##
18882 sed "s/^/$as_me: WARNING: /" >&2
18885 echo "$as_me:$LINENO: checking for $ac_header" >&5
18886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 eval "$as_ac_Header=\$ac_header_preproc"
18892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18897 cat >>confdefs.h
<<_ACEOF
18898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18903 for ac_header
in kerberos
/des.h
18905 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18907 echo "$as_me:$LINENO: checking for $ac_header" >&5
18908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18915 # Is the header compilable?
18916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18918 cat >conftest.
$ac_ext <<_ACEOF
18921 cat confdefs.h
>>conftest.
$ac_ext
18922 cat >>conftest.
$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18924 $ac_includes_default
18925 #include <$ac_header>
18927 rm -f conftest.
$ac_objext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18929 (eval $ac_compile) 2>conftest.er1
18931 grep -v '^ *+' conftest.er1
>conftest.err
18933 cat conftest.err
>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try
='test -z "$ac_c_werror_flag"
18937 || test ! -s conftest.err'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try
='test -s conftest.$ac_objext'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_header_compiler
=yes
18951 echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.
$ac_ext >&5
18954 ac_header_compiler
=no
18956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18958 echo "${ECHO_T}$ac_header_compiler" >&6
18960 # Is the header present?
18961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18963 cat >conftest.
$ac_ext <<_ACEOF
18966 cat confdefs.h
>>conftest.
$ac_ext
18967 cat >>conftest.
$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 #include <$ac_header>
18971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18972 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18974 grep -v '^ *+' conftest.er1
>conftest.err
18976 cat conftest.err
>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } >/dev
/null
; then
18979 if test -s conftest.err
; then
18980 ac_cpp_err
=$ac_c_preproc_warn_flag
18981 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18988 if test -z "$ac_cpp_err"; then
18989 ac_header_preproc
=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.
$ac_ext >&5
18994 ac_header_preproc
=no
18996 rm -f conftest.err conftest.
$ac_ext
18997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18998 echo "${ECHO_T}$ac_header_preproc" >&6
19000 # So? What about this header?
19001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19007 ac_header_preproc
=yes
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19024 ## ------------------------------------------ ##
19025 ## Report this to the AC_PACKAGE_NAME lists. ##
19026 ## ------------------------------------------ ##
19029 sed "s/^/$as_me: WARNING: /" >&2
19032 echo "$as_me:$LINENO: checking for $ac_header" >&5
19033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 eval "$as_ac_Header=\$ac_header_preproc"
19039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19044 cat >>confdefs.h
<<_ACEOF
19045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19061 for ac_header
in krb.h
19063 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19065 echo "$as_me:$LINENO: checking for $ac_header" >&5
19066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19073 # Is the header compilable?
19074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19076 cat >conftest.
$ac_ext <<_ACEOF
19079 cat confdefs.h
>>conftest.
$ac_ext
19080 cat >>conftest.
$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 $ac_includes_default
19083 #include <$ac_header>
19085 rm -f conftest.
$ac_objext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087 (eval $ac_compile) 2>conftest.er1
19089 grep -v '^ *+' conftest.er1
>conftest.err
19091 cat conftest.err
>&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try
='test -z "$ac_c_werror_flag"
19095 || test ! -s conftest.err'
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); }; } &&
19101 { ac_try
='test -s conftest.$ac_objext'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_header_compiler
=yes
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.
$ac_ext >&5
19112 ac_header_compiler
=no
19114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19116 echo "${ECHO_T}$ac_header_compiler" >&6
19118 # Is the header present?
19119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19121 cat >conftest.
$ac_ext <<_ACEOF
19124 cat confdefs.h
>>conftest.
$ac_ext
19125 cat >>conftest.
$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19127 #include <$ac_header>
19129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19132 grep -v '^ *+' conftest.er1
>conftest.err
19134 cat conftest.err
>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } >/dev
/null
; then
19137 if test -s conftest.err
; then
19138 ac_cpp_err
=$ac_c_preproc_warn_flag
19139 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19146 if test -z "$ac_cpp_err"; then
19147 ac_header_preproc
=yes
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.
$ac_ext >&5
19152 ac_header_preproc
=no
19154 rm -f conftest.err conftest.
$ac_ext
19155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19156 echo "${ECHO_T}$ac_header_preproc" >&6
19158 # So? What about this header?
19159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19165 ac_header_preproc
=yes
19168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19182 ## ------------------------------------------ ##
19183 ## Report this to the AC_PACKAGE_NAME lists. ##
19184 ## ------------------------------------------ ##
19187 sed "s/^/$as_me: WARNING: /" >&2
19190 echo "$as_me:$LINENO: checking for $ac_header" >&5
19191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 eval "$as_ac_Header=\$ac_header_preproc"
19197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19202 cat >>confdefs.h
<<_ACEOF
19203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19208 for ac_header
in kerberosIV
/krb.h
19210 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19212 echo "$as_me:$LINENO: checking for $ac_header" >&5
19213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19220 # Is the header compilable?
19221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19223 cat >conftest.
$ac_ext <<_ACEOF
19226 cat confdefs.h
>>conftest.
$ac_ext
19227 cat >>conftest.
$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 $ac_includes_default
19230 #include <$ac_header>
19232 rm -f conftest.
$ac_objext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19234 (eval $ac_compile) 2>conftest.er1
19236 grep -v '^ *+' conftest.er1
>conftest.err
19238 cat conftest.err
>&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try
='test -z "$ac_c_werror_flag"
19242 || test ! -s conftest.err'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try
='test -s conftest.$ac_objext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_header_compiler
=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.
$ac_ext >&5
19259 ac_header_compiler
=no
19261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19263 echo "${ECHO_T}$ac_header_compiler" >&6
19265 # Is the header present?
19266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19268 cat >conftest.
$ac_ext <<_ACEOF
19271 cat confdefs.h
>>conftest.
$ac_ext
19272 cat >>conftest.
$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 #include <$ac_header>
19276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19279 grep -v '^ *+' conftest.er1
>conftest.err
19281 cat conftest.err
>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } >/dev
/null
; then
19284 if test -s conftest.err
; then
19285 ac_cpp_err
=$ac_c_preproc_warn_flag
19286 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19293 if test -z "$ac_cpp_err"; then
19294 ac_header_preproc
=yes
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.
$ac_ext >&5
19299 ac_header_preproc
=no
19301 rm -f conftest.err conftest.
$ac_ext
19302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19303 echo "${ECHO_T}$ac_header_preproc" >&6
19305 # So? What about this header?
19306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19312 ac_header_preproc
=yes
19315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19329 ## ------------------------------------------ ##
19330 ## Report this to the AC_PACKAGE_NAME lists. ##
19331 ## ------------------------------------------ ##
19334 sed "s/^/$as_me: WARNING: /" >&2
19337 echo "$as_me:$LINENO: checking for $ac_header" >&5
19338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 eval "$as_ac_Header=\$ac_header_preproc"
19344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19349 cat >>confdefs.h
<<_ACEOF
19350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19355 for ac_header
in kerberos
/krb.h
19357 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19359 echo "$as_me:$LINENO: checking for $ac_header" >&5
19360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19367 # Is the header compilable?
19368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19370 cat >conftest.
$ac_ext <<_ACEOF
19373 cat confdefs.h
>>conftest.
$ac_ext
19374 cat >>conftest.
$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 $ac_includes_default
19377 #include <$ac_header>
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_header_compiler
=yes
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.
$ac_ext >&5
19406 ac_header_compiler
=no
19408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19410 echo "${ECHO_T}$ac_header_compiler" >&6
19412 # Is the header present?
19413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19415 cat >conftest.
$ac_ext <<_ACEOF
19418 cat confdefs.h
>>conftest.
$ac_ext
19419 cat >>conftest.
$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 #include <$ac_header>
19423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19424 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19426 grep -v '^ *+' conftest.er1
>conftest.err
19428 cat conftest.err
>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } >/dev
/null
; then
19431 if test -s conftest.err
; then
19432 ac_cpp_err
=$ac_c_preproc_warn_flag
19433 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19440 if test -z "$ac_cpp_err"; then
19441 ac_header_preproc
=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.
$ac_ext >&5
19446 ac_header_preproc
=no
19448 rm -f conftest.err conftest.
$ac_ext
19449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19450 echo "${ECHO_T}$ac_header_preproc" >&6
19452 # So? What about this header?
19453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19459 ac_header_preproc
=yes
19462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19476 ## ------------------------------------------ ##
19477 ## Report this to the AC_PACKAGE_NAME lists. ##
19478 ## ------------------------------------------ ##
19481 sed "s/^/$as_me: WARNING: /" >&2
19484 echo "$as_me:$LINENO: checking for $ac_header" >&5
19485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 eval "$as_ac_Header=\$ac_header_preproc"
19491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19496 cat >>confdefs.h
<<_ACEOF
19497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19514 for ac_header
in com_err.h
19516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19518 echo "$as_me:$LINENO: checking for $ac_header" >&5
19519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19526 # Is the header compilable?
19527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19529 cat >conftest.
$ac_ext <<_ACEOF
19532 cat confdefs.h
>>conftest.
$ac_ext
19533 cat >>conftest.
$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 $ac_includes_default
19536 #include <$ac_header>
19538 rm -f conftest.
$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1
>conftest.err
19544 cat conftest.err
>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try
='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try
='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_header_compiler
=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.
$ac_ext >&5
19565 ac_header_compiler
=no
19567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19569 echo "${ECHO_T}$ac_header_compiler" >&6
19571 # Is the header present?
19572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19574 cat >conftest.
$ac_ext <<_ACEOF
19577 cat confdefs.h
>>conftest.
$ac_ext
19578 cat >>conftest.
$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 #include <$ac_header>
19582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19583 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19585 grep -v '^ *+' conftest.er1
>conftest.err
19587 cat conftest.err
>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } >/dev
/null
; then
19590 if test -s conftest.err
; then
19591 ac_cpp_err
=$ac_c_preproc_warn_flag
19592 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19599 if test -z "$ac_cpp_err"; then
19600 ac_header_preproc
=yes
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.
$ac_ext >&5
19605 ac_header_preproc
=no
19607 rm -f conftest.err conftest.
$ac_ext
19608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19609 echo "${ECHO_T}$ac_header_preproc" >&6
19611 # So? What about this header?
19612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19618 ac_header_preproc
=yes
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19635 ## ------------------------------------------ ##
19636 ## Report this to the AC_PACKAGE_NAME lists. ##
19637 ## ------------------------------------------ ##
19640 sed "s/^/$as_me: WARNING: /" >&2
19643 echo "$as_me:$LINENO: checking for $ac_header" >&5
19644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 eval "$as_ac_Header=\$ac_header_preproc"
19650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19655 cat >>confdefs.h
<<_ACEOF
19656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19665 # Solaris requires -lintl if you want strerror (which calls dgettext)
19666 # to return localized messages.
19668 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19669 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19670 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 ac_check_lib_save_LIBS
=$LIBS
19674 LIBS
="-lintl $LIBS"
19675 cat >conftest.
$ac_ext <<_ACEOF
19678 cat confdefs.h
>>conftest.
$ac_ext
19679 cat >>conftest.
$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19682 /* Override any gcc2 internal prototype to avoid an error. */
19686 /* We use char because int might match the return type of a gcc2
19687 builtin and then its argument prototype would still apply. */
19697 rm -f conftest.
$ac_objext conftest
$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699 (eval $ac_link) 2>conftest.er1
19701 grep -v '^ *+' conftest.er1
>conftest.err
19703 cat conftest.err
>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try
='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try
='test -s conftest$ac_exeext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_cv_lib_intl_dgettext
=yes
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.
$ac_ext >&5
19724 ac_cv_lib_intl_dgettext
=no
19726 rm -f conftest.err conftest.
$ac_objext \
19727 conftest
$ac_exeext conftest.
$ac_ext
19728 LIBS
=$ac_check_lib_save_LIBS
19730 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19731 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19732 if test $ac_cv_lib_intl_dgettext = yes; then
19733 cat >>confdefs.h
<<_ACEOF
19734 #define HAVE_LIBINTL 1
19737 LIBS
="-lintl $LIBS"
19742 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19743 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19744 if test "${emacs_cv_localtime_cache+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 if test x
$ac_cv_func_tzset = xyes
; then
19748 if test "$cross_compiling" = yes; then
19749 # If we have tzset, assume the worst when cross-compiling.
19750 emacs_cv_localtime_cache
=yes
19752 cat >conftest.
$ac_ext <<_ACEOF
19755 cat confdefs.h
>>conftest.
$ac_ext
19756 cat >>conftest.
$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19759 extern char **environ;
19763 for (to = from = environ; (*to = *from); from++)
19764 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19767 char TZ_GMT0[] = "TZ=GMT0";
19768 char TZ_PST8[] = "TZ=PST8";
19771 time_t now = time ((time_t *) 0);
19772 int hour_GMT0, hour_unset;
19773 if (putenv (TZ_GMT0) != 0)
19775 hour_GMT0 = localtime (&now)->tm_hour;
19777 hour_unset = localtime (&now)->tm_hour;
19778 if (putenv (TZ_PST8) != 0)
19780 if (localtime (&now)->tm_hour == hour_GMT0)
19783 if (localtime (&now)->tm_hour != hour_unset)
19788 rm -f conftest
$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 emacs_cv_localtime_cache
=no
19801 echo "$as_me: program exited with status $ac_status" >&5
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.
$ac_ext >&5
19805 ( exit $ac_status )
19806 emacs_cv_localtime_cache
=yes
19808 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19811 # If we lack tzset, report that localtime does not cache TZ,
19812 # since we can't invalidate the cache if we don't have tzset.
19813 emacs_cv_localtime_cache
=no
19816 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19817 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19818 if test $emacs_cv_localtime_cache = yes; then
19820 cat >>confdefs.h
<<\_ACEOF
19821 #define LOCALTIME_CACHE 1
19826 if test "x$HAVE_TIMEVAL" = xyes
; then
19828 for ac_func
in gettimeofday
19830 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831 echo "$as_me:$LINENO: checking for $ac_func" >&5
19832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19833 if eval "test \"\${$as_ac_var+set}\" = set"; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 cat >conftest.
$ac_ext <<_ACEOF
19839 cat confdefs.h
>>conftest.
$ac_ext
19840 cat >>conftest.
$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19844 #define $ac_func innocuous_$ac_func
19846 /* System header to define __stub macros and hopefully few prototypes,
19847 which can conflict with char $ac_func (); below.
19848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19849 <limits.h> exists even on freestanding compilers. */
19852 # include <limits.h>
19854 # include <assert.h>
19859 /* Override any gcc2 internal prototype to avoid an error. */
19864 /* We use char because int might match the return type of a gcc2
19865 builtin and then its argument prototype would still apply. */
19867 /* The GNU C library defines this for functions which it implements
19868 to always fail with ENOSYS. Some functions are actually named
19869 something starting with __ and the normal name is an alias. */
19870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19873 char (*f) () = $ac_func;
19882 return f != $ac_func;
19887 rm -f conftest.
$ac_objext conftest
$ac_exeext
19888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19889 (eval $ac_link) 2>conftest.er1
19891 grep -v '^ *+' conftest.er1
>conftest.err
19893 cat conftest.err
>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try
='test -z "$ac_c_werror_flag"
19897 || test ! -s conftest.err'
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try
='test -s conftest$ac_exeext'
19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905 (eval $ac_try) 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 eval "$as_ac_var=yes"
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.
$ac_ext >&5
19914 eval "$as_ac_var=no"
19916 rm -f conftest.err conftest.
$ac_objext \
19917 conftest
$ac_exeext conftest.
$ac_ext
19919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19921 if test `eval echo '${'$as_ac_var'}'` = yes; then
19922 cat >>confdefs.h
<<_ACEOF
19923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19929 if test $ac_cv_func_gettimeofday = yes; then
19930 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19931 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19932 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 cat >conftest.
$ac_ext <<_ACEOF
19938 cat confdefs.h
>>conftest.
$ac_ext
19939 cat >>conftest.
$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19942 #ifdef TIME_WITH_SYS_TIME
19943 #include <sys/time.h>
19946 #ifdef HAVE_SYS_TIME_H
19947 #include <sys/time.h>
19955 struct timeval time;
19956 gettimeofday (&time, 0);
19961 rm -f conftest.
$ac_objext
19962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19963 (eval $ac_compile) 2>conftest.er1
19965 grep -v '^ *+' conftest.er1
>conftest.err
19967 cat conftest.err
>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } &&
19970 { ac_try
='test -z "$ac_c_werror_flag"
19971 || test ! -s conftest.err'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; } &&
19977 { ac_try
='test -s conftest.$ac_objext'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 emacs_cv_gettimeofday_two_arguments
=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.
$ac_ext >&5
19988 emacs_cv_gettimeofday_two_arguments
=no
19990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19992 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19993 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19994 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19996 cat >>confdefs.h
<<\_ACEOF
19997 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20004 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20005 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20006 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20007 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 cat >conftest.
$ac_ext <<_ACEOF
20013 cat confdefs.h
>>conftest.
$ac_ext
20014 cat >>conftest.
$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <sys/types.h>
20017 #include <$ac_cv_struct_tm>
20023 static struct tm ac_aggr;
20024 if (ac_aggr.tm_zone)
20030 rm -f conftest.
$ac_objext
20031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20034 grep -v '^ *+' conftest.er1
>conftest.err
20036 cat conftest.err
>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try
='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try
='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 ac_cv_member_struct_tm_tm_zone
=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.
$ac_ext >&5
20057 cat >conftest.
$ac_ext <<_ACEOF
20060 cat confdefs.h
>>conftest.
$ac_ext
20061 cat >>conftest.
$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 #include <sys/types.h>
20064 #include <$ac_cv_struct_tm>
20070 static struct tm ac_aggr;
20071 if (sizeof ac_aggr.tm_zone)
20077 rm -f conftest.
$ac_objext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20079 (eval $ac_compile) 2>conftest.er1
20081 grep -v '^ *+' conftest.er1
>conftest.err
20083 cat conftest.err
>&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try
='test -z "$ac_c_werror_flag"
20087 || test ! -s conftest.err'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try
='test -s conftest.$ac_objext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_member_struct_tm_tm_zone
=yes
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.
$ac_ext >&5
20104 ac_cv_member_struct_tm_tm_zone
=no
20106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20108 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20110 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20111 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20112 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20114 cat >>confdefs.h
<<_ACEOF
20115 #define HAVE_STRUCT_TM_TM_ZONE 1
20121 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20123 cat >>confdefs.h
<<\_ACEOF
20124 #define HAVE_TM_ZONE 1
20128 echo "$as_me:$LINENO: checking for tzname" >&5
20129 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20130 if test "${ac_cv_var_tzname+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 cat >conftest.
$ac_ext <<_ACEOF
20136 cat confdefs.h
>>conftest.
$ac_ext
20137 cat >>conftest.
$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20140 #ifndef tzname /* For SGI. */
20141 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20152 rm -f conftest.
$ac_objext conftest
$ac_exeext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154 (eval $ac_link) 2>conftest.er1
20156 grep -v '^ *+' conftest.er1
>conftest.err
20158 cat conftest.err
>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } &&
20161 { ac_try
='test -z "$ac_c_werror_flag"
20162 || test ! -s conftest.err'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try
='test -s conftest$ac_exeext'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_cv_var_tzname
=yes
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.
$ac_ext >&5
20179 ac_cv_var_tzname
=no
20181 rm -f conftest.err conftest.
$ac_objext \
20182 conftest
$ac_exeext conftest.
$ac_ext
20184 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20185 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20186 if test $ac_cv_var_tzname = yes; then
20188 cat >>confdefs.h
<<\_ACEOF
20189 #define HAVE_TZNAME 1
20196 if test "$ac_cv_func_gettimeofday" = yes; then
20197 echo "$as_me:$LINENO: checking for struct timezone" >&5
20198 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20199 if test "${emacs_cv_struct_timezone+set}" = set; then
20200 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 cat >conftest.
$ac_ext <<_ACEOF
20205 cat confdefs.h
>>conftest.
$ac_ext
20206 cat >>conftest.
$ac_ext <<_ACEOF
20207 /* end confdefs.h. */
20208 #include <sys/time.h>
20212 struct timezone tz;
20217 rm -f conftest.
$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219 (eval $ac_compile) 2>conftest.er1
20221 grep -v '^ *+' conftest.er1
>conftest.err
20223 cat conftest.err
>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try
='test -z "$ac_c_werror_flag"
20227 || test ! -s conftest.err'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try
='test -s conftest.$ac_objext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 if test "$cross_compiling" = yes; then
20240 emacs_cv_struct_timezone
=yes
20242 cat >conftest.
$ac_ext <<_ACEOF
20245 cat confdefs.h
>>conftest.
$ac_ext
20246 cat >>conftest.
$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20249 #ifdef TIME_WITH_SYS_TIME
20250 #include <sys/time.h>
20253 #ifdef HAVE_SYS_TIME_H
20254 #include <sys/time.h>
20260 struct timeval time;
20261 struct timezone dummy;
20262 exit (gettimeofday (&time, &dummy));
20265 rm -f conftest
$ac_exeext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20267 (eval $ac_link) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 emacs_cv_struct_timezone
=yes
20278 echo "$as_me: program exited with status $ac_status" >&5
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.
$ac_ext >&5
20282 ( exit $ac_status )
20283 emacs_cv_struct_timezone
=no
20285 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.
$ac_ext >&5
20291 emacs_cv_struct_timezone
=no
20293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20295 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20296 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20300 echo "$as_me:$LINENO: checking for socket" >&5
20301 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20302 if test "${ac_cv_func_socket+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 cat >conftest.
$ac_ext <<_ACEOF
20308 cat confdefs.h
>>conftest.
$ac_ext
20309 cat >>conftest.
$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20313 #define socket innocuous_socket
20315 /* System header to define __stub macros and hopefully few prototypes,
20316 which can conflict with char socket (); below.
20317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20318 <limits.h> exists even on freestanding compilers. */
20321 # include <limits.h>
20323 # include <assert.h>
20328 /* Override any gcc2 internal prototype to avoid an error. */
20333 /* We use char because int might match the return type of a gcc2
20334 builtin and then its argument prototype would still apply. */
20336 /* The GNU C library defines this for functions which it implements
20337 to always fail with ENOSYS. Some functions are actually named
20338 something starting with __ and the normal name is an alias. */
20339 #if defined (__stub_socket) || defined (__stub___socket)
20342 char (*f) () = socket;
20351 return f != socket;
20356 rm -f conftest.
$ac_objext conftest
$ac_exeext
20357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20358 (eval $ac_link) 2>conftest.er1
20360 grep -v '^ *+' conftest.er1
>conftest.err
20362 cat conftest.err
>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
20365 { ac_try
='test -z "$ac_c_werror_flag"
20366 || test ! -s conftest.err'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try
='test -s conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_func_socket
=yes
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.
$ac_ext >&5
20383 ac_cv_func_socket
=no
20385 rm -f conftest.err conftest.
$ac_objext \
20386 conftest
$ac_exeext conftest.
$ac_ext
20388 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20389 echo "${ECHO_T}$ac_cv_func_socket" >&6
20390 if test $ac_cv_func_socket = yes; then
20396 if test $ok_so_far = yes; then
20397 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20398 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20399 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20400 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20404 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20406 # Is the header compilable?
20407 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20408 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20409 cat >conftest.
$ac_ext <<_ACEOF
20412 cat confdefs.h
>>conftest.
$ac_ext
20413 cat >>conftest.
$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 $ac_includes_default
20416 #include <netinet/in.h>
20418 rm -f conftest.
$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420 (eval $ac_compile) 2>conftest.er1
20422 grep -v '^ *+' conftest.er1
>conftest.err
20424 cat conftest.err
>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try
='test -z "$ac_c_werror_flag"
20428 || test ! -s conftest.err'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; } &&
20434 { ac_try
='test -s conftest.$ac_objext'
20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436 (eval $ac_try) 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 ac_header_compiler
=yes
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.
$ac_ext >&5
20445 ac_header_compiler
=no
20447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20449 echo "${ECHO_T}$ac_header_compiler" >&6
20451 # Is the header present?
20452 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20453 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20454 cat >conftest.
$ac_ext <<_ACEOF
20457 cat confdefs.h
>>conftest.
$ac_ext
20458 cat >>conftest.
$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 #include <netinet/in.h>
20462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20465 grep -v '^ *+' conftest.er1
>conftest.err
20467 cat conftest.err
>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } >/dev
/null
; then
20470 if test -s conftest.err
; then
20471 ac_cpp_err
=$ac_c_preproc_warn_flag
20472 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20479 if test -z "$ac_cpp_err"; then
20480 ac_header_preproc
=yes
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.
$ac_ext >&5
20485 ac_header_preproc
=no
20487 rm -f conftest.err conftest.
$ac_ext
20488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20489 echo "${ECHO_T}$ac_header_preproc" >&6
20491 # So? What about this header?
20492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20494 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20495 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20497 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20498 ac_header_preproc
=yes
20501 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20502 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20504 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20506 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20508 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20510 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20511 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20512 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20515 ## ------------------------------------------ ##
20516 ## Report this to the AC_PACKAGE_NAME lists. ##
20517 ## ------------------------------------------ ##
20520 sed "s/^/$as_me: WARNING: /" >&2
20523 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20524 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20525 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 ac_cv_header_netinet_in_h
=$ac_header_preproc
20530 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20531 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20534 if test $ac_cv_header_netinet_in_h = yes; then
20542 if test $ok_so_far = yes; then
20543 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20544 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20545 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20546 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20550 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20552 # Is the header compilable?
20553 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20554 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20555 cat >conftest.
$ac_ext <<_ACEOF
20558 cat confdefs.h
>>conftest.
$ac_ext
20559 cat >>conftest.
$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 $ac_includes_default
20562 #include <arpa/inet.h>
20564 rm -f conftest.
$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566 (eval $ac_compile) 2>conftest.er1
20568 grep -v '^ *+' conftest.er1
>conftest.err
20570 cat conftest.err
>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try
='test -z "$ac_c_werror_flag"
20574 || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try
='test -s conftest.$ac_objext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_header_compiler
=yes
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.
$ac_ext >&5
20591 ac_header_compiler
=no
20593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20595 echo "${ECHO_T}$ac_header_compiler" >&6
20597 # Is the header present?
20598 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20599 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20600 cat >conftest.
$ac_ext <<_ACEOF
20603 cat confdefs.h
>>conftest.
$ac_ext
20604 cat >>conftest.
$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 #include <arpa/inet.h>
20608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20609 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20611 grep -v '^ *+' conftest.er1
>conftest.err
20613 cat conftest.err
>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } >/dev
/null
; then
20616 if test -s conftest.err
; then
20617 ac_cpp_err
=$ac_c_preproc_warn_flag
20618 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20625 if test -z "$ac_cpp_err"; then
20626 ac_header_preproc
=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.
$ac_ext >&5
20631 ac_header_preproc
=no
20633 rm -f conftest.err conftest.
$ac_ext
20634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20635 echo "${ECHO_T}$ac_header_preproc" >&6
20637 # So? What about this header?
20638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20640 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20641 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20643 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20644 ac_header_preproc
=yes
20647 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20648 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20650 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20652 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20654 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20656 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20658 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20661 ## ------------------------------------------ ##
20662 ## Report this to the AC_PACKAGE_NAME lists. ##
20663 ## ------------------------------------------ ##
20666 sed "s/^/$as_me: WARNING: /" >&2
20669 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20670 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20671 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20676 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20677 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20680 if test $ac_cv_header_arpa_inet_h = yes; then
20688 if test $ok_so_far = yes; then
20690 cat >>confdefs.h
<<\_ACEOF
20691 #define HAVE_INET_SOCKETS 1
20697 for ac_header
in sys
/ioctl.h
20699 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20701 echo "$as_me:$LINENO: checking for $ac_header" >&5
20702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20709 # Is the header compilable?
20710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20712 cat >conftest.
$ac_ext <<_ACEOF
20715 cat confdefs.h
>>conftest.
$ac_ext
20716 cat >>conftest.
$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20718 $ac_includes_default
20719 #include <$ac_header>
20721 rm -f conftest.
$ac_objext
20722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20723 (eval $ac_compile) 2>conftest.er1
20725 grep -v '^ *+' conftest.er1
>conftest.err
20727 cat conftest.err
>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try
='test -z "$ac_c_werror_flag"
20731 || test ! -s conftest.err'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try
='test -s conftest.$ac_objext'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; }; then
20743 ac_header_compiler
=yes
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.
$ac_ext >&5
20748 ac_header_compiler
=no
20750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20752 echo "${ECHO_T}$ac_header_compiler" >&6
20754 # Is the header present?
20755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20757 cat >conftest.
$ac_ext <<_ACEOF
20760 cat confdefs.h
>>conftest.
$ac_ext
20761 cat >>conftest.
$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 #include <$ac_header>
20765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20766 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20768 grep -v '^ *+' conftest.er1
>conftest.err
20770 cat conftest.err
>&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } >/dev
/null
; then
20773 if test -s conftest.err
; then
20774 ac_cpp_err
=$ac_c_preproc_warn_flag
20775 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20782 if test -z "$ac_cpp_err"; then
20783 ac_header_preproc
=yes
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.
$ac_ext >&5
20788 ac_header_preproc
=no
20790 rm -f conftest.err conftest.
$ac_ext
20791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20792 echo "${ECHO_T}$ac_header_preproc" >&6
20794 # So? What about this header?
20795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20801 ac_header_preproc
=yes
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20818 ## ------------------------------------------ ##
20819 ## Report this to the AC_PACKAGE_NAME lists. ##
20820 ## ------------------------------------------ ##
20823 sed "s/^/$as_me: WARNING: /" >&2
20826 echo "$as_me:$LINENO: checking for $ac_header" >&5
20827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20831 eval "$as_ac_Header=\$ac_header_preproc"
20833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20838 cat >>confdefs.h
<<_ACEOF
20839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20847 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20849 cat >>confdefs.h
<<\_ACEOF
20850 #define HAVE_AIX_SMT_EXP 1
20855 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20856 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20857 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20858 echo "$as_me:$LINENO: result: yes" >&5
20859 echo "${ECHO_T}yes" >&6
20861 cat >>confdefs.h
<<\_ACEOF
20862 #define HAVE_DEV_PTMX 1
20866 echo "$as_me:$LINENO: result: no" >&5
20867 echo "${ECHO_T}no" >&6
20870 echo "$as_me:$LINENO: checking for pid_t" >&5
20871 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20872 if test "${ac_cv_type_pid_t+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 cat >conftest.
$ac_ext <<_ACEOF
20878 cat confdefs.h
>>conftest.
$ac_ext
20879 cat >>conftest.
$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 $ac_includes_default
20887 if (sizeof (pid_t))
20893 rm -f conftest.
$ac_objext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20895 (eval $ac_compile) 2>conftest.er1
20897 grep -v '^ *+' conftest.er1
>conftest.err
20899 cat conftest.err
>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
20902 { ac_try
='test -z "$ac_c_werror_flag"
20903 || test ! -s conftest.err'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try
='test -s conftest.$ac_objext'
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_cv_type_pid_t
=yes
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.
$ac_ext >&5
20920 ac_cv_type_pid_t
=no
20922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20924 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20925 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20926 if test $ac_cv_type_pid_t = yes; then
20930 cat >>confdefs.h
<<_ACEOF
20938 for ac_header
in unistd.h vfork.h
20940 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20942 echo "$as_me:$LINENO: checking for $ac_header" >&5
20943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20950 # Is the header compilable?
20951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20953 cat >conftest.
$ac_ext <<_ACEOF
20956 cat confdefs.h
>>conftest.
$ac_ext
20957 cat >>conftest.
$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 $ac_includes_default
20960 #include <$ac_header>
20962 rm -f conftest.
$ac_objext
20963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20964 (eval $ac_compile) 2>conftest.er1
20966 grep -v '^ *+' conftest.er1
>conftest.err
20968 cat conftest.err
>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } &&
20971 { ac_try
='test -z "$ac_c_werror_flag"
20972 || test ! -s conftest.err'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } &&
20978 { ac_try
='test -s conftest.$ac_objext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_header_compiler
=yes
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.
$ac_ext >&5
20989 ac_header_compiler
=no
20991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20993 echo "${ECHO_T}$ac_header_compiler" >&6
20995 # Is the header present?
20996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20998 cat >conftest.
$ac_ext <<_ACEOF
21001 cat confdefs.h
>>conftest.
$ac_ext
21002 cat >>conftest.
$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21004 #include <$ac_header>
21006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21009 grep -v '^ *+' conftest.er1
>conftest.err
21011 cat conftest.err
>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } >/dev
/null
; then
21014 if test -s conftest.err
; then
21015 ac_cpp_err
=$ac_c_preproc_warn_flag
21016 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21023 if test -z "$ac_cpp_err"; then
21024 ac_header_preproc
=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.
$ac_ext >&5
21029 ac_header_preproc
=no
21031 rm -f conftest.err conftest.
$ac_ext
21032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21033 echo "${ECHO_T}$ac_header_preproc" >&6
21035 # So? What about this header?
21036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21042 ac_header_preproc
=yes
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21059 ## ------------------------------------------ ##
21060 ## Report this to the AC_PACKAGE_NAME lists. ##
21061 ## ------------------------------------------ ##
21064 sed "s/^/$as_me: WARNING: /" >&2
21067 echo "$as_me:$LINENO: checking for $ac_header" >&5
21068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21070 echo $ECHO_N "(cached) $ECHO_C" >&6
21072 eval "$as_ac_Header=\$ac_header_preproc"
21074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21079 cat >>confdefs.h
<<_ACEOF
21080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21089 for ac_func
in fork vfork
21091 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21092 echo "$as_me:$LINENO: checking for $ac_func" >&5
21093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21094 if eval "test \"\${$as_ac_var+set}\" = set"; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 cat >conftest.
$ac_ext <<_ACEOF
21100 cat confdefs.h
>>conftest.
$ac_ext
21101 cat >>conftest.
$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21105 #define $ac_func innocuous_$ac_func
21107 /* System header to define __stub macros and hopefully few prototypes,
21108 which can conflict with char $ac_func (); below.
21109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21110 <limits.h> exists even on freestanding compilers. */
21113 # include <limits.h>
21115 # include <assert.h>
21120 /* Override any gcc2 internal prototype to avoid an error. */
21125 /* We use char because int might match the return type of a gcc2
21126 builtin and then its argument prototype would still apply. */
21128 /* The GNU C library defines this for functions which it implements
21129 to always fail with ENOSYS. Some functions are actually named
21130 something starting with __ and the normal name is an alias. */
21131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21134 char (*f) () = $ac_func;
21143 return f != $ac_func;
21148 rm -f conftest.
$ac_objext conftest
$ac_exeext
21149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21150 (eval $ac_link) 2>conftest.er1
21152 grep -v '^ *+' conftest.er1
>conftest.err
21154 cat conftest.err
>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
21157 { ac_try
='test -z "$ac_c_werror_flag"
21158 || test ! -s conftest.err'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try
='test -s conftest$ac_exeext'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 eval "$as_ac_var=yes"
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.
$ac_ext >&5
21175 eval "$as_ac_var=no"
21177 rm -f conftest.err conftest.
$ac_objext \
21178 conftest
$ac_exeext conftest.
$ac_ext
21180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21182 if test `eval echo '${'$as_ac_var'}'` = yes; then
21183 cat >>confdefs.h
<<_ACEOF
21184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21190 if test "x$ac_cv_func_fork" = xyes
; then
21191 echo "$as_me:$LINENO: checking for working fork" >&5
21192 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21193 if test "${ac_cv_func_fork_works+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 if test "$cross_compiling" = yes; then
21197 ac_cv_func_fork_works
=cross
21199 cat >conftest.
$ac_ext <<_ACEOF
21200 /* By Ruediger Kuhlmann. */
21201 #include <sys/types.h>
21203 # include <unistd.h>
21205 /* Some systems only have a dummy stub for fork() */
21213 rm -f conftest
$ac_exeext
21214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21215 (eval $ac_link) 2>&5
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; }; then
21224 ac_cv_func_fork_works
=yes
21226 echo "$as_me: program exited with status $ac_status" >&5
21227 echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.
$ac_ext >&5
21230 ( exit $ac_status )
21231 ac_cv_func_fork_works
=no
21233 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21236 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21237 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21240 ac_cv_func_fork_works
=$ac_cv_func_fork
21242 if test "x$ac_cv_func_fork_works" = xcross
; then
21244 *-*-amigaos* |
*-*-msdosdjgpp*)
21245 # Override, as these systems have only a dummy fork() stub
21246 ac_cv_func_fork_works
=no
21249 ac_cv_func_fork_works
=yes
21252 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21253 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21255 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21256 if test "x$ac_cv_func_vfork" = xyes
; then
21257 echo "$as_me:$LINENO: checking for working vfork" >&5
21258 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21259 if test "${ac_cv_func_vfork_works+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 if test "$cross_compiling" = yes; then
21263 ac_cv_func_vfork_works
=cross
21265 cat >conftest.
$ac_ext <<_ACEOF
21268 cat confdefs.h
>>conftest.
$ac_ext
21269 cat >>conftest.
$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Thanks to Paul Eggert for this test. */
21273 #include <stdlib.h>
21274 #include <sys/types.h>
21275 #include <sys/stat.h>
21276 #include <sys/wait.h>
21278 # include <unistd.h>
21281 # include <vfork.h>
21283 /* On some sparc systems, changes by the child to local and incoming
21284 argument registers are propagated back to the parent. The compiler
21285 is told about this with #include <vfork.h>, but some compilers
21286 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21287 static variable whose address is put into a register that is
21288 clobbered by the vfork. */
21291 sparc_address_test (int arg)
21293 sparc_address_test (arg) int arg;
21296 static pid_t child;
21314 pid_t parent = getpid ();
21317 sparc_address_test (0);
21322 /* Here is another test for sparc vfork register problems. This
21323 test uses lots of local variables, at least as many local
21324 variables as main has allocated so far including compiler
21325 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21326 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21327 reuse the register of parent for one of the local variables,
21328 since it will think that parent can't possibly be used any more
21329 in this routine. Assigning to the local variable will thus
21330 munge parent in the parent process. */
21332 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21333 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21334 /* Convince the compiler that p..p7 are live; otherwise, it might
21335 use the same hardware register for all 8 local variables. */
21336 if (p != p1 || p != p2 || p != p3 || p != p4
21337 || p != p5 || p != p6 || p != p7)
21340 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21341 from child file descriptors. If the child closes a descriptor
21342 before it execs or exits, this munges the parent's descriptor
21343 as well. Test for this by closing stdout in the child. */
21344 _exit(close(fileno(stdout)) != 0);
21349 while (wait(&status) != child)
21352 /* Was there some problem with vforking? */
21355 /* Did the child fail? (This shouldn't happen.) */
21358 /* Did the vfork/compiler bug occur? */
21359 || parent != getpid()
21361 /* Did the file descriptor bug occur? */
21362 || fstat(fileno(stdout), &st) != 0
21367 rm -f conftest
$ac_exeext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21369 (eval $ac_link) 2>&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_cv_func_vfork_works
=yes
21380 echo "$as_me: program exited with status $ac_status" >&5
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.
$ac_ext >&5
21384 ( exit $ac_status )
21385 ac_cv_func_vfork_works
=no
21387 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21390 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21391 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21394 if test "x$ac_cv_func_fork_works" = xcross
; then
21395 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21396 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21397 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21400 if test "x$ac_cv_func_vfork_works" = xyes
; then
21402 cat >>confdefs.h
<<\_ACEOF
21403 #define HAVE_WORKING_VFORK 1
21408 cat >>confdefs.h
<<\_ACEOF
21413 if test "x$ac_cv_func_fork_works" = xyes
; then
21415 cat >>confdefs.h
<<\_ACEOF
21416 #define HAVE_WORKING_FORK 1
21422 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21423 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21424 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 cat >conftest.
$ac_ext <<_ACEOF
21430 cat confdefs.h
>>conftest.
$ac_ext
21431 cat >>conftest.
$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 #include <langinfo.h>
21437 char* cs = nl_langinfo(CODESET);
21442 rm -f conftest.
$ac_objext conftest
$ac_exeext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444 (eval $ac_link) 2>conftest.er1
21446 grep -v '^ *+' conftest.er1
>conftest.err
21448 cat conftest.err
>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } &&
21451 { ac_try
='test -z "$ac_c_werror_flag"
21452 || test ! -s conftest.err'
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; } &&
21458 { ac_try
='test -s conftest$ac_exeext'
21459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21460 (eval $ac_try) 2>&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; }; then
21464 emacs_cv_langinfo_codeset
=yes
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.
$ac_ext >&5
21469 emacs_cv_langinfo_codeset
=no
21471 rm -f conftest.err conftest.
$ac_objext \
21472 conftest
$ac_exeext conftest.
$ac_ext
21475 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21476 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21477 if test $emacs_cv_langinfo_codeset = yes; then
21479 cat >>confdefs.h
<<\_ACEOF
21480 #define HAVE_LANGINFO_CODESET 1
21485 echo "$as_me:$LINENO: checking for size_t" >&5
21486 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21487 if test "${ac_cv_type_size_t+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21490 cat >conftest.
$ac_ext <<_ACEOF
21493 cat confdefs.h
>>conftest.
$ac_ext
21494 cat >>conftest.
$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 $ac_includes_default
21502 if (sizeof (size_t))
21508 rm -f conftest.
$ac_objext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510 (eval $ac_compile) 2>conftest.er1
21512 grep -v '^ *+' conftest.er1
>conftest.err
21514 cat conftest.err
>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
21517 { ac_try
='test -z "$ac_c_werror_flag"
21518 || test ! -s conftest.err'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try
='test -s conftest.$ac_objext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530 ac_cv_type_size_t
=yes
21532 echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.
$ac_ext >&5
21535 ac_cv_type_size_t
=no
21537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21539 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21540 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21541 if test $ac_cv_type_size_t = yes; then
21543 cat >>confdefs.h
<<_ACEOF
21544 #define HAVE_SIZE_T 1
21551 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21552 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21553 if test "${ac_cv_type_mbstate_t+set}" = set; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 cat >conftest.
$ac_ext <<_ACEOF
21559 cat confdefs.h
>>conftest.
$ac_ext
21560 cat >>conftest.
$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 $ac_includes_default
21563 # include <wchar.h>
21567 mbstate_t x; return sizeof x;
21572 rm -f conftest.
$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574 (eval $ac_compile) 2>conftest.er1
21576 grep -v '^ *+' conftest.er1
>conftest.err
21578 cat conftest.err
>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try
='test -z "$ac_c_werror_flag"
21582 || test ! -s conftest.err'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try
='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 ac_cv_type_mbstate_t
=yes
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.
$ac_ext >&5
21599 ac_cv_type_mbstate_t
=no
21601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21603 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21604 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21605 if test $ac_cv_type_mbstate_t = yes; then
21607 cat >>confdefs.h
<<\_ACEOF
21608 #define HAVE_MBSTATE_T 1
21613 cat >>confdefs.h
<<\_ACEOF
21614 #define mbstate_t int
21619 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21620 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21621 if test "${emacs_cv_c_restrict+set}" = set; then
21622 echo $ECHO_N "(cached) $ECHO_C" >&6
21624 cat >conftest.
$ac_ext <<_ACEOF
21627 cat confdefs.h
>>conftest.
$ac_ext
21628 cat >>conftest.
$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 void fred (int *restrict x);
21639 rm -f conftest.
$ac_objext
21640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21641 (eval $ac_compile) 2>conftest.er1
21643 grep -v '^ *+' conftest.er1
>conftest.err
21645 cat conftest.err
>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } &&
21648 { ac_try
='test -z "$ac_c_werror_flag"
21649 || test ! -s conftest.err'
21650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21651 (eval $ac_try) 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; } &&
21655 { ac_try
='test -s conftest.$ac_objext'
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; }; then
21661 emacs_cv_c_restrict
=yes
21663 echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.
$ac_ext >&5
21666 cat >conftest.
$ac_ext <<_ACEOF
21669 cat confdefs.h
>>conftest.
$ac_ext
21670 cat >>conftest.
$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 void fred (int *__restrict x);
21681 rm -f conftest.
$ac_objext
21682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21683 (eval $ac_compile) 2>conftest.er1
21685 grep -v '^ *+' conftest.er1
>conftest.err
21687 cat conftest.err
>&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } &&
21690 { ac_try
='test -z "$ac_c_werror_flag"
21691 || test ! -s conftest.err'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try
='test -s conftest.$ac_objext'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 emacs_cv_c_restrict
=__restrict
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.
$ac_ext >&5
21708 emacs_cv_c_restrict
=no
21710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21714 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21715 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21716 case "$emacs_cv_c_restrict" in
21717 yes) emacs_restrict
=restrict
;;
21718 no
) emacs_restrict
="";;
21719 *) emacs_restrict
="$emacs_cv_c_restrict";;
21721 if test "$emacs_restrict" != __restrict
; then
21723 cat >>confdefs.h
<<_ACEOF
21724 #define __restrict $emacs_restrict
21729 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21730 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21731 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 cat >conftest.
$ac_ext <<_ACEOF
21737 cat confdefs.h
>>conftest.
$ac_ext
21738 cat >>conftest.
$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 void fred (int x[__restrict]);
21749 rm -f conftest.
$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21753 grep -v '^ *+' conftest.er1
>conftest.err
21755 cat conftest.err
>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try
='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try
='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 emacs_cv_c_restrict_arr
=yes
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.
$ac_ext >&5
21776 emacs_cv_c_restrict_arr
=no
21778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21780 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21781 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21782 if test "$emacs_cv_c_restrict_arr" = yes; then
21784 cat >>confdefs.h
<<\_ACEOF
21785 #define __restrict_arr __restrict
21792 # Set up the CFLAGS for real compilation, so we can substitute it.
21793 CFLAGS
="$REAL_CFLAGS"
21794 CPPFLAGS
="$REAL_CPPFLAGS"
21796 #### Find out which version of Emacs this is.
21797 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21798 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21799 if test x
"${version}" = x
; then
21800 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21801 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21802 { (exit 1); exit 1; }; }
21805 ### Specify what sort of things we'll be editing into Makefile and config.h.
21806 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21842 cat >>confdefs.h
<<_ACEOF
21843 #define EMACS_CONFIGURATION "${canonical}"
21847 cat >>confdefs.h
<<_ACEOF
21848 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21852 cat >>confdefs.h
<<_ACEOF
21853 #define config_machfile "${machfile}"
21857 cat >>confdefs.h
<<_ACEOF
21858 #define config_opsysfile "${opsysfile}"
21862 cat >>confdefs.h
<<_ACEOF
21863 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21867 cat >>confdefs.h
<<_ACEOF
21868 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21872 cat >>confdefs.h
<<_ACEOF
21873 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21877 cat >>confdefs.h
<<_ACEOF
21878 #define UNEXEC_SRC ${UNEXEC_SRC}
21882 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21884 cat >>confdefs.h
<<\_ACEOF
21885 #define HAVE_X_WINDOWS 1
21889 if test "${USE_X_TOOLKIT}" != "none" ; then
21891 cat >>confdefs.h
<<\_ACEOF
21892 #define USE_X_TOOLKIT 1
21896 if test "${HAVE_X11}" = "yes" ; then
21898 cat >>confdefs.h
<<\_ACEOF
21903 if test "${HAVE_XFREE386}" = "yes" ; then
21905 cat >>confdefs.h
<<\_ACEOF
21906 #define HAVE_XFREE386 1
21910 if test "${HAVE_MENUS}" = "yes" ; then
21912 cat >>confdefs.h
<<\_ACEOF
21913 #define HAVE_MENUS 1
21917 if test "${GNU_MALLOC}" = "yes" ; then
21919 cat >>confdefs.h
<<\_ACEOF
21920 #define GNU_MALLOC 1
21924 if test "${REL_ALLOC}" = "yes" ; then
21926 cat >>confdefs.h
<<\_ACEOF
21927 #define REL_ALLOC 1
21936 #### Report on what we decided to do.
21937 #### Report GTK as a toolkit, even if it doesn't use Xt.
21938 #### It makes printing result more understandable as using GTK sets
21939 #### toolkit_scroll_bars to yes by default.
21940 if test "${HAVE_GTK}" = "yes"; then
21945 Configured for \`${canonical}'.
21947 Where should the build process find the source code? ${srcdir}
21948 What operating system and machine description files should Emacs use?
21949 \`${opsysfile}' and \`${machfile}'
21950 What compiler should emacs be built with? ${CC} ${CFLAGS}
21951 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21952 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21953 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21954 What window system should Emacs use? ${window_system}
21955 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21957 if test -n "${x_includes}"; then
21958 echo " Where do we find X Windows header files? ${x_includes}"
21960 echo " Where do we find X Windows header files? Standard dirs"
21962 if test -n "${x_libraries}"; then
21963 echo " Where do we find X Windows libraries? ${x_libraries}"
21965 echo " Where do we find X Windows libraries? Standard dirs"
21968 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21969 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21970 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21971 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21972 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21973 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21974 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21977 if test "$emacs_cv_randomheap" = warn
; then
21978 { echo "$as_me:$LINENO: WARNING:
21979 **********************************************************************
21981 Heap start address is randomized and no workaround is known.
21982 Emacs will probably dump core when temacs is run in the build phase.
21983 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21984 for further information.
21986 **********************************************************************
21988 echo "$as_me: WARNING:
21989 **********************************************************************
21991 Heap start address is randomized and no workaround is known.
21992 Emacs will probably dump core when temacs is run in the build phase.
21993 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21994 for further information.
21996 **********************************************************************
22000 # Remove any trailing slashes in these variables.
22001 test "${prefix}" != NONE
&&
22002 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22003 test "${exec_prefix}" != NONE
&&
22004 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22006 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22007 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22008 ## from Makefile.c can correctly provide the arg `-traditional' to the
22011 cat >conftest.
$ac_ext <<_ACEOF
22014 cat confdefs.h
>>conftest.
$ac_ext
22015 cat >>conftest.
$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22020 $EGREP "yes..yes" >/dev
/null
2>&1; then
22021 CPP_NEED_TRADITIONAL
=no
22023 CPP_NEED_TRADITIONAL
=yes
22028 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"
22029 ac_config_commands
="$ac_config_commands default"
22030 cat >confcache
<<\_ACEOF
22031 # This file is a shell script that caches the results of configure
22032 # tests run on this system so they can be shared between configure
22033 # scripts and configure runs, see configure's option --config-cache.
22034 # It is not useful on other systems. If it contains results you don't
22035 # want to keep, you may remove or edit it.
22037 # config.status only pays attention to the cache file if you give it
22038 # the --recheck option to rerun configure.
22040 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22041 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22042 # following values.
22046 # The following way of writing the cache mishandles newlines in values,
22047 # but we know of no workaround that is simple, portable, and efficient.
22048 # So, don't put newlines in cache variables' values.
22049 # Ultrix sh set writes to stderr and can't be redirected directly,
22050 # and sets the high bit in the cache file unless we assign to the vars.
22053 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22055 # `set' does not quote correctly, so add quotes (double-quote
22056 # substitution turns \\\\ into \\, and sed turns \\ into \).
22059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22062 # `set' quotes correctly as required by POSIX, so do not add quotes.
22064 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22073 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22075 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22076 if test -w $cache_file; then
22077 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22078 cat confcache
>$cache_file
22080 echo "not updating unwritable cache $cache_file"
22085 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22086 # Let make expand exec_prefix.
22087 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22089 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22090 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22091 # trailing colons and then remove the whole line if VPATH becomes empty
22092 # (actually we leave an empty line to preserve line numbers).
22093 if test "x$srcdir" = x.
; then
22094 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22095 s/:*\$(srcdir):*/:/;
22096 s/:*\${srcdir}:*/:/;
22098 s/^\([^=]*=[ ]*\):*/\1/;
22104 DEFS
=-DHAVE_CONFIG_H
22108 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22109 # 1. Remove the extension, and $U if already installed.
22110 ac_i
=`echo "$ac_i" |
22111 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22113 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22114 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22116 LIBOBJS
=$ac_libobjs
22118 LTLIBOBJS
=$ac_ltlibobjs
22122 : ${CONFIG_STATUS=./config.status}
22123 ac_clean_files_save
=$ac_clean_files
22124 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22125 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22126 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22127 cat >$CONFIG_STATUS <<_ACEOF
22129 # Generated by $as_me.
22130 # Run this file to recreate the current configuration.
22131 # Compiler output produced by configure, useful for debugging
22132 # configure, is in config.log if it exists.
22135 ac_cs_recheck=false
22137 SHELL=\${CONFIG_SHELL-$SHELL}
22140 cat >>$CONFIG_STATUS <<\_ACEOF
22141 ## --------------------- ##
22142 ## M4sh Initialization. ##
22143 ## --------------------- ##
22145 # Be Bourne compatible
22146 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22149 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22150 # is contrary to our usage. Disable this feature.
22151 alias -g '${1+"$@"}'='"$@"'
22152 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22155 DUALCASE
=1; export DUALCASE
# for MKS sh
22157 # Support unset when possible.
22158 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22165 # Work around bugs in pre-3.0 UWIN ksh.
22166 $as_unset ENV MAIL MAILPATH
22173 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22174 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22175 LC_TELEPHONE LC_TIME
22177 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22178 eval $as_var=C
; export $as_var
22184 # Required to use basename.
22185 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22191 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22192 as_basename
=basename
22198 # Name of the executable.
22199 as_me
=`$as_basename "$0" ||
22200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22201 X"$0" : 'X\(//\)$' \| \
22202 X"$0" : 'X\(/\)$' \| \
22203 . : '\(.\)' 2>/dev/null ||
22205 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22206 /^X\/\(\/\/\)$/{ s//\1/; q; }
22207 /^X\/\(\/\).*/{ s//\1/; q; }
22211 # PATH needs CR, and LINENO needs CR and PATH.
22212 # Avoid depending upon Character Ranges.
22213 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22214 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22215 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22216 as_cr_digits
='0123456789'
22217 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22219 # The user is always right.
22220 if test "${PATH_SEPARATOR+set}" != set; then
22221 echo "#! /bin/sh" >conf$$.sh
22222 echo "exit 0" >>conf$$.sh
22224 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22233 as_lineno_1
=$LINENO
22234 as_lineno_2
=$LINENO
22235 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22236 test "x$as_lineno_1" != "x$as_lineno_2" &&
22237 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22238 # Find who we are. Look in the path if we contain no path at all
22241 *[\\/]* ) as_myself
=$0 ;;
22242 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22243 for as_dir
in $PATH
22246 test -z "$as_dir" && as_dir
=.
22247 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22252 # We did not find ourselves, most probably we were run as `sh COMMAND'
22253 # in which case we are not to be found in the path.
22254 if test "x$as_myself" = x
; then
22257 if test ! -f "$as_myself"; then
22258 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22259 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22260 { (exit 1); exit 1; }; }
22262 case $CONFIG_SHELL in
22264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22265 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22268 test -z "$as_dir" && as_dir
=.
22269 for as_base
in sh bash ksh sh5
; do
22272 if ("$as_dir/$as_base" -c '
22273 as_lineno_1=$LINENO
22274 as_lineno_2=$LINENO
22275 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22276 test "x$as_lineno_1" != "x$as_lineno_2" &&
22277 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22278 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22279 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22280 CONFIG_SHELL
=$as_dir/$as_base
22281 export CONFIG_SHELL
22282 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22290 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22291 # uniformly replaced by the line number. The first 'sed' inserts a
22292 # line-number line before each line; the second 'sed' does the real
22293 # work. The second script uses 'N' to pair each line-number line
22294 # with the numbered line, and appends trailing '-' during
22295 # substitution so that $LINENO is not a special case at line end.
22296 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22297 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22298 sed '=' <$as_myself |
22303 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22306 s,^['$as_cr_digits']*\n,,
22307 ' >$as_me.lineno
&&
22308 chmod +x
$as_me.lineno ||
22309 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22310 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22311 { (exit 1); exit 1; }; }
22313 # Don't try to exec as it changes $[0], causing all sort of problems
22314 # (the dirname of $[0] is not the place where we might find the
22315 # original and so on. Autoconf is especially sensible to this).
22317 # Exit status is that of the last command.
22322 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22323 *c
*,-n*) ECHO_N
= ECHO_C
='
22325 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22326 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22329 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22335 rm -f conf$$ conf$$.exe conf$$.
file
22337 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22338 # We could just check for DJGPP; but this test a) works b) is more generic
22339 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22340 if test -f conf$$.exe
; then
22341 # Don't use ln at all; we don't have any links
22346 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22351 rm -f conf$$ conf$$.exe conf$$.
file
22353 if mkdir
-p .
2>/dev
/null
; then
22356 test -d .
/-p && rmdir .
/-p
22360 as_executable_p
="test -f"
22362 # Sed expression to map a string onto a valid CPP name.
22363 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22365 # Sed expression to map a string onto a valid variable name.
22366 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22370 # We need space, tab and new line, in precisely that order.
22380 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22381 # report actual input values of CONFIG_FILES etc. instead of their
22382 # values after options handling. Logging --version etc. is OK.
22386 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22387 ## Running $as_me. ##
22392 This file was extended by $as_me, which was
22393 generated by GNU Autoconf 2.59. Invocation command line was
22395 CONFIG_FILES = $CONFIG_FILES
22396 CONFIG_HEADERS = $CONFIG_HEADERS
22397 CONFIG_LINKS = $CONFIG_LINKS
22398 CONFIG_COMMANDS = $CONFIG_COMMANDS
22402 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22406 # Files that config.status was made for.
22407 if test -n "$ac_config_files"; then
22408 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22411 if test -n "$ac_config_headers"; then
22412 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22415 if test -n "$ac_config_links"; then
22416 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22419 if test -n "$ac_config_commands"; then
22420 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22423 cat >>$CONFIG_STATUS <<\_ACEOF
22426 \`$as_me' instantiates files from templates according to the
22427 current configuration.
22429 Usage: $0 [OPTIONS] [FILE]...
22431 -h, --help print this help, then exit
22432 -V, --version print version number, then exit
22433 -q, --quiet do not print progress messages
22434 -d, --debug don't remove temporary files
22435 --recheck update $as_me by reconfiguring in the same conditions
22436 --file=FILE[:TEMPLATE]
22437 instantiate the configuration file FILE
22438 --header=FILE[:TEMPLATE]
22439 instantiate the configuration header FILE
22441 Configuration files:
22444 Configuration headers:
22447 Configuration commands:
22450 Report bugs to <bug-autoconf@gnu.org>."
22453 cat >>$CONFIG_STATUS <<_ACEOF
22456 configured by $0, generated by GNU Autoconf 2.59,
22457 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22459 Copyright (C) 2003 Free Software Foundation, Inc.
22460 This config.status script is free software; the Free Software Foundation
22461 gives unlimited permission to copy, distribute and modify it."
22466 cat >>$CONFIG_STATUS <<\_ACEOF
22467 # If no file are specified by the user, then we need to provide default
22468 # value. By we need to know if files were specified by the user.
22474 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22475 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22483 *) # This is not an option, so the user has probably given explicit
22486 ac_need_defaults
=false
;;
22490 # Handling of the options.
22492 cat >>$CONFIG_STATUS <<\_ACEOF
22493 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22495 --version |
--vers* |
-V )
22496 echo "$ac_cs_version"; exit 0 ;;
22498 # Conflict between --help and --header
22499 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22500 Try \`$0 --help' for more information." >&5
22501 echo "$as_me: error: ambiguous option: $1
22502 Try \`$0 --help' for more information." >&2;}
22503 { (exit 1); exit 1; }; };;
22504 --help |
--hel |
-h )
22505 echo "$ac_cs_usage"; exit 0 ;;
22506 --debug |
--d* |
-d )
22508 --file |
--fil |
--fi |
--f )
22510 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22511 ac_need_defaults
=false
;;
22512 --header |
--heade |
--head |
--hea )
22514 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22515 ac_need_defaults
=false
;;
22516 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22517 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22520 # This is an error.
22521 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22522 Try \`$0 --help' for more information." >&5
22523 echo "$as_me: error: unrecognized option: $1
22524 Try \`$0 --help' for more information." >&2;}
22525 { (exit 1); exit 1; }; } ;;
22527 *) ac_config_targets
="$ac_config_targets $1" ;;
22533 ac_configure_extra_args
=
22535 if $ac_cs_silent; then
22537 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22541 cat >>$CONFIG_STATUS <<_ACEOF
22542 if \$ac_cs_recheck; then
22543 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22544 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22549 cat >>$CONFIG_STATUS <<_ACEOF
22551 # INIT-COMMANDS section.
22554 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22560 cat >>$CONFIG_STATUS <<\_ACEOF
22561 for ac_config_target
in $ac_config_targets
22563 case "$ac_config_target" in
22564 # Handling of arguments.
22565 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22566 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22567 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22568 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22569 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22570 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22571 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22572 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22573 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22574 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22575 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22576 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22577 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22578 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22579 { (exit 1); exit 1; }; };;
22583 # If the user did not use the arguments to specify the items to instantiate,
22584 # then the envvar interface is used. Set only those that are not.
22585 # We use the long form for the default assignment because of an extremely
22586 # bizarre bug on SunOS 4.1.3.
22587 if $ac_need_defaults; then
22588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22593 # Have a temporary directory for convenience. Make it in the build tree
22594 # simply because there is no reason to put it here, and in addition,
22595 # creating and moving files from /tmp can sometimes cause problems.
22596 # Create a temporary directory, and hook for its removal unless debugging.
22599 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22600 trap '{ (exit 1); exit 1; }' 1 2 13 15
22603 # Create a (secure) tmp directory for tmp files.
22606 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22607 test -n "$tmp" && test -d "$tmp"
22610 tmp
=.
/confstat$$
-$RANDOM
22611 (umask 077 && mkdir
$tmp)
22614 echo "$me: cannot create a temporary directory in ." >&2
22615 { (exit 1); exit 1; }
22620 cat >>$CONFIG_STATUS <<_ACEOF
22623 # CONFIG_FILES section.
22626 # No need to generate the scripts if there are no CONFIG_FILES.
22627 # This happens for instance when ./config.status config.h
22628 if test -n "\$CONFIG_FILES"; then
22629 # Protect against being on the right side of a sed subst in config.status.
22630 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22631 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22632 s,@SHELL@,$SHELL,;t t
22633 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22634 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22635 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22636 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22637 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22638 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22639 s,@exec_prefix@,$exec_prefix,;t t
22640 s,@prefix@,$prefix,;t t
22641 s,@program_transform_name@,$program_transform_name,;t t
22642 s,@bindir@,$bindir,;t t
22643 s,@sbindir@,$sbindir,;t t
22644 s,@libexecdir@,$libexecdir,;t t
22645 s,@datadir@,$datadir,;t t
22646 s,@sysconfdir@,$sysconfdir,;t t
22647 s,@sharedstatedir@,$sharedstatedir,;t t
22648 s,@localstatedir@,$localstatedir,;t t
22649 s,@libdir@,$libdir,;t t
22650 s,@includedir@,$includedir,;t t
22651 s,@oldincludedir@,$oldincludedir,;t t
22652 s,@infodir@,$infodir,;t t
22653 s,@mandir@,$mandir,;t t
22654 s,@build_alias@,$build_alias,;t t
22655 s,@host_alias@,$host_alias,;t t
22656 s,@target_alias@,$target_alias,;t t
22657 s,@DEFS@,$DEFS,;t t
22658 s,@ECHO_C@,$ECHO_C,;t t
22659 s,@ECHO_N@,$ECHO_N,;t t
22660 s,@ECHO_T@,$ECHO_T,;t t
22661 s,@LIBS@,$LIBS,;t t
22662 s,@MAINT@,$MAINT,;t t
22663 s,@build@,$build,;t t
22664 s,@build_cpu@,$build_cpu,;t t
22665 s,@build_vendor@,$build_vendor,;t t
22666 s,@build_os@,$build_os,;t t
22667 s,@host@,$host,;t t
22668 s,@host_cpu@,$host_cpu,;t t
22669 s,@host_vendor@,$host_vendor,;t t
22670 s,@host_os@,$host_os,;t t
22672 s,@CFLAGS@,$CFLAGS,;t t
22673 s,@LDFLAGS@,$LDFLAGS,;t t
22674 s,@CPPFLAGS@,$CPPFLAGS,;t t
22675 s,@ac_ct_CC@,$ac_ct_CC,;t t
22676 s,@EXEEXT@,$EXEEXT,;t t
22677 s,@OBJEXT@,$OBJEXT,;t t
22678 s,@LN_S@,$LN_S,;t t
22680 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22681 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22682 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22683 s,@RANLIB@,$RANLIB,;t t
22684 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22685 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22686 s,@EGREP@,$EGREP,;t t
22687 s,@LIBSOUND@,$LIBSOUND,;t t
22688 s,@SET_MAKE@,$SET_MAKE,;t t
22689 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22690 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22691 s,@GTK_LIBS@,$GTK_LIBS,;t t
22692 s,@ALLOCA@,$ALLOCA,;t t
22693 s,@liblockfile@,$liblockfile,;t t
22694 s,@LIBOBJS@,$LIBOBJS,;t t
22695 s,@NEED_SETGID@,$NEED_SETGID,;t t
22696 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22697 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22698 s,@version@,$version,;t t
22699 s,@configuration@,$configuration,;t t
22700 s,@canonical@,$canonical,;t t
22701 s,@srcdir@,$srcdir,;t t
22702 s,@lispdir@,$lispdir,;t t
22703 s,@locallisppath@,$locallisppath,;t t
22704 s,@lisppath@,$lisppath,;t t
22705 s,@x_default_search_path@,$x_default_search_path,;t t
22706 s,@etcdir@,$etcdir,;t t
22707 s,@archlibdir@,$archlibdir,;t t
22708 s,@docdir@,$docdir,;t t
22709 s,@bitmapdir@,$bitmapdir,;t t
22710 s,@gamedir@,$gamedir,;t t
22711 s,@gameuser@,$gameuser,;t t
22712 s,@c_switch_system@,$c_switch_system,;t t
22713 s,@c_switch_machine@,$c_switch_machine,;t t
22714 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22715 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22716 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22717 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22718 s,@machfile@,$machfile,;t t
22719 s,@opsysfile@,$opsysfile,;t t
22720 s,@carbon_appdir@,$carbon_appdir,;t t
22721 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22726 cat >>$CONFIG_STATUS <<\_ACEOF
22727 # Split the substitutions into bite-sized pieces for seds with
22728 # small command number limits, like on Digital OSF/1 and HP-UX.
22729 ac_max_sed_lines
=48
22730 ac_sed_frag
=1 # Number of current file.
22731 ac_beg
=1 # First line for current file.
22732 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22735 while $ac_more_lines; do
22736 if test $ac_beg -gt 1; then
22737 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22739 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22741 if test ! -s $tmp/subs.frag
; then
22742 ac_more_lines
=false
22744 # The purpose of the label and of the branching condition is to
22745 # speed up the sed processing (if there are no `@' at all, there
22746 # is no need to browse any of the substitutions).
22747 # These are the two extra sed commands mentioned above.
22749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22750 if test -z "$ac_sed_cmds"; then
22751 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22753 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22755 ac_sed_frag
=`expr $ac_sed_frag + 1`
22757 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22760 if test -z "$ac_sed_cmds"; then
22763 fi # test -n "$CONFIG_FILES"
22766 cat >>$CONFIG_STATUS <<\_ACEOF
22767 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22770 - |
*:- |
*:-:* ) # input from stdin
22772 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22773 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22774 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22775 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22776 * ) ac_file_in
=$ac_file.
in ;;
22779 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22780 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22782 X"$ac_file" : 'X\(//\)[^/]' \| \
22783 X"$ac_file" : 'X\(//\)$' \| \
22784 X"$ac_file" : 'X\(/\)' \| \
22785 . : '\(.\)' 2>/dev/null ||
22787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22789 /^X\(\/\/\)$/{ s//\1/; q; }
22790 /^X\(\/\).*/{ s//\1/; q; }
22792 { if $as_mkdir_p; then
22797 while test ! -d "$as_dir"; do
22798 as_dirs
="$as_dir $as_dirs"
22799 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22801 X"$as_dir" : 'X\(//\)[^/]' \| \
22802 X"$as_dir" : 'X\(//\)$' \| \
22803 X"$as_dir" : 'X\(/\)' \| \
22804 . : '\(.\)' 2>/dev/null ||
22806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22808 /^X\(\/\/\)$/{ s//\1/; q; }
22809 /^X\(\/\).*/{ s//\1/; q; }
22812 test ! -n "$as_dirs" || mkdir
$as_dirs
22813 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22815 { (exit 1); exit 1; }; }; }
22819 if test "$ac_dir" != .
; then
22820 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22821 # A "../" for each directory in $ac_dir_suffix.
22822 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22824 ac_dir_suffix
= ac_top_builddir
=
22828 .
) # No --srcdir option. We are building in place.
22830 if test -z "$ac_top_builddir"; then
22833 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22835 [\\/]* | ?
:[\\/]* ) # Absolute path.
22836 ac_srcdir
=$srcdir$ac_dir_suffix;
22837 ac_top_srcdir
=$srcdir ;;
22838 *) # Relative path.
22839 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22840 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22843 # Do not use `cd foo && pwd` to compute absolute paths, because
22844 # the directories may not exist.
22846 .
) ac_abs_builddir
="$ac_dir";;
22849 .
) ac_abs_builddir
=`pwd`;;
22850 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22851 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22854 case $ac_abs_builddir in
22855 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22857 case ${ac_top_builddir}.
in
22858 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22859 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22860 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22863 case $ac_abs_builddir in
22864 .
) ac_abs_srcdir
=$ac_srcdir;;
22867 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22868 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22869 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22872 case $ac_abs_builddir in
22873 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22875 case $ac_top_srcdir in
22876 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22877 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22878 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22884 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22885 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22888 if test x
"$ac_file" != x-
; then
22889 { echo "$as_me:$LINENO: creating $ac_file" >&5
22890 echo "$as_me: creating $ac_file" >&6;}
22893 # Let's still pretend it is `configure' which instantiates (i.e., don't
22894 # use $as_me), people would be surprised to read:
22895 # /* config.h. Generated by config.status. */
22896 if test x
"$ac_file" = x-
; then
22899 configure_input
="$ac_file. "
22901 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22902 sed 's,.*/,,'` by configure."
22904 # First look for the input files in the build tree, otherwise in the
22906 ac_file_inputs
=`IFS=:
22907 for f in $ac_file_in; do
22909 -) echo $tmp/stdin ;;
22911 # Absolute (can't be DOS-style, as IFS=:)
22912 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22913 echo "$as_me: error: cannot find input file: $f" >&2;}
22914 { (exit 1); exit 1; }; }
22917 if test -f "$f"; then
22920 elif test -f "$srcdir/$f"; then
22925 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22926 echo "$as_me: error: cannot find input file: $f" >&2;}
22927 { (exit 1); exit 1; }; }
22930 done` ||
{ (exit 1); exit 1; }
22932 cat >>$CONFIG_STATUS <<_ACEOF
22936 cat >>$CONFIG_STATUS <<\_ACEOF
22938 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22939 s
,@configure_input@
,$configure_input,;t t
22940 s
,@srcdir@
,$ac_srcdir,;t t
22941 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22942 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22943 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22944 s
,@builddir@
,$ac_builddir,;t t
22945 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22946 s
,@top_builddir@
,$ac_top_builddir,;t t
22947 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22948 s
,@INSTALL@
,$ac_INSTALL,;t t
22949 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22951 if test x"$ac_file" != x-; then
22952 mv $tmp/out $ac_file
22960 cat >>$CONFIG_STATUS <<\_ACEOF
22963 # CONFIG_HEADER section.
22966 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22967 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22969 # ac_d sets the value in "#define NAME VALUE" lines.
22970 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22971 ac_dB
='[ ].*$,\1#\2'
22974 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22975 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22976 ac_uB
='$,\1#\2define\3'
22980 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22981 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22983 - |
*:- |
*:-:* ) # input from stdin
22985 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22986 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22987 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22988 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22989 * ) ac_file_in
=$ac_file.
in ;;
22992 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22993 echo "$as_me: creating $ac_file" >&6;}
22995 # First look for the input files in the build tree, otherwise in the
22997 ac_file_inputs
=`IFS=:
22998 for f in $ac_file_in; do
23000 -) echo $tmp/stdin ;;
23002 # Absolute (can't be DOS-style, as IFS=:)
23003 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23004 echo "$as_me: error: cannot find input file: $f" >&2;}
23005 { (exit 1); exit 1; }; }
23006 # Do quote $f, to prevent DOS paths from being IFS'd.
23009 if test -f "$f"; then
23012 elif test -f "$srcdir/$f"; then
23017 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23018 echo "$as_me: error: cannot find input file: $f" >&2;}
23019 { (exit 1); exit 1; }; }
23022 done` ||
{ (exit 1); exit 1; }
23023 # Remove the trailing spaces.
23024 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23028 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23029 # `conftest.undefs', that substitutes the proper values into
23030 # config.h.in to produce config.h. The first handles `#define'
23031 # templates, and the second `#undef' templates.
23032 # And first: Protect against being on the right side of a sed subst in
23033 # config.status. Protect against being in an unquoted here document
23034 # in config.status.
23035 rm -f conftest.defines conftest.undefs
23036 # Using a here document instead of a string reduces the quoting nightmare.
23037 # Putting comments in sed scripts is not portable.
23039 # `end' is used to avoid that the second main sed command (meant for
23040 # 0-ary CPP macros) applies to n-ary macro definitions.
23041 # See the Autoconf documentation for `clear'.
23042 cat >confdef2sed.
sed <<\_ACEOF
23047 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23049 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23052 # If some macros were called several times there might be several times
23053 # the same #defines, which is useless. Nevertheless, we may not want to
23054 # sort them, since we want the *last* AC-DEFINE to be honored.
23055 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23056 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23057 rm -f confdef2sed.sed
23059 # This sed command replaces #undef with comments. This is necessary, for
23060 # example, in the case of _POSIX_SOURCE, which is predefined and required
23061 # on some systems where configure will not decide to define it.
23062 cat >>conftest.undefs <<\_ACEOF
23063 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23066 # Break up conftest.defines because some shells have a limit on the size
23067 # of here documents, and old seds have small limits too (100 cmds).
23068 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23069 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23070 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23071 echo ' :' >>$CONFIG_STATUS
23072 rm -f conftest.tail
23073 while grep . conftest.defines >/dev/null
23075 # Write a limited-size here document to $tmp/defines.sed.
23076 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23077 # Speed up: don't consider the non `#define' lines.
23078 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23079 # Work around the forget-to-reset-the-flag bug.
23080 echo 't clr' >>$CONFIG_STATUS
23081 echo ': clr' >>$CONFIG_STATUS
23082 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23084 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23086 mv $tmp/out $tmp/in
23088 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23089 rm -f conftest.defines
23090 mv conftest.
tail conftest.defines
23092 rm -f conftest.defines
23093 echo ' fi # grep' >>$CONFIG_STATUS
23094 echo >>$CONFIG_STATUS
23096 # Break up conftest.undefs because some shells have a limit on the size
23097 # of here documents, and old seds have small limits too (100 cmds).
23098 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23099 rm -f conftest.
tail
23100 while grep . conftest.undefs
>/dev
/null
23102 # Write a limited-size here document to $tmp/undefs.sed.
23103 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23104 # Speed up: don't consider the non
`#undef'
23105 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23106 # Work around the forget-to-reset-the-flag bug.
23107 echo 't clr' >>$CONFIG_STATUS
23108 echo ': clr' >>$CONFIG_STATUS
23109 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23111 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23113 mv $tmp/out $tmp/in
23115 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23116 rm -f conftest.undefs
23117 mv conftest.tail conftest.undefs
23119 rm -f conftest.undefs
23121 cat >>$CONFIG_STATUS <<\_ACEOF
23122 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23123 # use $as_me), people would be surprised to read:
23124 # /* config.h. Generated by config.status. */
23125 if test x
"$ac_file" = x-
; then
23126 echo "/* Generated by configure. */" >$tmp/config.h
23128 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23130 cat $tmp/in >>$tmp/config.h
23132 if test x
"$ac_file" != x-
; then
23133 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23134 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23135 echo "$as_me: $ac_file is unchanged" >&6;}
23137 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23139 X"$ac_file" : 'X\(//\)[^/]' \| \
23140 X"$ac_file" : 'X\(//\)$' \| \
23141 X"$ac_file" : 'X\(/\)' \| \
23142 . : '\(.\)' 2>/dev/null ||
23144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23146 /^X\(\/\/\)$/{ s//\1/; q; }
23147 /^X\(\/\).*/{ s//\1/; q; }
23149 { if $as_mkdir_p; then
23154 while test ! -d "$as_dir"; do
23155 as_dirs
="$as_dir $as_dirs"
23156 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23158 X"$as_dir" : 'X\(//\)[^/]' \| \
23159 X"$as_dir" : 'X\(//\)$' \| \
23160 X"$as_dir" : 'X\(/\)' \| \
23161 . : '\(.\)' 2>/dev/null ||
23163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23165 /^X\(\/\/\)$/{ s//\1/; q; }
23166 /^X\(\/\).*/{ s//\1/; q; }
23169 test ! -n "$as_dirs" || mkdir
$as_dirs
23170 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23172 { (exit 1); exit 1; }; }; }
23175 mv $tmp/config.h
$ac_file
23179 rm -f $tmp/config.h
23183 cat >>$CONFIG_STATUS <<\_ACEOF
23186 # CONFIG_COMMANDS section.
23188 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23189 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23190 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23191 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23192 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23193 X"$ac_dest" : 'X\(//\)[^/]' \| \
23194 X"$ac_dest" : 'X\(//\)$' \| \
23195 X"$ac_dest" : 'X\(/\)' \| \
23196 . : '\(.\)' 2>/dev/null ||
23198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23200 /^X\(\/\/\)$/{ s//\1/; q; }
23201 /^X\(\/\).*/{ s//\1/; q; }
23203 { if $as_mkdir_p; then
23208 while test ! -d "$as_dir"; do
23209 as_dirs
="$as_dir $as_dirs"
23210 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23212 X"$as_dir" : 'X\(//\)[^/]' \| \
23213 X"$as_dir" : 'X\(//\)$' \| \
23214 X"$as_dir" : 'X\(/\)' \| \
23215 . : '\(.\)' 2>/dev/null ||
23217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23219 /^X\(\/\/\)$/{ s//\1/; q; }
23220 /^X\(\/\).*/{ s//\1/; q; }
23223 test ! -n "$as_dirs" || mkdir
$as_dirs
23224 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23225 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23226 { (exit 1); exit 1; }; }; }
23230 if test "$ac_dir" != .
; then
23231 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23232 # A "../" for each directory in $ac_dir_suffix.
23233 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23235 ac_dir_suffix
= ac_top_builddir
=
23239 .
) # No --srcdir option. We are building in place.
23241 if test -z "$ac_top_builddir"; then
23244 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23246 [\\/]* | ?
:[\\/]* ) # Absolute path.
23247 ac_srcdir
=$srcdir$ac_dir_suffix;
23248 ac_top_srcdir
=$srcdir ;;
23249 *) # Relative path.
23250 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23251 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23254 # Do not use `cd foo && pwd` to compute absolute paths, because
23255 # the directories may not exist.
23257 .
) ac_abs_builddir
="$ac_dir";;
23260 .
) ac_abs_builddir
=`pwd`;;
23261 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23262 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23265 case $ac_abs_builddir in
23266 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23268 case ${ac_top_builddir}.
in
23269 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23270 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23271 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23274 case $ac_abs_builddir in
23275 .
) ac_abs_srcdir
=$ac_srcdir;;
23278 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23279 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23280 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23283 case $ac_abs_builddir in
23284 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23286 case $ac_top_srcdir in
23287 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23288 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23289 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23294 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23295 echo "$as_me: executing $ac_dest commands" >&6;}
23299 ### Make the necessary directories, if they don't exist.
23300 for dir
in etc lisp
; do
23301 test -d ${dir} || mkdir
${dir}
23304 # Build src/Makefile from ${srcdir}/src/Makefile.c
23305 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23306 # This must be done after src/config.h is built, since we rely on that file.
23308 # Now get this: Some word that is part of the ${srcdir} directory name
23309 # or the ${configuration} value might, just might, happen to be an
23310 # identifier like `sun4' or `i386' or something, and be predefined by
23311 # the C preprocessor to some helpful value like 1, or maybe the empty
23312 # string. Needless to say consequent macro substitutions are less
23313 # than conducive to the makefile finding the correct directory.
23314 undefs
="`echo $top_srcdir $configuration $canonical |
23315 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23316 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23319 echo creating src
/epaths.h
23320 ${MAKE-make} epaths-force
23322 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23323 # `..' to `. .' unless invoked with -traditional
23325 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23326 CPPFLAGS
="$CPPFLAGS -traditional"
23329 echo creating lib-src
/Makefile
23331 rm -f junk.c junk1.c junk2.c
23332 sed -e '/start of cpp stuff/q' \
23333 < Makefile.c
> junk1.c
23334 sed -e '1,/start of cpp stuff/d'\
23335 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23336 < Makefile.c
> junk.c
23337 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23338 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23339 cat junk1.c junk2.c
> Makefile.new
23340 rm -f junk.c junk1.c junk2.c
23341 chmod 444 Makefile.new
23342 mv -f Makefile.new Makefile
23345 echo creating src
/Makefile
23347 rm -f junk.c junk1.c junk2.c
23348 sed -e '/start of cpp stuff/q' \
23349 < Makefile.c
> junk1.c
23350 sed -e '1,/start of cpp stuff/d'\
23351 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23352 < Makefile.c
> junk.c
23353 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23354 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23355 cat junk1.c junk2.c
> Makefile.new
23356 rm -f junk.c junk1.c junk2.c
23357 chmod 444 Makefile.new
23358 mv -f Makefile.new Makefile
23361 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23362 echo creating src
/.gdbinit
23363 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23366 # This is how we know whether to re-run configure in certain cases.
23367 touch src
/config.stamp
23374 cat >>$CONFIG_STATUS <<\_ACEOF
23376 { (exit 0); exit 0; }
23378 chmod +x
$CONFIG_STATUS
23379 ac_clean_files
=$ac_clean_files_save
23382 # configure is writing to config.log, and then calls config.status.
23383 # config.status does its own redirection, appending to config.log.
23384 # Unfortunately, on DOS this fails, as config.log is still kept open
23385 # by configure, so config.status won't be able to write to it; its
23386 # output is simply discarded. So we exec the FD to /dev/null,
23387 # effectively closing config.log, so it can be properly (re)opened and
23388 # appended to by config.status. When coming back to configure, we
23389 # need to make the FD available again.
23390 if test "$no_create" != yes; then
23392 ac_config_status_args
=
23393 test "$silent" = yes &&
23394 ac_config_status_args
="$ac_config_status_args --quiet"
23396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23399 # would make configure fail if this is the last instruction.
23400 $ac_cs_success ||
{ (exit 1); exit 1; }