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-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --disable-largefile omit support
for large files
865 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
866 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
867 --without-gcc don
't use GCC to compile Emacs if GCC is found
868 --without-pop don't support POP
mail retrieval with movemail
869 --with-kerberos support Kerberos-authenticated POP
870 --with-kerberos5 support Kerberos version
5 authenticated POP
871 --with-hesiod support Hesiod to get the POP server
host
872 --without-sound don
't compile with sound support
873 --with-x-toolkit=KIT use an X toolkit
874 (KIT = yes/lucid/athena/motif/gtk/no)
875 --with-xpm use -lXpm for displaying XPM images
876 --with-jpeg use -ljpeg for displaying JPEG images
877 --with-tiff use -ltiff for displaying TIFF images
878 --with-gif use -lungif for displaying GIF images
879 --with-png use -lpng for displaying PNG images
880 --with-gtk use GTK (same as --with-x-toolkit=gtk)
881 --with-pkg-config-prog Path to pkg-config to use for finding GTK
882 --without-toolkit-scroll-bars
883 don't use Motif or Xaw3d scroll bars
884 --without-xim don
't use X11 XIM
885 --without-carbon don't use Carbon GUI on Mac OS X
886 --with-x use the X Window System
888 Some influential environment variables
:
889 CC C compiler
command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
892 nonstandard directory
<lib dir
>
893 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
894 headers
in a nonstandard directory
<include dir
>
897 Use these variables to override the choices made by
`configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
915 ac_dir_suffix= ac_top_builddir=
919 .) # No --srcdir option. We are building in place.
921 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 # Do not use `cd foo
&& pwd` to compute absolute paths, because
935 # the directories may not exist.
937 .) ac_abs_builddir="$ac_dir";;
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1019 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1020 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1021 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1022 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1023 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1026 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1028 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1030 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1031 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1032 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1033 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1034 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1067 ac_must_keep_next=false
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096 -* ) ac_must_keep_next=true ;;
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close
' the trap.
1114 trap 'exit_status
=$?
1115 # Save into config.log some information that might help in debugging.
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1125 # The following way of writing the cache mishandles newlines in values,
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1148 for ac_var
in $ac_subst_vars
1150 eval ac_val
=$
`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -n "$ac_subst_files"; then
1162 for ac_var
in $ac_subst_files
1164 eval ac_val
=$
`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -s confdefs.h
; then
1177 sed "/^$/d" confdefs.h |
sort
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1184 rm -f core
*.core
&&
1185 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198 # Predefined preprocessor variables.
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's
/^
/|
/' "$ac_site_file" >&5
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1260 # Check that the precious variables saved in the cache have kept the same
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1273 ac_cache_corrupted=: ;;
1275 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1282 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1307 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1314 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it
if useless.
1345 cat <<\_ACEOF
>conftest.
sed
1346 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1348 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1352 lispdir
='${datadir}/emacs/${version}/lisp'
1353 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1354 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1355 lisppath
='${locallisppath}:${lispdir}'
1356 etcdir
='${datadir}/emacs/${version}/etc'
1357 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1358 docdir
='${datadir}/emacs/${version}/etc'
1359 gamedir
='${localstatedir}/games/emacs'
1364 # Check whether --with-gcc or --without-gcc was given.
1365 if test "${with_gcc+set}" = set; then
1370 # Check whether --with-pop or --without-pop was given.
1371 if test "${with_pop+set}" = set; then
1373 if test "$withval" = yes; then
1374 cat >>confdefs.h
<<\_ACEOF
1375 #define MAIL_USE_POP 1
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define MAIL_USE_POP 1
1388 # Check whether --with-kerberos or --without-kerberos was given.
1389 if test "${with_kerberos+set}" = set; then
1390 withval
="$with_kerberos"
1391 cat >>confdefs.h
<<\_ACEOF
1398 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1399 if test "${with_kerberos5+set}" = set; then
1400 withval
="$with_kerberos5"
1401 if test "${with_kerberos5+set}" = set; then
1402 if test "${with_kerberos+set}" != set; then
1404 cat >>confdefs.h
<<\_ACEOF
1411 cat >>confdefs.h
<<\_ACEOF
1417 # Check whether --with-hesiod or --without-hesiod was given.
1418 if test "${with_hesiod+set}" = set; then
1419 withval
="$with_hesiod"
1421 cat >>confdefs.h
<<\_ACEOF
1428 # Check whether --with-sound or --without-sound was given.
1429 if test "${with_sound+set}" = set; then
1430 withval
="$with_sound"
1435 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1436 if test "${with_x_toolkit+set}" = set; then
1437 withval
="$with_x_toolkit"
1438 case "${withval}" in
1439 y | ye |
yes ) val
=athena
;;
1441 l | lu | luc | luci | lucid
) val
=lucid
;;
1442 a |
at | ath | athe | athen | athena
) val
=athena
;;
1443 m | mo | mot | moti | motif
) val
=motif
;;
1444 g | gt | gtk
) val
=gtk
;;
1446 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1447 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1448 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1449 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1452 { (exit 1); exit 1; }; }
1459 # Check whether --with-xpm or --without-xpm was given.
1460 if test "${with_xpm+set}" = set; then
1465 # Check whether --with-jpeg or --without-jpeg was given.
1466 if test "${with_jpeg+set}" = set; then
1467 withval
="$with_jpeg"
1471 # Check whether --with-tiff or --without-tiff was given.
1472 if test "${with_tiff+set}" = set; then
1473 withval
="$with_tiff"
1477 # Check whether --with-gif or --without-gif was given.
1478 if test "${with_gif+set}" = set; then
1483 # Check whether --with-png or --without-png was given.
1484 if test "${with_png+set}" = set; then
1489 # Check whether --with-gtk or --without-gtk was given.
1490 if test "${with_gtk+set}" = set; then
1495 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1496 if test "${with_pkg_config_prog+set}" = set; then
1497 withval
="$with_pkg_config_prog"
1501 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1502 if test "${with_toolkit_scroll_bars+set}" = set; then
1503 withval
="$with_toolkit_scroll_bars"
1507 # Check whether --with-xim or --without-xim was given.
1508 if test "${with_xim+set}" = set; then
1513 # Check whether --with-carbon or --without-carbon was given.
1514 if test "${with_carbon+set}" = set; then
1515 withval
="$with_carbon"
1518 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1519 if test "${enable_carbon_app+set}" = set; then
1520 enableval
="$enable_carbon_app"
1521 carbon_appdir_x
=${enableval}
1524 # Check whether --enable-asserts or --disable-asserts was given.
1525 if test "${enable_asserts+set}" = set; then
1526 enableval
="$enable_asserts"
1527 USE_XASSERTS
=$enableval
1532 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1533 if test "${enable_maintainer_mode+set}" = set; then
1534 enableval
="$enable_maintainer_mode"
1535 USE_MAINTAINER_MODE
=$enableval
1537 USE_MAINTAINER_MODE
=no
1539 if test $USE_MAINTAINER_MODE = yes; then
1546 #### Make srcdir absolute, if it isn't already. It's important to
1547 #### avoid running the path through pwd unnecessarily, since pwd can
1548 #### give you automounter prefixes, which can go away. We do all this
1549 #### so Emacs can find its files when run uninstalled.
1550 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1555 ## We may be able to use the $PWD environment variable to make this
1556 ## absolute. But sometimes PWD is inaccurate.
1557 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1558 ## but that tested only for a well-formed and valid PWD,
1559 ## it did not object when PWD was well-formed and valid but just wrong.
1560 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1564 srcdir
="`(cd ${srcdir}; pwd)`"
1567 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1570 #### Check if the source directory already has a configured system in it.
1571 if test `pwd` != `(cd ${srcdir} && pwd)` \
1572 && test -f "${srcdir}/src/config.h" ; then
1573 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1574 as a build directory right now; it has been configured in its own
1575 right. To configure in another directory as well, you MUST
1576 use GNU make. If you do not have GNU make, then you must
1577 now do \`make distclean' in ${srcdir},
1578 and then run $0 again." >&5
1579 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1580 as a build directory right now; it has been configured in its own
1581 right. To configure in another directory as well, you MUST
1582 use GNU make. If you do not have GNU make, then you must
1583 now do \`make distclean' in ${srcdir},
1584 and then run $0 again." >&2;}
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1593 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1594 if test -f $ac_dir/install-sh
; then
1596 ac_install_sh
="$ac_aux_dir/install-sh -c"
1598 elif test -f $ac_dir/install.sh
; then
1600 ac_install_sh
="$ac_aux_dir/install.sh -c"
1602 elif test -f $ac_dir/shtool
; then
1604 ac_install_sh
="$ac_aux_dir/shtool install -c"
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias
=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias
=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias
=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias
=$ac_cv_build_alias
1657 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 configuration
=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine
='' opsys
='' unported
=no
1700 case "${canonical}" in
1705 case "${canonical}" in
1706 alpha
*-*-freebsd*) machine
=alpha
;;
1707 i
[3456]86-*-freebsd*) machine
=intel386
;;
1714 if test -f /usr
/lib
/crti.o
; then
1716 cat >>confdefs.h
<<\_ACEOF
1722 case "${canonical}" in
1723 alpha
*-*-netbsd*) machine
=alpha
;;
1724 i
[3456]86-*-netbsd*) machine
=intel386
;;
1726 # This is somewhat bogus.
1727 machine
=hp9000s300
;;
1728 powerpc-apple-netbsd
*) machine
=macppc
;;
1729 mips-
*-netbsd*) machine
=pmax
;;
1730 mipsel-
*-netbsd*) machine
=pmax
;;
1731 mipseb-
*-netbsd*) machine
=pmax
;;
1732 ns32k-
*-netbsd*) machine
=ns32000
;;
1733 powerpc-
*-netbsd*) machine
=macppc
;;
1734 sparc
*-*-netbsd*) machine
=sparc
;;
1735 vax-
*-netbsd*) machine
=vax
;;
1736 arm-
*-netbsd*) machine
=arm
;;
1743 case "${canonical}" in
1744 alpha
*-*-openbsd*) machine
=alpha
;;
1745 i386-
*-openbsd*) machine
=intel386
;;
1746 m68k-
*-openbsd*) machine
=hp9000s300
;;
1747 mipsel-
*-openbsd*) machine
=pmax
;;
1748 ns32k-
*-openbsd*) machine
=ns32000
;;
1749 sparc-
*-openbsd*) machine
=sparc
;;
1750 vax-
*-openbsd*) machine
=vax
;;
1755 arm-acorn-riscix1.1
* )
1756 machine
=acorn opsys
=riscix1-1
1758 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine
=acorn opsys
=riscix12
1767 case "${canonical}" in
1768 i
[345]86-*-bsdi*) machine
=intel386
;;
1769 sparc-
*-bsdi*) machine
=sparc
;;
1770 powerpc-
*-bsdi*) machine
=macppc
;;
1772 case "${canonical}" in
1773 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1774 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1775 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1776 *-*-bsdi3* ) opsys
=bsdos3
;;
1777 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1788 machine
=alliant4 opsys
=bsd4-2
1791 machine
=alliant-2800 opsys
=bsd4-3
1794 ## Alpha (DEC) machines.
1796 machine
=alpha opsys
=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1799 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP
=/usr
/bin
/cpp
1805 case "${canonical}" in
1806 alpha
*-dec-osf[5-9]*)
1811 alpha
*-*-linux-gnu* )
1812 machine
=alpha opsys
=gnu-linux
1816 machine
=arm opsys
=gnu-linux
1821 machine
=macppc opsys
=gnu-linux
1826 machine
=altos opsys
=usg5-2
1831 machine
=amdahl opsys
=usg5-2-2
1834 ## Apollo, Domain/OS
1836 machine
=apollo opsys
=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1841 machine
=att3b opsys
=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1846 machine
=7300 opsys
=usg5-2-2
1851 machine
=ibmrs6000 opsys
=aix3-2
1856 machine
=dpx2 opsys
=usg5-3
1861 machine
=sps7 opsys
=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd
* )
1871 machine
=celerity opsys
=bsd4-2
1875 ## What operating systems does this chip run that Emacs has been
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1884 mips-compaq-nonstopux
* )
1885 machine
=nonstopux opsys
=nonstopux
1889 *-convex-bsd* |
*-convex-convexos* )
1890 machine
=convex opsys
=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP
="cc -E -P"
1896 i
[3456]86-cubix-sysv* )
1897 machine
=intel386 opsys
=usg5-3
1901 cydra
*-cydrome-sysv* )
1902 machine
=cydra5 opsys
=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1912 machine
=aviion opsys
=dgux4
1914 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine
=aviion opsys
=dgux5-4-3
1919 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1920 machine
=aviion opsys
=dgux5-4r2
1923 machine
=aviion opsys
=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i
[345]86-dg-dguxR4* )
1930 machine
=aviion-intel opsys
=dgux4
1934 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1935 machine
=pmax opsys
=bsd4-2
1937 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1938 machine
=pmax opsys
=bsd4-3
1941 machine
=pmax opsys
=ultrix4-3
1944 machine
=pmax opsys
=osf1
1946 mips-dec-mach_bsd4.3
* )
1947 machine
=pmax opsys
=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1952 machine
=delta opsys
=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1955 if test -s /etc
/167config
1956 then CC
="gnucc -m68040"
1957 else CC
="gnucc -m68881"
1960 if test -z "`type gcc | grep 'not found'`"
1966 m88k-motorola-sysv4
* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine
=delta88k opsys
=usg5-4-2
1973 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1974 machine
=delta88k opsys
=usg5-3
1979 machine
=dual opsys
=usg5-2
1981 m68
*-dual-uniplus* )
1982 machine
=dual opsys
=unipl5-2
1987 machine
=elxsi opsys
=usg5-2
1992 machine
=ns16000 opsys
=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
2000 machine
=gould opsys
=bsd4-2
2003 machine
=gould opsys
=bsd4-3
2006 machine
=gould-np1 opsys
=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2015 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2017 NON_GNU_CPP
="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2021 machine
=nh3000 opsys
=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix
)
2025 machine
=nh6000 opsys
=powerunix
2026 NON_GNU_CPP
="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1
-hitachi-hiuxmpp* )
2030 machine
=sr2k opsys
=hiuxmpp
2032 hppa1.1
-hitachi-hiuxwe2* )
2033 machine
=sr2k opsys
=hiuxwe2
2036 xps
*-honeywell-sysv* )
2037 machine
=xps100 opsys
=usg5-2
2040 ## HP 9000 series 200 or 300
2042 machine
=hp9000s300 opsys
=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2050 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2051 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2052 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2053 *) machine
=hp9000s300 opsys
=hpux
;;
2057 ## HP 9000 series 700 and 800, running HP/UX
2059 machine
=hp800 opsys
=hpux
2062 machine
=hp800 opsys
=hpux8
2064 hppa
*-hp-hpux9shr* )
2065 machine
=hp800 opsys
=hpux9shr
2068 machine
=hp800 opsys
=hpux9
2070 hppa
*-hp-hpux10.2
* )
2071 machine
=hp800 opsys
=hpux10-20
2074 machine
=hp800 opsys
=hpux10
2076 hppa
*-hp-hpux1[1-9]* )
2077 machine
=hp800 opsys
=hpux11
2080 hppa
*-*-linux-gnu* )
2081 machine
=hp800 opsys
=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2091 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2092 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2093 *) machine
=hp800 opsys
=hpux10
;;
2097 machine
=hp800 opsys
=nextstep
2102 machine
=orion opsys
=bsd4-2
2104 clipper-orion-bsd
* )
2105 machine
=orion105 opsys
=bsd4-2
2109 i
[3456]86-ibm-aix1.1
* )
2110 machine
=ibmps2-aix opsys
=usg5-2-2
2112 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2113 machine
=ibmps2-aix opsys
=usg5-3
2116 machine
=ibm370aix opsys
=usg5-3
2119 machine
=ibms390 opsys
=gnu-linux
2121 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2122 machine
=ibmrs6000 opsys
=aix3-1
2124 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2125 machine
=ibmrs6000 opsys
=aix3-2-5
2127 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2128 machine
=ibmrs6000 opsys
=aix4-1
2130 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2131 machine
=ibmrs6000 opsys
=aix4-2
2133 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2134 machine
=ibmrs6000 opsys
=aix4-2
2136 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2137 machine
=ibmrs6000 opsys
=aix4
2139 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2140 machine
=ibmrs6000 opsys
=aix4-1
2142 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2143 machine
=ibmrs6000 opsys
=aix3-2
2146 machine
=ibmrt opsys
=bsd4-3
2149 machine
=ibmrt opsys
=bsd4-2
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt opsys
=bsd4-2
2158 machine
=ibmrt opsys
=bsd4-3
2161 machine
=ibmrt opsys
=bsd4-3
2164 machine
=ibmrt-aix opsys
=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2169 machine
=isi-ov opsys
=bsd4-2
2172 machine
=isi-ov opsys
=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i
[3456]86-intsys-sysv* )
2177 machine
=is386 opsys
=usg5-2-2
2181 i
[3456]86-prime-sysv* )
2182 machine
=i386 opsys
=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i
[3456]86-sequent-bsd* )
2187 machine
=symmetry opsys
=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2192 machine
=sequent-ptx opsys
=ptx4
2193 NON_GNU_CPP
=/lib
/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i
[3456]86-sequent-ptx* )
2199 machine
=sequent-ptx opsys
=ptx
2200 NON_GNU_CPP
="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i
[3456]86-ncr-sysv4.3
)
2205 machine
=ncr386 opsys
=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i
[3456]86-ncr-sysv* )
2211 machine
=ncr386 opsys
=usg5-4-2
2214 ## Intel Paragon OSF/1
2216 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2221 machine
=i860 opsys
=usg5-4
2222 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc
*-*-linux-gnu* )
2228 machine
=macppc opsys
=gnu-linux
2231 ## Masscomp machines
2232 m68
*-masscomp-rtu* )
2233 machine
=masscomp opsys
=rtu
2236 ## Megatest machines
2237 m68
*-megatest-bsd* )
2238 machine
=mega68 opsys
=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4
* )
2257 machine
=mips4 opsys
=bsd4-3
2258 NON_GNU_CC
="cc -systype bsd43"
2259 NON_GNU_CPP
="cc -systype bsd43 -E"
2261 mips-mips-riscos5
* )
2262 machine
=mips4 opsys
=riscos5
2263 NON_GNU_CC
="cc -systype bsd43"
2264 NON_GNU_CPP
="cc -systype bsd43 -E"
2267 machine
=mips opsys
=bsd4-3
2270 machine
=mips opsys
=usg5-2-2
2274 m68
*-next-* | m68k-
*-nextstep* )
2275 machine
=m68k opsys
=nextstep
2278 ## The complete machine from National Semiconductor
2280 machine
=ns32000 opsys
=usg5-2
2284 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2285 machine
=tower32 opsys
=usg5-2-2
2287 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2288 machine
=tower32v3 opsys
=usg5-3
2293 machine
=ews4800 opsys
=ux4800
2296 ## Nixdorf Targon 31
2297 m68
*-nixdorf-sysv* )
2298 machine
=targon31 opsys
=usg5-2-2
2303 machine
=nu opsys
=usg5-2
2308 machine
=plexus opsys
=usg5-2
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd
* )
2315 machine
=pyramid opsys
=bsd4-2
2319 ns32k-sequent-bsd4.2
* )
2320 machine
=sequent opsys
=bsd4-2
2322 ns32k-sequent-bsd4.3
* )
2323 machine
=sequent opsys
=bsd4-3
2327 mips-siemens-sysv
* | mips-sni-sysv
*)
2328 machine
=mips-siemens opsys
=usg5-4
2329 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2330 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2336 machine
=irist opsys
=iris3-5
2338 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2339 machine
=irist opsys
=iris3-6
2343 machine
=iris4d opsys
=irix3-3
2346 machine
=iris4d opsys
=irix4-0
2349 machine
=iris4d opsys
=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2357 machine
=iris4d opsys
=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS
=-32
2364 mips-sgi-irix5.
[01]* )
2365 machine
=iris4d opsys
=irix5-0
2367 mips-sgi-irix5
* | mips-sgi-irix
* )
2368 machine
=iris4d opsys
=irix5-2
2373 machine
=news opsys
=bsd4-2
2376 machine
=news opsys
=bsd4-3
2378 m68
*-sony-newsos3* | m68
*-sony-news3*)
2379 machine
=news opsys
=bsd4-3
2381 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2382 machine
=news-risc opsys
=bsd4-3
2384 mips-sony-newsos6
* )
2385 machine
=news-r6 opsys
=newsos6
2388 machine
=news-risc opsys
=newsos5
2393 machine
=stride opsys
=usg5-2
2397 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2398 machine
=sparc opsys
=gnu-linux
2401 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2402 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2403 | rs6000-
*-solaris2*)
2404 case "${canonical}" in
2405 m68
*-sunos1* ) machine
=sun1
;;
2406 m68
*-sunos2* ) machine
=sun2
;;
2407 m68
* ) machine
=sun3
;;
2408 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2409 i
[3456]86-*-* ) machine
=intel386
;;
2410 powerpcle
* ) machine
=powerpcle
;;
2411 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2412 sparc
* ) machine
=sparc
;;
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2418 *-sunos4.0
* ) opsys
=sunos4-0
;;
2419 *-sunos4.1.
[3-9]*noshare
)
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2423 NON_GNU_CPP
=/usr
/lib
/cpp
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2429 NON_GNU_CPP
=/usr
/lib
/cpp
2431 *-sunos4* |
*-sunos )
2433 NON_GCC_TEST_OPTIONS
=-Bstatic
2434 GCC_TEST_OPTIONS
=-static
2436 *-sunos5.3
* |
*-solaris2.3
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2440 *-sunos5.4
* |
*-solaris2.4
* )
2442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2445 *-sunos5.5
* |
*-solaris2.5
* )
2447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2450 *-sunos5.6
* |
*-solaris2.6
* )
2452 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2455 *-sunos5* |
*-solaris* )
2457 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* |
*-sunos5* )
2464 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2474 machine
=sparc opsys
=nextstep
2478 m68
*-tadpole-sysv* )
2479 machine
=tad68k opsys
=usg5-3
2483 tahoe-tahoe-bsd4.2
* )
2484 machine
=tahoe opsys
=bsd4-2
2486 tahoe-tahoe-bsd4.3
* )
2487 machine
=tahoe opsys
=bsd4-3
2490 ## Tandem Integrity S2
2492 machine
=tandem-s2 opsys
=usg5-3
2496 m88k-tektronix-sysv3
* )
2497 machine
=tekxd88 opsys
=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd
* )
2502 machine
=ns16000 opsys
=bsd4-2
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68
*-tektronix-bsd* )
2507 machine
=tek4300 opsys
=bsd4-3
2511 ## We seem to have lost the machine-description file titan.h!
2513 machine
=titan opsys
=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68
*-unisys-uniplus* )
2518 machine
=ustation opsystem
=unipl5-2
2524 case "${canonical}" in
2525 *-bsd4.1
* ) opsys
=bsd4-1
;;
2526 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2527 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2528 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2529 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2530 *-vms* ) opsys
=vms
;;
2536 ns16k-whitechapel-
* )
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2544 machine
=wicat opsys
=usg5-2
2549 machine
=ia64 opsys
=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2555 case "${canonical}" in
2556 *-cygwin ) opsys
=cygwin
;;
2557 *-lynxos* ) opsys
=lynxos
;;
2558 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2559 *-isc2.2
* ) opsys
=isc2-2
;;
2560 *-isc4.0
* ) opsys
=isc4-0
;;
2561 *-isc4.
* ) opsys
=isc4-1
2562 GCC_TEST_OPTIONS
=-posix
2563 NON_GCC_TEST_OPTIONS
=-Xp
2565 *-isc* ) opsys
=isc3-0
;;
2566 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2567 *-esix* ) opsys
=esix
;;
2568 *-xenix* ) opsys
=xenix
;;
2569 *-linux-gnu* ) opsys
=gnu-linux
;;
2570 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-sco3.2v5
* ) opsys
=sco5
2572 NON_GNU_CPP
=/lib
/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS
=" "
2577 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2578 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2579 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2580 *-386bsd* ) opsys
=386bsd
;;
2581 *-nextstep* ) opsys
=nextstep
;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2586 ## m68k Linux-based GNU system
2588 machine
=m68k opsys
=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2593 machine
=mips opsys
=gnu-linux
2597 sparc-fujitsu-sysv4
* )
2598 machine
=sparc opsys
=uxpds
2599 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2604 f301-fujitsu-uxpv4.1
)
2605 machine
=f301 opsys
=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin
* )
2610 machine
=powermac opsys
=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP
="${CC-cc} -E -no-cpp-precomp"
2613 # Use fink packages if available.
2614 if test -d /sw
/include
&& test -d /sw
/lib
; then
2615 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2616 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-
*-linux-gnu* )
2623 machine
=amdx86-64 opsys
=gnu-linux
2631 ### If the code above didn't choose an operating system, just choose
2632 ### an operating system based on the configuration name. You really
2633 ### only want to use this when you have no idea what the right
2634 ### operating system is; if you know what operating systems a machine
2635 ### runs, it's cleaner to make it explicit in the case statement
2637 if test x
"${opsys}" = x
; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys
=gnu
;;
2640 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2641 *-bsd4.2
) opsys
=bsd4-2
;;
2642 *-bsd4.3
) opsys
=bsd4-3
;;
2643 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2644 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2645 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2646 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2647 *-sysv4.2uw
* ) opsys
=unixware
;;
2648 *-sysv5uw* ) opsys
=unixware
;;
2649 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2650 *-sysv4.1
* |
*-sysvr4.1
* )
2651 NON_GNU_CPP
=/usr
/lib
/cpp
2653 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2654 if [ x
$NON_GNU_CPP = x
]; then
2655 if [ -f /usr
/ccs
/lib
/cpp
]; then
2656 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2658 NON_GNU_CPP
=/lib
/cpp
2662 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2671 if test $unported = yes; then
2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2673 Check \`etc/MACHINES' for recognized configuration names." >&5
2674 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
2679 machfile
="m/${machine}.h"
2680 opsysfile
="s/${opsys}.h"
2683 #### Choose a compiler.
2684 test -n "$CC" && cc_specified
=yes
2686 # Save the value of CFLAGS that the user specified.
2687 SPECIFIED_CFLAGS
="$CFLAGS"
2690 "yes" ) CC
="gcc" GCC
=yes ;;
2691 "no" ) : ${CC=cc} ;;
2695 ac_cpp
='$CPP $CPPFLAGS'
2696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC
="$CC" # Let the user override the test.
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 for ac_exec_ext
in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2736 if test -z "$ac_cv_prog_CC"; then
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc
; ac_word
=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir
=.
2753 for ac_exec_ext
in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC
="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC
="$CC" # Let the user override the test.
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 for ac_exec_ext
in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$ac_cv_prog_CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc
; ac_word
=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC
="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847 echo "${ECHO_T}$ac_ct_CC" >&6
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc
; ac_word
=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC
="$CC" # Let the user override the test.
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_exec_ext
in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected
=yes
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy
$ac_cv_prog_CC
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2898 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2904 if test -n "$CC"; then
2905 echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC
="$CC" # Let the user override the test.
2927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir
=.
2932 for ac_exec_ext
in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2952 test -n "$CC" && break
2955 if test -z "$CC"; then
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy
$ac_prog; ac_word
=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir
=.
2974 for ac_exec_ext
in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC
="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 test -n "$ac_ct_CC" && break
3003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3009 # Provide some information about the compiler.
3010 echo "$as_me:$LINENO:" \
3011 "checking for C compiler version" >&5
3012 ac_compiler
=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3014 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3019 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3024 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3029 cat >conftest.
$ac_ext <<_ACEOF
3032 cat confdefs.h
>>conftest.
$ac_ext
3033 cat >>conftest.
$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 ac_clean_files_save
=$ac_clean_files
3045 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3049 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3051 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3053 (eval $ac_link_default) 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3061 # Be careful to initialize this variable, since it used to be cached.
3062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3064 # b.out is created by i960 compilers.
3065 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3067 test -f "$ac_file" ||
continue
3069 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3072 # This is the source file.
3075 # We found the default executable, but exeext='' is most
3079 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3100 ac_exeext
=$ac_cv_exeext
3101 echo "$as_me:$LINENO: result: $ac_file" >&5
3102 echo "${ECHO_T}$ac_file" >&6
3104 # Check the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try
='./$ac_file'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3119 if test "$cross_compiling" = maybe
; then
3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3136 ac_clean_files
=$ac_clean_files_save
3137 # Check the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3142 echo "${ECHO_T}$cross_compiling" >&6
3144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3155 for ac_file
in conftest.exe conftest conftest.
*; do
3156 test -f "$ac_file" ||
continue
3158 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3159 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest
$ac_cv_exeext
3174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6
3177 rm -f conftest.
$ac_ext
3178 EXEEXT
=$ac_cv_exeext
3180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.
$ac_ext <<_ACEOF
3188 cat confdefs.h
>>conftest.
$ac_ext
3189 cat >>conftest.
$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3208 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3209 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.
$ac_ext >&5
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3224 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 echo "${ECHO_T}$ac_cv_objext" >&6
3228 OBJEXT
=$ac_cv_objext
3230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 cat >conftest.
$ac_ext <<_ACEOF
3238 cat confdefs.h
>>conftest.
$ac_ext
3239 cat >>conftest.
$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3253 rm -f conftest.
$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3257 grep -v '^ *+' conftest.er1
>conftest.err
3259 cat conftest.err
>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try
='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try
='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.
$ac_ext >&5
3282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3283 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3289 ac_test_CFLAGS
=${CFLAGS+set}
3290 ac_save_CFLAGS
=$CFLAGS
3292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3312 rm -f conftest.
$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1
>conftest.err
3318 cat conftest.err
>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try
='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try
='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.
$ac_ext >&5
3341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS
=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3354 if test "$GCC" = yes; then
3360 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 ac_cv_prog_cc_stdc
=no
3367 cat >conftest.
$ac_ext <<_ACEOF
3370 cat confdefs.h
>>conftest.
$ac_ext
3371 cat >>conftest.
$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3391 s = g (p, va_arg (v,int));
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 # Don't try gcc -ansi; that turns off useful extensions and
3420 # breaks some systems' header files.
3421 # AIX -qlanglvl=ansi
3422 # Ultrix and OSF/1 -std1
3423 # HP-UX 10.20 and later -Ae
3424 # HP-UX older versions -Aa -D_HPUX_SOURCE
3425 # SVR4 -Xc -D__EXTENSIONS__
3426 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 CC
="$ac_save_CC $ac_arg"
3429 rm -f conftest.
$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3433 grep -v '^ *+' conftest.er1
>conftest.err
3435 cat conftest.err
>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try
='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try
='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc
=$ac_arg
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.
$ac_ext >&5
3458 rm -f conftest.err conftest.
$ac_objext
3460 rm -f conftest.
$ac_ext conftest.
$ac_objext
3465 case "x$ac_cv_prog_cc_stdc" in
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468 echo "${ECHO_T}none needed" >&6 ;;
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3475 # Some people use a C++ compiler to compile C. Since we use `exit',
3476 # in C++ we need to declare it. In case someone uses the same compiler
3477 # for both compiling C and C++ we need to have the C++ compiler decide
3478 # the declaration of exit, since it's the most demanding environment.
3479 cat >conftest.
$ac_ext <<_ACEOF
3484 rm -f conftest.
$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1
>conftest.err
3490 cat conftest.err
>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try
='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try
='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 for ac_declaration
in \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3514 cat >conftest.
$ac_ext <<_ACEOF
3517 cat confdefs.h
>>conftest.
$ac_ext
3518 cat >>conftest.
$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3530 rm -f conftest.
$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1
>conftest.err
3536 cat conftest.err
>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try
='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try
='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.
$ac_ext >&5
3559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3560 cat >conftest.
$ac_ext <<_ACEOF
3563 cat confdefs.h
>>conftest.
$ac_ext
3564 cat >>conftest.
$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3575 rm -f conftest.
$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3579 grep -v '^ *+' conftest.er1
>conftest.err
3581 cat conftest.err
>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try
='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try
='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.
$ac_ext >&5
3603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.
$ac_ext >&5
3617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 ac_cpp
='$CPP $CPPFLAGS'
3620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3630 #### Some systems specify a CPP to use unless we are using GCC.
3631 #### Now that we know whether we are using GCC, we can decide whether
3632 #### to use that one.
3633 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3638 #### Some systems specify a CC to use unless we are using GCC.
3639 #### Now that we know whether we are using GCC, we can decide whether
3640 #### to use that one.
3641 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3642 test x
$cc_specified != xyes
3647 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3649 CC
="$CC $GCC_TEST_OPTIONS"
3652 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3654 CC
="$CC $NON_GCC_TEST_OPTIONS"
3657 #### Some other nice autoconf tests.
3659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3662 if test "$LN_S" = "ln -s"; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3667 echo "${ECHO_T}no, using $LN_S" >&6
3671 ac_cpp
='$CPP $CPPFLAGS'
3672 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3675 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3676 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3677 # On Suns, sometimes $CPP names a directory.
3678 if test -n "$CPP" && test -d "$CPP"; then
3681 if test -z "$CPP"; then
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 # Double quotes because CPP needs to be expanded
3686 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689 for ac_c_preproc_warn_flag
in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 # include <limits.h>
3706 # include <assert.h>
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1
>conftest.err
3715 cat conftest.err
>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev
/null
; then
3718 if test -s conftest.err
; then
3719 ac_cpp_err
=$ac_c_preproc_warn_flag
3720 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3727 if test -z "$ac_cpp_err"; then
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.
$ac_ext >&5
3733 # Broken: fails on valid input.
3736 rm -f conftest.err conftest.
$ac_ext
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.
$ac_ext <<_ACEOF
3743 cat confdefs.h
>>conftest.
$ac_ext
3744 cat >>conftest.
$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1
>conftest.err
3753 cat conftest.err
>&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev
/null
; then
3756 if test -s conftest.err
; then
3757 ac_cpp_err
=$ac_c_preproc_warn_flag
3758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.
$ac_ext >&5
3772 # Passes both tests.
3776 rm -f conftest.err conftest.
$ac_ext
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.
$ac_ext
3781 if $ac_preproc_ok; then
3793 echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6
3796 for ac_c_preproc_warn_flag
in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.
$ac_ext <<_ACEOF
3807 cat confdefs.h
>>conftest.
$ac_ext
3808 cat >>conftest.
$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 # include <limits.h>
3813 # include <assert.h>
3817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3820 grep -v '^ *+' conftest.er1
>conftest.err
3822 cat conftest.err
>&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } >/dev
/null
; then
3825 if test -s conftest.err
; then
3826 ac_cpp_err
=$ac_c_preproc_warn_flag
3827 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3834 if test -z "$ac_cpp_err"; then
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.
$ac_ext >&5
3840 # Broken: fails on valid input.
3843 rm -f conftest.err conftest.
$ac_ext
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3858 grep -v '^ *+' conftest.er1
>conftest.err
3860 cat conftest.err
>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev
/null
; then
3863 if test -s conftest.err
; then
3864 ac_cpp_err
=$ac_c_preproc_warn_flag
3865 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3872 if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Passes both tests.
3883 rm -f conftest.err conftest.
$ac_ext
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.
$ac_ext
3888 if $ac_preproc_ok; then
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&5
3893 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&2;}
3895 { (exit 1); exit 1; }; }
3899 ac_cpp
='$CPP $CPPFLAGS'
3900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3904 # Find a good install program. We prefer a C program (faster),
3905 # so one script is as good as another. But avoid the broken or
3906 # incompatible versions:
3907 # SysV /etc/install, /usr/sbin/install
3908 # SunOS /usr/etc/install
3909 # IRIX /sbin/install
3911 # AmigaOS /C/install, which installs bootblocks on floppy discs
3912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3915 # OS/2's system install, which has a completely different semantic
3916 # ./install, which can be erroneously created by make from ./install.sh.
3917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3919 if test -z "$INSTALL"; then
3920 if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir
=.
3928 # Account for people who put trailing slashes in PATH elements.
3930 .
/ | .
// |
/cC
/* | \
3931 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3932 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3938 for ac_prog
in ginstall scoinst
install; do
3939 for ac_exec_ext
in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3945 elif test $ac_prog = install &&
3946 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3950 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3962 if test "${ac_cv_path_install+set}" = set; then
3963 INSTALL
=$ac_cv_path_install
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
3969 INSTALL
=$ac_install_sh
3972 echo "$as_me:$LINENO: result: $INSTALL" >&5
3973 echo "${ECHO_T}$INSTALL" >&6
3975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976 # It thinks the first close brace ends the variable substitution.
3977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3981 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3983 if test "x$RANLIB" = x
; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 for ac_exec_ext
in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 RANLIB
=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
4014 echo "${ECHO_T}$RANLIB" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB
=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024 set dummy ranlib
; ac_word
=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir
=.
4038 for ac_exec_ext
in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4050 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4051 if test -n "$ac_ct_RANLIB"; then
4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4053 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 RANLIB
=$ac_ct_RANLIB
4061 RANLIB
="$ac_cv_prog_RANLIB"
4065 # Extract the first word of "install-info", so it can be a program name with args.
4066 set dummy install-info
; ac_word
=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 case $INSTALL_INFO in
4074 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir
=.
4082 for ac_exec_ext
in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4096 if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098 echo "${ECHO_T}$INSTALL_INFO" >&6
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4104 # Extract the first word of "install-info", so it can be a program name with args.
4105 set dummy install-info
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 case $INSTALL_INFO in
4113 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4117 for as_dir
in /usr
/sbin
4120 test -z "$as_dir" && as_dir
=.
4121 for ac_exec_ext
in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4135 if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137 echo "${ECHO_T}$INSTALL_INFO" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "install-info", so it can be a program name with args.
4144 set dummy install-info
; ac_word
=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 case $INSTALL_INFO in
4152 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir
=.
4160 for ac_exec_ext
in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4173 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4175 if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177 echo "${ECHO_T}$INSTALL_INFO" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4185 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4187 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4190 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4192 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4196 late_LDFLAGS
=$LDFLAGS
4197 if test "$GCC" = yes; then
4198 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4200 LDFLAGS
="$LDFLAGS -znocombreloc"
4203 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4204 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4206 cat >conftest.
$ac_ext <<_ACEOF
4209 rm -f conftest.
$ac_objext conftest
$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4213 grep -v '^ *+' conftest.er1
>conftest.err
4215 cat conftest.err
>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try
='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try
='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.
$ac_ext >&5
4237 LDFLAGS
=$late_LDFLAGS
4238 echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4241 rm -f conftest.err conftest.
$ac_objext \
4242 conftest
$ac_exeext conftest.
$ac_ext
4245 echo "$as_me:$LINENO: checking for egrep" >&5
4246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247 if test "${ac_cv_prog_egrep+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4251 then ac_cv_prog_egrep
='grep -E'
4252 else ac_cv_prog_egrep
='egrep'
4255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP
=$ac_cv_prog_egrep
4261 echo "$as_me:$LINENO: checking for AIX" >&5
4262 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4263 cat >conftest.
$ac_ext <<_ACEOF
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "yes" >/dev
/null
2>&1; then
4276 echo "$as_me:$LINENO: result: yes" >&5
4277 echo "${ECHO_T}yes" >&6
4278 cat >>confdefs.h
<<\_ACEOF
4279 #define _ALL_SOURCE 1
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4291 #### Extract some information from the operating system and machine files.
4293 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4294 - which libraries the lib-src programs will want, and
4295 - whether the GNU malloc routines are usable..." >&5
4296 echo "$as_me: checking the machine- and system-dependent files to find out
4297 - which libraries the lib-src programs will want, and
4298 - whether the GNU malloc routines are usable..." >&6;}
4300 ### First figure out CFLAGS (which we use for running the compiler here)
4301 ### and REAL_CFLAGS (which we use for real compilation).
4302 ### The two are the same except on a few systems, where they are made
4303 ### different to work around various lossages. For example,
4304 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4305 ### as implying static linking.
4307 ### If the CFLAGS env var is specified, we use that value
4308 ### instead of the default.
4310 ### It's not important that this name contain the PID; you can't run
4311 ### two configures in the same directory and have anything work
4313 tempcname
="conftest.c"
4316 #include "'${srcdir}'/src/'${opsysfile}'"
4317 #include "'${srcdir}'/src/'${machfile}'"
4318 #ifndef LIBS_MACHINE
4319 #define LIBS_MACHINE
4324 #ifndef C_SWITCH_SYSTEM
4325 #define C_SWITCH_SYSTEM
4327 #ifndef C_SWITCH_MACHINE
4328 #define C_SWITCH_MACHINE
4330 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4331 configure___ c_switch_system=C_SWITCH_SYSTEM
4332 configure___ c_switch_machine=C_SWITCH_MACHINE
4335 #define LIB_X11_LIB -lX11
4338 #ifndef LIBX11_MACHINE
4339 #define LIBX11_MACHINE
4342 #ifndef LIBX11_SYSTEM
4343 #define LIBX11_SYSTEM
4345 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4348 configure___ unexec=UNEXEC
4350 configure___ unexec=unexec.o
4353 #ifdef SYSTEM_MALLOC
4354 configure___ system_malloc=yes
4356 configure___ system_malloc=no
4359 #ifdef USE_MMAP_FOR_BUFFERS
4360 configure___ use_mmap_for_buffers=yes
4362 configure___ use_mmap_for_buffers=no
4365 #ifndef C_DEBUG_SWITCH
4366 #define C_DEBUG_SWITCH -g
4369 #ifndef C_OPTIMIZE_SWITCH
4371 #define C_OPTIMIZE_SWITCH -O2
4373 #define C_OPTIMIZE_SWITCH -O
4377 #ifndef LD_SWITCH_MACHINE
4378 #define LD_SWITCH_MACHINE
4381 #ifndef LD_SWITCH_SYSTEM
4382 #define LD_SWITCH_SYSTEM
4385 #ifndef LD_SWITCH_X_SITE_AUX
4386 #define LD_SWITCH_X_SITE_AUX
4389 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4390 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4392 #ifdef THIS_IS_CONFIGURE
4394 /* Get the CFLAGS for tests in configure. */
4396 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4398 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4401 #else /* not THIS_IS_CONFIGURE */
4403 /* Get the CFLAGS for real compilation. */
4405 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4407 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4410 #endif /* not THIS_IS_CONFIGURE */
4413 # The value of CPP is a quoted variable reference, so we need to do this
4414 # to get its actual value...
4415 CPP
=`eval "echo $CPP"`
4416 eval `${CPP} -Isrc ${tempcname} \
4417 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4418 if test "x$SPECIFIED_CFLAGS" = x
; then
4419 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4420 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4422 REAL_CFLAGS
="$CFLAGS"
4426 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4428 ### Make sure subsequent tests use flags consistent with the build flags.
4430 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4431 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4433 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4439 cat >>confdefs.h
<<\_ACEOF
4440 #define _GNU_SOURCE 1
4445 # Check whether --enable-largefile or --disable-largefile was given.
4446 if test "${enable_largefile+set}" = set; then
4447 enableval
="$enable_largefile"
4450 if test "$enable_largefile" != no
; then
4452 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4453 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4454 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 ac_cv_sys_largefile_CC
=no
4458 if test "$GCC" != yes; then
4461 # IRIX 6.2 and later do not support large files by default,
4462 # so use the C compiler's -n32 option if that helps.
4463 cat >conftest.
$ac_ext <<_ACEOF
4466 cat confdefs.h
>>conftest.
$ac_ext
4467 cat >>conftest.
$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <sys/types.h>
4470 /* Check that off_t can represent 2**63 - 1 correctly.
4471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4472 since some C++ compilers masquerading as C compilers
4473 incorrectly reject 9223372036854775807. */
4474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4476 && LARGE_OFF_T % 2147483647 == 1)
4486 rm -f conftest.
$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1
>conftest.err
4492 cat conftest.err
>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try
='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try
='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.
$ac_ext >&5
4514 rm -f conftest.err conftest.
$ac_objext
4516 rm -f conftest.
$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4520 grep -v '^ *+' conftest.er1
>conftest.err
4522 cat conftest.err
>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try
='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try
='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_sys_largefile_CC
=' -n32'; break
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.
$ac_ext >&5
4544 rm -f conftest.err conftest.
$ac_objext
4548 rm -f conftest.
$ac_ext
4551 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4552 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4553 if test "$ac_cv_sys_largefile_CC" != no
; then
4554 CC
=$CC$ac_cv_sys_largefile_CC
4557 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4558 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4559 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 ac_cv_sys_file_offset_bits
=no
4564 cat >conftest.
$ac_ext <<_ACEOF
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 /* Check that off_t can represent 2**63 - 1 correctly.
4572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4573 since some C++ compilers masquerading as C compilers
4574 incorrectly reject 9223372036854775807. */
4575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4577 && LARGE_OFF_T % 2147483647 == 1)
4587 rm -f conftest.
$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1
>conftest.err
4593 cat conftest.err
>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try
='test -z "$ac_c_werror_flag"
4597 || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try
='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.
$ac_ext >&5
4615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4616 cat >conftest.
$ac_ext <<_ACEOF
4619 cat confdefs.h
>>conftest.
$ac_ext
4620 cat >>conftest.
$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #define _FILE_OFFSET_BITS 64
4623 #include <sys/types.h>
4624 /* Check that off_t can represent 2**63 - 1 correctly.
4625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4626 since some C++ compilers masquerading as C compilers
4627 incorrectly reject 9223372036854775807. */
4628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4630 && LARGE_OFF_T % 2147483647 == 1)
4640 rm -f conftest.
$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try
='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try
='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_sys_file_offset_bits
=64; break
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4674 if test "$ac_cv_sys_file_offset_bits" != no
; then
4676 cat >>confdefs.h
<<_ACEOF
4677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4682 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4683 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4684 if test "${ac_cv_sys_large_files+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 ac_cv_sys_large_files
=no
4689 cat >conftest.
$ac_ext <<_ACEOF
4692 cat confdefs.h
>>conftest.
$ac_ext
4693 cat >>conftest.
$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4712 rm -f conftest.
$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1
>conftest.err
4718 cat conftest.err
>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try
='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try
='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.
$ac_ext >&5
4740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4741 cat >conftest.
$ac_ext <<_ACEOF
4744 cat confdefs.h
>>conftest.
$ac_ext
4745 cat >>conftest.
$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #define _LARGE_FILES 1
4748 #include <sys/types.h>
4749 /* Check that off_t can represent 2**63 - 1 correctly.
4750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4751 since some C++ compilers masquerading as C compilers
4752 incorrectly reject 9223372036854775807. */
4753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4755 && LARGE_OFF_T % 2147483647 == 1)
4765 rm -f conftest.
$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1
>conftest.err
4771 cat conftest.err
>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try
='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try
='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_sys_large_files
=1; break
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.
$ac_ext >&5
4793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4797 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4798 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4799 if test "$ac_cv_sys_large_files" != no
; then
4801 cat >>confdefs.h
<<_ACEOF
4802 #define _LARGE_FILES $ac_cv_sys_large_files
4810 if test "${with_sound}" != "no"; then
4811 # Sound support for GNU/Linux and the free BSDs.
4812 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4814 if test "${ac_cv_header_stdc+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.
$ac_ext <<_ACEOF
4820 cat confdefs.h
>>conftest.
$ac_ext
4821 cat >>conftest.
$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4836 rm -f conftest.
$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4840 grep -v '^ *+' conftest.er1
>conftest.err
4842 cat conftest.err
>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try
='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try
='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_header_stdc
=yes
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4863 ac_cv_header_stdc
=no
4865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 if test $ac_cv_header_stdc = yes; then
4868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "memchr" >/dev
/null
2>&1; then
4882 ac_cv_header_stdc
=no
4888 if test $ac_cv_header_stdc = yes; then
4889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4890 cat >conftest.
$ac_ext <<_ACEOF
4893 cat confdefs.h
>>conftest.
$ac_ext
4894 cat >>conftest.
$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 $EGREP "free" >/dev
/null
2>&1; then
4903 ac_cv_header_stdc
=no
4909 if test $ac_cv_header_stdc = yes; then
4910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4911 if test "$cross_compiling" = yes; then
4914 cat >conftest.
$ac_ext <<_ACEOF
4917 cat confdefs.h
>>conftest.
$ac_ext
4918 cat >>conftest.
$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 #if ((' ' & 0x0FF) == 0x020)
4922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4925 # define ISLOWER(c) \
4926 (('a' <= (c) && (c) <= 'i') \
4927 || ('j' <= (c) && (c) <= 'r') \
4928 || ('s' <= (c) && (c) <= 'z'))
4929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4937 for (i = 0; i < 256; i++)
4938 if (XOR (islower (i), ISLOWER (i))
4939 || toupper (i) != TOUPPER (i))
4944 rm -f conftest
$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 echo "$as_me: program exited with status $ac_status" >&5
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.
$ac_ext >&5
4962 ac_cv_header_stdc
=no
4964 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4968 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4969 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4970 if test $ac_cv_header_stdc = yes; then
4972 cat >>confdefs.h
<<\_ACEOF
4973 #define STDC_HEADERS 1
4978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4988 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4989 inttypes.h stdint.h unistd.h
4991 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992 echo "$as_me:$LINENO: checking for $ac_header" >&5
4993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 cat >conftest.
$ac_ext <<_ACEOF
5000 cat confdefs.h
>>conftest.
$ac_ext
5001 cat >>conftest.
$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 $ac_includes_default
5005 #include <$ac_header>
5007 rm -f conftest.
$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5011 grep -v '^ *+' conftest.er1
>conftest.err
5013 cat conftest.err
>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try
='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try
='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 eval "$as_ac_Header=yes"
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5034 eval "$as_ac_Header=no"
5036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5041 cat >>confdefs.h
<<_ACEOF
5042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5053 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5055 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057 echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5065 # Is the header compilable?
5066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5068 cat >conftest.
$ac_ext <<_ACEOF
5071 cat confdefs.h
>>conftest.
$ac_ext
5072 cat >>conftest.
$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5075 #include <$ac_header>
5077 rm -f conftest.
$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1
>conftest.err
5083 cat conftest.err
>&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try
='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try
='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_header_compiler
=yes
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.
$ac_ext >&5
5104 ac_header_compiler
=no
5106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108 echo "${ECHO_T}$ac_header_compiler" >&6
5110 # Is the header present?
5111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113 cat >conftest.
$ac_ext <<_ACEOF
5116 cat confdefs.h
>>conftest.
$ac_ext
5117 cat >>conftest.
$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <$ac_header>
5121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5124 grep -v '^ *+' conftest.er1
>conftest.err
5126 cat conftest.err
>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev
/null
; then
5129 if test -s conftest.err
; then
5130 ac_cpp_err
=$ac_c_preproc_warn_flag
5131 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5138 if test -z "$ac_cpp_err"; then
5139 ac_header_preproc
=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5144 ac_header_preproc
=no
5146 rm -f conftest.err conftest.
$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5148 echo "${ECHO_T}$ac_header_preproc" >&6
5150 # So? What about this header?
5151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5157 ac_header_preproc
=yes
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5174 ## ------------------------------------------ ##
5175 ## Report this to the AC_PACKAGE_NAME lists. ##
5176 ## ------------------------------------------ ##
5179 sed "s/^/$as_me: WARNING: /" >&2
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 eval "$as_ac_Header=\$ac_header_preproc"
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194 cat >>confdefs.h
<<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5202 # Emulation library used on NetBSD.
5203 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5204 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5205 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 ac_check_lib_save_LIBS
=$LIBS
5209 LIBS
="-lossaudio $LIBS"
5210 cat >conftest.
$ac_ext <<_ACEOF
5213 cat confdefs.h
>>conftest.
$ac_ext
5214 cat >>conftest.
$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5217 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5232 rm -f conftest.
$ac_objext conftest
$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1
>conftest.err
5238 cat conftest.err
>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try
='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_lib_ossaudio__oss_ioctl
=yes
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.
$ac_ext >&5
5259 ac_cv_lib_ossaudio__oss_ioctl
=no
5261 rm -f conftest.err conftest.
$ac_objext \
5262 conftest
$ac_exeext conftest.
$ac_ext
5263 LIBS
=$ac_check_lib_save_LIBS
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5266 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5267 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5301 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5302 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5303 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5304 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5307 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309 echo "$as_me:$LINENO: checking for $ac_header" >&5
5310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5317 # Is the header compilable?
5318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5320 cat >conftest.
$ac_ext <<_ACEOF
5323 cat confdefs.h
>>conftest.
$ac_ext
5324 cat >>conftest.
$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5327 #include <$ac_header>
5329 rm -f conftest.
$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1
>conftest.err
5335 cat conftest.err
>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try
='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try
='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_header_compiler
=yes
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.
$ac_ext >&5
5356 ac_header_compiler
=no
5358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5360 echo "${ECHO_T}$ac_header_compiler" >&6
5362 # Is the header present?
5363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5365 cat >conftest.
$ac_ext <<_ACEOF
5368 cat confdefs.h
>>conftest.
$ac_ext
5369 cat >>conftest.
$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <$ac_header>
5373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5374 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5376 grep -v '^ *+' conftest.er1
>conftest.err
5378 cat conftest.err
>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } >/dev
/null
; then
5381 if test -s conftest.err
; then
5382 ac_cpp_err
=$ac_c_preproc_warn_flag
5383 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5390 if test -z "$ac_cpp_err"; then
5391 ac_header_preproc
=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 ac_header_preproc
=no
5398 rm -f conftest.err conftest.
$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5400 echo "${ECHO_T}$ac_header_preproc" >&6
5402 # So? What about this header?
5403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5409 ac_header_preproc
=yes
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5426 ## ------------------------------------------ ##
5427 ## Report this to the AC_PACKAGE_NAME lists. ##
5428 ## ------------------------------------------ ##
5431 sed "s/^/$as_me: WARNING: /" >&2
5434 echo "$as_me:$LINENO: checking for $ac_header" >&5
5435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 eval "$as_ac_Header=\$ac_header_preproc"
5441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5446 cat >>confdefs.h
<<_ACEOF
5447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5456 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5457 cat >conftest.
$ac_ext <<_ACEOF
5460 cat confdefs.h
>>conftest.
$ac_ext
5461 cat >>conftest.
$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/personality.h>
5467 personality (PER_LINUX32)
5472 rm -f conftest.
$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>conftest.er1
5476 grep -v '^ *+' conftest.er1
>conftest.err
5478 cat conftest.err
>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try
='test -z "$ac_c_werror_flag"
5482 || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try
='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 emacs_cv_personality_linux32
=yes
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.
$ac_ext >&5
5499 emacs_cv_personality_linux32
=no
5501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5502 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5503 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5505 if test $emacs_cv_personality_linux32 = yes; then
5507 cat >>confdefs.h
<<\_ACEOF
5508 #define HAVE_PERSONALITY_LINUX32 1
5514 for ac_header
in term.h
5516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 cat >conftest.
$ac_ext <<_ACEOF
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #include <$ac_header>
5530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5531 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1
>conftest.err
5535 cat conftest.err
>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } >/dev
/null
; then
5538 if test -s conftest.err
; then
5539 ac_cpp_err
=$ac_c_preproc_warn_flag
5540 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5547 if test -z "$ac_cpp_err"; then
5548 eval "$as_ac_Header=yes"
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.
$ac_ext >&5
5553 eval "$as_ac_Header=no"
5555 rm -f conftest.err conftest.
$ac_ext
5557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 cat >>confdefs.h
<<_ACEOF
5561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5570 if test "${ac_cv_header_stdc+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 cat >conftest.
$ac_ext <<_ACEOF
5576 cat confdefs.h
>>conftest.
$ac_ext
5577 cat >>conftest.
$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5592 rm -f conftest.
$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>conftest.er1
5596 grep -v '^ *+' conftest.er1
>conftest.err
5598 cat conftest.err
>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try
='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try
='test -s conftest.$ac_objext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_header_stdc
=yes
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.
$ac_ext >&5
5619 ac_cv_header_stdc
=no
5621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 if test $ac_cv_header_stdc = yes; then
5624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5625 cat >conftest.
$ac_ext <<_ACEOF
5628 cat confdefs.h
>>conftest.
$ac_ext
5629 cat >>conftest.
$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5635 $EGREP "memchr" >/dev
/null
2>&1; then
5638 ac_cv_header_stdc
=no
5644 if test $ac_cv_header_stdc = yes; then
5645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5646 cat >conftest.
$ac_ext <<_ACEOF
5649 cat confdefs.h
>>conftest.
$ac_ext
5650 cat >>conftest.
$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "free" >/dev
/null
2>&1; then
5659 ac_cv_header_stdc
=no
5665 if test $ac_cv_header_stdc = yes; then
5666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5667 if test "$cross_compiling" = yes; then
5670 cat >conftest.
$ac_ext <<_ACEOF
5673 cat confdefs.h
>>conftest.
$ac_ext
5674 cat >>conftest.
$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5677 #if ((' ' & 0x0FF) == 0x020)
5678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5681 # define ISLOWER(c) \
5682 (('a' <= (c) && (c) <= 'i') \
5683 || ('j' <= (c) && (c) <= 'r') \
5684 || ('s' <= (c) && (c) <= 'z'))
5685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5693 for (i = 0; i < 256; i++)
5694 if (XOR (islower (i), ISLOWER (i))
5695 || toupper (i) != TOUPPER (i))
5700 rm -f conftest
$ac_exeext
5701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702 (eval $ac_link) 2>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5713 echo "$as_me: program exited with status $ac_status" >&5
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.
$ac_ext >&5
5718 ac_cv_header_stdc
=no
5720 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5725 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5726 if test $ac_cv_header_stdc = yes; then
5728 cat >>confdefs.h
<<\_ACEOF
5729 #define STDC_HEADERS 1
5734 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5735 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5736 if test "${ac_cv_header_time+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 cat >conftest.
$ac_ext <<_ACEOF
5742 cat confdefs.h
>>conftest.
$ac_ext
5743 cat >>conftest.
$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 #include <sys/time.h>
5752 if ((struct tm *) 0)
5758 rm -f conftest.
$ac_objext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5762 grep -v '^ *+' conftest.er1
>conftest.err
5764 cat conftest.err
>&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try
='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try
='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_header_time
=yes
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.
$ac_ext >&5
5785 ac_cv_header_time
=no
5787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5790 echo "${ECHO_T}$ac_cv_header_time" >&6
5791 if test $ac_cv_header_time = yes; then
5793 cat >>confdefs.h
<<\_ACEOF
5794 #define TIME_WITH_SYS_TIME 1
5799 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5800 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5801 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.
$ac_ext <<_ACEOF
5807 cat confdefs.h
>>conftest.
$ac_ext
5808 cat >>conftest.
$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5815 char *p = (char *) sys_siglist;
5822 rm -f conftest.
$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5826 grep -v '^ *+' conftest.er1
>conftest.err
5828 cat conftest.err
>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try
='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try
='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_have_decl_sys_siglist
=yes
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.
$ac_ext >&5
5849 ac_cv_have_decl_sys_siglist
=no
5851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5854 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5855 if test $ac_cv_have_decl_sys_siglist = yes; then
5857 cat >>confdefs.h
<<_ACEOF
5858 #define HAVE_DECL_SYS_SIGLIST 1
5863 cat >>confdefs.h
<<_ACEOF
5864 #define HAVE_DECL_SYS_SIGLIST 0
5871 if test $ac_cv_have_decl_sys_siglist != yes; then
5872 # For Tru64, at least:
5873 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5874 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5875 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 cat >conftest.
$ac_ext <<_ACEOF
5881 cat confdefs.h
>>conftest.
$ac_ext
5882 cat >>conftest.
$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 $ac_includes_default
5888 #ifndef __sys_siglist
5889 char *p = (char *) __sys_siglist;
5896 rm -f conftest.
$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5900 grep -v '^ *+' conftest.er1
>conftest.err
5902 cat conftest.err
>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try
='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try
='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_have_decl___sys_siglist
=yes
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.
$ac_ext >&5
5923 ac_cv_have_decl___sys_siglist
=no
5925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5927 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5928 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5929 if test $ac_cv_have_decl___sys_siglist = yes; then
5931 cat >>confdefs.h
<<_ACEOF
5932 #define HAVE_DECL___SYS_SIGLIST 1
5937 cat >>confdefs.h
<<_ACEOF
5938 #define HAVE_DECL___SYS_SIGLIST 0
5945 if test $ac_cv_have_decl___sys_siglist = yes; then
5947 cat >>confdefs.h
<<\_ACEOF
5948 #define sys_siglist __sys_siglist
5953 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5954 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5955 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 cat >conftest.
$ac_ext <<_ACEOF
5961 cat confdefs.h
>>conftest.
$ac_ext
5962 cat >>conftest.
$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <sys/types.h>
5965 #include <sys/wait.h>
5967 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5978 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5983 rm -f conftest.
$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5987 grep -v '^ *+' conftest.er1
>conftest.err
5989 cat conftest.err
>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try
='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try
='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_header_sys_wait_h
=yes
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.
$ac_ext >&5
6010 ac_cv_header_sys_wait_h
=no
6012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6014 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6015 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6016 if test $ac_cv_header_sys_wait_h = yes; then
6018 cat >>confdefs.h
<<\_ACEOF
6019 #define HAVE_SYS_WAIT_H 1
6025 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6026 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6027 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 cat >conftest.
$ac_ext <<_ACEOF
6033 cat confdefs.h
>>conftest.
$ac_ext
6034 cat >>conftest.
$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 #ifdef TIME_WITH_SYS_TIME
6037 #include <sys/time.h>
6040 #ifdef HAVE_SYS_TIME_H
6041 #include <sys/time.h>
6052 static struct utimbuf x; x.actime = x.modtime;
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try
='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 emacs_cv_struct_utimbuf
=yes
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6084 emacs_cv_struct_utimbuf
=no
6086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6089 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6090 if test $emacs_cv_struct_utimbuf = yes; then
6092 cat >>confdefs.h
<<\_ACEOF
6093 #define HAVE_STRUCT_UTIMBUF 1
6098 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6099 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6100 if test "${ac_cv_type_signal+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 cat >conftest.
$ac_ext <<_ACEOF
6106 cat confdefs.h
>>conftest.
$ac_ext
6107 cat >>conftest.
$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #include <sys/types.h>
6115 extern "C" void (*signal (int, void (*)(int)))(int);
6117 void (*signal ()) ();
6128 rm -f conftest.
$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>conftest.er1
6132 grep -v '^ *+' conftest.er1
>conftest.err
6134 cat conftest.err
>&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try
='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try
='test -s conftest.$ac_objext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_cv_type_signal
=void
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.
$ac_ext >&5
6155 ac_cv_type_signal
=int
6157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6160 echo "${ECHO_T}$ac_cv_type_signal" >&6
6162 cat >>confdefs.h
<<_ACEOF
6163 #define RETSIGTYPE $ac_cv_type_signal
6168 echo "$as_me:$LINENO: checking for speed_t" >&5
6169 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6170 if test "${emacs_cv_speed_t+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 cat >conftest.
$ac_ext <<_ACEOF
6176 cat confdefs.h
>>conftest.
$ac_ext
6177 cat >>conftest.
$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <termios.h>
6188 rm -f conftest.
$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6192 grep -v '^ *+' conftest.er1
>conftest.err
6194 cat conftest.err
>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try
='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try
='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 emacs_cv_speed_t
=yes
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.
$ac_ext >&5
6217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6219 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6220 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6221 if test $emacs_cv_speed_t = yes; then
6223 cat >>confdefs.h
<<\_ACEOF
6224 #define HAVE_SPEED_T 1
6229 echo "$as_me:$LINENO: checking for struct timeval" >&5
6230 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6231 if test "${emacs_cv_struct_timeval+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #ifdef TIME_WITH_SYS_TIME
6241 #include <sys/time.h>
6244 #ifdef HAVE_SYS_TIME_H
6245 #include <sys/time.h>
6253 static struct timeval x; x.tv_sec = x.tv_usec;
6258 rm -f conftest.
$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 (eval $ac_compile) 2>conftest.er1
6262 grep -v '^ *+' conftest.er1
>conftest.err
6264 cat conftest.err
>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try
='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try
='test -s conftest.$ac_objext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 emacs_cv_struct_timeval
=yes
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.
$ac_ext >&5
6285 emacs_cv_struct_timeval
=no
6287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6290 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6291 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6292 if test $emacs_cv_struct_timeval = yes; then
6294 cat >>confdefs.h
<<\_ACEOF
6295 #define HAVE_TIMEVAL 1
6300 echo "$as_me:$LINENO: checking for struct exception" >&5
6301 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6302 if test "${emacs_cv_struct_exception+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 cat >conftest.
$ac_ext <<_ACEOF
6308 cat confdefs.h
>>conftest.
$ac_ext
6309 cat >>conftest.
$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6315 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6320 rm -f conftest.
$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>conftest.er1
6324 grep -v '^ *+' conftest.er1
>conftest.err
6326 cat conftest.err
>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try
='test -z "$ac_c_werror_flag"
6330 || test ! -s conftest.err'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try
='test -s conftest.$ac_objext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 emacs_cv_struct_exception
=yes
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.
$ac_ext >&5
6347 emacs_cv_struct_exception
=no
6349 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6351 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6352 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6353 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6354 if test $emacs_cv_struct_exception != yes; then
6356 cat >>confdefs.h
<<\_ACEOF
6357 #define NO_MATHERR 1
6363 for ac_header
in sys
/socket.h
6365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375 # Is the header compilable?
6376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6378 cat >conftest.
$ac_ext <<_ACEOF
6381 cat confdefs.h
>>conftest.
$ac_ext
6382 cat >>conftest.
$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <$ac_header>
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_header_compiler
=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.
$ac_ext >&5
6414 ac_header_compiler
=no
6416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418 echo "${ECHO_T}$ac_header_compiler" >&6
6420 # Is the header present?
6421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6423 cat >conftest.
$ac_ext <<_ACEOF
6426 cat confdefs.h
>>conftest.
$ac_ext
6427 cat >>conftest.
$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <$ac_header>
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6434 grep -v '^ *+' conftest.er1
>conftest.err
6436 cat conftest.err
>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev
/null
; then
6439 if test -s conftest.err
; then
6440 ac_cpp_err
=$ac_c_preproc_warn_flag
6441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6448 if test -z "$ac_cpp_err"; then
6449 ac_header_preproc
=yes
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.
$ac_ext >&5
6454 ac_header_preproc
=no
6456 rm -f conftest.err conftest.
$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6
6460 # So? What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6467 ac_header_preproc
=yes
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6484 ## ------------------------------------------ ##
6485 ## Report this to the AC_PACKAGE_NAME lists. ##
6486 ## ------------------------------------------ ##
6489 sed "s/^/$as_me: WARNING: /" >&2
6492 echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 eval "$as_ac_Header=\$ac_header_preproc"
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6504 cat >>confdefs.h
<<_ACEOF
6505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 for ac_header
in net
/if.h
6515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6516 echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6528 #if HAVE_SYS_SOCKET_H
6529 #include <sys/socket.h>
6532 #include <$ac_header>
6534 rm -f conftest.
$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try
='test -z "$ac_c_werror_flag"
6544 || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try
='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6556 eval "$as_ac_Header=yes"
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.
$ac_ext >&5
6561 eval "$as_ac_Header=no"
6563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6568 cat >>confdefs.h
<<_ACEOF
6569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6578 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6579 if test "${ac_cv_struct_tm+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat >conftest.
$ac_ext <<_ACEOF
6585 cat confdefs.h
>>conftest.
$ac_ext
6586 cat >>conftest.
$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <sys/types.h>
6594 struct tm *tp; tp->tm_sec;
6599 rm -f conftest.
$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>conftest.er1
6603 grep -v '^ *+' conftest.er1
>conftest.err
6605 cat conftest.err
>&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } &&
6608 { ac_try
='test -z "$ac_c_werror_flag"
6609 || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try
='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_cv_struct_tm
=time.h
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.
$ac_ext >&5
6626 ac_cv_struct_tm
=sys
/time.h
6628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6630 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6631 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6632 if test $ac_cv_struct_tm = sys
/time.h
; then
6634 cat >>confdefs.h
<<\_ACEOF
6635 #define TM_IN_SYS_TIME 1
6640 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6641 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6642 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 cat >conftest.
$ac_ext <<_ACEOF
6648 cat confdefs.h
>>conftest.
$ac_ext
6649 cat >>conftest.
$ac_ext <<_ACEOF
6650 /* end confdefs.h. */
6651 #include <sys/types.h>
6652 #include <$ac_cv_struct_tm>
6658 static struct tm ac_aggr;
6659 if (ac_aggr.tm_zone)
6665 rm -f conftest.
$ac_objext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>conftest.er1
6669 grep -v '^ *+' conftest.er1
>conftest.err
6671 cat conftest.err
>&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try
='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try
='test -s conftest.$ac_objext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_member_struct_tm_tm_zone
=yes
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.
$ac_ext >&5
6692 cat >conftest.
$ac_ext <<_ACEOF
6695 cat confdefs.h
>>conftest.
$ac_ext
6696 cat >>conftest.
$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <$ac_cv_struct_tm>
6705 static struct tm ac_aggr;
6706 if (sizeof ac_aggr.tm_zone)
6712 rm -f conftest.
$ac_objext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6714 (eval $ac_compile) 2>conftest.er1
6716 grep -v '^ *+' conftest.er1
>conftest.err
6718 cat conftest.err
>&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try
='test -z "$ac_c_werror_flag"
6722 || test ! -s conftest.err'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; } &&
6728 { ac_try
='test -s conftest.$ac_objext'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 ac_cv_member_struct_tm_tm_zone
=yes
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.
$ac_ext >&5
6739 ac_cv_member_struct_tm_tm_zone
=no
6741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6746 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6747 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6749 cat >>confdefs.h
<<_ACEOF
6750 #define HAVE_STRUCT_TM_TM_ZONE 1
6756 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6758 cat >>confdefs.h
<<\_ACEOF
6759 #define HAVE_TM_ZONE 1
6763 echo "$as_me:$LINENO: checking for tzname" >&5
6764 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6765 if test "${ac_cv_var_tzname+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.
$ac_ext <<_ACEOF
6771 cat confdefs.h
>>conftest.
$ac_ext
6772 cat >>conftest.
$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6775 #ifndef tzname /* For SGI. */
6776 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6787 rm -f conftest.
$ac_objext conftest
$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1
>conftest.err
6793 cat conftest.err
>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try
='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try
='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_cv_var_tzname
=yes
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.
$ac_ext >&5
6816 rm -f conftest.err conftest.
$ac_objext \
6817 conftest
$ac_exeext conftest.
$ac_ext
6819 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6820 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6821 if test $ac_cv_var_tzname = yes; then
6823 cat >>confdefs.h
<<\_ACEOF
6824 #define HAVE_TZNAME 1
6830 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6831 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6832 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 cat >conftest.
$ac_ext <<_ACEOF
6838 cat confdefs.h
>>conftest.
$ac_ext
6839 cat >>conftest.
$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6846 static struct tm ac_aggr;
6847 if (ac_aggr.tm_gmtoff)
6853 rm -f conftest.
$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>conftest.er1
6857 grep -v '^ *+' conftest.er1
>conftest.err
6859 cat conftest.err
>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try
='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try
='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_member_struct_tm_tm_gmtoff
=yes
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.
$ac_ext >&5
6880 cat >conftest.
$ac_ext <<_ACEOF
6883 cat confdefs.h
>>conftest.
$ac_ext
6884 cat >>conftest.
$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6891 static struct tm ac_aggr;
6892 if (sizeof ac_aggr.tm_gmtoff)
6898 rm -f conftest.
$ac_objext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>conftest.er1
6902 grep -v '^ *+' conftest.er1
>conftest.err
6904 cat conftest.err
>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try
='test -z "$ac_c_werror_flag"
6908 || test ! -s conftest.err'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
6914 { ac_try
='test -s conftest.$ac_objext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 ac_cv_member_struct_tm_tm_gmtoff
=yes
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.
$ac_ext >&5
6925 ac_cv_member_struct_tm_tm_gmtoff
=no
6927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6933 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6935 cat >>confdefs.h
<<\_ACEOF
6936 #define HAVE_TM_GMTOFF 1
6941 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6942 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6943 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 cat >conftest.
$ac_ext <<_ACEOF
6949 cat confdefs.h
>>conftest.
$ac_ext
6950 cat >>conftest.
$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 $ac_includes_default
6953 #if HAVE_SYS_SOCKET_H
6954 #include <sys/socket.h>
6963 static struct ifreq ac_aggr;
6964 if (ac_aggr.ifr_flags)
6970 rm -f conftest.
$ac_objext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>conftest.er1
6974 grep -v '^ *+' conftest.er1
>conftest.err
6976 cat conftest.err
>&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try
='test -z "$ac_c_werror_flag"
6980 || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try
='test -s conftest.$ac_objext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_member_struct_ifreq_ifr_flags
=yes
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.
$ac_ext >&5
6997 cat >conftest.
$ac_ext <<_ACEOF
7000 cat confdefs.h
>>conftest.
$ac_ext
7001 cat >>conftest.
$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7004 #if HAVE_SYS_SOCKET_H
7005 #include <sys/socket.h>
7014 static struct ifreq ac_aggr;
7015 if (sizeof ac_aggr.ifr_flags)
7021 rm -f conftest.
$ac_objext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>conftest.er1
7025 grep -v '^ *+' conftest.er1
>conftest.err
7027 cat conftest.err
>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try
='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try
='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_member_struct_ifreq_ifr_flags
=yes
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.
$ac_ext >&5
7048 ac_cv_member_struct_ifreq_ifr_flags
=no
7050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7054 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7055 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7056 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7058 cat >>confdefs.h
<<_ACEOF
7059 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7064 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7065 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7066 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 cat >conftest.
$ac_ext <<_ACEOF
7072 cat confdefs.h
>>conftest.
$ac_ext
7073 cat >>conftest.
$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 #if HAVE_SYS_SOCKET_H
7077 #include <sys/socket.h>
7086 static struct ifreq ac_aggr;
7087 if (ac_aggr.ifr_hwaddr)
7093 rm -f conftest.
$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
7097 grep -v '^ *+' conftest.er1
>conftest.err
7099 cat conftest.err
>&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try
='test -z "$ac_c_werror_flag"
7103 || test ! -s conftest.err'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; } &&
7109 { ac_try
='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.
$ac_ext >&5
7120 cat >conftest.
$ac_ext <<_ACEOF
7123 cat confdefs.h
>>conftest.
$ac_ext
7124 cat >>conftest.
$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 #if HAVE_SYS_SOCKET_H
7128 #include <sys/socket.h>
7137 static struct ifreq ac_aggr;
7138 if (sizeof ac_aggr.ifr_hwaddr)
7144 rm -f conftest.
$ac_objext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>conftest.er1
7148 grep -v '^ *+' conftest.er1
>conftest.err
7150 cat conftest.err
>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try
='test -z "$ac_c_werror_flag"
7154 || test ! -s conftest.err'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; } &&
7160 { ac_try
='test -s conftest.$ac_objext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.
$ac_ext >&5
7171 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7178 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7179 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7181 cat >>confdefs.h
<<_ACEOF
7182 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7187 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7188 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7189 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.
$ac_ext <<_ACEOF
7195 cat confdefs.h
>>conftest.
$ac_ext
7196 cat >>conftest.
$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 $ac_includes_default
7199 #if HAVE_SYS_SOCKET_H
7200 #include <sys/socket.h>
7209 static struct ifreq ac_aggr;
7210 if (ac_aggr.ifr_netmask)
7216 rm -f conftest.
$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7220 grep -v '^ *+' conftest.er1
>conftest.err
7222 cat conftest.err
>&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try
='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try
='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.
$ac_ext >&5
7243 cat >conftest.
$ac_ext <<_ACEOF
7246 cat confdefs.h
>>conftest.
$ac_ext
7247 cat >>conftest.
$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7250 #if HAVE_SYS_SOCKET_H
7251 #include <sys/socket.h>
7260 static struct ifreq ac_aggr;
7261 if (sizeof ac_aggr.ifr_netmask)
7267 rm -f conftest.
$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>conftest.er1
7271 grep -v '^ *+' conftest.er1
>conftest.err
7273 cat conftest.err
>&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try
='test -z "$ac_c_werror_flag"
7277 || test ! -s conftest.err'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; } &&
7283 { ac_try
='test -s conftest.$ac_objext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.
$ac_ext >&5
7294 ac_cv_member_struct_ifreq_ifr_netmask
=no
7296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7301 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7302 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7304 cat >>confdefs.h
<<_ACEOF
7305 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7310 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7311 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7312 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 cat >conftest.
$ac_ext <<_ACEOF
7318 cat confdefs.h
>>conftest.
$ac_ext
7319 cat >>conftest.
$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7322 #if HAVE_SYS_SOCKET_H
7323 #include <sys/socket.h>
7332 static struct ifreq ac_aggr;
7333 if (ac_aggr.ifr_broadaddr)
7339 rm -f conftest.
$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1
>conftest.err
7345 cat conftest.err
>&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try
='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try
='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.
$ac_ext >&5
7366 cat >conftest.
$ac_ext <<_ACEOF
7369 cat confdefs.h
>>conftest.
$ac_ext
7370 cat >>conftest.
$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 $ac_includes_default
7373 #if HAVE_SYS_SOCKET_H
7374 #include <sys/socket.h>
7383 static struct ifreq ac_aggr;
7384 if (sizeof ac_aggr.ifr_broadaddr)
7390 rm -f conftest.
$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7394 grep -v '^ *+' conftest.er1
>conftest.err
7396 cat conftest.err
>&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try
='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try
='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.
$ac_ext >&5
7417 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7424 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7425 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7427 cat >>confdefs.h
<<_ACEOF
7428 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7433 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7434 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7435 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 cat >conftest.
$ac_ext <<_ACEOF
7441 cat confdefs.h
>>conftest.
$ac_ext
7442 cat >>conftest.
$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 #if HAVE_SYS_SOCKET_H
7446 #include <sys/socket.h>
7455 static struct ifreq ac_aggr;
7456 if (ac_aggr.ifr_addr)
7462 rm -f conftest.
$ac_objext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464 (eval $ac_compile) 2>conftest.er1
7466 grep -v '^ *+' conftest.er1
>conftest.err
7468 cat conftest.err
>&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } &&
7471 { ac_try
='test -z "$ac_c_werror_flag"
7472 || test ! -s conftest.err'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try
='test -s conftest.$ac_objext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_cv_member_struct_ifreq_ifr_addr
=yes
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.
$ac_ext >&5
7489 cat >conftest.
$ac_ext <<_ACEOF
7492 cat confdefs.h
>>conftest.
$ac_ext
7493 cat >>conftest.
$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7496 #if HAVE_SYS_SOCKET_H
7497 #include <sys/socket.h>
7506 static struct ifreq ac_aggr;
7507 if (sizeof ac_aggr.ifr_addr)
7513 rm -f conftest.
$ac_objext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>conftest.er1
7517 grep -v '^ *+' conftest.er1
>conftest.err
7519 cat conftest.err
>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try
='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try
='test -s conftest.$ac_objext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_member_struct_ifreq_ifr_addr
=yes
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.
$ac_ext >&5
7540 ac_cv_member_struct_ifreq_ifr_addr
=no
7542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7546 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7547 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7548 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7550 cat >>confdefs.h
<<_ACEOF
7551 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7559 echo "$as_me:$LINENO: checking for function prototypes" >&5
7560 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7561 if test "$ac_cv_prog_cc_stdc" != no
; then
7562 echo "$as_me:$LINENO: result: yes" >&5
7563 echo "${ECHO_T}yes" >&6
7565 cat >>confdefs.h
<<\_ACEOF
7566 #define PROTOTYPES 1
7570 cat >>confdefs.h
<<\_ACEOF
7571 #define __PROTOTYPES 1
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7579 echo "$as_me:$LINENO: checking for working volatile" >&5
7580 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7581 if test "${ac_cv_c_volatile+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 cat >conftest.
$ac_ext <<_ACEOF
7587 cat confdefs.h
>>conftest.
$ac_ext
7588 cat >>conftest.
$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7601 rm -f conftest.
$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>conftest.er1
7605 grep -v '^ *+' conftest.er1
>conftest.err
7607 cat conftest.err
>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try
='test -z "$ac_c_werror_flag"
7611 || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try
='test -s conftest.$ac_objext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_cv_c_volatile
=yes
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.
$ac_ext >&5
7630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7633 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7634 if test $ac_cv_c_volatile = no
; then
7636 cat >>confdefs.h
<<\_ACEOF
7642 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7643 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7644 if test "${ac_cv_c_const+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 cat >conftest.
$ac_ext <<_ACEOF
7650 cat confdefs.h
>>conftest.
$ac_ext
7651 cat >>conftest.
$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7657 /* FIXME: Include the comments suggested by Paul. */
7659 /* Ultrix mips cc rejects this. */
7660 typedef int charset[2];
7662 /* SunOS 4.1.1 cc rejects this. */
7663 char const *const *ccp;
7665 /* NEC SVR4.0.2 mips cc rejects this. */
7666 struct point {int x, y;};
7667 static struct point const zero = {0,0};
7668 /* AIX XL C 1.02.0.0 rejects this.
7669 It does not let you subtract one const X* pointer from another in
7670 an arm of an if-expression whose if-part is not a constant
7672 const char *g = "string";
7673 ccp = &g + (g ? g-g : 0);
7674 /* HPUX 7.0 cc rejects these. */
7677 ccp = (char const *const *) p;
7678 { /* SCO 3.2v4 cc rejects this. */
7680 char const *s = 0 ? (char *) 0 : (char const *) 0;
7684 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7686 const int *foo = &x[0];
7689 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7690 typedef const int *iptr;
7694 { /* AIX XL C 1.02.0.0 rejects this saying
7695 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7696 struct s { int j; const int *ap[3]; };
7697 struct s *b; b->j = 5;
7699 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7708 rm -f conftest.
$ac_objext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710 (eval $ac_compile) 2>conftest.er1
7712 grep -v '^ *+' conftest.er1
>conftest.err
7714 cat conftest.err
>&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try
='test -z "$ac_c_werror_flag"
7718 || test ! -s conftest.err'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; } &&
7724 { ac_try
='test -s conftest.$ac_objext'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.
$ac_ext >&5
7737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7739 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7740 echo "${ECHO_T}$ac_cv_c_const" >&6
7741 if test $ac_cv_c_const = no
; then
7743 cat >>confdefs.h
<<\_ACEOF
7749 echo "$as_me:$LINENO: checking for void * support" >&5
7750 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7751 if test "${emacs_cv_void_star+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 cat >conftest.
$ac_ext <<_ACEOF
7757 cat confdefs.h
>>conftest.
$ac_ext
7758 cat >>conftest.
$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7769 rm -f conftest.
$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>conftest.er1
7773 grep -v '^ *+' conftest.er1
>conftest.err
7775 cat conftest.err
>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try
='test -z "$ac_c_werror_flag"
7779 || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try
='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 emacs_cv_void_star
=yes
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.
$ac_ext >&5
7796 emacs_cv_void_star
=no
7798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7800 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7801 echo "${ECHO_T}$emacs_cv_void_star" >&6
7802 if test $emacs_cv_void_star = yes; then
7803 cat >>confdefs.h
<<\_ACEOF
7804 #define POINTER_TYPE void
7808 cat >>confdefs.h
<<\_ACEOF
7809 #define POINTER_TYPE char
7818 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7820 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7821 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 cat >conftest.
make <<\_ACEOF
7826 @
echo 'ac_maketemp="$(MAKE)"'
7828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7829 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7830 if test -n "$ac_maketemp"; then
7831 eval ac_cv_prog_make_
${ac_make}_set
=yes
7833 eval ac_cv_prog_make_
${ac_make}_set
=no
7837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839 echo "${ECHO_T}yes" >&6
7842 echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7844 SET_MAKE
="MAKE=${MAKE-make}"
7848 echo "$as_me:$LINENO: checking for long file names" >&5
7849 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7850 if test "${ac_cv_sys_long_file_names+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 ac_cv_sys_long_file_names
=yes
7854 # Test for long file names in all the places we know might matter:
7855 # . the current directory, where building will happen
7856 # $prefix/lib where we will be installing things
7857 # $exec_prefix/lib likewise
7858 # eval it to expand exec_prefix.
7859 # $TMPDIR if set, where it might want to write temporary files
7860 # if $TMPDIR is not set:
7861 # /tmp where it might want to write temporary files
7864 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7867 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7869 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7870 test -d $ac_dir ||
continue
7871 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7872 ac_xdir
=$ac_dir/cf$$
7873 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7874 ac_tf1
=$ac_xdir/conftest9012345
7875 ac_tf2
=$ac_xdir/conftest9012346
7876 (echo 1 >$ac_tf1) 2>/dev
/null
7877 (echo 2 >$ac_tf2) 2>/dev
/null
7878 ac_val
=`cat $ac_tf1 2>/dev/null`
7879 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7880 ac_cv_sys_long_file_names
=no
7881 rm -rf $ac_xdir 2>/dev
/null
7884 rm -rf $ac_xdir 2>/dev
/null
7887 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7888 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7889 if test $ac_cv_sys_long_file_names = yes; then
7891 cat >>confdefs.h
<<\_ACEOF
7892 #define HAVE_LONG_FILE_NAMES 1
7898 #### Choose a window system.
7900 echo "$as_me:$LINENO: checking for X" >&5
7901 echo $ECHO_N "checking for X... $ECHO_C" >&6
7904 # Check whether --with-x or --without-x was given.
7905 if test "${with_x+set}" = set; then
7909 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7910 if test "x$with_x" = xno
; then
7911 # The user explicitly disabled X.
7914 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7915 # Both variables are already set.
7918 if test "${ac_cv_have_x+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 # One or both of the vars are not set, and there is no cached value.
7922 ac_x_includes
=no ac_x_libraries
=no
7924 if mkdir conftest.dir
; then
7926 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7927 cat >Imakefile
<<'_ACEOF'
7929 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7931 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7933 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7934 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7935 for ac_extension
in a so sl
; do
7936 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7937 test -f $ac_im_libdir/libX11.
$ac_extension; then
7938 ac_im_usrlibdir
=$ac_im_libdir; break
7941 # Screen out bogus values from the imake configuration. They are
7942 # bogus both because they are the default anyway, and because
7943 # using them would break gcc on systems where it needs fixed includes.
7944 case $ac_im_incroot in
7946 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7948 case $ac_im_usrlibdir in
7950 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7957 # Standard set of common directories for X headers.
7958 # Check X11 before X11Rn because it is often a symlink to the current release.
7970 /usr/local/X11/include
7971 /usr/local/X11R6/include
7972 /usr/local/X11R5/include
7973 /usr/local/X11R4/include
7975 /usr/local/include/X11
7976 /usr/local/include/X11R6
7977 /usr/local/include/X11R5
7978 /usr/local/include/X11R4
7982 /usr/XFree86/include/X11
7986 /usr/unsupported/include
7988 /usr/local/x11r5/include
7989 /usr/lpp/Xamples/include
7991 /usr/openwin/include
7992 /usr/openwin/share/include'
7994 if test "$ac_x_includes" = no
; then
7995 # Guess where to find include files, by looking for Intrinsic.h.
7996 # First, try using that file with no special directory specified.
7997 cat >conftest.
$ac_ext <<_ACEOF
8000 cat confdefs.h
>>conftest.
$ac_ext
8001 cat >>conftest.
$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <X11/Intrinsic.h>
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1
>conftest.err
8010 cat conftest.err
>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev
/null
; then
8013 if test -s conftest.err
; then
8014 ac_cpp_err
=$ac_c_preproc_warn_flag
8015 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8022 if test -z "$ac_cpp_err"; then
8023 # We can compile using X headers with no special include directory.
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.
$ac_ext >&5
8029 for ac_dir
in $ac_x_header_dirs; do
8030 if test -r "$ac_dir/X11/Intrinsic.h"; then
8031 ac_x_includes
=$ac_dir
8036 rm -f conftest.err conftest.
$ac_ext
8037 fi # $ac_x_includes = no
8039 if test "$ac_x_libraries" = no
; then
8040 # Check for the libraries.
8041 # See if we find them without any special options.
8042 # Don't add to $LIBS permanently.
8045 cat >conftest.
$ac_ext <<_ACEOF
8048 cat confdefs.h
>>conftest.
$ac_ext
8049 cat >>conftest.
$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 #include <X11/Intrinsic.h>
8060 rm -f conftest.
$ac_objext conftest
$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>conftest.er1
8064 grep -v '^ *+' conftest.er1
>conftest.err
8066 cat conftest.err
>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try
='test -z "$ac_c_werror_flag"
8070 || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try
='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8083 # We can link X programs with no special library path.
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.
$ac_ext >&5
8090 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8092 # Don't even attempt the hair of trying to link an X program!
8093 for ac_extension
in a so sl
; do
8094 if test -r $ac_dir/libXt.
$ac_extension; then
8095 ac_x_libraries
=$ac_dir
8101 rm -f conftest.err conftest.
$ac_objext \
8102 conftest
$ac_exeext conftest.
$ac_ext
8103 fi # $ac_x_libraries = no
8105 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8106 # Didn't find X anywhere. Cache the known absence of X.
8107 ac_cv_have_x
="have_x=no"
8109 # Record where we found X for the cache.
8110 ac_cv_have_x
="have_x=yes \
8111 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8116 eval "$ac_cv_have_x"
8119 if test "$have_x" != yes; then
8120 echo "$as_me:$LINENO: result: $have_x" >&5
8121 echo "${ECHO_T}$have_x" >&6
8124 # If each of the values was on the command line, it overrides each guess.
8125 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8126 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8127 # Update the cache value to reflect the command line values.
8128 ac_cv_have_x
="have_x=yes \
8129 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8130 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8131 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8134 if test "$no_x" = yes; then
8140 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8141 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8142 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8143 x_default_search_path
=""
8144 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8146 ${x_library}/X11/%L/%T/%N%C%S:\
8147 ${x_library}/X11/%l/%T/%N%C%S:\
8148 ${x_library}/X11/%T/%N%C%S:\
8149 ${x_library}/X11/%L/%T/%N%S:\
8150 ${x_library}/X11/%l/%T/%N%S:\
8151 ${x_library}/X11/%T/%N%S"
8152 if test x
"${x_default_search_path}" = x
; then
8153 x_default_search_path
=${x_search_path}
8155 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8159 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8160 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8163 if test x
"${x_includes}" = x
; then
8164 bitmapdir
=/usr
/include
/X11
/bitmaps
8166 # accumulate include directories that have X11 bitmap subdirectories
8168 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8169 if test -d "${bmd}/X11/bitmaps"; then
8170 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8172 if test -d "${bmd}/bitmaps"; then
8173 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8176 if test ${bmd_acc} != "dummyval"; then
8177 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8181 case "${window_system}" in
8185 case "${with_x_toolkit}" in
8186 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8187 motif
) USE_X_TOOLKIT
=MOTIF
;;
8189 USE_X_TOOLKIT
=none
;;
8190 no
) USE_X_TOOLKIT
=none
;;
8191 * ) USE_X_TOOLKIT
=maybe
;;
8201 ### If we're using X11, we should use the X menu package.
8204 yes ) HAVE_MENUS
=yes ;;
8207 if test "${opsys}" = "hpux9"; then
8208 case "${x_libraries}" in
8210 opsysfile
="s/hpux9-x11r4.h"
8215 if test "${opsys}" = "hpux9shr"; then
8216 case "${x_libraries}" in
8218 opsysfile
="s/hpux9shxr4.h"
8223 ### Compute the unexec source name from the object name.
8224 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8226 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8227 # Assume not, until told otherwise.
8230 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8231 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8232 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.
$ac_ext <<_ACEOF
8238 cat confdefs.h
>>conftest.
$ac_ext
8239 cat >>conftest.
$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8243 #define malloc_get_state innocuous_malloc_get_state
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char malloc_get_state (); below.
8247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8248 <limits.h> exists even on freestanding compilers. */
8251 # include <limits.h>
8253 # include <assert.h>
8256 #undef malloc_get_state
8258 /* Override any gcc2 internal prototype to avoid an error. */
8263 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */
8265 char malloc_get_state ();
8266 /* The GNU C library defines this for functions which it implements
8267 to always fail with ENOSYS. Some functions are actually named
8268 something starting with __ and the normal name is an alias. */
8269 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8272 char (*f) () = malloc_get_state;
8281 return f != malloc_get_state;
8286 rm -f conftest.
$ac_objext conftest
$ac_exeext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288 (eval $ac_link) 2>conftest.er1
8290 grep -v '^ *+' conftest.er1
>conftest.err
8292 cat conftest.err
>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try
='test -z "$ac_c_werror_flag"
8296 || test ! -s conftest.err'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try
='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_func_malloc_get_state
=yes
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.
$ac_ext >&5
8313 ac_cv_func_malloc_get_state
=no
8315 rm -f conftest.err conftest.
$ac_objext \
8316 conftest
$ac_exeext conftest.
$ac_ext
8318 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8319 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8320 if test $ac_cv_func_malloc_get_state = yes; then
8326 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8327 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8328 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 cat >conftest.
$ac_ext <<_ACEOF
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8339 #define malloc_set_state innocuous_malloc_set_state
8341 /* System header to define __stub macros and hopefully few prototypes,
8342 which can conflict with char malloc_set_state (); below.
8343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344 <limits.h> exists even on freestanding compilers. */
8347 # include <limits.h>
8349 # include <assert.h>
8352 #undef malloc_set_state
8354 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8361 char malloc_set_state ();
8362 /* The GNU C library defines this for functions which it implements
8363 to always fail with ENOSYS. Some functions are actually named
8364 something starting with __ and the normal name is an alias. */
8365 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8368 char (*f) () = malloc_set_state;
8377 return f != malloc_set_state;
8382 rm -f conftest.
$ac_objext conftest
$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1
>conftest.err
8388 cat conftest.err
>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try
='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try
='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_func_malloc_set_state
=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.
$ac_ext >&5
8409 ac_cv_func_malloc_set_state
=no
8411 rm -f conftest.err conftest.
$ac_objext \
8412 conftest
$ac_exeext conftest.
$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8415 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8416 if test $ac_cv_func_malloc_set_state = yes; then
8422 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8423 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8424 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 cat >conftest.
$ac_ext <<_ACEOF
8430 cat confdefs.h
>>conftest.
$ac_ext
8431 cat >>conftest.
$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 extern void (* __after_morecore_hook)();
8437 __after_morecore_hook = 0
8442 rm -f conftest.
$ac_objext conftest
$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1
>conftest.err
8448 cat conftest.err
>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try
='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try
='test -s conftest$ac_exeext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 emacs_cv_var___after_morecore_hook
=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.
$ac_ext >&5
8469 emacs_cv_var___after_morecore_hook
=no
8471 rm -f conftest.err conftest.
$ac_objext \
8472 conftest
$ac_exeext conftest.
$ac_ext
8474 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8475 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8476 if test $emacs_cv_var___after_morecore_hook = no
; then
8479 if test "${system_malloc}" = "yes"; then
8482 (The GNU allocators don't work with this system configuration.)"
8484 if test "$doug_lea_malloc" = "yes" ; then
8485 if test "$GNU_MALLOC" = yes ; then
8487 (Using Doug Lea's new malloc from the GNU C Library.)"
8490 cat >>confdefs.h
<<\_ACEOF
8491 #define DOUG_LEA_MALLOC 1
8496 if test x
"${REL_ALLOC}" = x
; then
8497 REL_ALLOC
=${GNU_MALLOC}
8503 for ac_header
in stdlib.h unistd.h
8505 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515 # Is the header compilable?
8516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8518 cat >conftest.
$ac_ext <<_ACEOF
8521 cat confdefs.h
>>conftest.
$ac_ext
8522 cat >>conftest.
$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $ac_includes_default
8525 #include <$ac_header>
8527 rm -f conftest.
$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1
>conftest.err
8533 cat conftest.err
>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try
='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try
='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler
=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.
$ac_ext >&5
8554 ac_header_compiler
=no
8556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8558 echo "${ECHO_T}$ac_header_compiler" >&6
8560 # Is the header present?
8561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8563 cat >conftest.
$ac_ext <<_ACEOF
8566 cat confdefs.h
>>conftest.
$ac_ext
8567 cat >>conftest.
$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 #include <$ac_header>
8571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8572 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8574 grep -v '^ *+' conftest.er1
>conftest.err
8576 cat conftest.err
>&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } >/dev
/null
; then
8579 if test -s conftest.err
; then
8580 ac_cpp_err
=$ac_c_preproc_warn_flag
8581 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8588 if test -z "$ac_cpp_err"; then
8589 ac_header_preproc
=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8594 ac_header_preproc
=no
8596 rm -f conftest.err conftest.
$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 echo "${ECHO_T}$ac_header_preproc" >&6
8600 # So? What about this header?
8601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8607 ac_header_preproc
=yes
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8624 ## ------------------------------------------ ##
8625 ## Report this to the AC_PACKAGE_NAME lists. ##
8626 ## ------------------------------------------ ##
8629 sed "s/^/$as_me: WARNING: /" >&2
8632 echo "$as_me:$LINENO: checking for $ac_header" >&5
8633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 eval "$as_ac_Header=\$ac_header_preproc"
8639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644 cat >>confdefs.h
<<_ACEOF
8645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8653 for ac_func
in getpagesize
8655 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656 echo "$as_me:$LINENO: checking for $ac_func" >&5
8657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8658 if eval "test \"\${$as_ac_var+set}\" = set"; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.
$ac_ext <<_ACEOF
8664 cat confdefs.h
>>conftest.
$ac_ext
8665 cat >>conftest.
$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8669 #define $ac_func innocuous_$ac_func
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8677 # include <limits.h>
8679 # include <assert.h>
8684 /* Override any gcc2 internal prototype to avoid an error. */
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8692 /* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8698 char (*f) () = $ac_func;
8707 return f != $ac_func;
8712 rm -f conftest.
$ac_objext conftest
$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try
='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try
='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.
$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.err conftest.
$ac_objext \
8742 conftest
$ac_exeext conftest.
$ac_ext
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h
<<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8754 echo "$as_me:$LINENO: checking for working mmap" >&5
8755 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8756 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 if test "$cross_compiling" = yes; then
8760 ac_cv_func_mmap_fixed_mapped
=no
8762 cat >conftest.
$ac_ext <<_ACEOF
8765 cat confdefs.h
>>conftest.
$ac_ext
8766 cat >>conftest.
$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8769 /* malloc might have been renamed as rpl_malloc. */
8772 /* Thanks to Mike Haertel and Jim Avera for this test.
8773 Here is a matrix of mmap possibilities:
8774 mmap private not fixed
8775 mmap private fixed at somewhere currently unmapped
8776 mmap private fixed at somewhere already mapped
8777 mmap shared not fixed
8778 mmap shared fixed at somewhere currently unmapped
8779 mmap shared fixed at somewhere already mapped
8780 For private mappings, we should verify that changes cannot be read()
8781 back from the file, nor mmap's back from the file at a different
8782 address. (There have been systems where private was not correctly
8783 implemented like the infamous i386 svr4.0, and systems where the
8784 VM page cache was not coherent with the file system buffer cache
8785 like early versions of FreeBSD and possibly contemporary NetBSD.)
8786 For shared mappings, we should conversely verify that changes get
8787 propagated back to all the places they're supposed to be.
8789 Grep wants private fixed already mapped.
8790 The main things grep needs to know about mmap are:
8791 * does it exist and is it safe to write into the mmap'd area
8792 * how to use it (BSD variants) */
8795 #include <sys/mman.h>
8797 #if !STDC_HEADERS && !HAVE_STDLIB_H
8801 /* This mess was copied from the GNU getpagesize.h. */
8802 #if !HAVE_GETPAGESIZE
8803 /* Assume that all systems that can run configure have sys/param.h. */
8804 # if !HAVE_SYS_PARAM_H
8805 # define HAVE_SYS_PARAM_H 1
8808 # ifdef _SC_PAGESIZE
8809 # define getpagesize() sysconf(_SC_PAGESIZE)
8810 # else /* no _SC_PAGESIZE */
8811 # if HAVE_SYS_PARAM_H
8812 # include <sys/param.h>
8813 # ifdef EXEC_PAGESIZE
8814 # define getpagesize() EXEC_PAGESIZE
8815 # else /* no EXEC_PAGESIZE */
8817 # define getpagesize() NBPG * CLSIZE
8820 # endif /* no CLSIZE */
8821 # else /* no NBPG */
8823 # define getpagesize() NBPC
8824 # else /* no NBPC */
8826 # define getpagesize() PAGESIZE
8827 # endif /* PAGESIZE */
8828 # endif /* no NBPC */
8829 # endif /* no NBPG */
8830 # endif /* no EXEC_PAGESIZE */
8831 # else /* no HAVE_SYS_PARAM_H */
8832 # define getpagesize() 8192 /* punt totally */
8833 # endif /* no HAVE_SYS_PARAM_H */
8834 # endif /* no _SC_PAGESIZE */
8836 #endif /* no HAVE_GETPAGESIZE */
8841 char *data, *data2, *data3;
8845 pagesize = getpagesize ();
8847 /* First, make a file with some known garbage in it. */
8848 data = (char *) malloc (pagesize);
8851 for (i = 0; i < pagesize; ++i)
8852 *(data + i) = rand ();
8854 fd = creat ("conftest.mmap", 0600);
8857 if (write (fd, data, pagesize) != pagesize)
8861 /* Next, try to mmap the file at a fixed address which already has
8862 something else allocated at it. If we can, also make sure that
8863 we see the same garbage. */
8864 fd = open ("conftest.mmap", O_RDWR);
8867 data2 = (char *) malloc (2 * pagesize);
8870 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8871 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8872 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8874 for (i = 0; i < pagesize; ++i)
8875 if (*(data + i) != *(data2 + i))
8878 /* Finally, make sure that changes to the mapped area do not
8879 percolate back to the file as seen by read(). (This is a bug on
8880 some variants of i386 svr4.0.) */
8881 for (i = 0; i < pagesize; ++i)
8882 *(data2 + i) = *(data2 + i) + 1;
8883 data3 = (char *) malloc (pagesize);
8886 if (read (fd, data3, pagesize) != pagesize)
8888 for (i = 0; i < pagesize; ++i)
8889 if (*(data + i) != *(data3 + i))
8895 rm -f conftest
$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_func_mmap_fixed_mapped
=yes
8908 echo "$as_me: program exited with status $ac_status" >&5
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.
$ac_ext >&5
8913 ac_cv_func_mmap_fixed_mapped
=no
8915 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8919 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8920 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8922 cat >>confdefs.h
<<\_ACEOF
8929 if test $use_mmap_for_buffers = yes; then
8933 LIBS
="$libsrc_libs $LIBS"
8936 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8937 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8938 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_check_lib_save_LIBS
=$LIBS
8943 cat >conftest.
$ac_ext <<_ACEOF
8946 cat confdefs.h
>>conftest.
$ac_ext
8947 cat >>conftest.
$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8965 rm -f conftest.
$ac_objext conftest
$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8969 grep -v '^ *+' conftest.er1
>conftest.err
8971 cat conftest.err
>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try
='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try
='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_lib_dnet_dnet_ntoa
=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.
$ac_ext >&5
8992 ac_cv_lib_dnet_dnet_ntoa
=no
8994 rm -f conftest.err conftest.
$ac_objext \
8995 conftest
$ac_exeext conftest.
$ac_ext
8996 LIBS
=$ac_check_lib_save_LIBS
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9000 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9001 cat >>confdefs.h
<<_ACEOF
9002 #define HAVE_LIBDNET 1
9010 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9011 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9012 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 ac_check_lib_save_LIBS
=$LIBS
9017 cat >conftest.
$ac_ext <<_ACEOF
9020 cat confdefs.h
>>conftest.
$ac_ext
9021 cat >>conftest.
$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9033 rm -f conftest.
$ac_objext conftest
$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9037 grep -v '^ *+' conftest.er1
>conftest.err
9039 cat conftest.err
>&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try
='test -z "$ac_c_werror_flag"
9043 || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try
='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_lib_Xbsd_main
=yes
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.
$ac_ext >&5
9060 ac_cv_lib_Xbsd_main
=no
9062 rm -f conftest.err conftest.
$ac_objext \
9063 conftest
$ac_exeext conftest.
$ac_ext
9064 LIBS
=$ac_check_lib_save_LIBS
9066 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9067 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9068 if test $ac_cv_lib_Xbsd_main = yes; then
9069 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9074 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9075 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9076 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 ac_check_lib_save_LIBS
=$LIBS
9080 LIBS
="-lpthreads $LIBS"
9081 cat >conftest.
$ac_ext <<_ACEOF
9084 cat confdefs.h
>>conftest.
$ac_ext
9085 cat >>conftest.
$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9088 /* Override any gcc2 internal prototype to avoid an error. */
9092 /* We use char because int might match the return type of a gcc2
9093 builtin and then its argument prototype would still apply. */
9103 rm -f conftest.
$ac_objext conftest
$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>conftest.er1
9107 grep -v '^ *+' conftest.er1
>conftest.err
9109 cat conftest.err
>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try
='test -z "$ac_c_werror_flag"
9113 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try
='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_pthreads_cma_open
=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 ac_cv_lib_pthreads_cma_open
=no
9132 rm -f conftest.err conftest.
$ac_objext \
9133 conftest
$ac_exeext conftest.
$ac_ext
9134 LIBS
=$ac_check_lib_save_LIBS
9136 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9137 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9138 if test $ac_cv_lib_pthreads_cma_open = yes; then
9139 cat >>confdefs.h
<<_ACEOF
9140 #define HAVE_LIBPTHREADS 1
9143 LIBS
="-lpthreads $LIBS"
9148 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9149 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9150 if test -d /usr
/X386
/include
; then
9152 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9156 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9157 echo "${ECHO_T}$HAVE_XFREE386" >&6
9162 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9163 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9164 if test "${gdb_cv_bigtoc+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9170 *) gdb_cv_bigtoc
=-bbigtoc ;;
9173 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9174 cat >conftest.
$ac_ext <<_ACEOF
9177 cat confdefs.h
>>conftest.
$ac_ext
9178 cat >>conftest.
$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9189 rm -f conftest.
$ac_objext conftest
$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try
='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try
='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.
$ac_ext >&5
9218 rm -f conftest.err conftest.
$ac_objext \
9219 conftest
$ac_exeext conftest.
$ac_ext
9222 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9223 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9227 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9228 # used for the tests that follow. We set them back to REAL_CFLAGS and
9229 # REAL_CPPFLAGS later on.
9231 REAL_CPPFLAGS
="$CPPFLAGS"
9233 if test "${HAVE_X11}" = "yes"; then
9234 DEFS
="$C_SWITCH_X_SITE $DEFS"
9235 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9237 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9238 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9240 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9241 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9242 # but it's more convenient here to set LD_RUN_PATH
9243 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9244 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9245 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9249 if test "${opsys}" = "gnu-linux"; then
9250 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9251 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9252 cat >conftest.
$ac_ext <<_ACEOF
9255 cat confdefs.h
>>conftest.
$ac_ext
9256 cat >>conftest.
$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9262 XOpenDisplay ("foo");
9267 rm -f conftest.
$ac_objext conftest
$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>conftest.er1
9271 grep -v '^ *+' conftest.er1
>conftest.err
9273 cat conftest.err
>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try
='test -z "$ac_c_werror_flag"
9277 || test ! -s conftest.err'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; } &&
9283 { ac_try
='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 xlinux_first_failure
=no
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.
$ac_ext >&5
9294 xlinux_first_failure
=yes
9296 rm -f conftest.err conftest.
$ac_objext \
9297 conftest
$ac_exeext conftest.
$ac_ext
9298 if test "${xlinux_first_failure}" = "yes"; then
9299 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9300 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9301 OLD_CPPFLAGS
="$CPPFLAGS"
9303 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9304 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9305 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9306 LIBS
="$LIBS -b i486-linuxaout"
9307 cat >conftest.
$ac_ext <<_ACEOF
9310 cat confdefs.h
>>conftest.
$ac_ext
9311 cat >>conftest.
$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9317 XOpenDisplay ("foo");
9322 rm -f conftest.
$ac_objext conftest
$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9326 grep -v '^ *+' conftest.er1
>conftest.err
9328 cat conftest.err
>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try
='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try
='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 xlinux_second_failure
=no
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.
$ac_ext >&5
9349 xlinux_second_failure
=yes
9351 rm -f conftest.err conftest.
$ac_objext \
9352 conftest
$ac_exeext conftest.
$ac_ext
9353 if test "${xlinux_second_failure}" = "yes"; then
9354 # If we get the same failure with -b, there is no use adding -b.
9355 # So take it out. This plays safe.
9356 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9357 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9358 CPPFLAGS
="$OLD_CPPFLAGS"
9360 echo "$as_me:$LINENO: result: no" >&5
9361 echo "${ECHO_T}no" >&6
9363 echo "$as_me:$LINENO: result: yes" >&5
9364 echo "${ECHO_T}yes" >&6
9367 echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6
9372 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9373 # header files included from there.
9374 echo "$as_me:$LINENO: checking for Xkb" >&5
9375 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9376 cat >conftest.
$ac_ext <<_ACEOF
9379 cat confdefs.h
>>conftest.
$ac_ext
9380 cat >>conftest.
$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <X11/Xlib.h>
9383 #include <X11/XKBlib.h>
9387 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9392 rm -f conftest.
$ac_objext conftest
$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9396 grep -v '^ *+' conftest.er1
>conftest.err
9398 cat conftest.err
>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try
='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try
='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9421 rm -f conftest.err conftest.
$ac_objext \
9422 conftest
$ac_exeext conftest.
$ac_ext
9423 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9424 echo "${ECHO_T}$emacs_xkb" >&6
9425 if test $emacs_xkb = yes; then
9427 cat >>confdefs.h
<<\_ACEOF
9428 #define HAVE_XKBGETKEYBOARD 1
9437 for ac_func
in XrmSetDatabase XScreenResourceString \
9438 XScreenNumberOfScreen XSetWMProtocols
9440 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9441 echo "$as_me:$LINENO: checking for $ac_func" >&5
9442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9443 if eval "test \"\${$as_ac_var+set}\" = set"; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 cat >conftest.
$ac_ext <<_ACEOF
9449 cat confdefs.h
>>conftest.
$ac_ext
9450 cat >>conftest.
$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9454 #define $ac_func innocuous_$ac_func
9456 /* System header to define __stub macros and hopefully few prototypes,
9457 which can conflict with char $ac_func (); below.
9458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9459 <limits.h> exists even on freestanding compilers. */
9462 # include <limits.h>
9464 # include <assert.h>
9469 /* Override any gcc2 internal prototype to avoid an error. */
9474 /* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9477 /* The GNU C library defines this for functions which it implements
9478 to always fail with ENOSYS. Some functions are actually named
9479 something starting with __ and the normal name is an alias. */
9480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9483 char (*f) () = $ac_func;
9492 return f != $ac_func;
9497 rm -f conftest.
$ac_objext conftest
$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>conftest.er1
9501 grep -v '^ *+' conftest.er1
>conftest.err
9503 cat conftest.err
>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try
='test -z "$ac_c_werror_flag"
9507 || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try
='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 eval "$as_ac_var=yes"
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.
$ac_ext >&5
9524 eval "$as_ac_var=no"
9526 rm -f conftest.err conftest.
$ac_objext \
9527 conftest
$ac_exeext conftest.
$ac_ext
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9531 if test `eval echo '${'$as_ac_var'}'` = yes; then
9532 cat >>confdefs.h
<<_ACEOF
9533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9541 if test "${window_system}" = "x11"; then
9542 echo "$as_me:$LINENO: checking X11 version 6" >&5
9543 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9544 if test "${emacs_cv_x11_version_6+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >conftest.
$ac_ext <<_ACEOF
9550 cat confdefs.h
>>conftest.
$ac_ext
9551 cat >>conftest.
$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <X11/Xlib.h>
9557 #if XlibSpecificationRelease < 6
9565 rm -f conftest.
$ac_objext conftest
$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>conftest.er1
9569 grep -v '^ *+' conftest.er1
>conftest.err
9571 cat conftest.err
>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try
='test -z "$ac_c_werror_flag"
9575 || test ! -s conftest.err'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; } &&
9581 { ac_try
='test -s conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 emacs_cv_x11_version_6
=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.
$ac_ext >&5
9592 emacs_cv_x11_version_6
=no
9594 rm -f conftest.err conftest.
$ac_objext \
9595 conftest
$ac_exeext conftest.
$ac_ext
9598 if test $emacs_cv_x11_version_6 = yes; then
9599 echo "$as_me:$LINENO: result: 6 or newer" >&5
9600 echo "${ECHO_T}6 or newer" >&6
9602 cat >>confdefs.h
<<\_ACEOF
9603 #define HAVE_X11R6 1
9607 echo "$as_me:$LINENO: result: before 6" >&5
9608 echo "${ECHO_T}before 6" >&6
9612 if test "${window_system}" = "x11"; then
9613 echo "$as_me:$LINENO: checking X11 version 5" >&5
9614 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9615 if test "${emacs_cv_x11_version_5+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 cat >conftest.
$ac_ext <<_ACEOF
9621 cat confdefs.h
>>conftest.
$ac_ext
9622 cat >>conftest.
$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <X11/Xlib.h>
9628 #if XlibSpecificationRelease < 5
9636 rm -f conftest.
$ac_objext conftest
$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>conftest.er1
9640 grep -v '^ *+' conftest.er1
>conftest.err
9642 cat conftest.err
>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try
='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try
='test -s conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 emacs_cv_x11_version_5
=yes
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.
$ac_ext >&5
9663 emacs_cv_x11_version_5
=no
9665 rm -f conftest.err conftest.
$ac_objext \
9666 conftest
$ac_exeext conftest.
$ac_ext
9669 if test $emacs_cv_x11_version_5 = yes; then
9670 echo "$as_me:$LINENO: result: 5 or newer" >&5
9671 echo "${ECHO_T}5 or newer" >&6
9674 cat >>confdefs.h
<<\_ACEOF
9675 #define HAVE_X11R5 1
9680 echo "$as_me:$LINENO: result: before 5" >&5
9681 echo "${ECHO_T}before 5" >&6
9688 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9689 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9690 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9691 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9692 { (exit 1); exit 1; }; };
9696 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9698 if test "X${with_pkg_config_prog}" != X
; then
9699 PKG_CONFIG
="${with_pkg_config_prog}"
9704 if test -z "$PKG_CONFIG"; then
9705 # Extract the first word of "pkg-config", so it can be a program name with args.
9706 set dummy pkg-config
; ac_word
=$2
9707 echo "$as_me:$LINENO: checking for $ac_word" >&5
9708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9721 test -z "$as_dir" && as_dir
=.
9722 for ac_exec_ext
in '' $ac_executable_extensions; do
9723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9735 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9737 if test -n "$PKG_CONFIG"; then
9738 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9739 echo "${ECHO_T}$PKG_CONFIG" >&6
9741 echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6
9747 if test "$PKG_CONFIG" = "no" ; then
9748 echo "*** The pkg-config script could not be found. Make sure it is"
9749 echo "*** in your path, or give the full path to pkg-config with"
9750 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9751 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9753 PKG_CONFIG_MIN_VERSION
=0.9.0
9754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9755 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9756 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9758 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760 echo "${ECHO_T}yes" >&6
9763 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9764 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9765 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9766 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9767 echo "${ECHO_T}$GTK_CFLAGS" >&6
9769 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9770 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9771 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9772 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9773 echo "${ECHO_T}$GTK_LIBS" >&6
9777 ## If we have a custom action on failure, don't print errors, but
9778 ## do set a variable so people can do so.
9779 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9780 echo $GTK_PKG_ERRORS
9786 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9787 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9791 if test $succeeded = yes; then
9794 { { 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
9795 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;}
9796 { (exit 1); exit 1; }; }
9801 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9802 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9803 LIBS
="$GTK_LIBS $LIBS"
9806 cat >>confdefs.h
<<\_ACEOF
9812 if test "$with_toolkit_scroll_bars" != no
; then
9813 with_toolkit_scroll_bars
=yes
9816 HAVE_GTK_MULTIDISPLAY
=no
9818 for ac_func
in gdk_display_open
9820 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9821 echo "$as_me:$LINENO: checking for $ac_func" >&5
9822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_var+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 cat >conftest.
$ac_ext <<_ACEOF
9829 cat confdefs.h
>>conftest.
$ac_ext
9830 cat >>conftest.
$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9834 #define $ac_func innocuous_$ac_func
9836 /* System header to define __stub macros and hopefully few prototypes,
9837 which can conflict with char $ac_func (); below.
9838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9839 <limits.h> exists even on freestanding compilers. */
9842 # include <limits.h>
9844 # include <assert.h>
9849 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9857 /* The GNU C library defines this for functions which it implements
9858 to always fail with ENOSYS. Some functions are actually named
9859 something starting with __ and the normal name is an alias. */
9860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9863 char (*f) () = $ac_func;
9872 return f != $ac_func;
9877 rm -f conftest.
$ac_objext conftest
$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879 (eval $ac_link) 2>conftest.er1
9881 grep -v '^ *+' conftest.er1
>conftest.err
9883 cat conftest.err
>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try
='test -z "$ac_c_werror_flag"
9887 || test ! -s conftest.err'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try
='test -s conftest$ac_exeext'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
9899 eval "$as_ac_var=yes"
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.
$ac_ext >&5
9904 eval "$as_ac_var=no"
9906 rm -f conftest.err conftest.
$ac_objext \
9907 conftest
$ac_exeext conftest.
$ac_ext
9909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9911 if test `eval echo '${'$as_ac_var'}'` = yes; then
9912 cat >>confdefs.h
<<_ACEOF
9913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9915 HAVE_GTK_MULTIDISPLAY
=yes
9919 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9921 cat >>confdefs.h
<<\_ACEOF
9922 #define HAVE_GTK_MULTIDISPLAY 1
9926 HAVE_GTK_FILE_SELECTION
=no
9928 for ac_func
in gtk_file_selection_new
9930 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9931 echo "$as_me:$LINENO: checking for $ac_func" >&5
9932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9933 if eval "test \"\${$as_ac_var+set}\" = set"; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 cat >conftest.
$ac_ext <<_ACEOF
9939 cat confdefs.h
>>conftest.
$ac_ext
9940 cat >>conftest.
$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9944 #define $ac_func innocuous_$ac_func
9946 /* System header to define __stub macros and hopefully few prototypes,
9947 which can conflict with char $ac_func (); below.
9948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9949 <limits.h> exists even on freestanding compilers. */
9952 # include <limits.h>
9954 # include <assert.h>
9959 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9967 /* The GNU C library defines this for functions which it implements
9968 to always fail with ENOSYS. Some functions are actually named
9969 something starting with __ and the normal name is an alias. */
9970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9973 char (*f) () = $ac_func;
9982 return f != $ac_func;
9987 rm -f conftest.
$ac_objext conftest
$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1
>conftest.err
9993 cat conftest.err
>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try
='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try
='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 eval "$as_ac_var=yes"
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.
$ac_ext >&5
10014 eval "$as_ac_var=no"
10016 rm -f conftest.err conftest.
$ac_objext \
10017 conftest
$ac_exeext conftest.
$ac_ext
10019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10021 if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h
<<_ACEOF
10023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10025 HAVE_GTK_FILE_SELECTION
=yes
10030 HAVE_GTK_FILE_CHOOSER
=no
10032 for ac_func
in gtk_file_chooser_dialog_new
10034 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10037 if eval "test \"\${$as_ac_var+set}\" = set"; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.
$ac_ext <<_ACEOF
10043 cat confdefs.h
>>conftest.
$ac_ext
10044 cat >>conftest.
$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define $ac_func innocuous_$ac_func
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10056 # include <limits.h>
10058 # include <assert.h>
10063 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10077 char (*f) () = $ac_func;
10086 return f != $ac_func;
10091 rm -f conftest.
$ac_objext conftest
$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>conftest.er1
10095 grep -v '^ *+' conftest.er1
>conftest.err
10097 cat conftest.err
>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try
='test -z "$ac_c_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try
='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 eval "$as_ac_var=yes"
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10118 eval "$as_ac_var=no"
10120 rm -f conftest.err conftest.
$ac_objext \
10121 conftest
$ac_exeext conftest.
$ac_ext
10123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10125 if test `eval echo '${'$as_ac_var'}'` = yes; then
10126 cat >>confdefs.h
<<_ACEOF
10127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10129 HAVE_GTK_FILE_CHOOSER
=yes
10134 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10135 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10137 cat >>confdefs.h
<<\_ACEOF
10138 #define HAVE_GTK_FILE_BOTH 1
10143 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10144 HAVE_GTK_AND_PTHREAD
=no
10146 for ac_header
in pthread.h
10148 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo "$as_me:$LINENO: checking for $ac_header" >&5
10151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10158 # Is the header compilable?
10159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10161 cat >conftest.
$ac_ext <<_ACEOF
10164 cat confdefs.h
>>conftest.
$ac_ext
10165 cat >>conftest.
$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 #include <$ac_header>
10170 rm -f conftest.
$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1
>conftest.err
10176 cat conftest.err
>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try
='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try
='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_header_compiler
=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.
$ac_ext >&5
10197 ac_header_compiler
=no
10199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10201 echo "${ECHO_T}$ac_header_compiler" >&6
10203 # Is the header present?
10204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10206 cat >conftest.
$ac_ext <<_ACEOF
10209 cat confdefs.h
>>conftest.
$ac_ext
10210 cat >>conftest.
$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 #include <$ac_header>
10214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10217 grep -v '^ *+' conftest.er1
>conftest.err
10219 cat conftest.err
>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } >/dev
/null
; then
10222 if test -s conftest.err
; then
10223 ac_cpp_err
=$ac_c_preproc_warn_flag
10224 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10231 if test -z "$ac_cpp_err"; then
10232 ac_header_preproc
=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.
$ac_ext >&5
10237 ac_header_preproc
=no
10239 rm -f conftest.err conftest.
$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10241 echo "${ECHO_T}$ac_header_preproc" >&6
10243 # So? What about this header?
10244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10250 ac_header_preproc
=yes
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10267 ## ------------------------------------------ ##
10268 ## Report this to the AC_PACKAGE_NAME lists. ##
10269 ## ------------------------------------------ ##
10272 sed "s/^/$as_me: WARNING: /" >&2
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 eval "$as_ac_Header=\$ac_header_preproc"
10282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10287 cat >>confdefs.h
<<_ACEOF
10288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10295 if test "$ac_cv_header_pthread_h"; then
10296 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10297 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10298 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 ac_check_lib_save_LIBS
=$LIBS
10302 LIBS
="-lpthread $LIBS"
10303 cat >conftest.
$ac_ext <<_ACEOF
10306 cat confdefs.h
>>conftest.
$ac_ext
10307 cat >>conftest.
$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10310 /* Override any gcc2 internal prototype to avoid an error. */
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10316 char pthread_self ();
10325 rm -f conftest.
$ac_objext conftest
$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>conftest.er1
10329 grep -v '^ *+' conftest.er1
>conftest.err
10331 cat conftest.err
>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try
='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try
='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_lib_pthread_pthread_self
=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.
$ac_ext >&5
10352 ac_cv_lib_pthread_pthread_self
=no
10354 rm -f conftest.err conftest.
$ac_objext \
10355 conftest
$ac_exeext conftest.
$ac_ext
10356 LIBS
=$ac_check_lib_save_LIBS
10358 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10359 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10360 if test $ac_cv_lib_pthread_pthread_self = yes; then
10361 HAVE_GTK_AND_PTHREAD
=yes
10365 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10366 GTK_LIBS
="$GTK_LIBS -lpthread"
10368 cat >>confdefs.h
<<\_ACEOF
10369 #define HAVE_GTK_AND_PTHREAD 1
10376 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10377 if test x
"${HAVE_X11R5}" = xyes
; then
10378 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10379 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10380 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 cat >conftest.
$ac_ext <<_ACEOF
10386 cat confdefs.h
>>conftest.
$ac_ext
10387 cat >>conftest.
$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10390 #include <X11/Intrinsic.h>
10391 #include <X11/Xaw/Simple.h>
10400 rm -f conftest.
$ac_objext conftest
$ac_exeext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402 (eval $ac_link) 2>conftest.er1
10404 grep -v '^ *+' conftest.er1
>conftest.err
10406 cat conftest.err
>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try
='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try
='test -s conftest$ac_exeext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 emacs_cv_x11_version_5_with_xaw
=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.
$ac_ext >&5
10427 emacs_cv_x11_version_5_with_xaw
=no
10429 rm -f conftest.err conftest.
$ac_objext \
10430 conftest
$ac_exeext conftest.
$ac_ext
10433 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10434 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10435 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10436 USE_X_TOOLKIT
=LUCID
10438 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10439 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10447 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10449 if test "${USE_X_TOOLKIT}" != "none"; then
10450 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10451 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10452 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 cat >conftest.
$ac_ext <<_ACEOF
10458 cat confdefs.h
>>conftest.
$ac_ext
10459 cat >>conftest.
$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <X11/Intrinsic.h>
10465 #if XtSpecificationRelease < 6
10473 rm -f conftest.
$ac_objext conftest
$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>conftest.er1
10477 grep -v '^ *+' conftest.er1
>conftest.err
10479 cat conftest.err
>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try
='test -z "$ac_c_werror_flag"
10483 || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try
='test -s conftest$ac_exeext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 emacs_cv_x11_toolkit_version_6
=yes
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.
$ac_ext >&5
10500 emacs_cv_x11_toolkit_version_6
=no
10502 rm -f conftest.err conftest.
$ac_objext \
10503 conftest
$ac_exeext conftest.
$ac_ext
10506 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10507 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10508 echo "$as_me:$LINENO: result: 6 or newer" >&5
10509 echo "${ECHO_T}6 or newer" >&6
10511 cat >>confdefs.h
<<\_ACEOF
10512 #define HAVE_X11XTR6 1
10516 echo "$as_me:$LINENO: result: before 6" >&5
10517 echo "${ECHO_T}before 6" >&6
10521 if test x
$HAVE_X11XTR6 = xyes
; then
10522 LIBS
="-lXt -lSM -lICE $LIBS"
10527 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10528 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10529 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 ac_check_lib_save_LIBS
=$LIBS
10534 cat >conftest.
$ac_ext <<_ACEOF
10537 cat confdefs.h
>>conftest.
$ac_ext
10538 cat >>conftest.
$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10541 /* Override any gcc2 internal prototype to avoid an error. */
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10547 char XmuConvertStandardSelection ();
10551 XmuConvertStandardSelection ();
10556 rm -f conftest.
$ac_objext conftest
$ac_exeext
10557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>conftest.er1
10560 grep -v '^ *+' conftest.er1
>conftest.err
10562 cat conftest.err
>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } &&
10565 { ac_try
='test -z "$ac_c_werror_flag"
10566 || test ! -s conftest.err'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try
='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.
$ac_ext >&5
10583 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10585 rm -f conftest.err conftest.
$ac_objext \
10586 conftest
$ac_exeext conftest.
$ac_ext
10587 LIBS
=$ac_check_lib_save_LIBS
10589 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10590 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10591 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10592 cat >>confdefs.h
<<_ACEOF
10593 #define HAVE_LIBXMU 1
10600 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10603 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10604 if test "${HAVE_X11}" = "yes"; then
10605 if test "${USE_X_TOOLKIT}" != "none"; then
10607 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10608 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10609 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 ac_check_lib_save_LIBS
=$LIBS
10613 LIBS
="-lXext $LIBS"
10614 cat >conftest.
$ac_ext <<_ACEOF
10617 cat confdefs.h
>>conftest.
$ac_ext
10618 cat >>conftest.
$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10621 /* Override any gcc2 internal prototype to avoid an error. */
10625 /* We use char because int might match the return type of a gcc2
10626 builtin and then its argument prototype would still apply. */
10627 char XShapeQueryExtension ();
10631 XShapeQueryExtension ();
10636 rm -f conftest.
$ac_objext conftest
$ac_exeext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638 (eval $ac_link) 2>conftest.er1
10640 grep -v '^ *+' conftest.er1
>conftest.err
10642 cat conftest.err
>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try
='test -z "$ac_c_werror_flag"
10646 || test ! -s conftest.err'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try
='test -s conftest$ac_exeext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.
$ac_ext >&5
10663 ac_cv_lib_Xext_XShapeQueryExtension
=no
10665 rm -f conftest.err conftest.
$ac_objext \
10666 conftest
$ac_exeext conftest.
$ac_ext
10667 LIBS
=$ac_check_lib_save_LIBS
10669 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10670 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10671 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10672 cat >>confdefs.h
<<_ACEOF
10673 #define HAVE_LIBXEXT 1
10676 LIBS
="-lXext $LIBS"
10683 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10684 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10685 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10686 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 cat >conftest.
$ac_ext <<_ACEOF
10692 cat confdefs.h
>>conftest.
$ac_ext
10693 cat >>conftest.
$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10699 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10702 Motif version prior to 2.1.
10708 rm -f conftest.
$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10712 grep -v '^ *+' conftest.er1
>conftest.err
10714 cat conftest.err
>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try
='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try
='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 emacs_cv_motif_version_2_1
=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.
$ac_ext >&5
10735 emacs_cv_motif_version_2_1
=no
10737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10739 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10740 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10741 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10742 if test $emacs_cv_motif_version_2_1 = yes; then
10745 cat >>confdefs.h
<<\_ACEOF
10746 #define HAVE_MOTIF_2_1 1
10749 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10750 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10751 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 ac_check_lib_save_LIBS
=$LIBS
10756 cat >conftest.
$ac_ext <<_ACEOF
10759 cat confdefs.h
>>conftest.
$ac_ext
10760 cat >>conftest.
$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10763 /* Override any gcc2 internal prototype to avoid an error. */
10767 /* We use char because int might match the return type of a gcc2
10768 builtin and then its argument prototype would still apply. */
10769 char XpCreateContext ();
10773 XpCreateContext ();
10778 rm -f conftest.
$ac_objext conftest
$ac_exeext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>conftest.er1
10782 grep -v '^ *+' conftest.er1
>conftest.err
10784 cat conftest.err
>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try
='test -z "$ac_c_werror_flag"
10788 || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try
='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_Xp_XpCreateContext
=yes
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.
$ac_ext >&5
10805 ac_cv_lib_Xp_XpCreateContext
=no
10807 rm -f conftest.err conftest.
$ac_objext \
10808 conftest
$ac_exeext conftest.
$ac_ext
10809 LIBS
=$ac_check_lib_save_LIBS
10811 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10812 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10813 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10817 if test ${HAVE_LIBXP} = yes; then
10819 cat >>confdefs.h
<<\_ACEOF
10820 #define HAVE_LIBXP 1
10825 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10826 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10827 if test "${emacs_cv_lesstif+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 # We put this in CFLAGS temporarily to precede other -I options
10831 # that might be in CFLAGS temporarily.
10832 # We put this in CPPFLAGS where it precedes the other -I options.
10833 OLD_CPPFLAGS
=$CPPFLAGS
10835 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10836 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10837 cat >conftest.
$ac_ext <<_ACEOF
10840 cat confdefs.h
>>conftest.
$ac_ext
10841 cat >>conftest.
$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10852 rm -f conftest.
$ac_objext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>conftest.er1
10856 grep -v '^ *+' conftest.er1
>conftest.err
10858 cat conftest.err
>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try
='test -z "$ac_c_werror_flag"
10862 || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try
='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 emacs_cv_lesstif
=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.
$ac_ext >&5
10879 emacs_cv_lesstif
=no
10881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10883 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10884 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10885 if test $emacs_cv_lesstif = yes; then
10886 # Make sure this -I option remains in CPPFLAGS after it is set
10887 # back to REAL_CPPFLAGS.
10888 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10889 # have those other -I options anyway. Ultimately, having this
10890 # directory ultimately in CPPFLAGS will be enough.
10891 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10892 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10895 CPPFLAGS
=$OLD_CPPFLAGS
10900 ### Is -lXaw3d available?
10902 if test "${HAVE_X11}" = "yes"; then
10903 if test "${USE_X_TOOLKIT}" != "none"; then
10904 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10905 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10906 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 cat >conftest.
$ac_ext <<_ACEOF
10912 cat confdefs.h
>>conftest.
$ac_ext
10913 cat >>conftest.
$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 #include <X11/Xaw3d/Scrollbar.h>
10917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10918 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10920 grep -v '^ *+' conftest.er1
>conftest.err
10922 cat conftest.err
>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } >/dev
/null
; then
10925 if test -s conftest.err
; then
10926 ac_cpp_err
=$ac_c_preproc_warn_flag
10927 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10934 if test -z "$ac_cpp_err"; then
10935 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.
$ac_ext >&5
10940 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10942 rm -f conftest.err conftest.
$ac_ext
10944 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10945 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10946 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10947 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10948 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10949 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 ac_check_lib_save_LIBS
=$LIBS
10953 LIBS
="-lXaw3d $LIBS"
10954 cat >conftest.
$ac_ext <<_ACEOF
10957 cat confdefs.h
>>conftest.
$ac_ext
10958 cat >>conftest.
$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10961 /* Override any gcc2 internal prototype to avoid an error. */
10965 /* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
10967 char XawScrollbarSetThumb ();
10971 XawScrollbarSetThumb ();
10976 rm -f conftest.
$ac_objext conftest
$ac_exeext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10978 (eval $ac_link) 2>conftest.er1
10980 grep -v '^ *+' conftest.er1
>conftest.err
10982 cat conftest.err
>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try
='test -z "$ac_c_werror_flag"
10986 || test ! -s conftest.err'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try
='test -s conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.
$ac_ext >&5
11003 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11005 rm -f conftest.err conftest.
$ac_objext \
11006 conftest
$ac_exeext conftest.
$ac_ext
11007 LIBS
=$ac_check_lib_save_LIBS
11009 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11010 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11011 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11018 if test "${HAVE_XAW3D}" = "yes"; then
11020 cat >>confdefs.h
<<\_ACEOF
11021 #define HAVE_XAW3D 1
11030 USE_TOOLKIT_SCROLL_BARS
=no
11031 if test "${with_toolkit_scroll_bars}" != "no"; then
11032 if test "${USE_X_TOOLKIT}" != "none"; then
11033 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11034 cat >>confdefs.h
<<\_ACEOF
11035 #define USE_TOOLKIT_SCROLL_BARS 1
11039 USE_TOOLKIT_SCROLL_BARS
=yes
11040 elif test "${HAVE_XAW3D}" = "yes"; then
11041 cat >>confdefs.h
<<\_ACEOF
11042 #define USE_TOOLKIT_SCROLL_BARS 1
11045 USE_TOOLKIT_SCROLL_BARS
=yes
11047 elif test "${HAVE_GTK}" = "yes"; then
11048 cat >>confdefs.h
<<\_ACEOF
11049 #define USE_TOOLKIT_SCROLL_BARS 1
11052 USE_TOOLKIT_SCROLL_BARS
=yes
11056 cat >conftest.
$ac_ext <<_ACEOF
11059 cat confdefs.h
>>conftest.
$ac_ext
11060 cat >>conftest.
$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11063 #include <X11/Xlib.h>
11064 #include <X11/Xresource.h>
11073 rm -f conftest.
$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1
>conftest.err
11079 cat conftest.err
>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try
='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try
='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11097 cat >>confdefs.h
<<\_ACEOF
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.
$ac_ext >&5
11107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11110 if test "${with_xim}" != "no"; then
11112 cat >>confdefs.h
<<\_ACEOF
11119 if test "${HAVE_XIM}" != "no"; then
11120 late_CFLAGS
=$CFLAGS
11121 if test "$GCC" = yes; then
11122 CFLAGS
="$CFLAGS --pedantic-errors"
11124 cat >conftest.
$ac_ext <<_ACEOF
11127 cat confdefs.h
>>conftest.
$ac_ext
11128 cat >>conftest.
$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11131 #include <X11/Xlib.h>
11132 #include <X11/Xresource.h>
11141 XPointer *client_data;
11143 /* If we're not using GCC, it's probably not XFree86, and this is
11144 probably right, but we can't use something like --pedantic-errors. */
11145 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11146 char*, XIMProc, XPointer*);
11148 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11154 rm -f conftest.
$ac_objext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>conftest.er1
11158 grep -v '^ *+' conftest.er1
>conftest.err
11160 cat conftest.err
>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try
='test -z "$ac_c_werror_flag"
11164 || test ! -s conftest.err'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; } &&
11170 { ac_try
='test -s conftest.$ac_objext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 emacs_cv_arg6_star
=yes
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.
$ac_ext >&5
11182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11184 if test "$emacs_cv_arg6_star" = yes; then
11185 cat >>confdefs.h
<<\_ACEOF
11186 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11190 cat >>confdefs.h
<<\_ACEOF
11191 #define XRegisterIMInstantiateCallback_arg6 XPointer
11195 CFLAGS
=$late_CFLAGS
11198 ### Use -lXpm if available, unless `--with-xpm=no'.
11200 if test "${HAVE_X11}" = "yes"; then
11201 if test "${with_xpm}" != "no"; then
11202 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11203 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11204 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11205 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11209 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11211 # Is the header compilable?
11212 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11213 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11214 cat >conftest.
$ac_ext <<_ACEOF
11217 cat confdefs.h
>>conftest.
$ac_ext
11218 cat >>conftest.
$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 $ac_includes_default
11221 #include <X11/xpm.h>
11223 rm -f conftest.
$ac_objext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>conftest.er1
11227 grep -v '^ *+' conftest.er1
>conftest.err
11229 cat conftest.err
>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try
='test -z "$ac_c_werror_flag"
11233 || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try
='test -s conftest.$ac_objext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler
=yes
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.
$ac_ext >&5
11250 ac_header_compiler
=no
11252 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11254 echo "${ECHO_T}$ac_header_compiler" >&6
11256 # Is the header present?
11257 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11258 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11259 cat >conftest.
$ac_ext <<_ACEOF
11262 cat confdefs.h
>>conftest.
$ac_ext
11263 cat >>conftest.
$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 #include <X11/xpm.h>
11267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11270 grep -v '^ *+' conftest.er1
>conftest.err
11272 cat conftest.err
>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev
/null
; then
11275 if test -s conftest.err
; then
11276 ac_cpp_err
=$ac_c_preproc_warn_flag
11277 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11284 if test -z "$ac_cpp_err"; then
11285 ac_header_preproc
=yes
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.
$ac_ext >&5
11290 ac_header_preproc
=no
11292 rm -f conftest.err conftest.
$ac_ext
11293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294 echo "${ECHO_T}$ac_header_preproc" >&6
11296 # So? What about this header?
11297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11299 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11300 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11302 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11303 ac_header_preproc
=yes
11306 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11307 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11309 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11311 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11313 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11315 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11317 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11320 ## ------------------------------------------ ##
11321 ## Report this to the AC_PACKAGE_NAME lists. ##
11322 ## ------------------------------------------ ##
11325 sed "s/^/$as_me: WARNING: /" >&2
11328 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11329 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11330 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11335 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11336 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11339 if test $ac_cv_header_X11_xpm_h = yes; then
11340 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11341 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11342 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 ac_check_lib_save_LIBS
=$LIBS
11346 LIBS
="-lXpm -lX11 $LIBS"
11347 cat >conftest.
$ac_ext <<_ACEOF
11350 cat confdefs.h
>>conftest.
$ac_ext
11351 cat >>conftest.
$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11354 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11360 char XpmReadFileToPixmap ();
11364 XpmReadFileToPixmap ();
11369 rm -f conftest.
$ac_objext conftest
$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>conftest.er1
11373 grep -v '^ *+' conftest.er1
>conftest.err
11375 cat conftest.err
>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try
='test -z "$ac_c_werror_flag"
11379 || test ! -s conftest.err'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try
='test -s conftest$ac_exeext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11393 echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.
$ac_ext >&5
11396 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11398 rm -f conftest.err conftest.
$ac_objext \
11399 conftest
$ac_exeext conftest.
$ac_ext
11400 LIBS
=$ac_check_lib_save_LIBS
11402 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11403 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11404 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11411 if test "${HAVE_XPM}" = "yes"; then
11412 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11413 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11414 cat >conftest.
$ac_ext <<_ACEOF
11417 cat confdefs.h
>>conftest.
$ac_ext
11418 cat >>conftest.
$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 #include "X11/xpm.h"
11421 #ifndef XpmReturnAllocPixels
11422 no_return_alloc_pixels
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11435 if test "${HAVE_XPM}" = "yes"; then
11436 echo "$as_me:$LINENO: result: yes" >&5
11437 echo "${ECHO_T}yes" >&6
11439 echo "$as_me:$LINENO: result: no" >&5
11440 echo "${ECHO_T}no" >&6
11445 if test "${HAVE_XPM}" = "yes"; then
11447 cat >>confdefs.h
<<\_ACEOF
11454 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11456 if test "${HAVE_X11}" = "yes"; then
11457 if test "${with_jpeg}" != "no"; then
11458 if test "${ac_cv_header_jerror_h+set}" = set; then
11459 echo "$as_me:$LINENO: checking for jerror.h" >&5
11460 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11461 if test "${ac_cv_header_jerror_h+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11465 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11467 # Is the header compilable?
11468 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11469 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11470 cat >conftest.
$ac_ext <<_ACEOF
11473 cat confdefs.h
>>conftest.
$ac_ext
11474 cat >>conftest.
$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 $ac_includes_default
11477 #include <jerror.h>
11479 rm -f conftest.
$ac_objext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481 (eval $ac_compile) 2>conftest.er1
11483 grep -v '^ *+' conftest.er1
>conftest.err
11485 cat conftest.err
>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try
='test -z "$ac_c_werror_flag"
11489 || test ! -s conftest.err'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try
='test -s conftest.$ac_objext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_header_compiler
=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.
$ac_ext >&5
11506 ac_header_compiler
=no
11508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11510 echo "${ECHO_T}$ac_header_compiler" >&6
11512 # Is the header present?
11513 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11514 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11515 cat >conftest.
$ac_ext <<_ACEOF
11518 cat confdefs.h
>>conftest.
$ac_ext
11519 cat >>conftest.
$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <jerror.h>
11523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11524 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11526 grep -v '^ *+' conftest.er1
>conftest.err
11528 cat conftest.err
>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } >/dev
/null
; then
11531 if test -s conftest.err
; then
11532 ac_cpp_err
=$ac_c_preproc_warn_flag
11533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11540 if test -z "$ac_cpp_err"; then
11541 ac_header_preproc
=yes
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.
$ac_ext >&5
11546 ac_header_preproc
=no
11548 rm -f conftest.err conftest.
$ac_ext
11549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6
11552 # So? What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11559 ac_header_preproc
=yes
11562 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11576 ## ------------------------------------------ ##
11577 ## Report this to the AC_PACKAGE_NAME lists. ##
11578 ## ------------------------------------------ ##
11581 sed "s/^/$as_me: WARNING: /" >&2
11584 echo "$as_me:$LINENO: checking for jerror.h" >&5
11585 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11586 if test "${ac_cv_header_jerror_h+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 ac_cv_header_jerror_h
=$ac_header_preproc
11591 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11592 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11595 if test $ac_cv_header_jerror_h = yes; then
11596 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11597 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11598 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 ac_check_lib_save_LIBS
=$LIBS
11602 LIBS
="-ljpeg $LIBS"
11603 cat >conftest.
$ac_ext <<_ACEOF
11606 cat confdefs.h
>>conftest.
$ac_ext
11607 cat >>conftest.
$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11610 /* Override any gcc2 internal prototype to avoid an error. */
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11616 char jpeg_destroy_compress ();
11620 jpeg_destroy_compress ();
11625 rm -f conftest.
$ac_objext conftest
$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>conftest.er1
11629 grep -v '^ *+' conftest.er1
>conftest.err
11631 cat conftest.err
>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try
='test -z "$ac_c_werror_flag"
11635 || test ! -s conftest.err'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; } &&
11641 { ac_try
='test -s conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.
$ac_ext >&5
11652 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11654 rm -f conftest.err conftest.
$ac_objext \
11655 conftest
$ac_exeext conftest.
$ac_ext
11656 LIBS
=$ac_check_lib_save_LIBS
11658 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11659 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11660 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11670 if test "${HAVE_JPEG}" = "yes"; then
11671 cat >>confdefs.h
<<\_ACEOF
11672 #define HAVE_JPEG 1
11675 cat >conftest.
$ac_ext <<_ACEOF
11678 cat confdefs.h
>>conftest.
$ac_ext
11679 cat >>conftest.
$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 #include <jpeglib.h>
11682 version=JPEG_LIB_VERSION
11685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11686 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11687 cat >>confdefs.h
<<\_ACEOF
11688 #define HAVE_JPEG 1
11692 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11693 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11701 ### Use -lpng if available, unless `--with-png=no'.
11703 if test "${HAVE_X11}" = "yes"; then
11704 if test "${with_png}" != "no"; then
11705 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11706 # in /usr/include/libpng.
11709 for ac_header
in png.h libpng
/png.h
11711 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11713 echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11721 # Is the header compilable?
11722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11724 cat >conftest.
$ac_ext <<_ACEOF
11727 cat confdefs.h
>>conftest.
$ac_ext
11728 cat >>conftest.
$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 $ac_includes_default
11731 #include <$ac_header>
11733 rm -f conftest.
$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735 (eval $ac_compile) 2>conftest.er1
11737 grep -v '^ *+' conftest.er1
>conftest.err
11739 cat conftest.err
>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try
='test -z "$ac_c_werror_flag"
11743 || test ! -s conftest.err'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try
='test -s conftest.$ac_objext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_header_compiler
=yes
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.
$ac_ext >&5
11760 ac_header_compiler
=no
11762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764 echo "${ECHO_T}$ac_header_compiler" >&6
11766 # Is the header present?
11767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11769 cat >conftest.
$ac_ext <<_ACEOF
11772 cat confdefs.h
>>conftest.
$ac_ext
11773 cat >>conftest.
$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 #include <$ac_header>
11777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11778 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11780 grep -v '^ *+' conftest.er1
>conftest.err
11782 cat conftest.err
>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } >/dev
/null
; then
11785 if test -s conftest.err
; then
11786 ac_cpp_err
=$ac_c_preproc_warn_flag
11787 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11794 if test -z "$ac_cpp_err"; then
11795 ac_header_preproc
=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.
$ac_ext >&5
11800 ac_header_preproc
=no
11802 rm -f conftest.err conftest.
$ac_ext
11803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11804 echo "${ECHO_T}$ac_header_preproc" >&6
11806 # So? What about this header?
11807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11813 ac_header_preproc
=yes
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11830 ## ------------------------------------------ ##
11831 ## Report this to the AC_PACKAGE_NAME lists. ##
11832 ## ------------------------------------------ ##
11835 sed "s/^/$as_me: WARNING: /" >&2
11838 echo "$as_me:$LINENO: checking for $ac_header" >&5
11839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 eval "$as_ac_Header=\$ac_header_preproc"
11845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11850 cat >>confdefs.h
<<_ACEOF
11851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11858 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11859 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11860 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11861 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_check_lib_save_LIBS
=$LIBS
11865 LIBS
="-lpng -lz -lm $LIBS"
11866 cat >conftest.
$ac_ext <<_ACEOF
11869 cat confdefs.h
>>conftest.
$ac_ext
11870 cat >>conftest.
$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any gcc2 internal prototype to avoid an error. */
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879 char png_get_channels ();
11883 png_get_channels ();
11888 rm -f conftest.
$ac_objext conftest
$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>conftest.er1
11892 grep -v '^ *+' conftest.er1
>conftest.err
11894 cat conftest.err
>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try
='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try
='test -s conftest$ac_exeext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_lib_png_png_get_channels
=yes
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.
$ac_ext >&5
11915 ac_cv_lib_png_png_get_channels
=no
11917 rm -f conftest.err conftest.
$ac_objext \
11918 conftest
$ac_exeext conftest.
$ac_ext
11919 LIBS
=$ac_check_lib_save_LIBS
11921 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11922 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11923 if test $ac_cv_lib_png_png_get_channels = yes; then
11930 if test "${HAVE_PNG}" = "yes"; then
11932 cat >>confdefs.h
<<\_ACEOF
11939 ### Use -ltiff if available, unless `--with-tiff=no'.
11941 if test "${HAVE_X11}" = "yes"; then
11942 if test "${with_tiff}" != "no"; then
11943 if test "${ac_cv_header_tiffio_h+set}" = set; then
11944 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11945 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11946 if test "${ac_cv_header_tiffio_h+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11950 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11952 # Is the header compilable?
11953 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11954 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11955 cat >conftest.
$ac_ext <<_ACEOF
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 #include <tiffio.h>
11964 rm -f conftest.
$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11968 grep -v '^ *+' conftest.er1
>conftest.err
11970 cat conftest.err
>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try
='test -z "$ac_c_werror_flag"
11974 || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try
='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_header_compiler
=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.
$ac_ext >&5
11991 ac_header_compiler
=no
11993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11995 echo "${ECHO_T}$ac_header_compiler" >&6
11997 # Is the header present?
11998 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11999 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12000 cat >conftest.
$ac_ext <<_ACEOF
12003 cat confdefs.h
>>conftest.
$ac_ext
12004 cat >>conftest.
$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 #include <tiffio.h>
12008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12009 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12011 grep -v '^ *+' conftest.er1
>conftest.err
12013 cat conftest.err
>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } >/dev
/null
; then
12016 if test -s conftest.err
; then
12017 ac_cpp_err
=$ac_c_preproc_warn_flag
12018 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12025 if test -z "$ac_cpp_err"; then
12026 ac_header_preproc
=yes
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.
$ac_ext >&5
12031 ac_header_preproc
=no
12033 rm -f conftest.err conftest.
$ac_ext
12034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12035 echo "${ECHO_T}$ac_header_preproc" >&6
12037 # So? What about this header?
12038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12040 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12041 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12043 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12044 ac_header_preproc
=yes
12047 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12048 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12050 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12052 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12054 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12056 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12058 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12061 ## ------------------------------------------ ##
12062 ## Report this to the AC_PACKAGE_NAME lists. ##
12063 ## ------------------------------------------ ##
12066 sed "s/^/$as_me: WARNING: /" >&2
12069 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12070 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12071 if test "${ac_cv_header_tiffio_h+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 ac_cv_header_tiffio_h
=$ac_header_preproc
12076 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12077 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12080 if test $ac_cv_header_tiffio_h = yes; then
12082 # At least one tiff package requires the jpeg library.
12083 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12084 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12085 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12086 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 ac_check_lib_save_LIBS
=$LIBS
12090 LIBS
="-ltiff $tifflibs $LIBS"
12091 cat >conftest.
$ac_ext <<_ACEOF
12094 cat confdefs.h
>>conftest.
$ac_ext
12095 cat >>conftest.
$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12098 /* Override any gcc2 internal prototype to avoid an error. */
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104 char TIFFGetVersion ();
12113 rm -f conftest.
$ac_objext conftest
$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>conftest.er1
12117 grep -v '^ *+' conftest.er1
>conftest.err
12119 cat conftest.err
>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try
='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try
='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_lib_tiff_TIFFGetVersion
=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.
$ac_ext >&5
12140 ac_cv_lib_tiff_TIFFGetVersion
=no
12142 rm -f conftest.err conftest.
$ac_objext \
12143 conftest
$ac_exeext conftest.
$ac_ext
12144 LIBS
=$ac_check_lib_save_LIBS
12146 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12147 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12148 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12157 if test "${HAVE_TIFF}" = "yes"; then
12159 cat >>confdefs.h
<<\_ACEOF
12160 #define HAVE_TIFF 1
12166 ### Use -lgif if available, unless `--with-gif=no'.
12168 if test "${HAVE_X11}" = "yes"; then
12169 if test "${with_gif}" != "no"; then
12170 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12171 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12172 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12173 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12177 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12179 # Is the header compilable?
12180 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12181 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12182 cat >conftest.
$ac_ext <<_ACEOF
12185 cat confdefs.h
>>conftest.
$ac_ext
12186 cat >>conftest.
$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12189 #include <gif_lib.h>
12191 rm -f conftest.
$ac_objext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>conftest.er1
12195 grep -v '^ *+' conftest.er1
>conftest.err
12197 cat conftest.err
>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try
='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try
='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_header_compiler
=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.
$ac_ext >&5
12218 ac_header_compiler
=no
12220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12222 echo "${ECHO_T}$ac_header_compiler" >&6
12224 # Is the header present?
12225 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12226 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12227 cat >conftest.
$ac_ext <<_ACEOF
12230 cat confdefs.h
>>conftest.
$ac_ext
12231 cat >>conftest.
$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 #include <gif_lib.h>
12235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12236 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12238 grep -v '^ *+' conftest.er1
>conftest.err
12240 cat conftest.err
>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } >/dev
/null
; then
12243 if test -s conftest.err
; then
12244 ac_cpp_err
=$ac_c_preproc_warn_flag
12245 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12252 if test -z "$ac_cpp_err"; then
12253 ac_header_preproc
=yes
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.
$ac_ext >&5
12258 ac_header_preproc
=no
12260 rm -f conftest.err conftest.
$ac_ext
12261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12262 echo "${ECHO_T}$ac_header_preproc" >&6
12264 # So? What about this header?
12265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12268 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12270 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12271 ac_header_preproc
=yes
12274 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12275 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12277 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12279 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12281 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12283 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12285 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12288 ## ------------------------------------------ ##
12289 ## Report this to the AC_PACKAGE_NAME lists. ##
12290 ## ------------------------------------------ ##
12293 sed "s/^/$as_me: WARNING: /" >&2
12296 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12297 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12298 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 ac_cv_header_gif_lib_h
=$ac_header_preproc
12303 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12304 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12307 if test $ac_cv_header_gif_lib_h = yes; then
12308 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12309 # Earlier versions can crash Emacs.
12310 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12311 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12312 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 ac_check_lib_save_LIBS
=$LIBS
12316 LIBS
="-lungif $LIBS"
12317 cat >conftest.
$ac_ext <<_ACEOF
12320 cat confdefs.h
>>conftest.
$ac_ext
12321 cat >>conftest.
$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 /* Override any gcc2 internal prototype to avoid an error. */
12328 /* We use char because int might match the return type of a gcc2
12329 builtin and then its argument prototype would still apply. */
12330 char EGifPutExtensionLast ();
12334 EGifPutExtensionLast ();
12339 rm -f conftest.
$ac_objext conftest
$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341 (eval $ac_link) 2>conftest.er1
12343 grep -v '^ *+' conftest.er1
>conftest.err
12345 cat conftest.err
>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try
='test -z "$ac_c_werror_flag"
12349 || test ! -s conftest.err'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try
='test -s conftest$ac_exeext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.
$ac_ext >&5
12366 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12368 rm -f conftest.err conftest.
$ac_objext \
12369 conftest
$ac_exeext conftest.
$ac_ext
12370 LIBS
=$ac_check_lib_save_LIBS
12372 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12373 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12374 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12383 if test "${HAVE_GIF}" = "yes"; then
12385 cat >>confdefs.h
<<\_ACEOF
12392 ### Use Mac OS X Carbon API to implement GUI.
12394 if test "${with_carbon}" != "no"; then
12395 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12396 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12397 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12398 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12402 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12404 # Is the header compilable?
12405 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12406 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12414 #include <Carbon/Carbon.h>
12416 rm -f conftest.
$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12420 grep -v '^ *+' conftest.er1
>conftest.err
12422 cat conftest.err
>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try
='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try
='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_header_compiler
=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.
$ac_ext >&5
12443 ac_header_compiler
=no
12445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447 echo "${ECHO_T}$ac_header_compiler" >&6
12449 # Is the header present?
12450 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12451 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12452 cat >conftest.
$ac_ext <<_ACEOF
12455 cat confdefs.h
>>conftest.
$ac_ext
12456 cat >>conftest.
$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 #include <Carbon/Carbon.h>
12460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12463 grep -v '^ *+' conftest.er1
>conftest.err
12465 cat conftest.err
>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } >/dev
/null
; then
12468 if test -s conftest.err
; then
12469 ac_cpp_err
=$ac_c_preproc_warn_flag
12470 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12477 if test -z "$ac_cpp_err"; then
12478 ac_header_preproc
=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.
$ac_ext >&5
12483 ac_header_preproc
=no
12485 rm -f conftest.err conftest.
$ac_ext
12486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12487 echo "${ECHO_T}$ac_header_preproc" >&6
12489 # So? What about this header?
12490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12493 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12495 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12496 ac_header_preproc
=yes
12499 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12500 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12501 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12502 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12504 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12506 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12508 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12510 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12513 ## ------------------------------------------ ##
12514 ## Report this to the AC_PACKAGE_NAME lists. ##
12515 ## ------------------------------------------ ##
12518 sed "s/^/$as_me: WARNING: /" >&2
12521 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12522 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12523 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12528 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12529 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12532 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12539 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12540 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12541 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12542 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12546 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12548 # Is the header compilable?
12549 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12550 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12551 cat >conftest.
$ac_ext <<_ACEOF
12554 cat confdefs.h
>>conftest.
$ac_ext
12555 cat >>conftest.
$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 $ac_includes_default
12558 #include <malloc/malloc.h>
12560 rm -f conftest.
$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>conftest.er1
12564 grep -v '^ *+' conftest.er1
>conftest.err
12566 cat conftest.err
>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try
='test -z "$ac_c_werror_flag"
12570 || test ! -s conftest.err'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try
='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_header_compiler
=yes
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.
$ac_ext >&5
12587 ac_header_compiler
=no
12589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12591 echo "${ECHO_T}$ac_header_compiler" >&6
12593 # Is the header present?
12594 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12595 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12596 cat >conftest.
$ac_ext <<_ACEOF
12599 cat confdefs.h
>>conftest.
$ac_ext
12600 cat >>conftest.
$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 #include <malloc/malloc.h>
12604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12605 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12607 grep -v '^ *+' conftest.er1
>conftest.err
12609 cat conftest.err
>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } >/dev
/null
; then
12612 if test -s conftest.err
; then
12613 ac_cpp_err
=$ac_c_preproc_warn_flag
12614 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12621 if test -z "$ac_cpp_err"; then
12622 ac_header_preproc
=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.
$ac_ext >&5
12627 ac_header_preproc
=no
12629 rm -f conftest.err conftest.
$ac_ext
12630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12631 echo "${ECHO_T}$ac_header_preproc" >&6
12633 # So? What about this header?
12634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12637 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12639 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12640 ac_header_preproc
=yes
12643 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12644 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12646 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12648 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12650 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12652 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12654 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12657 ## ------------------------------------------ ##
12658 ## Report this to the AC_PACKAGE_NAME lists. ##
12659 ## ------------------------------------------ ##
12662 sed "s/^/$as_me: WARNING: /" >&2
12665 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12666 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12667 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12672 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12673 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12676 if test $ac_cv_header_malloc_malloc_h = yes; then
12678 cat >>confdefs.h
<<\_ACEOF
12679 #define HAVE_MALLOC_MALLOC_H 1
12686 if test "${HAVE_CARBON}" = "yes"; then
12688 cat >>confdefs.h
<<\_ACEOF
12689 #define HAVE_CARBON 1
12693 ## Specify the install directory
12695 if test "${carbon_appdir_x}" != ""; then
12696 case ${carbon_appdir_x} in
12697 y | ye |
yes) carbon_appdir
=/Applications
;;
12698 * ) carbon_appdir
=${carbon_appdir_x} ;;
12701 # We also have mouse menus.
12705 ### Use session management (-lSM -lICE) if available
12707 if test "${HAVE_X11}" = "yes"; then
12708 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12709 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12710 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12711 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12715 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12717 # Is the header compilable?
12718 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12719 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12720 cat >conftest.
$ac_ext <<_ACEOF
12723 cat confdefs.h
>>conftest.
$ac_ext
12724 cat >>conftest.
$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 #include <X11/SM/SMlib.h>
12729 rm -f conftest.
$ac_objext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731 (eval $ac_compile) 2>conftest.er1
12733 grep -v '^ *+' conftest.er1
>conftest.err
12735 cat conftest.err
>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try
='test -z "$ac_c_werror_flag"
12739 || test ! -s conftest.err'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try
='test -s conftest.$ac_objext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_header_compiler
=yes
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.
$ac_ext >&5
12756 ac_header_compiler
=no
12758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760 echo "${ECHO_T}$ac_header_compiler" >&6
12762 # Is the header present?
12763 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12764 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12765 cat >conftest.
$ac_ext <<_ACEOF
12768 cat confdefs.h
>>conftest.
$ac_ext
12769 cat >>conftest.
$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <X11/SM/SMlib.h>
12773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12774 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12776 grep -v '^ *+' conftest.er1
>conftest.err
12778 cat conftest.err
>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } >/dev
/null
; then
12781 if test -s conftest.err
; then
12782 ac_cpp_err
=$ac_c_preproc_warn_flag
12783 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12790 if test -z "$ac_cpp_err"; then
12791 ac_header_preproc
=yes
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.
$ac_ext >&5
12796 ac_header_preproc
=no
12798 rm -f conftest.err conftest.
$ac_ext
12799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12800 echo "${ECHO_T}$ac_header_preproc" >&6
12802 # So? What about this header?
12803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12806 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12808 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12809 ac_header_preproc
=yes
12812 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12813 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12815 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12817 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12819 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12821 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12823 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12826 ## ------------------------------------------ ##
12827 ## Report this to the AC_PACKAGE_NAME lists. ##
12828 ## ------------------------------------------ ##
12831 sed "s/^/$as_me: WARNING: /" >&2
12834 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12835 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12836 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12841 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12842 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12845 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12846 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12847 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12848 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 ac_check_lib_save_LIBS
=$LIBS
12852 LIBS
="-lSM -lICE $LIBS"
12853 cat >conftest.
$ac_ext <<_ACEOF
12856 cat confdefs.h
>>conftest.
$ac_ext
12857 cat >>conftest.
$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12860 /* Override any gcc2 internal prototype to avoid an error. */
12864 /* We use char because int might match the return type of a gcc2
12865 builtin and then its argument prototype would still apply. */
12866 char SmcOpenConnection ();
12870 SmcOpenConnection ();
12875 rm -f conftest.
$ac_objext conftest
$ac_exeext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>conftest.er1
12879 grep -v '^ *+' conftest.er1
>conftest.err
12881 cat conftest.err
>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try
='test -z "$ac_c_werror_flag"
12885 || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try
='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_lib_SM_SmcOpenConnection
=yes
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.
$ac_ext >&5
12902 ac_cv_lib_SM_SmcOpenConnection
=no
12904 rm -f conftest.err conftest.
$ac_objext \
12905 conftest
$ac_exeext conftest.
$ac_ext
12906 LIBS
=$ac_check_lib_save_LIBS
12908 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12909 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12910 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12918 if test "${HAVE_X_SM}" = "yes"; then
12920 cat >>confdefs.h
<<\_ACEOF
12921 #define HAVE_X_SM 1
12926 *) LIBS
="-lSM -lICE $LIBS" ;;
12931 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12932 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12933 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12934 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 cat >conftest.
$ac_ext <<_ACEOF
12940 cat confdefs.h
>>conftest.
$ac_ext
12941 cat >>conftest.
$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12952 rm -f conftest.
$ac_objext conftest
$ac_exeext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12954 (eval $ac_link) 2>conftest.er1
12956 grep -v '^ *+' conftest.er1
>conftest.err
12958 cat conftest.err
>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try
='test -z "$ac_c_werror_flag"
12962 || test ! -s conftest.err'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try
='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 emacs_cv_netdb_declares_h_errno
=yes
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.
$ac_ext >&5
12979 emacs_cv_netdb_declares_h_errno
=no
12981 rm -f conftest.err conftest.
$ac_objext \
12982 conftest
$ac_exeext conftest.
$ac_ext
12984 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12985 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12986 if test $emacs_cv_netdb_declares_h_errno = yes; then
12988 cat >>confdefs.h
<<\_ACEOF
12989 #define HAVE_H_ERRNO 1
12994 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12995 # for constant arguments. Useless!
12996 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12997 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12998 if test "${ac_cv_working_alloca_h+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 cat >conftest.
$ac_ext <<_ACEOF
13004 cat confdefs.h
>>conftest.
$ac_ext
13005 cat >>conftest.
$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <alloca.h>
13011 char *p = (char *) alloca (2 * sizeof (int));
13016 rm -f conftest.
$ac_objext conftest
$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13020 grep -v '^ *+' conftest.er1
>conftest.err
13022 cat conftest.err
>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try
='test -z "$ac_c_werror_flag"
13026 || test ! -s conftest.err'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try
='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_cv_working_alloca_h
=yes
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.
$ac_ext >&5
13043 ac_cv_working_alloca_h
=no
13045 rm -f conftest.err conftest.
$ac_objext \
13046 conftest
$ac_exeext conftest.
$ac_ext
13048 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13049 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13050 if test $ac_cv_working_alloca_h = yes; then
13052 cat >>confdefs.h
<<\_ACEOF
13053 #define HAVE_ALLOCA_H 1
13058 echo "$as_me:$LINENO: checking for alloca" >&5
13059 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13060 if test "${ac_cv_func_alloca_works+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 cat >conftest.
$ac_ext <<_ACEOF
13066 cat confdefs.h
>>conftest.
$ac_ext
13067 cat >>conftest.
$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13070 # define alloca __builtin_alloca
13073 # include <malloc.h>
13074 # define alloca _alloca
13077 # include <alloca.h>
13082 # ifndef alloca /* predefined by HP cc +Olibcalls */
13093 char *p = (char *) alloca (1);
13098 rm -f conftest.
$ac_objext conftest
$ac_exeext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100 (eval $ac_link) 2>conftest.er1
13102 grep -v '^ *+' conftest.er1
>conftest.err
13104 cat conftest.err
>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } &&
13107 { ac_try
='test -z "$ac_c_werror_flag"
13108 || test ! -s conftest.err'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try
='test -s conftest$ac_exeext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_func_alloca_works
=yes
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.
$ac_ext >&5
13125 ac_cv_func_alloca_works
=no
13127 rm -f conftest.err conftest.
$ac_objext \
13128 conftest
$ac_exeext conftest.
$ac_ext
13130 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13131 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13133 if test $ac_cv_func_alloca_works = yes; then
13135 cat >>confdefs.h
<<\_ACEOF
13136 #define HAVE_ALLOCA 1
13140 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13141 # that cause trouble. Some versions do not even contain alloca or
13142 # contain a buggy version. If you still want to use their alloca,
13143 # use ar to extract alloca.o from them instead of compiling alloca.c.
13145 ALLOCA
=alloca.
$ac_objext
13147 cat >>confdefs.h
<<\_ACEOF
13152 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13153 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13154 if test "${ac_cv_os_cray+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 cat >conftest.
$ac_ext <<_ACEOF
13160 cat confdefs.h
>>conftest.
$ac_ext
13161 cat >>conftest.
$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 #if defined(CRAY) && ! defined(CRAY2)
13170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13171 $EGREP "webecray" >/dev
/null
2>&1; then
13179 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13180 echo "${ECHO_T}$ac_cv_os_cray" >&6
13181 if test $ac_cv_os_cray = yes; then
13182 for ac_func
in _getb67 GETB67 getb67
; do
13183 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13184 echo "$as_me:$LINENO: checking for $ac_func" >&5
13185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13186 if eval "test \"\${$as_ac_var+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 cat >conftest.
$ac_ext <<_ACEOF
13192 cat confdefs.h
>>conftest.
$ac_ext
13193 cat >>conftest.
$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13197 #define $ac_func innocuous_$ac_func
13199 /* System header to define __stub macros and hopefully few prototypes,
13200 which can conflict with char $ac_func (); below.
13201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13202 <limits.h> exists even on freestanding compilers. */
13205 # include <limits.h>
13207 # include <assert.h>
13212 /* Override any gcc2 internal prototype to avoid an error. */
13217 /* We use char because int might match the return type of a gcc2
13218 builtin and then its argument prototype would still apply. */
13220 /* The GNU C library defines this for functions which it implements
13221 to always fail with ENOSYS. Some functions are actually named
13222 something starting with __ and the normal name is an alias. */
13223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13226 char (*f) () = $ac_func;
13235 return f != $ac_func;
13240 rm -f conftest.
$ac_objext conftest
$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13244 grep -v '^ *+' conftest.er1
>conftest.err
13246 cat conftest.err
>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try
='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try
='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 eval "$as_ac_var=yes"
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.
$ac_ext >&5
13267 eval "$as_ac_var=no"
13269 rm -f conftest.err conftest.
$ac_objext \
13270 conftest
$ac_exeext conftest.
$ac_ext
13272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13274 if test `eval echo '${'$as_ac_var'}'` = yes; then
13276 cat >>confdefs.h
<<_ACEOF
13277 #define CRAY_STACKSEG_END $ac_func
13286 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13287 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13288 if test "${ac_cv_c_stack_direction+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 if test "$cross_compiling" = yes; then
13292 ac_cv_c_stack_direction
=0
13294 cat >conftest.
$ac_ext <<_ACEOF
13297 cat confdefs.h
>>conftest.
$ac_ext
13298 cat >>conftest.
$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13301 find_stack_direction ()
13303 static char *addr = 0;
13308 return find_stack_direction ();
13311 return (&dummy > addr) ? 1 : -1;
13317 exit (find_stack_direction () < 0);
13320 rm -f conftest
$ac_exeext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13322 (eval $ac_link) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_c_stack_direction
=1
13333 echo "$as_me: program exited with status $ac_status" >&5
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.
$ac_ext >&5
13337 ( exit $ac_status )
13338 ac_cv_c_stack_direction
=-1
13340 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13343 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13344 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13346 cat >>confdefs.h
<<_ACEOF
13347 #define STACK_DIRECTION $ac_cv_c_stack_direction
13354 # fmod, logb, and frexp are found in -lm on most systems.
13355 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13357 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13358 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13359 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_check_lib_save_LIBS
=$LIBS
13364 cat >conftest.
$ac_ext <<_ACEOF
13367 cat confdefs.h
>>conftest.
$ac_ext
13368 cat >>conftest.
$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any gcc2 internal prototype to avoid an error. */
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13386 rm -f conftest.
$ac_objext conftest
$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>conftest.er1
13390 grep -v '^ *+' conftest.er1
>conftest.err
13392 cat conftest.err
>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try
='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try
='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_lib_m_sqrt
=yes
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.
$ac_ext >&5
13413 ac_cv_lib_m_sqrt
=no
13415 rm -f conftest.err conftest.
$ac_objext \
13416 conftest
$ac_exeext conftest.
$ac_ext
13417 LIBS
=$ac_check_lib_save_LIBS
13419 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13420 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13421 if test $ac_cv_lib_m_sqrt = yes; then
13422 cat >>confdefs.h
<<_ACEOF
13423 #define HAVE_LIBM 1
13431 # Check for mail-locking functions in a "mail" library. Probably this should
13432 # have the same check as for liblockfile below.
13434 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13435 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13436 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 ac_check_lib_save_LIBS
=$LIBS
13440 LIBS
="-lmail $LIBS"
13441 cat >conftest.
$ac_ext <<_ACEOF
13444 cat confdefs.h
>>conftest.
$ac_ext
13445 cat >>conftest.
$ac_ext <<_ACEOF
13446 /* end confdefs.h. */
13448 /* Override any gcc2 internal prototype to avoid an error. */
13452 /* We use char because int might match the return type of a gcc2
13453 builtin and then its argument prototype would still apply. */
13463 rm -f conftest.
$ac_objext conftest
$ac_exeext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>conftest.er1
13467 grep -v '^ *+' conftest.er1
>conftest.err
13469 cat conftest.err
>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try
='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try
='test -s conftest$ac_exeext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_cv_lib_mail_maillock
=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.
$ac_ext >&5
13490 ac_cv_lib_mail_maillock
=no
13492 rm -f conftest.err conftest.
$ac_objext \
13493 conftest
$ac_exeext conftest.
$ac_ext
13494 LIBS
=$ac_check_lib_save_LIBS
13496 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13497 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13498 if test $ac_cv_lib_mail_maillock = yes; then
13499 cat >>confdefs.h
<<_ACEOF
13500 #define HAVE_LIBMAIL 1
13503 LIBS
="-lmail $LIBS"
13508 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13509 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13510 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 ac_check_lib_save_LIBS
=$LIBS
13514 LIBS
="-llockfile $LIBS"
13515 cat >conftest.
$ac_ext <<_ACEOF
13518 cat confdefs.h
>>conftest.
$ac_ext
13519 cat >>conftest.
$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13522 /* Override any gcc2 internal prototype to avoid an error. */
13526 /* We use char because int might match the return type of a gcc2
13527 builtin and then its argument prototype would still apply. */
13537 rm -f conftest.
$ac_objext conftest
$ac_exeext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13539 (eval $ac_link) 2>conftest.er1
13541 grep -v '^ *+' conftest.er1
>conftest.err
13543 cat conftest.err
>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try
='test -z "$ac_c_werror_flag"
13547 || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try
='test -s conftest$ac_exeext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_lib_lockfile_maillock
=yes
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.
$ac_ext >&5
13564 ac_cv_lib_lockfile_maillock
=no
13566 rm -f conftest.err conftest.
$ac_objext \
13567 conftest
$ac_exeext conftest.
$ac_ext
13568 LIBS
=$ac_check_lib_save_LIBS
13570 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13571 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13572 if test $ac_cv_lib_lockfile_maillock = yes; then
13573 cat >>confdefs.h
<<_ACEOF
13574 #define HAVE_LIBLOCKFILE 1
13577 LIBS
="-llockfile $LIBS"
13581 # If we have the shared liblockfile, assume we must use it for mail
13582 # locking (e.g. Debian). If we couldn't link against liblockfile
13583 # (no liblockfile.a installed), ensure that we don't need to.
13584 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13585 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13586 set dummy liblockfile.so
; ac_word
=$2
13587 echo "$as_me:$LINENO: checking for $ac_word" >&5
13588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13589 if test "${ac_cv_prog_liblockfile+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 if test -n "$liblockfile"; then
13593 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13596 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13597 for as_dir
in $as_dummy
13600 test -z "$as_dir" && as_dir
=.
13601 for ac_exec_ext
in '' $ac_executable_extensions; do
13602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_prog_liblockfile
="yes"
13604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13613 liblockfile
=$ac_cv_prog_liblockfile
13614 if test -n "$liblockfile"; then
13615 echo "$as_me:$LINENO: result: $liblockfile" >&5
13616 echo "${ECHO_T}$liblockfile" >&6
13618 echo "$as_me:$LINENO: result: no" >&5
13619 echo "${ECHO_T}no" >&6
13622 if test $ac_cv_prog_liblockfile = yes; then
13623 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13624 This probably means that movemail could lose mail.
13625 There may be a \`development' package to install containing liblockfile." >&5
13626 echo "$as_me: error: Shared liblockfile found but can't link against it.
13627 This probably means that movemail could lose mail.
13628 There may be a \`development' package to install containing liblockfile." >&2;}
13629 { (exit 1); exit 1; }; }
13634 for ac_func
in touchlock
13636 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13637 echo "$as_me:$LINENO: checking for $ac_func" >&5
13638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13639 if eval "test \"\${$as_ac_var+set}\" = set"; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 cat >conftest.
$ac_ext <<_ACEOF
13645 cat confdefs.h
>>conftest.
$ac_ext
13646 cat >>conftest.
$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13650 #define $ac_func innocuous_$ac_func
13652 /* System header to define __stub macros and hopefully few prototypes,
13653 which can conflict with char $ac_func (); below.
13654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13655 <limits.h> exists even on freestanding compilers. */
13658 # include <limits.h>
13660 # include <assert.h>
13665 /* Override any gcc2 internal prototype to avoid an error. */
13670 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */
13673 /* The GNU C library defines this for functions which it implements
13674 to always fail with ENOSYS. Some functions are actually named
13675 something starting with __ and the normal name is an alias. */
13676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13679 char (*f) () = $ac_func;
13688 return f != $ac_func;
13693 rm -f conftest.
$ac_objext conftest
$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>conftest.er1
13697 grep -v '^ *+' conftest.er1
>conftest.err
13699 cat conftest.err
>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try
='test -z "$ac_c_werror_flag"
13703 || test ! -s conftest.err'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try
='test -s conftest$ac_exeext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 eval "$as_ac_var=yes"
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.
$ac_ext >&5
13720 eval "$as_ac_var=no"
13722 rm -f conftest.err conftest.
$ac_objext \
13723 conftest
$ac_exeext conftest.
$ac_ext
13725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13727 if test `eval echo '${'$as_ac_var'}'` = yes; then
13728 cat >>confdefs.h
<<_ACEOF
13729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13736 for ac_header
in maillock.h
13738 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo "$as_me:$LINENO: checking for $ac_header" >&5
13741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13748 # Is the header compilable?
13749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13751 cat >conftest.
$ac_ext <<_ACEOF
13754 cat confdefs.h
>>conftest.
$ac_ext
13755 cat >>conftest.
$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 $ac_includes_default
13758 #include <$ac_header>
13760 rm -f conftest.
$ac_objext
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>conftest.er1
13764 grep -v '^ *+' conftest.er1
>conftest.err
13766 cat conftest.err
>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try
='test -z "$ac_c_werror_flag"
13770 || test ! -s conftest.err'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try
='test -s conftest.$ac_objext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_header_compiler
=yes
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.
$ac_ext >&5
13787 ac_header_compiler
=no
13789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13791 echo "${ECHO_T}$ac_header_compiler" >&6
13793 # Is the header present?
13794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13796 cat >conftest.
$ac_ext <<_ACEOF
13799 cat confdefs.h
>>conftest.
$ac_ext
13800 cat >>conftest.
$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 #include <$ac_header>
13804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13805 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13807 grep -v '^ *+' conftest.er1
>conftest.err
13809 cat conftest.err
>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev
/null
; then
13812 if test -s conftest.err
; then
13813 ac_cpp_err
=$ac_c_preproc_warn_flag
13814 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13821 if test -z "$ac_cpp_err"; then
13822 ac_header_preproc
=yes
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.
$ac_ext >&5
13827 ac_header_preproc
=no
13829 rm -f conftest.err conftest.
$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 echo "${ECHO_T}$ac_header_preproc" >&6
13833 # So? What about this header?
13834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13840 ac_header_preproc
=yes
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13857 ## ------------------------------------------ ##
13858 ## Report this to the AC_PACKAGE_NAME lists. ##
13859 ## ------------------------------------------ ##
13862 sed "s/^/$as_me: WARNING: /" >&2
13865 echo "$as_me:$LINENO: checking for $ac_header" >&5
13866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 eval "$as_ac_Header=\$ac_header_preproc"
13872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13877 cat >>confdefs.h
<<_ACEOF
13878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13953 for ac_func
in gethostname getdomainname dup2 \
13954 rename closedir mkdir
rmdir sysinfo getrusage \
13955 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13956 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13957 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13958 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13959 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13960 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13961 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13963 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13964 echo "$as_me:$LINENO: checking for $ac_func" >&5
13965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_var+set}\" = set"; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 cat >conftest.
$ac_ext <<_ACEOF
13972 cat confdefs.h
>>conftest.
$ac_ext
13973 cat >>conftest.
$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13977 #define $ac_func innocuous_$ac_func
13979 /* System header to define __stub macros and hopefully few prototypes,
13980 which can conflict with char $ac_func (); below.
13981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13982 <limits.h> exists even on freestanding compilers. */
13985 # include <limits.h>
13987 # include <assert.h>
13992 /* Override any gcc2 internal prototype to avoid an error. */
13997 /* We use char because int might match the return type of a gcc2
13998 builtin and then its argument prototype would still apply. */
14000 /* The GNU C library defines this for functions which it implements
14001 to always fail with ENOSYS. Some functions are actually named
14002 something starting with __ and the normal name is an alias. */
14003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14006 char (*f) () = $ac_func;
14015 return f != $ac_func;
14020 rm -f conftest.
$ac_objext conftest
$ac_exeext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>conftest.er1
14024 grep -v '^ *+' conftest.er1
>conftest.err
14026 cat conftest.err
>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
14029 { ac_try
='test -z "$ac_c_werror_flag"
14030 || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try
='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 eval "$as_ac_var=yes"
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.
$ac_ext >&5
14047 eval "$as_ac_var=no"
14049 rm -f conftest.err conftest.
$ac_objext \
14050 conftest
$ac_exeext conftest.
$ac_ext
14052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14054 if test `eval echo '${'$as_ac_var'}'` = yes; then
14055 cat >>confdefs.h
<<_ACEOF
14056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14064 for ac_header
in sys
/un.h
14066 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14068 echo "$as_me:$LINENO: checking for $ac_header" >&5
14069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076 # Is the header compilable?
14077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14079 cat >conftest.
$ac_ext <<_ACEOF
14082 cat confdefs.h
>>conftest.
$ac_ext
14083 cat >>conftest.
$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 $ac_includes_default
14086 #include <$ac_header>
14088 rm -f conftest.
$ac_objext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14090 (eval $ac_compile) 2>conftest.er1
14092 grep -v '^ *+' conftest.er1
>conftest.err
14094 cat conftest.err
>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try
='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try
='test -s conftest.$ac_objext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_header_compiler
=yes
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.
$ac_ext >&5
14115 ac_header_compiler
=no
14117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14119 echo "${ECHO_T}$ac_header_compiler" >&6
14121 # Is the header present?
14122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14124 cat >conftest.
$ac_ext <<_ACEOF
14127 cat confdefs.h
>>conftest.
$ac_ext
14128 cat >>conftest.
$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 #include <$ac_header>
14132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14133 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14135 grep -v '^ *+' conftest.er1
>conftest.err
14137 cat conftest.err
>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } >/dev
/null
; then
14140 if test -s conftest.err
; then
14141 ac_cpp_err
=$ac_c_preproc_warn_flag
14142 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14149 if test -z "$ac_cpp_err"; then
14150 ac_header_preproc
=yes
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.
$ac_ext >&5
14155 ac_header_preproc
=no
14157 rm -f conftest.err conftest.
$ac_ext
14158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14159 echo "${ECHO_T}$ac_header_preproc" >&6
14161 # So? What about this header?
14162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14168 ac_header_preproc
=yes
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14185 ## ------------------------------------------ ##
14186 ## Report this to the AC_PACKAGE_NAME lists. ##
14187 ## ------------------------------------------ ##
14190 sed "s/^/$as_me: WARNING: /" >&2
14193 echo "$as_me:$LINENO: checking for $ac_header" >&5
14194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 eval "$as_ac_Header=\$ac_header_preproc"
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14205 cat >>confdefs.h
<<_ACEOF
14206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14217 for ac_header
in stdlib.h sys
/time.h unistd.h
14219 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221 echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 # Is the header compilable?
14230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14232 cat >conftest.
$ac_ext <<_ACEOF
14235 cat confdefs.h
>>conftest.
$ac_ext
14236 cat >>conftest.
$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 $ac_includes_default
14239 #include <$ac_header>
14241 rm -f conftest.
$ac_objext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>conftest.er1
14245 grep -v '^ *+' conftest.er1
>conftest.err
14247 cat conftest.err
>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try
='test -z "$ac_c_werror_flag"
14251 || test ! -s conftest.err'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; } &&
14257 { ac_try
='test -s conftest.$ac_objext'
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; }; then
14263 ac_header_compiler
=yes
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.
$ac_ext >&5
14268 ac_header_compiler
=no
14270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14272 echo "${ECHO_T}$ac_header_compiler" >&6
14274 # Is the header present?
14275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14277 cat >conftest.
$ac_ext <<_ACEOF
14280 cat confdefs.h
>>conftest.
$ac_ext
14281 cat >>conftest.
$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <$ac_header>
14285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14286 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14288 grep -v '^ *+' conftest.er1
>conftest.err
14290 cat conftest.err
>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } >/dev
/null
; then
14293 if test -s conftest.err
; then
14294 ac_cpp_err
=$ac_c_preproc_warn_flag
14295 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14302 if test -z "$ac_cpp_err"; then
14303 ac_header_preproc
=yes
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.
$ac_ext >&5
14308 ac_header_preproc
=no
14310 rm -f conftest.err conftest.
$ac_ext
14311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14312 echo "${ECHO_T}$ac_header_preproc" >&6
14314 # So? What about this header?
14315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14321 ac_header_preproc
=yes
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14338 ## ------------------------------------------ ##
14339 ## Report this to the AC_PACKAGE_NAME lists. ##
14340 ## ------------------------------------------ ##
14343 sed "s/^/$as_me: WARNING: /" >&2
14346 echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 eval "$as_ac_Header=\$ac_header_preproc"
14353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14358 cat >>confdefs.h
<<_ACEOF
14359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14367 for ac_func
in alarm
14369 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14370 echo "$as_me:$LINENO: checking for $ac_func" >&5
14371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_var+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 cat >conftest.
$ac_ext <<_ACEOF
14378 cat confdefs.h
>>conftest.
$ac_ext
14379 cat >>conftest.
$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14383 #define $ac_func innocuous_$ac_func
14385 /* System header to define __stub macros and hopefully few prototypes,
14386 which can conflict with char $ac_func (); below.
14387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14388 <limits.h> exists even on freestanding compilers. */
14391 # include <limits.h>
14393 # include <assert.h>
14398 /* Override any gcc2 internal prototype to avoid an error. */
14403 /* We use char because int might match the return type of a gcc2
14404 builtin and then its argument prototype would still apply. */
14406 /* The GNU C library defines this for functions which it implements
14407 to always fail with ENOSYS. Some functions are actually named
14408 something starting with __ and the normal name is an alias. */
14409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14412 char (*f) () = $ac_func;
14421 return f != $ac_func;
14426 rm -f conftest.
$ac_objext conftest
$ac_exeext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14428 (eval $ac_link) 2>conftest.er1
14430 grep -v '^ *+' conftest.er1
>conftest.err
14432 cat conftest.err
>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try
='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try
='test -s conftest$ac_exeext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 eval "$as_ac_var=yes"
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.
$ac_ext >&5
14453 eval "$as_ac_var=no"
14455 rm -f conftest.err conftest.
$ac_objext \
14456 conftest
$ac_exeext conftest.
$ac_ext
14458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14460 if test `eval echo '${'$as_ac_var'}'` = yes; then
14461 cat >>confdefs.h
<<_ACEOF
14462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14468 echo "$as_me:$LINENO: checking for working mktime" >&5
14469 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14470 if test "${ac_cv_func_working_mktime+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 if test "$cross_compiling" = yes; then
14474 ac_cv_func_working_mktime
=no
14476 cat >conftest.
$ac_ext <<_ACEOF
14479 cat confdefs.h
>>conftest.
$ac_ext
14480 cat >>conftest.
$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 /* Test program from Paul Eggert and Tony Leneis. */
14483 #if TIME_WITH_SYS_TIME
14484 # include <sys/time.h>
14487 # if HAVE_SYS_TIME_H
14488 # include <sys/time.h>
14495 # include <stdlib.h>
14499 # include <unistd.h>
14503 # define alarm(X) /* empty */
14506 /* Work around redefinition to rpl_putenv by other config tests. */
14509 static time_t time_t_max;
14510 static time_t time_t_min;
14512 /* Values we'll use to set the TZ environment variable. */
14513 static char *tz_strings[] = {
14514 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14515 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14517 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14519 /* Fail if mktime fails to convert a date in the spring-forward gap.
14520 Based on a problem report from Andreas Jaeger. */
14522 spring_forward_gap ()
14524 /* glibc (up to about 1998-10-07) failed this test. */
14527 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14528 instead of "TZ=America/Vancouver" in order to detect the bug even
14529 on systems that don't support the Olson extension, or don't have the
14530 full zoneinfo tables installed. */
14531 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14540 if (mktime (&tm) == (time_t)-1)
14549 if ((lt = localtime (&now)) && mktime (lt) != now)
14557 mktime_test1 (now);
14558 mktime_test1 ((time_t) (time_t_max - now));
14559 mktime_test1 ((time_t) (time_t_min + now));
14565 /* Based on code from Ariel Faigon. */
14575 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14585 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14586 now = mktime (&tm);
14587 if (now != (time_t) -1)
14589 struct tm *lt = localtime (&now);
14591 && lt->tm_year == tm.tm_year
14592 && lt->tm_mon == tm.tm_mon
14593 && lt->tm_mday == tm.tm_mday
14594 && lt->tm_hour == tm.tm_hour
14595 && lt->tm_min == tm.tm_min
14596 && lt->tm_sec == tm.tm_sec
14597 && lt->tm_yday == tm.tm_yday
14598 && lt->tm_wday == tm.tm_wday
14599 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14600 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14611 /* This test makes some buggy mktime implementations loop.
14612 Give up after 60 seconds; a mktime slower than that
14613 isn't worth using anyway. */
14616 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14619 if ((time_t) -1 < 0)
14620 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14622 delta = time_t_max / 997; /* a suitable prime number */
14623 for (i = 0; i < N_STRINGS; i++)
14626 putenv (tz_strings[i]);
14628 for (t = 0; t <= time_t_max - delta; t += delta)
14630 mktime_test ((time_t) 1);
14631 mktime_test ((time_t) (60 * 60));
14632 mktime_test ((time_t) (60 * 60 * 24));
14634 for (j = 1; 0 < j; j *= 2)
14636 bigtime_test (j - 1);
14639 spring_forward_gap ();
14643 rm -f conftest
$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645 (eval $ac_link) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_cv_func_working_mktime
=yes
14656 echo "$as_me: program exited with status $ac_status" >&5
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.
$ac_ext >&5
14660 ( exit $ac_status )
14661 ac_cv_func_working_mktime
=no
14663 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14666 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14667 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14668 if test $ac_cv_func_working_mktime = no
; then
14670 "mktime.$ac_objext" | \
14671 *" mktime.$ac_objext" | \
14672 "mktime.$ac_objext "* | \
14673 *" mktime.$ac_objext "* ) ;;
14674 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14679 if test "$ac_cv_func_working_mktime" = no
; then
14681 cat >>confdefs.h
<<\_ACEOF
14682 #define BROKEN_MKTIME 1
14687 ac_have_func
=no
# yes means we've found a way to get the load average.
14689 # Make sure getloadavg.c is where it belongs, at configure-time.
14690 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14691 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14692 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14693 { (exit 1); exit 1; }; }
14697 # Check for getloadavg, but be sure not to touch the cache variable.
14698 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14699 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14700 if test "${ac_cv_func_getloadavg+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 cat >conftest.
$ac_ext <<_ACEOF
14706 cat confdefs.h
>>conftest.
$ac_ext
14707 cat >>conftest.
$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14711 #define getloadavg innocuous_getloadavg
14713 /* System header to define __stub macros and hopefully few prototypes,
14714 which can conflict with char getloadavg (); below.
14715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14716 <limits.h> exists even on freestanding compilers. */
14719 # include <limits.h>
14721 # include <assert.h>
14726 /* Override any gcc2 internal prototype to avoid an error. */
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733 char getloadavg ();
14734 /* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
14737 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14740 char (*f) () = getloadavg;
14749 return f != getloadavg;
14754 rm -f conftest.
$ac_objext conftest
$ac_exeext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14756 (eval $ac_link) 2>conftest.er1
14758 grep -v '^ *+' conftest.er1
>conftest.err
14760 cat conftest.err
>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try
='test -z "$ac_c_werror_flag"
14764 || test ! -s conftest.err'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try
='test -s conftest$ac_exeext'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_cv_func_getloadavg
=yes
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.
$ac_ext >&5
14781 ac_cv_func_getloadavg
=no
14783 rm -f conftest.err conftest.
$ac_objext \
14784 conftest
$ac_exeext conftest.
$ac_ext
14786 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14787 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14788 if test $ac_cv_func_getloadavg = yes; then
14793 ) && ac_have_func
=yes
14795 # On HPUX9, an unprivileged user can get load averages through this function.
14797 for ac_func
in pstat_getdynamic
14799 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 echo "$as_me:$LINENO: checking for $ac_func" >&5
14801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14802 if eval "test \"\${$as_ac_var+set}\" = set"; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 cat >conftest.
$ac_ext <<_ACEOF
14808 cat confdefs.h
>>conftest.
$ac_ext
14809 cat >>conftest.
$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14813 #define $ac_func innocuous_$ac_func
14815 /* System header to define __stub macros and hopefully few prototypes,
14816 which can conflict with char $ac_func (); below.
14817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14818 <limits.h> exists even on freestanding compilers. */
14821 # include <limits.h>
14823 # include <assert.h>
14828 /* Override any gcc2 internal prototype to avoid an error. */
14833 /* We use char because int might match the return type of a gcc2
14834 builtin and then its argument prototype would still apply. */
14836 /* The GNU C library defines this for functions which it implements
14837 to always fail with ENOSYS. Some functions are actually named
14838 something starting with __ and the normal name is an alias. */
14839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14842 char (*f) () = $ac_func;
14851 return f != $ac_func;
14856 rm -f conftest.
$ac_objext conftest
$ac_exeext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14858 (eval $ac_link) 2>conftest.er1
14860 grep -v '^ *+' conftest.er1
>conftest.err
14862 cat conftest.err
>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try
='test -z "$ac_c_werror_flag"
14866 || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try
='test -s conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 eval "$as_ac_var=yes"
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.
$ac_ext >&5
14883 eval "$as_ac_var=no"
14885 rm -f conftest.err conftest.
$ac_objext \
14886 conftest
$ac_exeext conftest.
$ac_ext
14888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14890 if test `eval echo '${'$as_ac_var'}'` = yes; then
14891 cat >>confdefs.h
<<_ACEOF
14892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14899 # Solaris has libkstat which does not require root.
14901 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14902 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14903 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 ac_check_lib_save_LIBS
=$LIBS
14907 LIBS
="-lkstat $LIBS"
14908 cat >conftest.
$ac_ext <<_ACEOF
14911 cat confdefs.h
>>conftest.
$ac_ext
14912 cat >>conftest.
$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14915 /* Override any gcc2 internal prototype to avoid an error. */
14919 /* We use char because int might match the return type of a gcc2
14920 builtin and then its argument prototype would still apply. */
14921 char kstat_open ();
14930 rm -f conftest.
$ac_objext conftest
$ac_exeext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14932 (eval $ac_link) 2>conftest.er1
14934 grep -v '^ *+' conftest.er1
>conftest.err
14936 cat conftest.err
>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try
='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try
='test -s conftest$ac_exeext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_cv_lib_kstat_kstat_open
=yes
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.
$ac_ext >&5
14957 ac_cv_lib_kstat_kstat_open
=no
14959 rm -f conftest.err conftest.
$ac_objext \
14960 conftest
$ac_exeext conftest.
$ac_ext
14961 LIBS
=$ac_check_lib_save_LIBS
14963 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14964 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14965 if test $ac_cv_lib_kstat_kstat_open = yes; then
14966 cat >>confdefs.h
<<_ACEOF
14967 #define HAVE_LIBKSTAT 1
14970 LIBS
="-lkstat $LIBS"
14974 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14976 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14977 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14978 # to get the right answer into the cache.
14979 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14980 if test $ac_have_func = no
; then
14981 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14982 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14983 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 ac_check_lib_save_LIBS
=$LIBS
14988 cat >conftest.
$ac_ext <<_ACEOF
14991 cat confdefs.h
>>conftest.
$ac_ext
14992 cat >>conftest.
$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14995 /* Override any gcc2 internal prototype to avoid an error. */
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15010 rm -f conftest.
$ac_objext conftest
$ac_exeext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>conftest.er1
15014 grep -v '^ *+' conftest.er1
>conftest.err
15016 cat conftest.err
>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try
='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try
='test -s conftest$ac_exeext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 ac_cv_lib_elf_elf_begin
=yes
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.
$ac_ext >&5
15037 ac_cv_lib_elf_elf_begin
=no
15039 rm -f conftest.err conftest.
$ac_objext \
15040 conftest
$ac_exeext conftest.
$ac_ext
15041 LIBS
=$ac_check_lib_save_LIBS
15043 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15044 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15045 if test $ac_cv_lib_elf_elf_begin = yes; then
15050 if test $ac_have_func = no
; then
15051 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15052 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15053 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 ac_check_lib_save_LIBS
=$LIBS
15058 cat >conftest.
$ac_ext <<_ACEOF
15061 cat confdefs.h
>>conftest.
$ac_ext
15062 cat >>conftest.
$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 /* Override any gcc2 internal prototype to avoid an error. */
15069 /* We use char because int might match the return type of a gcc2
15070 builtin and then its argument prototype would still apply. */
15080 rm -f conftest.
$ac_objext conftest
$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>conftest.er1
15084 grep -v '^ *+' conftest.er1
>conftest.err
15086 cat conftest.err
>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try
='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try
='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_lib_kvm_kvm_open
=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.
$ac_ext >&5
15107 ac_cv_lib_kvm_kvm_open
=no
15109 rm -f conftest.err conftest.
$ac_objext \
15110 conftest
$ac_exeext conftest.
$ac_ext
15111 LIBS
=$ac_check_lib_save_LIBS
15113 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15114 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15115 if test $ac_cv_lib_kvm_kvm_open = yes; then
15119 # Check for the 4.4BSD definition of getloadavg.
15120 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15121 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15122 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 ac_check_lib_save_LIBS
=$LIBS
15126 LIBS
="-lutil $LIBS"
15127 cat >conftest.
$ac_ext <<_ACEOF
15130 cat confdefs.h
>>conftest.
$ac_ext
15131 cat >>conftest.
$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15134 /* Override any gcc2 internal prototype to avoid an error. */
15138 /* We use char because int might match the return type of a gcc2
15139 builtin and then its argument prototype would still apply. */
15140 char getloadavg ();
15149 rm -f conftest.
$ac_objext conftest
$ac_exeext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>conftest.er1
15153 grep -v '^ *+' conftest.er1
>conftest.err
15155 cat conftest.err
>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try
='test -z "$ac_c_werror_flag"
15159 || test ! -s conftest.err'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try
='test -s conftest$ac_exeext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_lib_util_getloadavg
=yes
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.
$ac_ext >&5
15176 ac_cv_lib_util_getloadavg
=no
15178 rm -f conftest.err conftest.
$ac_objext \
15179 conftest
$ac_exeext conftest.
$ac_ext
15180 LIBS
=$ac_check_lib_save_LIBS
15182 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15183 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15184 if test $ac_cv_lib_util_getloadavg = yes; then
15185 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15190 if test $ac_have_func = no
; then
15191 # There is a commonly available library for RS/6000 AIX.
15192 # Since it is not a standard part of AIX, it might be installed locally.
15193 ac_getloadavg_LIBS
=$LIBS
15194 LIBS
="-L/usr/local/lib $LIBS"
15195 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15196 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15197 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_check_lib_save_LIBS
=$LIBS
15201 LIBS
="-lgetloadavg $LIBS"
15202 cat >conftest.
$ac_ext <<_ACEOF
15205 cat confdefs.h
>>conftest.
$ac_ext
15206 cat >>conftest.
$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15209 /* Override any gcc2 internal prototype to avoid an error. */
15213 /* We use char because int might match the return type of a gcc2
15214 builtin and then its argument prototype would still apply. */
15215 char getloadavg ();
15224 rm -f conftest.
$ac_objext conftest
$ac_exeext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15226 (eval $ac_link) 2>conftest.er1
15228 grep -v '^ *+' conftest.er1
>conftest.err
15230 cat conftest.err
>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try
='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try
='test -s conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_lib_getloadavg_getloadavg
=yes
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.
$ac_ext >&5
15251 ac_cv_lib_getloadavg_getloadavg
=no
15253 rm -f conftest.err conftest.
$ac_objext \
15254 conftest
$ac_exeext conftest.
$ac_ext
15255 LIBS
=$ac_check_lib_save_LIBS
15257 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15258 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15259 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15260 LIBS
="-lgetloadavg $LIBS"
15262 LIBS
=$ac_getloadavg_LIBS
15267 # Make sure it is really in the library, if we think we found it,
15268 # otherwise set up the replacement function.
15270 for ac_func
in getloadavg
15272 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15273 echo "$as_me:$LINENO: checking for $ac_func" >&5
15274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15275 if eval "test \"\${$as_ac_var+set}\" = set"; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 cat >conftest.
$ac_ext <<_ACEOF
15281 cat confdefs.h
>>conftest.
$ac_ext
15282 cat >>conftest.
$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15286 #define $ac_func innocuous_$ac_func
15288 /* System header to define __stub macros and hopefully few prototypes,
15289 which can conflict with char $ac_func (); below.
15290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15291 <limits.h> exists even on freestanding compilers. */
15294 # include <limits.h>
15296 # include <assert.h>
15301 /* Override any gcc2 internal prototype to avoid an error. */
15306 /* We use char because int might match the return type of a gcc2
15307 builtin and then its argument prototype would still apply. */
15309 /* The GNU C library defines this for functions which it implements
15310 to always fail with ENOSYS. Some functions are actually named
15311 something starting with __ and the normal name is an alias. */
15312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15315 char (*f) () = $ac_func;
15324 return f != $ac_func;
15329 rm -f conftest.
$ac_objext conftest
$ac_exeext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331 (eval $ac_link) 2>conftest.er1
15333 grep -v '^ *+' conftest.er1
>conftest.err
15335 cat conftest.err
>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try
='test -z "$ac_c_werror_flag"
15339 || test ! -s conftest.err'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try
='test -s conftest$ac_exeext'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 eval "$as_ac_var=yes"
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.
$ac_ext >&5
15356 eval "$as_ac_var=no"
15358 rm -f conftest.err conftest.
$ac_objext \
15359 conftest
$ac_exeext conftest.
$ac_ext
15361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364 cat >>confdefs.h
<<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15370 "getloadavg.$ac_objext" | \
15371 *" getloadavg.$ac_objext" | \
15372 "getloadavg.$ac_objext "* | \
15373 *" getloadavg.$ac_objext "* ) ;;
15374 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15378 cat >>confdefs.h
<<\_ACEOF
15379 #define C_GETLOADAVG 1
15382 # Figure out what our getloadavg.c needs.
15384 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15385 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15386 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15387 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15391 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15393 # Is the header compilable?
15394 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15395 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15396 cat >conftest.
$ac_ext <<_ACEOF
15399 cat confdefs.h
>>conftest.
$ac_ext
15400 cat >>conftest.
$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 $ac_includes_default
15403 #include <sys/dg_sys_info.h>
15405 rm -f conftest.
$ac_objext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15407 (eval $ac_compile) 2>conftest.er1
15409 grep -v '^ *+' conftest.er1
>conftest.err
15411 cat conftest.err
>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try
='test -z "$ac_c_werror_flag"
15415 || test ! -s conftest.err'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; } &&
15421 { ac_try
='test -s conftest.$ac_objext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 ac_header_compiler
=yes
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.
$ac_ext >&5
15432 ac_header_compiler
=no
15434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6
15438 # Is the header present?
15439 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15440 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15441 cat >conftest.
$ac_ext <<_ACEOF
15444 cat confdefs.h
>>conftest.
$ac_ext
15445 cat >>conftest.
$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <sys/dg_sys_info.h>
15449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15450 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15452 grep -v '^ *+' conftest.er1
>conftest.err
15454 cat conftest.err
>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } >/dev
/null
; then
15457 if test -s conftest.err
; then
15458 ac_cpp_err
=$ac_c_preproc_warn_flag
15459 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15466 if test -z "$ac_cpp_err"; then
15467 ac_header_preproc
=yes
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.
$ac_ext >&5
15472 ac_header_preproc
=no
15474 rm -f conftest.err conftest.
$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15476 echo "${ECHO_T}$ac_header_preproc" >&6
15478 # So? What about this header?
15479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15482 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15484 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15485 ac_header_preproc
=yes
15488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15489 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15491 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15493 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15495 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15497 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15499 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15502 ## ------------------------------------------ ##
15503 ## Report this to the AC_PACKAGE_NAME lists. ##
15504 ## ------------------------------------------ ##
15507 sed "s/^/$as_me: WARNING: /" >&2
15510 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15511 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15512 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15517 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15518 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15521 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15524 cat >>confdefs.h
<<\_ACEOF
15529 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15530 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15531 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 ac_check_lib_save_LIBS
=$LIBS
15536 cat >conftest.
$ac_ext <<_ACEOF
15539 cat confdefs.h
>>conftest.
$ac_ext
15540 cat >>conftest.
$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15543 /* Override any gcc2 internal prototype to avoid an error. */
15547 /* We use char because int might match the return type of a gcc2
15548 builtin and then its argument prototype would still apply. */
15549 char dg_sys_info ();
15558 rm -f conftest.
$ac_objext conftest
$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560 (eval $ac_link) 2>conftest.er1
15562 grep -v '^ *+' conftest.er1
>conftest.err
15564 cat conftest.err
>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try
='test -z "$ac_c_werror_flag"
15568 || test ! -s conftest.err'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try
='test -s conftest$ac_exeext'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_cv_lib_dgc_dg_sys_info
=yes
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.
$ac_ext >&5
15585 ac_cv_lib_dgc_dg_sys_info
=no
15587 rm -f conftest.err conftest.
$ac_objext \
15588 conftest
$ac_exeext conftest.
$ac_ext
15589 LIBS
=$ac_check_lib_save_LIBS
15591 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15592 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15593 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15594 cat >>confdefs.h
<<_ACEOF
15595 #define HAVE_LIBDGC 1
15606 if test "${ac_cv_header_locale_h+set}" = set; then
15607 echo "$as_me:$LINENO: checking for locale.h" >&5
15608 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15609 if test "${ac_cv_header_locale_h+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15613 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15615 # Is the header compilable?
15616 echo "$as_me:$LINENO: checking locale.h usability" >&5
15617 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15618 cat >conftest.
$ac_ext <<_ACEOF
15621 cat confdefs.h
>>conftest.
$ac_ext
15622 cat >>conftest.
$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 $ac_includes_default
15625 #include <locale.h>
15627 rm -f conftest.
$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15631 grep -v '^ *+' conftest.er1
>conftest.err
15633 cat conftest.err
>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try
='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try
='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_header_compiler
=yes
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.
$ac_ext >&5
15654 ac_header_compiler
=no
15656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15658 echo "${ECHO_T}$ac_header_compiler" >&6
15660 # Is the header present?
15661 echo "$as_me:$LINENO: checking locale.h presence" >&5
15662 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15663 cat >conftest.
$ac_ext <<_ACEOF
15666 cat confdefs.h
>>conftest.
$ac_ext
15667 cat >>conftest.
$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <locale.h>
15671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15674 grep -v '^ *+' conftest.er1
>conftest.err
15676 cat conftest.err
>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } >/dev
/null
; then
15679 if test -s conftest.err
; then
15680 ac_cpp_err
=$ac_c_preproc_warn_flag
15681 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15688 if test -z "$ac_cpp_err"; then
15689 ac_header_preproc
=yes
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.
$ac_ext >&5
15694 ac_header_preproc
=no
15696 rm -f conftest.err conftest.
$ac_ext
15697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15698 echo "${ECHO_T}$ac_header_preproc" >&6
15700 # So? What about this header?
15701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15703 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15704 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15706 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15707 ac_header_preproc
=yes
15710 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15711 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15713 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15715 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15717 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15719 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15721 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15724 ## ------------------------------------------ ##
15725 ## Report this to the AC_PACKAGE_NAME lists. ##
15726 ## ------------------------------------------ ##
15729 sed "s/^/$as_me: WARNING: /" >&2
15732 echo "$as_me:$LINENO: checking for locale.h" >&5
15733 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15734 if test "${ac_cv_header_locale_h+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 ac_cv_header_locale_h
=$ac_header_preproc
15739 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15740 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15746 for ac_func
in setlocale
15748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15749 echo "$as_me:$LINENO: checking for $ac_func" >&5
15750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15751 if eval "test \"\${$as_ac_var+set}\" = set"; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 cat >conftest.
$ac_ext <<_ACEOF
15757 cat confdefs.h
>>conftest.
$ac_ext
15758 cat >>conftest.
$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15762 #define $ac_func innocuous_$ac_func
15764 /* System header to define __stub macros and hopefully few prototypes,
15765 which can conflict with char $ac_func (); below.
15766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15767 <limits.h> exists even on freestanding compilers. */
15770 # include <limits.h>
15772 # include <assert.h>
15777 /* Override any gcc2 internal prototype to avoid an error. */
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791 char (*f) () = $ac_func;
15800 return f != $ac_func;
15805 rm -f conftest.
$ac_objext conftest
$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>conftest.er1
15809 grep -v '^ *+' conftest.er1
>conftest.err
15811 cat conftest.err
>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try
='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try
='test -s conftest$ac_exeext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 eval "$as_ac_var=yes"
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.
$ac_ext >&5
15832 eval "$as_ac_var=no"
15834 rm -f conftest.err conftest.
$ac_objext \
15835 conftest
$ac_exeext conftest.
$ac_ext
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840 cat >>confdefs.h
<<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15848 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15849 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15850 # Irix 4.0.5F has the header but not the library.
15851 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15854 cat >>confdefs.h
<<\_ACEOF
15860 if test $ac_have_func = no
; then
15861 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15862 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15863 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15864 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15868 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15870 # Is the header compilable?
15871 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15872 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15873 cat >conftest.
$ac_ext <<_ACEOF
15876 cat confdefs.h
>>conftest.
$ac_ext
15877 cat >>conftest.
$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 $ac_includes_default
15880 #include <inq_stats/cpustats.h>
15882 rm -f conftest.
$ac_objext
15883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15884 (eval $ac_compile) 2>conftest.er1
15886 grep -v '^ *+' conftest.er1
>conftest.err
15888 cat conftest.err
>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try
='test -z "$ac_c_werror_flag"
15892 || test ! -s conftest.err'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; } &&
15898 { ac_try
='test -s conftest.$ac_objext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904 ac_header_compiler
=yes
15906 echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.
$ac_ext >&5
15909 ac_header_compiler
=no
15911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15913 echo "${ECHO_T}$ac_header_compiler" >&6
15915 # Is the header present?
15916 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15917 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15918 cat >conftest.
$ac_ext <<_ACEOF
15921 cat confdefs.h
>>conftest.
$ac_ext
15922 cat >>conftest.
$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <inq_stats/cpustats.h>
15926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15927 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15929 grep -v '^ *+' conftest.er1
>conftest.err
15931 cat conftest.err
>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } >/dev
/null
; then
15934 if test -s conftest.err
; then
15935 ac_cpp_err
=$ac_c_preproc_warn_flag
15936 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15943 if test -z "$ac_cpp_err"; then
15944 ac_header_preproc
=yes
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.
$ac_ext >&5
15949 ac_header_preproc
=no
15951 rm -f conftest.err conftest.
$ac_ext
15952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15953 echo "${ECHO_T}$ac_header_preproc" >&6
15955 # So? What about this header?
15956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15959 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15961 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15962 ac_header_preproc
=yes
15965 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15966 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15968 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15970 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15972 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15974 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15976 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15979 ## ------------------------------------------ ##
15980 ## Report this to the AC_PACKAGE_NAME lists. ##
15981 ## ------------------------------------------ ##
15984 sed "s/^/$as_me: WARNING: /" >&2
15987 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15988 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15989 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15994 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15995 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15998 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16001 cat >>confdefs.h
<<\_ACEOF
16006 cat >>confdefs.h
<<\_ACEOF
16015 if test $ac_have_func = no
; then
16016 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16017 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16018 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16019 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16023 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16025 # Is the header compilable?
16026 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16027 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16028 cat >conftest.
$ac_ext <<_ACEOF
16031 cat confdefs.h
>>conftest.
$ac_ext
16032 cat >>conftest.
$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 $ac_includes_default
16035 #include <sys/cpustats.h>
16037 rm -f conftest.
$ac_objext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039 (eval $ac_compile) 2>conftest.er1
16041 grep -v '^ *+' conftest.er1
>conftest.err
16043 cat conftest.err
>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try
='test -z "$ac_c_werror_flag"
16047 || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try
='test -s conftest.$ac_objext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_header_compiler
=yes
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.
$ac_ext >&5
16064 ac_header_compiler
=no
16066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6
16070 # Is the header present?
16071 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16072 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16073 cat >conftest.
$ac_ext <<_ACEOF
16076 cat confdefs.h
>>conftest.
$ac_ext
16077 cat >>conftest.
$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <sys/cpustats.h>
16081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16084 grep -v '^ *+' conftest.er1
>conftest.err
16086 cat conftest.err
>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } >/dev
/null
; then
16089 if test -s conftest.err
; then
16090 ac_cpp_err
=$ac_c_preproc_warn_flag
16091 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16098 if test -z "$ac_cpp_err"; then
16099 ac_header_preproc
=yes
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.
$ac_ext >&5
16104 ac_header_preproc
=no
16106 rm -f conftest.err conftest.
$ac_ext
16107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108 echo "${ECHO_T}$ac_header_preproc" >&6
16110 # So? What about this header?
16111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16113 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16114 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16116 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16117 ac_header_preproc
=yes
16120 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16121 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16123 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16125 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16127 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16129 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16131 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16134 ## ------------------------------------------ ##
16135 ## Report this to the AC_PACKAGE_NAME lists. ##
16136 ## ------------------------------------------ ##
16139 sed "s/^/$as_me: WARNING: /" >&2
16142 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16143 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16144 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16149 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16150 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16153 if test $ac_cv_header_sys_cpustats_h = yes; then
16154 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16163 if test $ac_have_func = no
; then
16165 for ac_header
in mach
/mach.h
16167 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16169 echo "$as_me:$LINENO: checking for $ac_header" >&5
16170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16172 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16177 # Is the header compilable?
16178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16180 cat >conftest.
$ac_ext <<_ACEOF
16183 cat confdefs.h
>>conftest.
$ac_ext
16184 cat >>conftest.
$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $ac_includes_default
16187 #include <$ac_header>
16189 rm -f conftest.
$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>conftest.er1
16193 grep -v '^ *+' conftest.er1
>conftest.err
16195 cat conftest.err
>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try
='test -z "$ac_c_werror_flag"
16199 || test ! -s conftest.err'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try
='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_header_compiler
=yes
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.
$ac_ext >&5
16216 ac_header_compiler
=no
16218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220 echo "${ECHO_T}$ac_header_compiler" >&6
16222 # Is the header present?
16223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16225 cat >conftest.
$ac_ext <<_ACEOF
16228 cat confdefs.h
>>conftest.
$ac_ext
16229 cat >>conftest.
$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 #include <$ac_header>
16233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16236 grep -v '^ *+' conftest.er1
>conftest.err
16238 cat conftest.err
>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } >/dev
/null
; then
16241 if test -s conftest.err
; then
16242 ac_cpp_err
=$ac_c_preproc_warn_flag
16243 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16250 if test -z "$ac_cpp_err"; then
16251 ac_header_preproc
=yes
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.
$ac_ext >&5
16256 ac_header_preproc
=no
16258 rm -f conftest.err conftest.
$ac_ext
16259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16260 echo "${ECHO_T}$ac_header_preproc" >&6
16262 # So? What about this header?
16263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16269 ac_header_preproc
=yes
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16279 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16286 ## ------------------------------------------ ##
16287 ## Report this to the AC_PACKAGE_NAME lists. ##
16288 ## ------------------------------------------ ##
16291 sed "s/^/$as_me: WARNING: /" >&2
16294 echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 eval "$as_ac_Header=\$ac_header_preproc"
16301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16306 cat >>confdefs.h
<<_ACEOF
16307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16317 for ac_header
in nlist.h
16319 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16321 echo "$as_me:$LINENO: checking for $ac_header" >&5
16322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16329 # Is the header compilable?
16330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16332 cat >conftest.
$ac_ext <<_ACEOF
16335 cat confdefs.h
>>conftest.
$ac_ext
16336 cat >>conftest.
$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 $ac_includes_default
16339 #include <$ac_header>
16341 rm -f conftest.
$ac_objext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16343 (eval $ac_compile) 2>conftest.er1
16345 grep -v '^ *+' conftest.er1
>conftest.err
16347 cat conftest.err
>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try
='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try
='test -s conftest.$ac_objext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_header_compiler
=yes
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.
$ac_ext >&5
16368 ac_header_compiler
=no
16370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16372 echo "${ECHO_T}$ac_header_compiler" >&6
16374 # Is the header present?
16375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16377 cat >conftest.
$ac_ext <<_ACEOF
16380 cat confdefs.h
>>conftest.
$ac_ext
16381 cat >>conftest.
$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <$ac_header>
16385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16388 grep -v '^ *+' conftest.er1
>conftest.err
16390 cat conftest.err
>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } >/dev
/null
; then
16393 if test -s conftest.err
; then
16394 ac_cpp_err
=$ac_c_preproc_warn_flag
16395 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16402 if test -z "$ac_cpp_err"; then
16403 ac_header_preproc
=yes
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.
$ac_ext >&5
16408 ac_header_preproc
=no
16410 rm -f conftest.err conftest.
$ac_ext
16411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16412 echo "${ECHO_T}$ac_header_preproc" >&6
16414 # So? What about this header?
16415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16421 ac_header_preproc
=yes
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16438 ## ------------------------------------------ ##
16439 ## Report this to the AC_PACKAGE_NAME lists. ##
16440 ## ------------------------------------------ ##
16443 sed "s/^/$as_me: WARNING: /" >&2
16446 echo "$as_me:$LINENO: checking for $ac_header" >&5
16447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 eval "$as_ac_Header=\$ac_header_preproc"
16453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16458 cat >>confdefs.h
<<_ACEOF
16459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16461 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16462 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16463 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 cat >conftest.
$ac_ext <<_ACEOF
16469 cat confdefs.h
>>conftest.
$ac_ext
16470 cat >>conftest.
$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16477 static struct nlist ac_aggr;
16478 if (ac_aggr.n_un.n_name)
16484 rm -f conftest.
$ac_objext
16485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16486 (eval $ac_compile) 2>conftest.er1
16488 grep -v '^ *+' conftest.er1
>conftest.err
16490 cat conftest.err
>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } &&
16493 { ac_try
='test -z "$ac_c_werror_flag"
16494 || test ! -s conftest.err'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } &&
16500 { ac_try
='test -s conftest.$ac_objext'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_member_struct_nlist_n_un_n_name
=yes
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.
$ac_ext >&5
16511 cat >conftest.
$ac_ext <<_ACEOF
16514 cat confdefs.h
>>conftest.
$ac_ext
16515 cat >>conftest.
$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16522 static struct nlist ac_aggr;
16523 if (sizeof ac_aggr.n_un.n_name)
16529 rm -f conftest.
$ac_objext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16531 (eval $ac_compile) 2>conftest.er1
16533 grep -v '^ *+' conftest.er1
>conftest.err
16535 cat conftest.err
>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try
='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try
='test -s conftest.$ac_objext'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ac_cv_member_struct_nlist_n_un_n_name
=yes
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.
$ac_ext >&5
16556 ac_cv_member_struct_nlist_n_un_n_name
=no
16558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16562 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16563 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16564 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16566 cat >>confdefs.h
<<_ACEOF
16567 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16571 cat >>confdefs.h
<<\_ACEOF
16572 #define NLIST_NAME_UNION 1
16586 # Some definitions of getloadavg require that the program be installed setgid.
16587 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16588 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16589 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 cat >conftest.
$ac_ext <<_ACEOF
16595 cat confdefs.h
>>conftest.
$ac_ext
16596 cat >>conftest.
$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16599 #ifdef LDAV_PRIVILEGED
16600 Yowza Am I SETGID yet
16603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16604 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16605 ac_cv_func_getloadavg_setgid
=yes
16607 ac_cv_func_getloadavg_setgid
=no
16612 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16613 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16614 if test $ac_cv_func_getloadavg_setgid = yes; then
16617 cat >>confdefs.h
<<\_ACEOF
16618 #define GETLOADAVG_PRIVILEGED 1
16625 if test $ac_cv_func_getloadavg_setgid = yes; then
16626 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16627 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16628 if test "${ac_cv_group_kmem+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16632 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16633 # If we got an error (system does not support symlinks), try without -L.
16634 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16635 ac_cv_group_kmem
=`echo $ac_ls_output \
16636 | sed -ne 's/[ ][ ]*/ /g;
16637 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16641 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16642 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16643 KMEM_GROUP
=$ac_cv_group_kmem
16645 if test "x$ac_save_LIBS" = x
; then
16646 GETLOADAVG_LIBS
=$LIBS
16648 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16654 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16655 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16656 if test "${ac_cv_sys_largefile_source+set}" = set; then
16657 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 ac_cv_sys_largefile_source
=no
16661 cat >conftest.
$ac_ext <<_ACEOF
16664 cat confdefs.h
>>conftest.
$ac_ext
16665 cat >>conftest.
$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16676 rm -f conftest.
$ac_objext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678 (eval $ac_compile) 2>conftest.er1
16680 grep -v '^ *+' conftest.er1
>conftest.err
16682 cat conftest.err
>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try
='test -z "$ac_c_werror_flag"
16686 || test ! -s conftest.err'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try
='test -s conftest.$ac_objext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.
$ac_ext >&5
16704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16705 cat >conftest.
$ac_ext <<_ACEOF
16708 cat confdefs.h
>>conftest.
$ac_ext
16709 cat >>conftest.
$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 #define _LARGEFILE_SOURCE 1
16721 rm -f conftest.
$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>conftest.er1
16725 grep -v '^ *+' conftest.er1
>conftest.err
16727 cat conftest.err
>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try
='test -z "$ac_c_werror_flag"
16731 || test ! -s conftest.err'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try
='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_sys_largefile_source
=1; break
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.
$ac_ext >&5
16749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16753 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16754 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16755 if test "$ac_cv_sys_largefile_source" != no
; then
16757 cat >>confdefs.h
<<_ACEOF
16758 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16764 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16765 # in glibc 2.1.3, but that breaks too many other things.
16766 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16767 echo "$as_me:$LINENO: checking for fseeko" >&5
16768 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16769 if test "${ac_cv_func_fseeko+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 cat >conftest.
$ac_ext <<_ACEOF
16775 cat confdefs.h
>>conftest.
$ac_ext
16776 cat >>conftest.
$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16782 return fseeko && fseeko (stdin, 0, 0);
16787 rm -f conftest.
$ac_objext conftest
$ac_exeext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16789 (eval $ac_link) 2>conftest.er1
16791 grep -v '^ *+' conftest.er1
>conftest.err
16793 cat conftest.err
>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try
='test -z "$ac_c_werror_flag"
16797 || test ! -s conftest.err'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try
='test -s conftest$ac_exeext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_cv_func_fseeko
=yes
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.
$ac_ext >&5
16814 ac_cv_func_fseeko
=no
16816 rm -f conftest.err conftest.
$ac_objext \
16817 conftest
$ac_exeext conftest.
$ac_ext
16819 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16820 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16821 if test $ac_cv_func_fseeko = yes; then
16823 cat >>confdefs.h
<<\_ACEOF
16824 #define HAVE_FSEEKO 1
16830 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16831 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16832 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 # Use it with a single arg.
16836 cat >conftest.
$ac_ext <<_ACEOF
16839 cat confdefs.h
>>conftest.
$ac_ext
16840 cat >>conftest.
$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 $ac_includes_default
16851 rm -f conftest.
$ac_objext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853 (eval $ac_compile) 2>conftest.er1
16855 grep -v '^ *+' conftest.er1
>conftest.err
16857 cat conftest.err
>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try
='test -z "$ac_c_werror_flag"
16861 || test ! -s conftest.err'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try
='test -s conftest.$ac_objext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_func_getpgrp_void
=no
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.
$ac_ext >&5
16878 ac_cv_func_getpgrp_void
=yes
16880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16883 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16884 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16885 if test $ac_cv_func_getpgrp_void = yes; then
16887 cat >>confdefs.h
<<\_ACEOF
16888 #define GETPGRP_VOID 1
16895 for ac_func
in strftime
16897 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16900 if eval "test \"\${$as_ac_var+set}\" = set"; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 cat >conftest.
$ac_ext <<_ACEOF
16906 cat confdefs.h
>>conftest.
$ac_ext
16907 cat >>conftest.
$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16919 # include <limits.h>
16921 # include <assert.h>
16926 /* Override any gcc2 internal prototype to avoid an error. */
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 char (*f) () = $ac_func;
16949 return f != $ac_func;
16954 rm -f conftest.
$ac_objext conftest
$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>conftest.er1
16958 grep -v '^ *+' conftest.er1
>conftest.err
16960 cat conftest.err
>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try
='test -z "$ac_c_werror_flag"
16964 || test ! -s conftest.err'
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try
='test -s conftest$ac_exeext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 eval "$as_ac_var=yes"
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.
$ac_ext >&5
16981 eval "$as_ac_var=no"
16983 rm -f conftest.err conftest.
$ac_objext \
16984 conftest
$ac_exeext conftest.
$ac_ext
16986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16988 if test `eval echo '${'$as_ac_var'}'` = yes; then
16989 cat >>confdefs.h
<<_ACEOF
16990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16994 # strftime is in -lintl on SCO UNIX.
16995 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16996 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16997 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 ac_check_lib_save_LIBS
=$LIBS
17001 LIBS
="-lintl $LIBS"
17002 cat >conftest.
$ac_ext <<_ACEOF
17005 cat confdefs.h
>>conftest.
$ac_ext
17006 cat >>conftest.
$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17009 /* Override any gcc2 internal prototype to avoid an error. */
17013 /* We use char because int might match the return type of a gcc2
17014 builtin and then its argument prototype would still apply. */
17024 rm -f conftest.
$ac_objext conftest
$ac_exeext
17025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17026 (eval $ac_link) 2>conftest.er1
17028 grep -v '^ *+' conftest.er1
>conftest.err
17030 cat conftest.err
>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try
='test -z "$ac_c_werror_flag"
17034 || test ! -s conftest.err'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; } &&
17040 { ac_try
='test -s conftest$ac_exeext'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_lib_intl_strftime
=yes
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.
$ac_ext >&5
17051 ac_cv_lib_intl_strftime
=no
17053 rm -f conftest.err conftest.
$ac_objext \
17054 conftest
$ac_exeext conftest.
$ac_ext
17055 LIBS
=$ac_check_lib_save_LIBS
17057 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17058 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17059 if test $ac_cv_lib_intl_strftime = yes; then
17060 cat >>confdefs.h
<<\_ACEOF
17061 #define HAVE_STRFTIME 1
17064 LIBS
="-lintl $LIBS"
17073 for ac_func
in grantpt
17075 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17076 echo "$as_me:$LINENO: checking for $ac_func" >&5
17077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17078 if eval "test \"\${$as_ac_var+set}\" = set"; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 cat >conftest.
$ac_ext <<_ACEOF
17084 cat confdefs.h
>>conftest.
$ac_ext
17085 cat >>conftest.
$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17089 #define $ac_func innocuous_$ac_func
17091 /* System header to define __stub macros and hopefully few prototypes,
17092 which can conflict with char $ac_func (); below.
17093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17094 <limits.h> exists even on freestanding compilers. */
17097 # include <limits.h>
17099 # include <assert.h>
17104 /* Override any gcc2 internal prototype to avoid an error. */
17109 /* We use char because int might match the return type of a gcc2
17110 builtin and then its argument prototype would still apply. */
17112 /* The GNU C library defines this for functions which it implements
17113 to always fail with ENOSYS. Some functions are actually named
17114 something starting with __ and the normal name is an alias. */
17115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17118 char (*f) () = $ac_func;
17127 return f != $ac_func;
17132 rm -f conftest.
$ac_objext conftest
$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>conftest.er1
17136 grep -v '^ *+' conftest.er1
>conftest.err
17138 cat conftest.err
>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try
='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try
='test -s conftest$ac_exeext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 eval "$as_ac_var=yes"
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.
$ac_ext >&5
17159 eval "$as_ac_var=no"
17161 rm -f conftest.err conftest.
$ac_objext \
17162 conftest
$ac_exeext conftest.
$ac_ext
17164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17166 if test `eval echo '${'$as_ac_var'}'` = yes; then
17167 cat >>confdefs.h
<<_ACEOF
17168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17175 # PTY-related GNU extensions.
17177 for ac_func
in getpt
17179 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17180 echo "$as_me:$LINENO: checking for $ac_func" >&5
17181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17182 if eval "test \"\${$as_ac_var+set}\" = set"; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 cat >conftest.
$ac_ext <<_ACEOF
17188 cat confdefs.h
>>conftest.
$ac_ext
17189 cat >>conftest.
$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17193 #define $ac_func innocuous_$ac_func
17195 /* System header to define __stub macros and hopefully few prototypes,
17196 which can conflict with char $ac_func (); below.
17197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17198 <limits.h> exists even on freestanding compilers. */
17201 # include <limits.h>
17203 # include <assert.h>
17208 /* Override any gcc2 internal prototype to avoid an error. */
17213 /* We use char because int might match the return type of a gcc2
17214 builtin and then its argument prototype would still apply. */
17216 /* The GNU C library defines this for functions which it implements
17217 to always fail with ENOSYS. Some functions are actually named
17218 something starting with __ and the normal name is an alias. */
17219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17222 char (*f) () = $ac_func;
17231 return f != $ac_func;
17236 rm -f conftest.
$ac_objext conftest
$ac_exeext
17237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17238 (eval $ac_link) 2>conftest.er1
17240 grep -v '^ *+' conftest.er1
>conftest.err
17242 cat conftest.err
>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
17245 { ac_try
='test -z "$ac_c_werror_flag"
17246 || test ! -s conftest.err'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try
='test -s conftest$ac_exeext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 eval "$as_ac_var=yes"
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.
$ac_ext >&5
17263 eval "$as_ac_var=no"
17265 rm -f conftest.err conftest.
$ac_objext \
17266 conftest
$ac_exeext conftest.
$ac_ext
17268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17270 if test `eval echo '${'$as_ac_var'}'` = yes; then
17271 cat >>confdefs.h
<<_ACEOF
17272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17279 # Check this now, so that we will NOT find the above functions in ncurses.
17280 # That is because we have not set up to link ncurses in lib-src.
17281 # It's better to believe a function is not available
17282 # than to expect to find it in ncurses.
17284 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17285 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17286 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 ac_check_lib_save_LIBS
=$LIBS
17290 LIBS
="-lncurses $LIBS"
17291 cat >conftest.
$ac_ext <<_ACEOF
17294 cat confdefs.h
>>conftest.
$ac_ext
17295 cat >>conftest.
$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17298 /* Override any gcc2 internal prototype to avoid an error. */
17302 /* We use char because int might match the return type of a gcc2
17303 builtin and then its argument prototype would still apply. */
17313 rm -f conftest.
$ac_objext conftest
$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>conftest.er1
17317 grep -v '^ *+' conftest.er1
>conftest.err
17319 cat conftest.err
>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try
='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try
='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_lib_ncurses_tparm
=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.
$ac_ext >&5
17340 ac_cv_lib_ncurses_tparm
=no
17342 rm -f conftest.err conftest.
$ac_objext \
17343 conftest
$ac_exeext conftest.
$ac_ext
17344 LIBS
=$ac_check_lib_save_LIBS
17346 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17347 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17348 if test $ac_cv_lib_ncurses_tparm = yes; then
17349 cat >>confdefs.h
<<_ACEOF
17350 #define HAVE_LIBNCURSES 1
17353 LIBS
="-lncurses $LIBS"
17358 # Do we need the Hesiod library to provide the support routines?
17359 if test "$with_hesiod" = yes ; then
17360 # Don't set $LIBS here -- see comments above.
17362 echo "$as_me:$LINENO: checking for res_send" >&5
17363 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17364 if test "${ac_cv_func_res_send+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 cat >conftest.
$ac_ext <<_ACEOF
17370 cat confdefs.h
>>conftest.
$ac_ext
17371 cat >>conftest.
$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17375 #define res_send innocuous_res_send
17377 /* System header to define __stub macros and hopefully few prototypes,
17378 which can conflict with char res_send (); below.
17379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17380 <limits.h> exists even on freestanding compilers. */
17383 # include <limits.h>
17385 # include <assert.h>
17390 /* Override any gcc2 internal prototype to avoid an error. */
17395 /* We use char because int might match the return type of a gcc2
17396 builtin and then its argument prototype would still apply. */
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined (__stub_res_send) || defined (__stub___res_send)
17404 char (*f) () = res_send;
17413 return f != res_send;
17418 rm -f conftest.
$ac_objext conftest
$ac_exeext
17419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17420 (eval $ac_link) 2>conftest.er1
17422 grep -v '^ *+' conftest.er1
>conftest.err
17424 cat conftest.err
>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try
='test -z "$ac_c_werror_flag"
17428 || test ! -s conftest.err'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try
='test -s conftest$ac_exeext'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_func_res_send
=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.
$ac_ext >&5
17445 ac_cv_func_res_send
=no
17447 rm -f conftest.err conftest.
$ac_objext \
17448 conftest
$ac_exeext conftest.
$ac_ext
17450 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17451 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17452 if test $ac_cv_func_res_send = yes; then
17455 echo "$as_me:$LINENO: checking for __res_send" >&5
17456 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17457 if test "${ac_cv_func___res_send+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 cat >conftest.
$ac_ext <<_ACEOF
17463 cat confdefs.h
>>conftest.
$ac_ext
17464 cat >>conftest.
$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468 #define __res_send innocuous___res_send
17470 /* System header to define __stub macros and hopefully few prototypes,
17471 which can conflict with char __res_send (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
17476 # include <limits.h>
17478 # include <assert.h>
17483 /* Override any gcc2 internal prototype to avoid an error. */
17488 /* We use char because int might match the return type of a gcc2
17489 builtin and then its argument prototype would still apply. */
17490 char __res_send ();
17491 /* The GNU C library defines this for functions which it implements
17492 to always fail with ENOSYS. Some functions are actually named
17493 something starting with __ and the normal name is an alias. */
17494 #if defined (__stub___res_send) || defined (__stub_____res_send)
17497 char (*f) () = __res_send;
17506 return f != __res_send;
17511 rm -f conftest.
$ac_objext conftest
$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513 (eval $ac_link) 2>conftest.er1
17515 grep -v '^ *+' conftest.er1
>conftest.err
17517 cat conftest.err
>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try
='test -z "$ac_c_werror_flag"
17521 || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try
='test -s conftest$ac_exeext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_func___res_send
=yes
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.
$ac_ext >&5
17538 ac_cv_func___res_send
=no
17540 rm -f conftest.err conftest.
$ac_objext \
17541 conftest
$ac_exeext conftest.
$ac_ext
17543 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17544 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17545 if test $ac_cv_func___res_send = yes; then
17548 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17549 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17550 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 ac_check_lib_save_LIBS
=$LIBS
17554 LIBS
="-lresolv $LIBS"
17555 cat >conftest.
$ac_ext <<_ACEOF
17558 cat confdefs.h
>>conftest.
$ac_ext
17559 cat >>conftest.
$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17562 /* Override any gcc2 internal prototype to avoid an error. */
17566 /* We use char because int might match the return type of a gcc2
17567 builtin and then its argument prototype would still apply. */
17577 rm -f conftest.
$ac_objext conftest
$ac_exeext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17579 (eval $ac_link) 2>conftest.er1
17581 grep -v '^ *+' conftest.er1
>conftest.err
17583 cat conftest.err
>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try
='test -z "$ac_c_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try
='test -s conftest$ac_exeext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_lib_resolv_res_send
=yes
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.
$ac_ext >&5
17604 ac_cv_lib_resolv_res_send
=no
17606 rm -f conftest.err conftest.
$ac_objext \
17607 conftest
$ac_exeext conftest.
$ac_ext
17608 LIBS
=$ac_check_lib_save_LIBS
17610 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17611 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17612 if test $ac_cv_lib_resolv_res_send = yes; then
17615 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17616 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17617 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 ac_check_lib_save_LIBS
=$LIBS
17621 LIBS
="-lresolv $LIBS"
17622 cat >conftest.
$ac_ext <<_ACEOF
17625 cat confdefs.h
>>conftest.
$ac_ext
17626 cat >>conftest.
$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17629 /* Override any gcc2 internal prototype to avoid an error. */
17633 /* We use char because int might match the return type of a gcc2
17634 builtin and then its argument prototype would still apply. */
17635 char __res_send ();
17644 rm -f conftest.
$ac_objext conftest
$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646 (eval $ac_link) 2>conftest.er1
17648 grep -v '^ *+' conftest.er1
>conftest.err
17650 cat conftest.err
>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try
='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try
='test -s conftest$ac_exeext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_lib_resolv___res_send
=yes
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.
$ac_ext >&5
17671 ac_cv_lib_resolv___res_send
=no
17673 rm -f conftest.err conftest.
$ac_objext \
17674 conftest
$ac_exeext conftest.
$ac_ext
17675 LIBS
=$ac_check_lib_save_LIBS
17677 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17678 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17679 if test $ac_cv_lib_resolv___res_send = yes; then
17689 if test "$resolv" = yes ; then
17692 cat >>confdefs.h
<<\_ACEOF
17693 #define HAVE_LIBRESOLV 1
17699 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17700 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17701 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 cat >conftest.
$ac_ext <<_ACEOF
17707 cat confdefs.h
>>conftest.
$ac_ext
17708 cat >>conftest.
$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17712 #define hes_getmailhost innocuous_hes_getmailhost
17714 /* System header to define __stub macros and hopefully few prototypes,
17715 which can conflict with char hes_getmailhost (); below.
17716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17717 <limits.h> exists even on freestanding compilers. */
17720 # include <limits.h>
17722 # include <assert.h>
17725 #undef hes_getmailhost
17727 /* Override any gcc2 internal prototype to avoid an error. */
17732 /* We use char because int might match the return type of a gcc2
17733 builtin and then its argument prototype would still apply. */
17734 char hes_getmailhost ();
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17741 char (*f) () = hes_getmailhost;
17750 return f != hes_getmailhost;
17755 rm -f conftest.
$ac_objext conftest
$ac_exeext
17756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17757 (eval $ac_link) 2>conftest.er1
17759 grep -v '^ *+' conftest.er1
>conftest.err
17761 cat conftest.err
>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try
='test -z "$ac_c_werror_flag"
17765 || test ! -s conftest.err'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try
='test -s conftest$ac_exeext'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_cv_func_hes_getmailhost
=yes
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.
$ac_ext >&5
17782 ac_cv_func_hes_getmailhost
=no
17784 rm -f conftest.err conftest.
$ac_objext \
17785 conftest
$ac_exeext conftest.
$ac_ext
17787 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17788 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17789 if test $ac_cv_func_hes_getmailhost = yes; then
17792 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17793 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17794 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17795 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 ac_check_lib_save_LIBS
=$LIBS
17798 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17799 cat >conftest.
$ac_ext <<_ACEOF
17802 cat confdefs.h
>>conftest.
$ac_ext
17803 cat >>conftest.
$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 /* Override any gcc2 internal prototype to avoid an error. */
17810 /* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17812 char hes_getmailhost ();
17816 hes_getmailhost ();
17821 rm -f conftest.
$ac_objext conftest
$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823 (eval $ac_link) 2>conftest.er1
17825 grep -v '^ *+' conftest.er1
>conftest.err
17827 cat conftest.err
>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try
='test -z "$ac_c_werror_flag"
17831 || test ! -s conftest.err'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try
='test -s conftest$ac_exeext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_cv_lib_hesiod_hes_getmailhost
=yes
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.
$ac_ext >&5
17848 ac_cv_lib_hesiod_hes_getmailhost
=no
17850 rm -f conftest.err conftest.
$ac_objext \
17851 conftest
$ac_exeext conftest.
$ac_ext
17852 LIBS
=$ac_check_lib_save_LIBS
17854 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17855 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17856 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17858 cat >>confdefs.h
<<\_ACEOF
17859 #define HAVE_LIBHESIOD 1
17870 # These tell us which Kerberos-related libraries to use.
17871 if test "${with_kerberos+set}" = set; then
17873 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17874 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17875 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 ac_check_lib_save_LIBS
=$LIBS
17879 LIBS
="-lcom_err $LIBS"
17880 cat >conftest.
$ac_ext <<_ACEOF
17883 cat confdefs.h
>>conftest.
$ac_ext
17884 cat >>conftest.
$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17887 /* Override any gcc2 internal prototype to avoid an error. */
17891 /* We use char because int might match the return type of a gcc2
17892 builtin and then its argument prototype would still apply. */
17902 rm -f conftest.
$ac_objext conftest
$ac_exeext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>conftest.er1
17906 grep -v '^ *+' conftest.er1
>conftest.err
17908 cat conftest.err
>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try
='test -z "$ac_c_werror_flag"
17912 || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try
='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_com_err_com_err
=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.
$ac_ext >&5
17929 ac_cv_lib_com_err_com_err
=no
17931 rm -f conftest.err conftest.
$ac_objext \
17932 conftest
$ac_exeext conftest.
$ac_ext
17933 LIBS
=$ac_check_lib_save_LIBS
17935 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17936 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17937 if test $ac_cv_lib_com_err_com_err = yes; then
17938 cat >>confdefs.h
<<_ACEOF
17939 #define HAVE_LIBCOM_ERR 1
17942 LIBS
="-lcom_err $LIBS"
17947 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17948 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17949 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17952 ac_check_lib_save_LIBS
=$LIBS
17953 LIBS
="-lk5crypto $LIBS"
17954 cat >conftest.
$ac_ext <<_ACEOF
17957 cat confdefs.h
>>conftest.
$ac_ext
17958 cat >>conftest.
$ac_ext <<_ACEOF
17959 /* end confdefs.h. */
17961 /* Override any gcc2 internal prototype to avoid an error. */
17965 /* We use char because int might match the return type of a gcc2
17966 builtin and then its argument prototype would still apply. */
17967 char mit_des_cbc_encrypt ();
17971 mit_des_cbc_encrypt ();
17976 rm -f conftest.
$ac_objext conftest
$ac_exeext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17978 (eval $ac_link) 2>conftest.er1
17980 grep -v '^ *+' conftest.er1
>conftest.err
17982 cat conftest.err
>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try
='test -z "$ac_c_werror_flag"
17986 || test ! -s conftest.err'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try
='test -s conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.
$ac_ext >&5
18003 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18005 rm -f conftest.err conftest.
$ac_objext \
18006 conftest
$ac_exeext conftest.
$ac_ext
18007 LIBS
=$ac_check_lib_save_LIBS
18009 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18010 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18011 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18012 cat >>confdefs.h
<<_ACEOF
18013 #define HAVE_LIBK5CRYPTO 1
18016 LIBS
="-lk5crypto $LIBS"
18021 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18022 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18023 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 ac_check_lib_save_LIBS
=$LIBS
18027 LIBS
="-lcrypto $LIBS"
18028 cat >conftest.
$ac_ext <<_ACEOF
18031 cat confdefs.h
>>conftest.
$ac_ext
18032 cat >>conftest.
$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18035 /* Override any gcc2 internal prototype to avoid an error. */
18039 /* We use char because int might match the return type of a gcc2
18040 builtin and then its argument prototype would still apply. */
18041 char mit_des_cbc_encrypt ();
18045 mit_des_cbc_encrypt ();
18050 rm -f conftest.
$ac_objext conftest
$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052 (eval $ac_link) 2>conftest.er1
18054 grep -v '^ *+' conftest.er1
>conftest.err
18056 cat conftest.err
>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try
='test -z "$ac_c_werror_flag"
18060 || test ! -s conftest.err'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try
='test -s conftest$ac_exeext'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.
$ac_ext >&5
18077 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18079 rm -f conftest.err conftest.
$ac_objext \
18080 conftest
$ac_exeext conftest.
$ac_ext
18081 LIBS
=$ac_check_lib_save_LIBS
18083 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18084 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18085 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18086 cat >>confdefs.h
<<_ACEOF
18087 #define HAVE_LIBCRYPTO 1
18090 LIBS
="-lcrypto $LIBS"
18095 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18096 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18097 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 ac_check_lib_save_LIBS
=$LIBS
18101 LIBS
="-lkrb5 $LIBS"
18102 cat >conftest.
$ac_ext <<_ACEOF
18105 cat confdefs.h
>>conftest.
$ac_ext
18106 cat >>conftest.
$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18109 /* Override any gcc2 internal prototype to avoid an error. */
18113 /* We use char because int might match the return type of a gcc2
18114 builtin and then its argument prototype would still apply. */
18115 char krb5_init_context ();
18119 krb5_init_context ();
18124 rm -f conftest.
$ac_objext conftest
$ac_exeext
18125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126 (eval $ac_link) 2>conftest.er1
18128 grep -v '^ *+' conftest.er1
>conftest.err
18130 cat conftest.err
>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
18133 { ac_try
='test -z "$ac_c_werror_flag"
18134 || test ! -s conftest.err'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; } &&
18140 { ac_try
='test -s conftest$ac_exeext'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_lib_krb5_krb5_init_context
=yes
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.
$ac_ext >&5
18151 ac_cv_lib_krb5_krb5_init_context
=no
18153 rm -f conftest.err conftest.
$ac_objext \
18154 conftest
$ac_exeext conftest.
$ac_ext
18155 LIBS
=$ac_check_lib_save_LIBS
18157 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18158 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18159 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18160 cat >>confdefs.h
<<_ACEOF
18161 #define HAVE_LIBKRB5 1
18164 LIBS
="-lkrb5 $LIBS"
18168 if test "${with_kerberos5+set}" != set; then
18170 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18171 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18172 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 ac_check_lib_save_LIBS
=$LIBS
18176 LIBS
="-ldes425 $LIBS"
18177 cat >conftest.
$ac_ext <<_ACEOF
18180 cat confdefs.h
>>conftest.
$ac_ext
18181 cat >>conftest.
$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18184 /* Override any gcc2 internal prototype to avoid an error. */
18188 /* We use char because int might match the return type of a gcc2
18189 builtin and then its argument prototype would still apply. */
18190 char des_cbc_encrypt ();
18194 des_cbc_encrypt ();
18199 rm -f conftest.
$ac_objext conftest
$ac_exeext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18201 (eval $ac_link) 2>conftest.er1
18203 grep -v '^ *+' conftest.er1
>conftest.err
18205 cat conftest.err
>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try
='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try
='test -s conftest$ac_exeext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_des425_des_cbc_encrypt
=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.
$ac_ext >&5
18226 ac_cv_lib_des425_des_cbc_encrypt
=no
18228 rm -f conftest.err conftest.
$ac_objext \
18229 conftest
$ac_exeext conftest.
$ac_ext
18230 LIBS
=$ac_check_lib_save_LIBS
18232 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18233 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18234 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18235 cat >>confdefs.h
<<_ACEOF
18236 #define HAVE_LIBDES425 1
18239 LIBS
="-ldes425 $LIBS"
18243 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18244 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18245 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_check_lib_save_LIBS
=$LIBS
18250 cat >conftest.
$ac_ext <<_ACEOF
18253 cat confdefs.h
>>conftest.
$ac_ext
18254 cat >>conftest.
$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18257 /* Override any gcc2 internal prototype to avoid an error. */
18261 /* We use char because int might match the return type of a gcc2
18262 builtin and then its argument prototype would still apply. */
18263 char des_cbc_encrypt ();
18267 des_cbc_encrypt ();
18272 rm -f conftest.
$ac_objext conftest
$ac_exeext
18273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18274 (eval $ac_link) 2>conftest.er1
18276 grep -v '^ *+' conftest.er1
>conftest.err
18278 cat conftest.err
>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try
='test -z "$ac_c_werror_flag"
18282 || test ! -s conftest.err'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } &&
18288 { ac_try
='test -s conftest$ac_exeext'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_lib_des_des_cbc_encrypt
=yes
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.
$ac_ext >&5
18299 ac_cv_lib_des_des_cbc_encrypt
=no
18301 rm -f conftest.err conftest.
$ac_objext \
18302 conftest
$ac_exeext conftest.
$ac_ext
18303 LIBS
=$ac_check_lib_save_LIBS
18305 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18306 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18307 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18308 cat >>confdefs.h
<<_ACEOF
18309 #define HAVE_LIBDES 1
18319 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18320 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18321 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 ac_check_lib_save_LIBS
=$LIBS
18325 LIBS
="-lkrb4 $LIBS"
18326 cat >conftest.
$ac_ext <<_ACEOF
18329 cat confdefs.h
>>conftest.
$ac_ext
18330 cat >>conftest.
$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18333 /* Override any gcc2 internal prototype to avoid an error. */
18337 /* We use char because int might match the return type of a gcc2
18338 builtin and then its argument prototype would still apply. */
18339 char krb_get_cred ();
18348 rm -f conftest.
$ac_objext conftest
$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350 (eval $ac_link) 2>conftest.er1
18352 grep -v '^ *+' conftest.er1
>conftest.err
18354 cat conftest.err
>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try
='test -z "$ac_c_werror_flag"
18358 || test ! -s conftest.err'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try
='test -s conftest$ac_exeext'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_cv_lib_krb4_krb_get_cred
=yes
18372 echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.
$ac_ext >&5
18375 ac_cv_lib_krb4_krb_get_cred
=no
18377 rm -f conftest.err conftest.
$ac_objext \
18378 conftest
$ac_exeext conftest.
$ac_ext
18379 LIBS
=$ac_check_lib_save_LIBS
18381 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18382 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18383 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18384 cat >>confdefs.h
<<_ACEOF
18385 #define HAVE_LIBKRB4 1
18388 LIBS
="-lkrb4 $LIBS"
18392 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18393 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18394 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 ac_check_lib_save_LIBS
=$LIBS
18399 cat >conftest.
$ac_ext <<_ACEOF
18402 cat confdefs.h
>>conftest.
$ac_ext
18403 cat >>conftest.
$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18406 /* Override any gcc2 internal prototype to avoid an error. */
18410 /* We use char because int might match the return type of a gcc2
18411 builtin and then its argument prototype would still apply. */
18412 char krb_get_cred ();
18421 rm -f conftest.
$ac_objext conftest
$ac_exeext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423 (eval $ac_link) 2>conftest.er1
18425 grep -v '^ *+' conftest.er1
>conftest.err
18427 cat conftest.err
>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try
='test -z "$ac_c_werror_flag"
18431 || test ! -s conftest.err'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try
='test -s conftest$ac_exeext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_lib_krb_krb_get_cred
=yes
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.
$ac_ext >&5
18448 ac_cv_lib_krb_krb_get_cred
=no
18450 rm -f conftest.err conftest.
$ac_objext \
18451 conftest
$ac_exeext conftest.
$ac_ext
18452 LIBS
=$ac_check_lib_save_LIBS
18454 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18455 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18456 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18457 cat >>confdefs.h
<<_ACEOF
18458 #define HAVE_LIBKRB 1
18469 if test "${with_kerberos5+set}" = set; then
18471 for ac_header
in krb5.h
18473 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18475 echo "$as_me:$LINENO: checking for $ac_header" >&5
18476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18483 # Is the header compilable?
18484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18486 cat >conftest.
$ac_ext <<_ACEOF
18489 cat confdefs.h
>>conftest.
$ac_ext
18490 cat >>conftest.
$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 $ac_includes_default
18493 #include <$ac_header>
18495 rm -f conftest.
$ac_objext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18497 (eval $ac_compile) 2>conftest.er1
18499 grep -v '^ *+' conftest.er1
>conftest.err
18501 cat conftest.err
>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try
='test -z "$ac_c_werror_flag"
18505 || test ! -s conftest.err'
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try
='test -s conftest.$ac_objext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_header_compiler
=yes
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.
$ac_ext >&5
18522 ac_header_compiler
=no
18524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18526 echo "${ECHO_T}$ac_header_compiler" >&6
18528 # Is the header present?
18529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18531 cat >conftest.
$ac_ext <<_ACEOF
18534 cat confdefs.h
>>conftest.
$ac_ext
18535 cat >>conftest.
$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 #include <$ac_header>
18539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18542 grep -v '^ *+' conftest.er1
>conftest.err
18544 cat conftest.err
>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } >/dev
/null
; then
18547 if test -s conftest.err
; then
18548 ac_cpp_err
=$ac_c_preproc_warn_flag
18549 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18556 if test -z "$ac_cpp_err"; then
18557 ac_header_preproc
=yes
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.
$ac_ext >&5
18562 ac_header_preproc
=no
18564 rm -f conftest.err conftest.
$ac_ext
18565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18566 echo "${ECHO_T}$ac_header_preproc" >&6
18568 # So? What about this header?
18569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18575 ac_header_preproc
=yes
18578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18592 ## ------------------------------------------ ##
18593 ## Report this to the AC_PACKAGE_NAME lists. ##
18594 ## ------------------------------------------ ##
18597 sed "s/^/$as_me: WARNING: /" >&2
18600 echo "$as_me:$LINENO: checking for $ac_header" >&5
18601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 eval "$as_ac_Header=\$ac_header_preproc"
18607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18612 cat >>confdefs.h
<<_ACEOF
18613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18622 for ac_header
in des.h
18624 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18626 echo "$as_me:$LINENO: checking for $ac_header" >&5
18627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18634 # Is the header compilable?
18635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18637 cat >conftest.
$ac_ext <<_ACEOF
18640 cat confdefs.h
>>conftest.
$ac_ext
18641 cat >>conftest.
$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 $ac_includes_default
18644 #include <$ac_header>
18646 rm -f conftest.
$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18650 grep -v '^ *+' conftest.er1
>conftest.err
18652 cat conftest.err
>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try
='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try
='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_header_compiler
=yes
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.
$ac_ext >&5
18673 ac_header_compiler
=no
18675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18677 echo "${ECHO_T}$ac_header_compiler" >&6
18679 # Is the header present?
18680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18682 cat >conftest.
$ac_ext <<_ACEOF
18685 cat confdefs.h
>>conftest.
$ac_ext
18686 cat >>conftest.
$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 #include <$ac_header>
18690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18691 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18693 grep -v '^ *+' conftest.er1
>conftest.err
18695 cat conftest.err
>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } >/dev
/null
; then
18698 if test -s conftest.err
; then
18699 ac_cpp_err
=$ac_c_preproc_warn_flag
18700 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18707 if test -z "$ac_cpp_err"; then
18708 ac_header_preproc
=yes
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.
$ac_ext >&5
18713 ac_header_preproc
=no
18715 rm -f conftest.err conftest.
$ac_ext
18716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18717 echo "${ECHO_T}$ac_header_preproc" >&6
18719 # So? What about this header?
18720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18726 ac_header_preproc
=yes
18729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18743 ## ------------------------------------------ ##
18744 ## Report this to the AC_PACKAGE_NAME lists. ##
18745 ## ------------------------------------------ ##
18748 sed "s/^/$as_me: WARNING: /" >&2
18751 echo "$as_me:$LINENO: checking for $ac_header" >&5
18752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 eval "$as_ac_Header=\$ac_header_preproc"
18758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18763 cat >>confdefs.h
<<_ACEOF
18764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18769 for ac_header
in kerberosIV
/des.h
18771 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18773 echo "$as_me:$LINENO: checking for $ac_header" >&5
18774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18781 # Is the header compilable?
18782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18784 cat >conftest.
$ac_ext <<_ACEOF
18787 cat confdefs.h
>>conftest.
$ac_ext
18788 cat >>conftest.
$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 #include <$ac_header>
18793 rm -f conftest.
$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>conftest.er1
18797 grep -v '^ *+' conftest.er1
>conftest.err
18799 cat conftest.err
>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try
='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try
='test -s conftest.$ac_objext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_header_compiler
=yes
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.
$ac_ext >&5
18820 ac_header_compiler
=no
18822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18824 echo "${ECHO_T}$ac_header_compiler" >&6
18826 # Is the header present?
18827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18829 cat >conftest.
$ac_ext <<_ACEOF
18832 cat confdefs.h
>>conftest.
$ac_ext
18833 cat >>conftest.
$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 #include <$ac_header>
18837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18838 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18840 grep -v '^ *+' conftest.er1
>conftest.err
18842 cat conftest.err
>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } >/dev
/null
; then
18845 if test -s conftest.err
; then
18846 ac_cpp_err
=$ac_c_preproc_warn_flag
18847 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18854 if test -z "$ac_cpp_err"; then
18855 ac_header_preproc
=yes
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.
$ac_ext >&5
18860 ac_header_preproc
=no
18862 rm -f conftest.err conftest.
$ac_ext
18863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18864 echo "${ECHO_T}$ac_header_preproc" >&6
18866 # So? What about this header?
18867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18873 ac_header_preproc
=yes
18876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18890 ## ------------------------------------------ ##
18891 ## Report this to the AC_PACKAGE_NAME lists. ##
18892 ## ------------------------------------------ ##
18895 sed "s/^/$as_me: WARNING: /" >&2
18898 echo "$as_me:$LINENO: checking for $ac_header" >&5
18899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 eval "$as_ac_Header=\$ac_header_preproc"
18905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18910 cat >>confdefs.h
<<_ACEOF
18911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18916 for ac_header
in kerberos
/des.h
18918 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18920 echo "$as_me:$LINENO: checking for $ac_header" >&5
18921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18928 # Is the header compilable?
18929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18931 cat >conftest.
$ac_ext <<_ACEOF
18934 cat confdefs.h
>>conftest.
$ac_ext
18935 cat >>conftest.
$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 $ac_includes_default
18938 #include <$ac_header>
18940 rm -f conftest.
$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>conftest.er1
18944 grep -v '^ *+' conftest.er1
>conftest.err
18946 cat conftest.err
>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try
='test -z "$ac_c_werror_flag"
18950 || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try
='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_header_compiler
=yes
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.
$ac_ext >&5
18967 ac_header_compiler
=no
18969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6
18973 # Is the header present?
18974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18976 cat >conftest.
$ac_ext <<_ACEOF
18979 cat confdefs.h
>>conftest.
$ac_ext
18980 cat >>conftest.
$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #include <$ac_header>
18984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18985 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18987 grep -v '^ *+' conftest.er1
>conftest.err
18989 cat conftest.err
>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } >/dev
/null
; then
18992 if test -s conftest.err
; then
18993 ac_cpp_err
=$ac_c_preproc_warn_flag
18994 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19001 if test -z "$ac_cpp_err"; then
19002 ac_header_preproc
=yes
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.
$ac_ext >&5
19007 ac_header_preproc
=no
19009 rm -f conftest.err conftest.
$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011 echo "${ECHO_T}$ac_header_preproc" >&6
19013 # So? What about this header?
19014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19020 ac_header_preproc
=yes
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19037 ## ------------------------------------------ ##
19038 ## Report this to the AC_PACKAGE_NAME lists. ##
19039 ## ------------------------------------------ ##
19042 sed "s/^/$as_me: WARNING: /" >&2
19045 echo "$as_me:$LINENO: checking for $ac_header" >&5
19046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
19050 eval "$as_ac_Header=\$ac_header_preproc"
19052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19057 cat >>confdefs.h
<<_ACEOF
19058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19074 for ac_header
in krb.h
19076 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19078 echo "$as_me:$LINENO: checking for $ac_header" >&5
19079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19086 # Is the header compilable?
19087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19089 cat >conftest.
$ac_ext <<_ACEOF
19092 cat confdefs.h
>>conftest.
$ac_ext
19093 cat >>conftest.
$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19096 #include <$ac_header>
19098 rm -f conftest.
$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19102 grep -v '^ *+' conftest.er1
>conftest.err
19104 cat conftest.err
>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try
='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try
='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_header_compiler
=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.
$ac_ext >&5
19125 ac_header_compiler
=no
19127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19129 echo "${ECHO_T}$ac_header_compiler" >&6
19131 # Is the header present?
19132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19134 cat >conftest.
$ac_ext <<_ACEOF
19137 cat confdefs.h
>>conftest.
$ac_ext
19138 cat >>conftest.
$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 #include <$ac_header>
19142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19143 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19145 grep -v '^ *+' conftest.er1
>conftest.err
19147 cat conftest.err
>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } >/dev
/null
; then
19150 if test -s conftest.err
; then
19151 ac_cpp_err
=$ac_c_preproc_warn_flag
19152 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19159 if test -z "$ac_cpp_err"; then
19160 ac_header_preproc
=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.
$ac_ext >&5
19165 ac_header_preproc
=no
19167 rm -f conftest.err conftest.
$ac_ext
19168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19169 echo "${ECHO_T}$ac_header_preproc" >&6
19171 # So? What about this header?
19172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19178 ac_header_preproc
=yes
19181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19195 ## ------------------------------------------ ##
19196 ## Report this to the AC_PACKAGE_NAME lists. ##
19197 ## ------------------------------------------ ##
19200 sed "s/^/$as_me: WARNING: /" >&2
19203 echo "$as_me:$LINENO: checking for $ac_header" >&5
19204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 eval "$as_ac_Header=\$ac_header_preproc"
19210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19215 cat >>confdefs.h
<<_ACEOF
19216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19221 for ac_header
in kerberosIV
/krb.h
19223 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19225 echo "$as_me:$LINENO: checking for $ac_header" >&5
19226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19233 # Is the header compilable?
19234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19236 cat >conftest.
$ac_ext <<_ACEOF
19239 cat confdefs.h
>>conftest.
$ac_ext
19240 cat >>conftest.
$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 $ac_includes_default
19243 #include <$ac_header>
19245 rm -f conftest.
$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247 (eval $ac_compile) 2>conftest.er1
19249 grep -v '^ *+' conftest.er1
>conftest.err
19251 cat conftest.err
>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try
='test -z "$ac_c_werror_flag"
19255 || test ! -s conftest.err'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try
='test -s conftest.$ac_objext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_header_compiler
=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.
$ac_ext >&5
19272 ac_header_compiler
=no
19274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19276 echo "${ECHO_T}$ac_header_compiler" >&6
19278 # Is the header present?
19279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19281 cat >conftest.
$ac_ext <<_ACEOF
19284 cat confdefs.h
>>conftest.
$ac_ext
19285 cat >>conftest.
$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <$ac_header>
19289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19290 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19292 grep -v '^ *+' conftest.er1
>conftest.err
19294 cat conftest.err
>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } >/dev
/null
; then
19297 if test -s conftest.err
; then
19298 ac_cpp_err
=$ac_c_preproc_warn_flag
19299 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19306 if test -z "$ac_cpp_err"; then
19307 ac_header_preproc
=yes
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.
$ac_ext >&5
19312 ac_header_preproc
=no
19314 rm -f conftest.err conftest.
$ac_ext
19315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19316 echo "${ECHO_T}$ac_header_preproc" >&6
19318 # So? What about this header?
19319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19325 ac_header_preproc
=yes
19328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19342 ## ------------------------------------------ ##
19343 ## Report this to the AC_PACKAGE_NAME lists. ##
19344 ## ------------------------------------------ ##
19347 sed "s/^/$as_me: WARNING: /" >&2
19350 echo "$as_me:$LINENO: checking for $ac_header" >&5
19351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 eval "$as_ac_Header=\$ac_header_preproc"
19357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19362 cat >>confdefs.h
<<_ACEOF
19363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19368 for ac_header
in kerberos
/krb.h
19370 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19372 echo "$as_me:$LINENO: checking for $ac_header" >&5
19373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19380 # Is the header compilable?
19381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19383 cat >conftest.
$ac_ext <<_ACEOF
19386 cat confdefs.h
>>conftest.
$ac_ext
19387 cat >>conftest.
$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 $ac_includes_default
19390 #include <$ac_header>
19392 rm -f conftest.
$ac_objext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>conftest.er1
19396 grep -v '^ *+' conftest.er1
>conftest.err
19398 cat conftest.err
>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try
='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try
='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_header_compiler
=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.
$ac_ext >&5
19419 ac_header_compiler
=no
19421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19423 echo "${ECHO_T}$ac_header_compiler" >&6
19425 # Is the header present?
19426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19428 cat >conftest.
$ac_ext <<_ACEOF
19431 cat confdefs.h
>>conftest.
$ac_ext
19432 cat >>conftest.
$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19434 #include <$ac_header>
19436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19437 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19439 grep -v '^ *+' conftest.er1
>conftest.err
19441 cat conftest.err
>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } >/dev
/null
; then
19444 if test -s conftest.err
; then
19445 ac_cpp_err
=$ac_c_preproc_warn_flag
19446 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19453 if test -z "$ac_cpp_err"; then
19454 ac_header_preproc
=yes
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.
$ac_ext >&5
19459 ac_header_preproc
=no
19461 rm -f conftest.err conftest.
$ac_ext
19462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19463 echo "${ECHO_T}$ac_header_preproc" >&6
19465 # So? What about this header?
19466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19472 ac_header_preproc
=yes
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19489 ## ------------------------------------------ ##
19490 ## Report this to the AC_PACKAGE_NAME lists. ##
19491 ## ------------------------------------------ ##
19494 sed "s/^/$as_me: WARNING: /" >&2
19497 echo "$as_me:$LINENO: checking for $ac_header" >&5
19498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 eval "$as_ac_Header=\$ac_header_preproc"
19504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19509 cat >>confdefs.h
<<_ACEOF
19510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19527 for ac_header
in com_err.h
19529 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo "$as_me:$LINENO: checking for $ac_header" >&5
19532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19539 # Is the header compilable?
19540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19542 cat >conftest.
$ac_ext <<_ACEOF
19545 cat confdefs.h
>>conftest.
$ac_ext
19546 cat >>conftest.
$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 $ac_includes_default
19549 #include <$ac_header>
19551 rm -f conftest.
$ac_objext
19552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19553 (eval $ac_compile) 2>conftest.er1
19555 grep -v '^ *+' conftest.er1
>conftest.err
19557 cat conftest.err
>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
19560 { ac_try
='test -z "$ac_c_werror_flag"
19561 || test ! -s conftest.err'
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; } &&
19567 { ac_try
='test -s conftest.$ac_objext'
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_header_compiler
=yes
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.
$ac_ext >&5
19578 ac_header_compiler
=no
19580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19582 echo "${ECHO_T}$ac_header_compiler" >&6
19584 # Is the header present?
19585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19587 cat >conftest.
$ac_ext <<_ACEOF
19590 cat confdefs.h
>>conftest.
$ac_ext
19591 cat >>conftest.
$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 #include <$ac_header>
19595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19596 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19598 grep -v '^ *+' conftest.er1
>conftest.err
19600 cat conftest.err
>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } >/dev
/null
; then
19603 if test -s conftest.err
; then
19604 ac_cpp_err
=$ac_c_preproc_warn_flag
19605 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19612 if test -z "$ac_cpp_err"; then
19613 ac_header_preproc
=yes
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.
$ac_ext >&5
19618 ac_header_preproc
=no
19620 rm -f conftest.err conftest.
$ac_ext
19621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19622 echo "${ECHO_T}$ac_header_preproc" >&6
19624 # So? What about this header?
19625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19631 ac_header_preproc
=yes
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19648 ## ------------------------------------------ ##
19649 ## Report this to the AC_PACKAGE_NAME lists. ##
19650 ## ------------------------------------------ ##
19653 sed "s/^/$as_me: WARNING: /" >&2
19656 echo "$as_me:$LINENO: checking for $ac_header" >&5
19657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 eval "$as_ac_Header=\$ac_header_preproc"
19663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19668 cat >>confdefs.h
<<_ACEOF
19669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19678 # Solaris requires -lintl if you want strerror (which calls dgettext)
19679 # to return localized messages.
19681 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19682 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19683 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 ac_check_lib_save_LIBS
=$LIBS
19687 LIBS
="-lintl $LIBS"
19688 cat >conftest.
$ac_ext <<_ACEOF
19691 cat confdefs.h
>>conftest.
$ac_ext
19692 cat >>conftest.
$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 /* Override any gcc2 internal prototype to avoid an error. */
19699 /* We use char because int might match the return type of a gcc2
19700 builtin and then its argument prototype would still apply. */
19710 rm -f conftest.
$ac_objext conftest
$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>conftest.er1
19714 grep -v '^ *+' conftest.er1
>conftest.err
19716 cat conftest.err
>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try
='test -z "$ac_c_werror_flag"
19720 || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try
='test -s conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_lib_intl_dgettext
=yes
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.
$ac_ext >&5
19737 ac_cv_lib_intl_dgettext
=no
19739 rm -f conftest.err conftest.
$ac_objext \
19740 conftest
$ac_exeext conftest.
$ac_ext
19741 LIBS
=$ac_check_lib_save_LIBS
19743 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19744 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19745 if test $ac_cv_lib_intl_dgettext = yes; then
19746 cat >>confdefs.h
<<_ACEOF
19747 #define HAVE_LIBINTL 1
19750 LIBS
="-lintl $LIBS"
19755 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19756 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19757 if test "${emacs_cv_localtime_cache+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 if test x
$ac_cv_func_tzset = xyes
; then
19761 if test "$cross_compiling" = yes; then
19762 # If we have tzset, assume the worst when cross-compiling.
19763 emacs_cv_localtime_cache
=yes
19765 cat >conftest.
$ac_ext <<_ACEOF
19768 cat confdefs.h
>>conftest.
$ac_ext
19769 cat >>conftest.
$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 extern char **environ;
19776 for (to = from = environ; (*to = *from); from++)
19777 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19780 char TZ_GMT0[] = "TZ=GMT0";
19781 char TZ_PST8[] = "TZ=PST8";
19784 time_t now = time ((time_t *) 0);
19785 int hour_GMT0, hour_unset;
19786 if (putenv (TZ_GMT0) != 0)
19788 hour_GMT0 = localtime (&now)->tm_hour;
19790 hour_unset = localtime (&now)->tm_hour;
19791 if (putenv (TZ_PST8) != 0)
19793 if (localtime (&now)->tm_hour == hour_GMT0)
19796 if (localtime (&now)->tm_hour != hour_unset)
19801 rm -f conftest
$ac_exeext
19802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19803 (eval $ac_link) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 emacs_cv_localtime_cache
=no
19814 echo "$as_me: program exited with status $ac_status" >&5
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.
$ac_ext >&5
19818 ( exit $ac_status )
19819 emacs_cv_localtime_cache
=yes
19821 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19824 # If we lack tzset, report that localtime does not cache TZ,
19825 # since we can't invalidate the cache if we don't have tzset.
19826 emacs_cv_localtime_cache
=no
19829 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19830 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19831 if test $emacs_cv_localtime_cache = yes; then
19833 cat >>confdefs.h
<<\_ACEOF
19834 #define LOCALTIME_CACHE 1
19839 if test "x$HAVE_TIMEVAL" = xyes
; then
19841 for ac_func
in gettimeofday
19843 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19844 echo "$as_me:$LINENO: checking for $ac_func" >&5
19845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19846 if eval "test \"\${$as_ac_var+set}\" = set"; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 cat >conftest.
$ac_ext <<_ACEOF
19852 cat confdefs.h
>>conftest.
$ac_ext
19853 cat >>conftest.
$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19857 #define $ac_func innocuous_$ac_func
19859 /* System header to define __stub macros and hopefully few prototypes,
19860 which can conflict with char $ac_func (); below.
19861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19862 <limits.h> exists even on freestanding compilers. */
19865 # include <limits.h>
19867 # include <assert.h>
19872 /* Override any gcc2 internal prototype to avoid an error. */
19877 /* We use char because int might match the return type of a gcc2
19878 builtin and then its argument prototype would still apply. */
19880 /* The GNU C library defines this for functions which it implements
19881 to always fail with ENOSYS. Some functions are actually named
19882 something starting with __ and the normal name is an alias. */
19883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19886 char (*f) () = $ac_func;
19895 return f != $ac_func;
19900 rm -f conftest.
$ac_objext conftest
$ac_exeext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19902 (eval $ac_link) 2>conftest.er1
19904 grep -v '^ *+' conftest.er1
>conftest.err
19906 cat conftest.err
>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try
='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try
='test -s conftest$ac_exeext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 eval "$as_ac_var=yes"
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.
$ac_ext >&5
19927 eval "$as_ac_var=no"
19929 rm -f conftest.err conftest.
$ac_objext \
19930 conftest
$ac_exeext conftest.
$ac_ext
19932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19934 if test `eval echo '${'$as_ac_var'}'` = yes; then
19935 cat >>confdefs.h
<<_ACEOF
19936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19942 if test $ac_cv_func_gettimeofday = yes; then
19943 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19944 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19945 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 cat >conftest.
$ac_ext <<_ACEOF
19951 cat confdefs.h
>>conftest.
$ac_ext
19952 cat >>conftest.
$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19955 #ifdef TIME_WITH_SYS_TIME
19956 #include <sys/time.h>
19959 #ifdef HAVE_SYS_TIME_H
19960 #include <sys/time.h>
19968 struct timeval time;
19969 gettimeofday (&time, 0);
19974 rm -f conftest.
$ac_objext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19976 (eval $ac_compile) 2>conftest.er1
19978 grep -v '^ *+' conftest.er1
>conftest.err
19980 cat conftest.err
>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try
='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try
='test -s conftest.$ac_objext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 emacs_cv_gettimeofday_two_arguments
=yes
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.
$ac_ext >&5
20001 emacs_cv_gettimeofday_two_arguments
=no
20003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20005 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20006 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20007 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20009 cat >>confdefs.h
<<\_ACEOF
20010 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20017 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20018 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20019 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20020 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 cat >conftest.
$ac_ext <<_ACEOF
20026 cat confdefs.h
>>conftest.
$ac_ext
20027 cat >>conftest.
$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <sys/types.h>
20030 #include <$ac_cv_struct_tm>
20036 static struct tm ac_aggr;
20037 if (ac_aggr.tm_zone)
20043 rm -f conftest.
$ac_objext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20045 (eval $ac_compile) 2>conftest.er1
20047 grep -v '^ *+' conftest.er1
>conftest.err
20049 cat conftest.err
>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
20052 { ac_try
='test -z "$ac_c_werror_flag"
20053 || test ! -s conftest.err'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try
='test -s conftest.$ac_objext'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_cv_member_struct_tm_tm_zone
=yes
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.
$ac_ext >&5
20070 cat >conftest.
$ac_ext <<_ACEOF
20073 cat confdefs.h
>>conftest.
$ac_ext
20074 cat >>conftest.
$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 #include <sys/types.h>
20077 #include <$ac_cv_struct_tm>
20083 static struct tm ac_aggr;
20084 if (sizeof ac_aggr.tm_zone)
20090 rm -f conftest.
$ac_objext
20091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20092 (eval $ac_compile) 2>conftest.er1
20094 grep -v '^ *+' conftest.er1
>conftest.err
20096 cat conftest.err
>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
20099 { ac_try
='test -z "$ac_c_werror_flag"
20100 || test ! -s conftest.err'
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try
='test -s conftest.$ac_objext'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_cv_member_struct_tm_tm_zone
=yes
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.
$ac_ext >&5
20117 ac_cv_member_struct_tm_tm_zone
=no
20119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20123 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20124 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20125 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20127 cat >>confdefs.h
<<_ACEOF
20128 #define HAVE_STRUCT_TM_TM_ZONE 1
20134 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20136 cat >>confdefs.h
<<\_ACEOF
20137 #define HAVE_TM_ZONE 1
20141 echo "$as_me:$LINENO: checking for tzname" >&5
20142 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20143 if test "${ac_cv_var_tzname+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 cat >conftest.
$ac_ext <<_ACEOF
20149 cat confdefs.h
>>conftest.
$ac_ext
20150 cat >>conftest.
$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20153 #ifndef tzname /* For SGI. */
20154 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20165 rm -f conftest.
$ac_objext conftest
$ac_exeext
20166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20167 (eval $ac_link) 2>conftest.er1
20169 grep -v '^ *+' conftest.er1
>conftest.err
20171 cat conftest.err
>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } &&
20174 { ac_try
='test -z "$ac_c_werror_flag"
20175 || test ! -s conftest.err'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try
='test -s conftest$ac_exeext'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_cv_var_tzname
=yes
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.
$ac_ext >&5
20192 ac_cv_var_tzname
=no
20194 rm -f conftest.err conftest.
$ac_objext \
20195 conftest
$ac_exeext conftest.
$ac_ext
20197 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20198 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20199 if test $ac_cv_var_tzname = yes; then
20201 cat >>confdefs.h
<<\_ACEOF
20202 #define HAVE_TZNAME 1
20209 if test "$ac_cv_func_gettimeofday" = yes; then
20210 echo "$as_me:$LINENO: checking for struct timezone" >&5
20211 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20212 if test "${emacs_cv_struct_timezone+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 cat >conftest.
$ac_ext <<_ACEOF
20218 cat confdefs.h
>>conftest.
$ac_ext
20219 cat >>conftest.
$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 #include <sys/time.h>
20225 struct timezone tz;
20230 rm -f conftest.
$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20234 grep -v '^ *+' conftest.er1
>conftest.err
20236 cat conftest.err
>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try
='test -z "$ac_c_werror_flag"
20240 || test ! -s conftest.err'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; } &&
20246 { ac_try
='test -s conftest.$ac_objext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 if test "$cross_compiling" = yes; then
20253 emacs_cv_struct_timezone
=yes
20255 cat >conftest.
$ac_ext <<_ACEOF
20258 cat confdefs.h
>>conftest.
$ac_ext
20259 cat >>conftest.
$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 #ifdef TIME_WITH_SYS_TIME
20263 #include <sys/time.h>
20266 #ifdef HAVE_SYS_TIME_H
20267 #include <sys/time.h>
20273 struct timeval time;
20274 struct timezone dummy;
20275 exit (gettimeofday (&time, &dummy));
20278 rm -f conftest
$ac_exeext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280 (eval $ac_link) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 emacs_cv_struct_timezone
=yes
20291 echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.
$ac_ext >&5
20295 ( exit $ac_status )
20296 emacs_cv_struct_timezone
=no
20298 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.
$ac_ext >&5
20304 emacs_cv_struct_timezone
=no
20306 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20308 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20309 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20313 echo "$as_me:$LINENO: checking for socket" >&5
20314 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20315 if test "${ac_cv_func_socket+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 cat >conftest.
$ac_ext <<_ACEOF
20321 cat confdefs.h
>>conftest.
$ac_ext
20322 cat >>conftest.
$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20326 #define socket innocuous_socket
20328 /* System header to define __stub macros and hopefully few prototypes,
20329 which can conflict with char socket (); below.
20330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20331 <limits.h> exists even on freestanding compilers. */
20334 # include <limits.h>
20336 # include <assert.h>
20341 /* Override any gcc2 internal prototype to avoid an error. */
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20349 /* The GNU C library defines this for functions which it implements
20350 to always fail with ENOSYS. Some functions are actually named
20351 something starting with __ and the normal name is an alias. */
20352 #if defined (__stub_socket) || defined (__stub___socket)
20355 char (*f) () = socket;
20364 return f != socket;
20369 rm -f conftest.
$ac_objext conftest
$ac_exeext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20371 (eval $ac_link) 2>conftest.er1
20373 grep -v '^ *+' conftest.er1
>conftest.err
20375 cat conftest.err
>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
20378 { ac_try
='test -z "$ac_c_werror_flag"
20379 || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try
='test -s conftest$ac_exeext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_cv_func_socket
=yes
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.
$ac_ext >&5
20396 ac_cv_func_socket
=no
20398 rm -f conftest.err conftest.
$ac_objext \
20399 conftest
$ac_exeext conftest.
$ac_ext
20401 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20402 echo "${ECHO_T}$ac_cv_func_socket" >&6
20403 if test $ac_cv_func_socket = yes; then
20409 if test $ok_so_far = yes; then
20410 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20411 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20412 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20413 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20417 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20419 # Is the header compilable?
20420 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20421 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20422 cat >conftest.
$ac_ext <<_ACEOF
20425 cat confdefs.h
>>conftest.
$ac_ext
20426 cat >>conftest.
$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 $ac_includes_default
20429 #include <netinet/in.h>
20431 rm -f conftest.
$ac_objext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>conftest.er1
20435 grep -v '^ *+' conftest.er1
>conftest.err
20437 cat conftest.err
>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try
='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try
='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_header_compiler
=yes
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.
$ac_ext >&5
20458 ac_header_compiler
=no
20460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20462 echo "${ECHO_T}$ac_header_compiler" >&6
20464 # Is the header present?
20465 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20466 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20467 cat >conftest.
$ac_ext <<_ACEOF
20470 cat confdefs.h
>>conftest.
$ac_ext
20471 cat >>conftest.
$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473 #include <netinet/in.h>
20475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20476 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20478 grep -v '^ *+' conftest.er1
>conftest.err
20480 cat conftest.err
>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev
/null
; then
20483 if test -s conftest.err
; then
20484 ac_cpp_err
=$ac_c_preproc_warn_flag
20485 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20492 if test -z "$ac_cpp_err"; then
20493 ac_header_preproc
=yes
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.
$ac_ext >&5
20498 ac_header_preproc
=no
20500 rm -f conftest.err conftest.
$ac_ext
20501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20502 echo "${ECHO_T}$ac_header_preproc" >&6
20504 # So? What about this header?
20505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20508 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20510 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20511 ac_header_preproc
=yes
20514 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20515 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20517 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20519 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20521 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20523 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20525 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20528 ## ------------------------------------------ ##
20529 ## Report this to the AC_PACKAGE_NAME lists. ##
20530 ## ------------------------------------------ ##
20533 sed "s/^/$as_me: WARNING: /" >&2
20536 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20537 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20538 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 ac_cv_header_netinet_in_h
=$ac_header_preproc
20543 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20544 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20547 if test $ac_cv_header_netinet_in_h = yes; then
20555 if test $ok_so_far = yes; then
20556 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20557 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20558 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20559 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20563 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20565 # Is the header compilable?
20566 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20567 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20568 cat >conftest.
$ac_ext <<_ACEOF
20571 cat confdefs.h
>>conftest.
$ac_ext
20572 cat >>conftest.
$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 $ac_includes_default
20575 #include <arpa/inet.h>
20577 rm -f conftest.
$ac_objext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20579 (eval $ac_compile) 2>conftest.er1
20581 grep -v '^ *+' conftest.er1
>conftest.err
20583 cat conftest.err
>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
20586 { ac_try
='test -z "$ac_c_werror_flag"
20587 || test ! -s conftest.err'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try
='test -s conftest.$ac_objext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_header_compiler
=yes
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.
$ac_ext >&5
20604 ac_header_compiler
=no
20606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20608 echo "${ECHO_T}$ac_header_compiler" >&6
20610 # Is the header present?
20611 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20612 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20613 cat >conftest.
$ac_ext <<_ACEOF
20616 cat confdefs.h
>>conftest.
$ac_ext
20617 cat >>conftest.
$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 #include <arpa/inet.h>
20621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20622 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20624 grep -v '^ *+' conftest.er1
>conftest.err
20626 cat conftest.err
>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } >/dev
/null
; then
20629 if test -s conftest.err
; then
20630 ac_cpp_err
=$ac_c_preproc_warn_flag
20631 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20638 if test -z "$ac_cpp_err"; then
20639 ac_header_preproc
=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.
$ac_ext >&5
20644 ac_header_preproc
=no
20646 rm -f conftest.err conftest.
$ac_ext
20647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20648 echo "${ECHO_T}$ac_header_preproc" >&6
20650 # So? What about this header?
20651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20653 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20654 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20656 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20657 ac_header_preproc
=yes
20660 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20661 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20663 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20665 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20667 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20669 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20671 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20674 ## ------------------------------------------ ##
20675 ## Report this to the AC_PACKAGE_NAME lists. ##
20676 ## ------------------------------------------ ##
20679 sed "s/^/$as_me: WARNING: /" >&2
20682 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20683 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20684 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20689 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20690 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20693 if test $ac_cv_header_arpa_inet_h = yes; then
20701 if test $ok_so_far = yes; then
20703 cat >>confdefs.h
<<\_ACEOF
20704 #define HAVE_INET_SOCKETS 1
20710 for ac_header
in sys
/ioctl.h
20712 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20714 echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20722 # Is the header compilable?
20723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20725 cat >conftest.
$ac_ext <<_ACEOF
20728 cat confdefs.h
>>conftest.
$ac_ext
20729 cat >>conftest.
$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 $ac_includes_default
20732 #include <$ac_header>
20734 rm -f conftest.
$ac_objext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20736 (eval $ac_compile) 2>conftest.er1
20738 grep -v '^ *+' conftest.er1
>conftest.err
20740 cat conftest.err
>&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
20743 { ac_try
='test -z "$ac_c_werror_flag"
20744 || test ! -s conftest.err'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; } &&
20750 { ac_try
='test -s conftest.$ac_objext'
20751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20752 (eval $ac_try) 2>&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_header_compiler
=yes
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.
$ac_ext >&5
20761 ac_header_compiler
=no
20763 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20765 echo "${ECHO_T}$ac_header_compiler" >&6
20767 # Is the header present?
20768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20770 cat >conftest.
$ac_ext <<_ACEOF
20773 cat confdefs.h
>>conftest.
$ac_ext
20774 cat >>conftest.
$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <$ac_header>
20778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20779 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20781 grep -v '^ *+' conftest.er1
>conftest.err
20783 cat conftest.err
>&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } >/dev
/null
; then
20786 if test -s conftest.err
; then
20787 ac_cpp_err
=$ac_c_preproc_warn_flag
20788 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20795 if test -z "$ac_cpp_err"; then
20796 ac_header_preproc
=yes
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.
$ac_ext >&5
20801 ac_header_preproc
=no
20803 rm -f conftest.err conftest.
$ac_ext
20804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20805 echo "${ECHO_T}$ac_header_preproc" >&6
20807 # So? What about this header?
20808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20814 ac_header_preproc
=yes
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20831 ## ------------------------------------------ ##
20832 ## Report this to the AC_PACKAGE_NAME lists. ##
20833 ## ------------------------------------------ ##
20836 sed "s/^/$as_me: WARNING: /" >&2
20839 echo "$as_me:$LINENO: checking for $ac_header" >&5
20840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 eval "$as_ac_Header=\$ac_header_preproc"
20846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20851 cat >>confdefs.h
<<_ACEOF
20852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20860 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20862 cat >>confdefs.h
<<\_ACEOF
20863 #define HAVE_AIX_SMT_EXP 1
20868 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20869 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20870 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20871 echo "$as_me:$LINENO: result: yes" >&5
20872 echo "${ECHO_T}yes" >&6
20874 cat >>confdefs.h
<<\_ACEOF
20875 #define HAVE_DEV_PTMX 1
20879 echo "$as_me:$LINENO: result: no" >&5
20880 echo "${ECHO_T}no" >&6
20883 echo "$as_me:$LINENO: checking for pid_t" >&5
20884 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20885 if test "${ac_cv_type_pid_t+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20888 cat >conftest.
$ac_ext <<_ACEOF
20891 cat confdefs.h
>>conftest.
$ac_ext
20892 cat >>conftest.
$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 $ac_includes_default
20900 if (sizeof (pid_t))
20906 rm -f conftest.
$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20910 grep -v '^ *+' conftest.er1
>conftest.err
20912 cat conftest.err
>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try
='test -z "$ac_c_werror_flag"
20916 || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try
='test -s conftest.$ac_objext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_type_pid_t
=yes
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.
$ac_ext >&5
20933 ac_cv_type_pid_t
=no
20935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20937 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20938 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20939 if test $ac_cv_type_pid_t = yes; then
20943 cat >>confdefs.h
<<_ACEOF
20951 for ac_header
in unistd.h vfork.h
20953 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20955 echo "$as_me:$LINENO: checking for $ac_header" >&5
20956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20963 # Is the header compilable?
20964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20966 cat >conftest.
$ac_ext <<_ACEOF
20969 cat confdefs.h
>>conftest.
$ac_ext
20970 cat >>conftest.
$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 $ac_includes_default
20973 #include <$ac_header>
20975 rm -f conftest.
$ac_objext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977 (eval $ac_compile) 2>conftest.er1
20979 grep -v '^ *+' conftest.er1
>conftest.err
20981 cat conftest.err
>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try
='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try
='test -s conftest.$ac_objext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_header_compiler
=yes
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.
$ac_ext >&5
21002 ac_header_compiler
=no
21004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21006 echo "${ECHO_T}$ac_header_compiler" >&6
21008 # Is the header present?
21009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21011 cat >conftest.
$ac_ext <<_ACEOF
21014 cat confdefs.h
>>conftest.
$ac_ext
21015 cat >>conftest.
$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 #include <$ac_header>
21019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21020 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21022 grep -v '^ *+' conftest.er1
>conftest.err
21024 cat conftest.err
>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } >/dev
/null
; then
21027 if test -s conftest.err
; then
21028 ac_cpp_err
=$ac_c_preproc_warn_flag
21029 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21036 if test -z "$ac_cpp_err"; then
21037 ac_header_preproc
=yes
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.
$ac_ext >&5
21042 ac_header_preproc
=no
21044 rm -f conftest.err conftest.
$ac_ext
21045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21046 echo "${ECHO_T}$ac_header_preproc" >&6
21048 # So? What about this header?
21049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21055 ac_header_preproc
=yes
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21072 ## ------------------------------------------ ##
21073 ## Report this to the AC_PACKAGE_NAME lists. ##
21074 ## ------------------------------------------ ##
21077 sed "s/^/$as_me: WARNING: /" >&2
21080 echo "$as_me:$LINENO: checking for $ac_header" >&5
21081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 eval "$as_ac_Header=\$ac_header_preproc"
21087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21092 cat >>confdefs.h
<<_ACEOF
21093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21102 for ac_func
in fork vfork
21104 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21105 echo "$as_me:$LINENO: checking for $ac_func" >&5
21106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21107 if eval "test \"\${$as_ac_var+set}\" = set"; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 cat >conftest.
$ac_ext <<_ACEOF
21113 cat confdefs.h
>>conftest.
$ac_ext
21114 cat >>conftest.
$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21118 #define $ac_func innocuous_$ac_func
21120 /* System header to define __stub macros and hopefully few prototypes,
21121 which can conflict with char $ac_func (); below.
21122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21123 <limits.h> exists even on freestanding compilers. */
21126 # include <limits.h>
21128 # include <assert.h>
21133 /* Override any gcc2 internal prototype to avoid an error. */
21138 /* We use char because int might match the return type of a gcc2
21139 builtin and then its argument prototype would still apply. */
21141 /* The GNU C library defines this for functions which it implements
21142 to always fail with ENOSYS. Some functions are actually named
21143 something starting with __ and the normal name is an alias. */
21144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21147 char (*f) () = $ac_func;
21156 return f != $ac_func;
21161 rm -f conftest.
$ac_objext conftest
$ac_exeext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21163 (eval $ac_link) 2>conftest.er1
21165 grep -v '^ *+' conftest.er1
>conftest.err
21167 cat conftest.err
>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
21170 { ac_try
='test -z "$ac_c_werror_flag"
21171 || test ! -s conftest.err'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try
='test -s conftest$ac_exeext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 eval "$as_ac_var=yes"
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.
$ac_ext >&5
21188 eval "$as_ac_var=no"
21190 rm -f conftest.err conftest.
$ac_objext \
21191 conftest
$ac_exeext conftest.
$ac_ext
21193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21195 if test `eval echo '${'$as_ac_var'}'` = yes; then
21196 cat >>confdefs.h
<<_ACEOF
21197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21203 if test "x$ac_cv_func_fork" = xyes
; then
21204 echo "$as_me:$LINENO: checking for working fork" >&5
21205 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21206 if test "${ac_cv_func_fork_works+set}" = set; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 if test "$cross_compiling" = yes; then
21210 ac_cv_func_fork_works
=cross
21212 cat >conftest.
$ac_ext <<_ACEOF
21213 /* By Ruediger Kuhlmann. */
21214 #include <sys/types.h>
21216 # include <unistd.h>
21218 /* Some systems only have a dummy stub for fork() */
21226 rm -f conftest
$ac_exeext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21228 (eval $ac_link) 2>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_cv_func_fork_works
=yes
21239 echo "$as_me: program exited with status $ac_status" >&5
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.
$ac_ext >&5
21243 ( exit $ac_status )
21244 ac_cv_func_fork_works
=no
21246 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21249 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21250 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21253 ac_cv_func_fork_works
=$ac_cv_func_fork
21255 if test "x$ac_cv_func_fork_works" = xcross
; then
21257 *-*-amigaos* |
*-*-msdosdjgpp*)
21258 # Override, as these systems have only a dummy fork() stub
21259 ac_cv_func_fork_works
=no
21262 ac_cv_func_fork_works
=yes
21265 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21266 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21268 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21269 if test "x$ac_cv_func_vfork" = xyes
; then
21270 echo "$as_me:$LINENO: checking for working vfork" >&5
21271 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21272 if test "${ac_cv_func_vfork_works+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 if test "$cross_compiling" = yes; then
21276 ac_cv_func_vfork_works
=cross
21278 cat >conftest.
$ac_ext <<_ACEOF
21281 cat confdefs.h
>>conftest.
$ac_ext
21282 cat >>conftest.
$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 /* Thanks to Paul Eggert for this test. */
21286 #include <stdlib.h>
21287 #include <sys/types.h>
21288 #include <sys/stat.h>
21289 #include <sys/wait.h>
21291 # include <unistd.h>
21294 # include <vfork.h>
21296 /* On some sparc systems, changes by the child to local and incoming
21297 argument registers are propagated back to the parent. The compiler
21298 is told about this with #include <vfork.h>, but some compilers
21299 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21300 static variable whose address is put into a register that is
21301 clobbered by the vfork. */
21304 sparc_address_test (int arg)
21306 sparc_address_test (arg) int arg;
21309 static pid_t child;
21327 pid_t parent = getpid ();
21330 sparc_address_test (0);
21335 /* Here is another test for sparc vfork register problems. This
21336 test uses lots of local variables, at least as many local
21337 variables as main has allocated so far including compiler
21338 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21339 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21340 reuse the register of parent for one of the local variables,
21341 since it will think that parent can't possibly be used any more
21342 in this routine. Assigning to the local variable will thus
21343 munge parent in the parent process. */
21345 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21346 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21347 /* Convince the compiler that p..p7 are live; otherwise, it might
21348 use the same hardware register for all 8 local variables. */
21349 if (p != p1 || p != p2 || p != p3 || p != p4
21350 || p != p5 || p != p6 || p != p7)
21353 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21354 from child file descriptors. If the child closes a descriptor
21355 before it execs or exits, this munges the parent's descriptor
21356 as well. Test for this by closing stdout in the child. */
21357 _exit(close(fileno(stdout)) != 0);
21362 while (wait(&status) != child)
21365 /* Was there some problem with vforking? */
21368 /* Did the child fail? (This shouldn't happen.) */
21371 /* Did the vfork/compiler bug occur? */
21372 || parent != getpid()
21374 /* Did the file descriptor bug occur? */
21375 || fstat(fileno(stdout), &st) != 0
21380 rm -f conftest
$ac_exeext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_func_vfork_works
=yes
21393 echo "$as_me: program exited with status $ac_status" >&5
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.
$ac_ext >&5
21397 ( exit $ac_status )
21398 ac_cv_func_vfork_works
=no
21400 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21403 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21404 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21407 if test "x$ac_cv_func_fork_works" = xcross
; then
21408 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21409 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21410 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21413 if test "x$ac_cv_func_vfork_works" = xyes
; then
21415 cat >>confdefs.h
<<\_ACEOF
21416 #define HAVE_WORKING_VFORK 1
21421 cat >>confdefs.h
<<\_ACEOF
21426 if test "x$ac_cv_func_fork_works" = xyes
; then
21428 cat >>confdefs.h
<<\_ACEOF
21429 #define HAVE_WORKING_FORK 1
21435 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21436 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21437 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 cat >conftest.
$ac_ext <<_ACEOF
21443 cat confdefs.h
>>conftest.
$ac_ext
21444 cat >>conftest.
$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <langinfo.h>
21450 char* cs = nl_langinfo(CODESET);
21455 rm -f conftest.
$ac_objext conftest
$ac_exeext
21456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21457 (eval $ac_link) 2>conftest.er1
21459 grep -v '^ *+' conftest.er1
>conftest.err
21461 cat conftest.err
>&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
21464 { ac_try
='test -z "$ac_c_werror_flag"
21465 || test ! -s conftest.err'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; } &&
21471 { ac_try
='test -s conftest$ac_exeext'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; }; then
21477 emacs_cv_langinfo_codeset
=yes
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.
$ac_ext >&5
21482 emacs_cv_langinfo_codeset
=no
21484 rm -f conftest.err conftest.
$ac_objext \
21485 conftest
$ac_exeext conftest.
$ac_ext
21488 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21489 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21490 if test $emacs_cv_langinfo_codeset = yes; then
21492 cat >>confdefs.h
<<\_ACEOF
21493 #define HAVE_LANGINFO_CODESET 1
21498 echo "$as_me:$LINENO: checking for size_t" >&5
21499 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21500 if test "${ac_cv_type_size_t+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 cat >conftest.
$ac_ext <<_ACEOF
21506 cat confdefs.h
>>conftest.
$ac_ext
21507 cat >>conftest.
$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 $ac_includes_default
21515 if (sizeof (size_t))
21521 rm -f conftest.
$ac_objext
21522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21523 (eval $ac_compile) 2>conftest.er1
21525 grep -v '^ *+' conftest.er1
>conftest.err
21527 cat conftest.err
>&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } &&
21530 { ac_try
='test -z "$ac_c_werror_flag"
21531 || test ! -s conftest.err'
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; } &&
21537 { ac_try
='test -s conftest.$ac_objext'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; }; then
21543 ac_cv_type_size_t
=yes
21545 echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.
$ac_ext >&5
21548 ac_cv_type_size_t
=no
21550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21552 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21553 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21554 if test $ac_cv_type_size_t = yes; then
21556 cat >>confdefs.h
<<_ACEOF
21557 #define HAVE_SIZE_T 1
21564 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21565 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21566 if test "${ac_cv_type_mbstate_t+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 cat >conftest.
$ac_ext <<_ACEOF
21572 cat confdefs.h
>>conftest.
$ac_ext
21573 cat >>conftest.
$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 # include <wchar.h>
21580 mbstate_t x; return sizeof x;
21585 rm -f conftest.
$ac_objext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21587 (eval $ac_compile) 2>conftest.er1
21589 grep -v '^ *+' conftest.er1
>conftest.err
21591 cat conftest.err
>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
21594 { ac_try
='test -z "$ac_c_werror_flag"
21595 || test ! -s conftest.err'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } &&
21601 { ac_try
='test -s conftest.$ac_objext'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 ac_cv_type_mbstate_t
=yes
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.
$ac_ext >&5
21612 ac_cv_type_mbstate_t
=no
21614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21616 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21617 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21618 if test $ac_cv_type_mbstate_t = yes; then
21620 cat >>confdefs.h
<<\_ACEOF
21621 #define HAVE_MBSTATE_T 1
21626 cat >>confdefs.h
<<\_ACEOF
21627 #define mbstate_t int
21632 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21633 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21634 if test "${emacs_cv_c_restrict+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21637 cat >conftest.
$ac_ext <<_ACEOF
21640 cat confdefs.h
>>conftest.
$ac_ext
21641 cat >>conftest.
$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 void fred (int *restrict x);
21652 rm -f conftest.
$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21656 grep -v '^ *+' conftest.er1
>conftest.err
21658 cat conftest.err
>&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try
='test -z "$ac_c_werror_flag"
21662 || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try
='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 emacs_cv_c_restrict
=yes
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.
$ac_ext >&5
21679 cat >conftest.
$ac_ext <<_ACEOF
21682 cat confdefs.h
>>conftest.
$ac_ext
21683 cat >>conftest.
$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 void fred (int *__restrict x);
21694 rm -f conftest.
$ac_objext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21696 (eval $ac_compile) 2>conftest.er1
21698 grep -v '^ *+' conftest.er1
>conftest.err
21700 cat conftest.err
>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
21703 { ac_try
='test -z "$ac_c_werror_flag"
21704 || test ! -s conftest.err'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; } &&
21710 { ac_try
='test -s conftest.$ac_objext'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; }; then
21716 emacs_cv_c_restrict
=__restrict
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.
$ac_ext >&5
21721 emacs_cv_c_restrict
=no
21723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21727 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21728 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21729 case "$emacs_cv_c_restrict" in
21730 yes) emacs_restrict
=restrict
;;
21731 no
) emacs_restrict
="";;
21732 *) emacs_restrict
="$emacs_cv_c_restrict";;
21734 if test "$emacs_restrict" != __restrict
; then
21736 cat >>confdefs.h
<<_ACEOF
21737 #define __restrict $emacs_restrict
21742 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21743 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21744 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 cat >conftest.
$ac_ext <<_ACEOF
21750 cat confdefs.h
>>conftest.
$ac_ext
21751 cat >>conftest.
$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 void fred (int x[__restrict]);
21762 rm -f conftest.
$ac_objext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21764 (eval $ac_compile) 2>conftest.er1
21766 grep -v '^ *+' conftest.er1
>conftest.err
21768 cat conftest.err
>&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
21771 { ac_try
='test -z "$ac_c_werror_flag"
21772 || test ! -s conftest.err'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; } &&
21778 { ac_try
='test -s conftest.$ac_objext'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; }; then
21784 emacs_cv_c_restrict_arr
=yes
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.
$ac_ext >&5
21789 emacs_cv_c_restrict_arr
=no
21791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21793 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21794 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21795 if test "$emacs_cv_c_restrict_arr" = yes; then
21797 cat >>confdefs.h
<<\_ACEOF
21798 #define __restrict_arr __restrict
21805 # Set up the CFLAGS for real compilation, so we can substitute it.
21806 CFLAGS
="$REAL_CFLAGS"
21807 CPPFLAGS
="$REAL_CPPFLAGS"
21809 #### Find out which version of Emacs this is.
21810 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21811 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21812 if test x
"${version}" = x
; then
21813 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21814 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21815 { (exit 1); exit 1; }; }
21818 ### Specify what sort of things we'll be editing into Makefile and config.h.
21819 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21855 cat >>confdefs.h
<<_ACEOF
21856 #define EMACS_CONFIGURATION "${canonical}"
21860 cat >>confdefs.h
<<_ACEOF
21861 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21865 cat >>confdefs.h
<<_ACEOF
21866 #define config_machfile "${machfile}"
21870 cat >>confdefs.h
<<_ACEOF
21871 #define config_opsysfile "${opsysfile}"
21875 cat >>confdefs.h
<<_ACEOF
21876 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21880 cat >>confdefs.h
<<_ACEOF
21881 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21885 cat >>confdefs.h
<<_ACEOF
21886 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21890 cat >>confdefs.h
<<_ACEOF
21891 #define UNEXEC_SRC ${UNEXEC_SRC}
21895 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21897 cat >>confdefs.h
<<\_ACEOF
21898 #define HAVE_X_WINDOWS 1
21902 if test "${USE_X_TOOLKIT}" != "none" ; then
21904 cat >>confdefs.h
<<\_ACEOF
21905 #define USE_X_TOOLKIT 1
21909 if test "${HAVE_X11}" = "yes" ; then
21911 cat >>confdefs.h
<<\_ACEOF
21916 if test "${HAVE_XFREE386}" = "yes" ; then
21918 cat >>confdefs.h
<<\_ACEOF
21919 #define HAVE_XFREE386 1
21923 if test "${HAVE_MENUS}" = "yes" ; then
21925 cat >>confdefs.h
<<\_ACEOF
21926 #define HAVE_MENUS 1
21930 if test "${GNU_MALLOC}" = "yes" ; then
21932 cat >>confdefs.h
<<\_ACEOF
21933 #define GNU_MALLOC 1
21937 if test "${REL_ALLOC}" = "yes" ; then
21939 cat >>confdefs.h
<<\_ACEOF
21940 #define REL_ALLOC 1
21949 #### Report on what we decided to do.
21950 #### Report GTK as a toolkit, even if it doesn't use Xt.
21951 #### It makes printing result more understandable as using GTK sets
21952 #### toolkit_scroll_bars to yes by default.
21953 if test "${HAVE_GTK}" = "yes"; then
21958 Configured for \`${canonical}'.
21960 Where should the build process find the source code? ${srcdir}
21961 What operating system and machine description files should Emacs use?
21962 \`${opsysfile}' and \`${machfile}'
21963 What compiler should emacs be built with? ${CC} ${CFLAGS}
21964 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21965 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21966 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21967 What window system should Emacs use? ${window_system}
21968 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21970 if test -n "${x_includes}"; then
21971 echo " Where do we find X Windows header files? ${x_includes}"
21973 echo " Where do we find X Windows header files? Standard dirs"
21975 if test -n "${x_libraries}"; then
21976 echo " Where do we find X Windows libraries? ${x_libraries}"
21978 echo " Where do we find X Windows libraries? Standard dirs"
21981 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21982 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21983 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21984 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21985 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21986 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21987 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21990 if test $USE_XASSERTS = yes; then
21991 echo " Compiling with asserts turned on."
21992 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21998 # Remove any trailing slashes in these variables.
21999 test "${prefix}" != NONE
&&
22000 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22001 test "${exec_prefix}" != NONE
&&
22002 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22004 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22005 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22006 ## from Makefile.c can correctly provide the arg `-traditional' to the
22009 cat >conftest.
$ac_ext <<_ACEOF
22012 cat confdefs.h
>>conftest.
$ac_ext
22013 cat >>conftest.
$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22018 $EGREP "yes..yes" >/dev
/null
2>&1; then
22019 CPP_NEED_TRADITIONAL
=no
22021 CPP_NEED_TRADITIONAL
=yes
22026 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"
22027 ac_config_commands
="$ac_config_commands default"
22028 cat >confcache
<<\_ACEOF
22029 # This file is a shell script that caches the results of configure
22030 # tests run on this system so they can be shared between configure
22031 # scripts and configure runs, see configure's option --config-cache.
22032 # It is not useful on other systems. If it contains results you don't
22033 # want to keep, you may remove or edit it.
22035 # config.status only pays attention to the cache file if you give it
22036 # the --recheck option to rerun configure.
22038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22040 # following values.
22044 # The following way of writing the cache mishandles newlines in values,
22045 # but we know of no workaround that is simple, portable, and efficient.
22046 # So, don't put newlines in cache variables' values.
22047 # Ultrix sh set writes to stderr and can't be redirected directly,
22048 # and sets the high bit in the cache file unless we assign to the vars.
22051 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22053 # `set' does not quote correctly, so add quotes (double-quote
22054 # substitution turns \\\\ into \\, and sed turns \\ into \).
22057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22060 # `set' quotes correctly as required by POSIX, so do not add quotes.
22062 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22071 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22073 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22074 if test -w $cache_file; then
22075 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22076 cat confcache
>$cache_file
22078 echo "not updating unwritable cache $cache_file"
22083 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22084 # Let make expand exec_prefix.
22085 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22087 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22088 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22089 # trailing colons and then remove the whole line if VPATH becomes empty
22090 # (actually we leave an empty line to preserve line numbers).
22091 if test "x$srcdir" = x.
; then
22092 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22093 s/:*\$(srcdir):*/:/;
22094 s/:*\${srcdir}:*/:/;
22096 s/^\([^=]*=[ ]*\):*/\1/;
22102 DEFS
=-DHAVE_CONFIG_H
22106 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22107 # 1. Remove the extension, and $U if already installed.
22108 ac_i
=`echo "$ac_i" |
22109 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22111 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22112 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22114 LIBOBJS
=$ac_libobjs
22116 LTLIBOBJS
=$ac_ltlibobjs
22120 : ${CONFIG_STATUS=./config.status}
22121 ac_clean_files_save
=$ac_clean_files
22122 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22123 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22124 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22125 cat >$CONFIG_STATUS <<_ACEOF
22127 # Generated by $as_me.
22128 # Run this file to recreate the current configuration.
22129 # Compiler output produced by configure, useful for debugging
22130 # configure, is in config.log if it exists.
22133 ac_cs_recheck=false
22135 SHELL=\${CONFIG_SHELL-$SHELL}
22138 cat >>$CONFIG_STATUS <<\_ACEOF
22139 ## --------------------- ##
22140 ## M4sh Initialization. ##
22141 ## --------------------- ##
22143 # Be Bourne compatible
22144 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22148 # is contrary to our usage. Disable this feature.
22149 alias -g '${1+"$@"}'='"$@"'
22150 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22153 DUALCASE
=1; export DUALCASE
# for MKS sh
22155 # Support unset when possible.
22156 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22163 # Work around bugs in pre-3.0 UWIN ksh.
22164 $as_unset ENV MAIL MAILPATH
22171 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22172 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22173 LC_TELEPHONE LC_TIME
22175 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22176 eval $as_var=C
; export $as_var
22182 # Required to use basename.
22183 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22189 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22190 as_basename
=basename
22196 # Name of the executable.
22197 as_me
=`$as_basename "$0" ||
22198 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22199 X"$0" : 'X\(//\)$' \| \
22200 X"$0" : 'X\(/\)$' \| \
22201 . : '\(.\)' 2>/dev/null ||
22203 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22204 /^X\/\(\/\/\)$/{ s//\1/; q; }
22205 /^X\/\(\/\).*/{ s//\1/; q; }
22209 # PATH needs CR, and LINENO needs CR and PATH.
22210 # Avoid depending upon Character Ranges.
22211 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22212 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22213 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22214 as_cr_digits
='0123456789'
22215 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22217 # The user is always right.
22218 if test "${PATH_SEPARATOR+set}" != set; then
22219 echo "#! /bin/sh" >conf$$.sh
22220 echo "exit 0" >>conf$$.sh
22222 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22231 as_lineno_1
=$LINENO
22232 as_lineno_2
=$LINENO
22233 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22234 test "x$as_lineno_1" != "x$as_lineno_2" &&
22235 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22236 # Find who we are. Look in the path if we contain no path at all
22239 *[\\/]* ) as_myself
=$0 ;;
22240 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22241 for as_dir
in $PATH
22244 test -z "$as_dir" && as_dir
=.
22245 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22250 # We did not find ourselves, most probably we were run as `sh COMMAND'
22251 # in which case we are not to be found in the path.
22252 if test "x$as_myself" = x
; then
22255 if test ! -f "$as_myself"; then
22256 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22257 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22258 { (exit 1); exit 1; }; }
22260 case $CONFIG_SHELL in
22262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22263 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22266 test -z "$as_dir" && as_dir
=.
22267 for as_base
in sh bash ksh sh5
; do
22270 if ("$as_dir/$as_base" -c '
22271 as_lineno_1=$LINENO
22272 as_lineno_2=$LINENO
22273 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22274 test "x$as_lineno_1" != "x$as_lineno_2" &&
22275 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22276 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22277 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22278 CONFIG_SHELL
=$as_dir/$as_base
22279 export CONFIG_SHELL
22280 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22288 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22289 # uniformly replaced by the line number. The first 'sed' inserts a
22290 # line-number line before each line; the second 'sed' does the real
22291 # work. The second script uses 'N' to pair each line-number line
22292 # with the numbered line, and appends trailing '-' during
22293 # substitution so that $LINENO is not a special case at line end.
22294 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22295 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22296 sed '=' <$as_myself |
22301 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22304 s,^['$as_cr_digits']*\n,,
22305 ' >$as_me.lineno
&&
22306 chmod +x
$as_me.lineno ||
22307 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22308 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22309 { (exit 1); exit 1; }; }
22311 # Don't try to exec as it changes $[0], causing all sort of problems
22312 # (the dirname of $[0] is not the place where we might find the
22313 # original and so on. Autoconf is especially sensible to this).
22315 # Exit status is that of the last command.
22320 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22321 *c
*,-n*) ECHO_N
= ECHO_C
='
22323 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22324 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22327 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22333 rm -f conf$$ conf$$.exe conf$$.
file
22335 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22336 # We could just check for DJGPP; but this test a) works b) is more generic
22337 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22338 if test -f conf$$.exe
; then
22339 # Don't use ln at all; we don't have any links
22344 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22349 rm -f conf$$ conf$$.exe conf$$.
file
22351 if mkdir
-p .
2>/dev
/null
; then
22354 test -d .
/-p && rmdir .
/-p
22358 as_executable_p
="test -f"
22360 # Sed expression to map a string onto a valid CPP name.
22361 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22363 # Sed expression to map a string onto a valid variable name.
22364 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22368 # We need space, tab and new line, in precisely that order.
22378 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22379 # report actual input values of CONFIG_FILES etc. instead of their
22380 # values after options handling. Logging --version etc. is OK.
22384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22385 ## Running $as_me. ##
22390 This file was extended by $as_me, which was
22391 generated by GNU Autoconf 2.59. Invocation command line was
22393 CONFIG_FILES = $CONFIG_FILES
22394 CONFIG_HEADERS = $CONFIG_HEADERS
22395 CONFIG_LINKS = $CONFIG_LINKS
22396 CONFIG_COMMANDS = $CONFIG_COMMANDS
22400 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22404 # Files that config.status was made for.
22405 if test -n "$ac_config_files"; then
22406 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22409 if test -n "$ac_config_headers"; then
22410 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22413 if test -n "$ac_config_links"; then
22414 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22417 if test -n "$ac_config_commands"; then
22418 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22421 cat >>$CONFIG_STATUS <<\_ACEOF
22424 \`$as_me' instantiates files from templates according to the
22425 current configuration.
22427 Usage: $0 [OPTIONS] [FILE]...
22429 -h, --help print this help, then exit
22430 -V, --version print version number, then exit
22431 -q, --quiet do not print progress messages
22432 -d, --debug don't remove temporary files
22433 --recheck update $as_me by reconfiguring in the same conditions
22434 --file=FILE[:TEMPLATE]
22435 instantiate the configuration file FILE
22436 --header=FILE[:TEMPLATE]
22437 instantiate the configuration header FILE
22439 Configuration files:
22442 Configuration headers:
22445 Configuration commands:
22448 Report bugs to <bug-autoconf@gnu.org>."
22451 cat >>$CONFIG_STATUS <<_ACEOF
22454 configured by $0, generated by GNU Autoconf 2.59,
22455 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22457 Copyright (C) 2003 Free Software Foundation, Inc.
22458 This config.status script is free software; the Free Software Foundation
22459 gives unlimited permission to copy, distribute and modify it."
22464 cat >>$CONFIG_STATUS <<\_ACEOF
22465 # If no file are specified by the user, then we need to provide default
22466 # value. By we need to know if files were specified by the user.
22472 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22473 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22481 *) # This is not an option, so the user has probably given explicit
22484 ac_need_defaults
=false
;;
22488 # Handling of the options.
22490 cat >>$CONFIG_STATUS <<\_ACEOF
22491 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22493 --version |
--vers* |
-V )
22494 echo "$ac_cs_version"; exit 0 ;;
22496 # Conflict between --help and --header
22497 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22498 Try \`$0 --help' for more information." >&5
22499 echo "$as_me: error: ambiguous option: $1
22500 Try \`$0 --help' for more information." >&2;}
22501 { (exit 1); exit 1; }; };;
22502 --help |
--hel |
-h )
22503 echo "$ac_cs_usage"; exit 0 ;;
22504 --debug |
--d* |
-d )
22506 --file |
--fil |
--fi |
--f )
22508 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22509 ac_need_defaults
=false
;;
22510 --header |
--heade |
--head |
--hea )
22512 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22513 ac_need_defaults
=false
;;
22514 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22515 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22518 # This is an error.
22519 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22520 Try \`$0 --help' for more information." >&5
22521 echo "$as_me: error: unrecognized option: $1
22522 Try \`$0 --help' for more information." >&2;}
22523 { (exit 1); exit 1; }; } ;;
22525 *) ac_config_targets
="$ac_config_targets $1" ;;
22531 ac_configure_extra_args
=
22533 if $ac_cs_silent; then
22535 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22539 cat >>$CONFIG_STATUS <<_ACEOF
22540 if \$ac_cs_recheck; then
22541 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22542 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22547 cat >>$CONFIG_STATUS <<_ACEOF
22549 # INIT-COMMANDS section.
22552 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22558 cat >>$CONFIG_STATUS <<\_ACEOF
22559 for ac_config_target
in $ac_config_targets
22561 case "$ac_config_target" in
22562 # Handling of arguments.
22563 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22564 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22565 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22566 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22567 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22568 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22569 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22570 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22571 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22572 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22573 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22574 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22575 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22576 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22577 { (exit 1); exit 1; }; };;
22581 # If the user did not use the arguments to specify the items to instantiate,
22582 # then the envvar interface is used. Set only those that are not.
22583 # We use the long form for the default assignment because of an extremely
22584 # bizarre bug on SunOS 4.1.3.
22585 if $ac_need_defaults; then
22586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22588 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22591 # Have a temporary directory for convenience. Make it in the build tree
22592 # simply because there is no reason to put it here, and in addition,
22593 # creating and moving files from /tmp can sometimes cause problems.
22594 # Create a temporary directory, and hook for its removal unless debugging.
22597 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22598 trap '{ (exit 1); exit 1; }' 1 2 13 15
22601 # Create a (secure) tmp directory for tmp files.
22604 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22605 test -n "$tmp" && test -d "$tmp"
22608 tmp
=.
/confstat$$
-$RANDOM
22609 (umask 077 && mkdir
$tmp)
22612 echo "$me: cannot create a temporary directory in ." >&2
22613 { (exit 1); exit 1; }
22618 cat >>$CONFIG_STATUS <<_ACEOF
22621 # CONFIG_FILES section.
22624 # No need to generate the scripts if there are no CONFIG_FILES.
22625 # This happens for instance when ./config.status config.h
22626 if test -n "\$CONFIG_FILES"; then
22627 # Protect against being on the right side of a sed subst in config.status.
22628 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22629 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22630 s,@SHELL@,$SHELL,;t t
22631 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22632 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22633 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22634 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22635 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22636 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22637 s,@exec_prefix@,$exec_prefix,;t t
22638 s,@prefix@,$prefix,;t t
22639 s,@program_transform_name@,$program_transform_name,;t t
22640 s,@bindir@,$bindir,;t t
22641 s,@sbindir@,$sbindir,;t t
22642 s,@libexecdir@,$libexecdir,;t t
22643 s,@datadir@,$datadir,;t t
22644 s,@sysconfdir@,$sysconfdir,;t t
22645 s,@sharedstatedir@,$sharedstatedir,;t t
22646 s,@localstatedir@,$localstatedir,;t t
22647 s,@libdir@,$libdir,;t t
22648 s,@includedir@,$includedir,;t t
22649 s,@oldincludedir@,$oldincludedir,;t t
22650 s,@infodir@,$infodir,;t t
22651 s,@mandir@,$mandir,;t t
22652 s,@build_alias@,$build_alias,;t t
22653 s,@host_alias@,$host_alias,;t t
22654 s,@target_alias@,$target_alias,;t t
22655 s,@DEFS@,$DEFS,;t t
22656 s,@ECHO_C@,$ECHO_C,;t t
22657 s,@ECHO_N@,$ECHO_N,;t t
22658 s,@ECHO_T@,$ECHO_T,;t t
22659 s,@LIBS@,$LIBS,;t t
22660 s,@MAINT@,$MAINT,;t t
22661 s,@build@,$build,;t t
22662 s,@build_cpu@,$build_cpu,;t t
22663 s,@build_vendor@,$build_vendor,;t t
22664 s,@build_os@,$build_os,;t t
22665 s,@host@,$host,;t t
22666 s,@host_cpu@,$host_cpu,;t t
22667 s,@host_vendor@,$host_vendor,;t t
22668 s,@host_os@,$host_os,;t t
22670 s,@CFLAGS@,$CFLAGS,;t t
22671 s,@LDFLAGS@,$LDFLAGS,;t t
22672 s,@CPPFLAGS@,$CPPFLAGS,;t t
22673 s,@ac_ct_CC@,$ac_ct_CC,;t t
22674 s,@EXEEXT@,$EXEEXT,;t t
22675 s,@OBJEXT@,$OBJEXT,;t t
22676 s,@LN_S@,$LN_S,;t t
22678 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22679 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22680 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22681 s,@RANLIB@,$RANLIB,;t t
22682 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22683 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22684 s,@EGREP@,$EGREP,;t t
22685 s,@LIBSOUND@,$LIBSOUND,;t t
22686 s,@SET_MAKE@,$SET_MAKE,;t t
22687 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22688 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22689 s,@GTK_LIBS@,$GTK_LIBS,;t t
22690 s,@ALLOCA@,$ALLOCA,;t t
22691 s,@liblockfile@,$liblockfile,;t t
22692 s,@LIBOBJS@,$LIBOBJS,;t t
22693 s,@NEED_SETGID@,$NEED_SETGID,;t t
22694 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22695 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22696 s,@version@,$version,;t t
22697 s,@configuration@,$configuration,;t t
22698 s,@canonical@,$canonical,;t t
22699 s,@srcdir@,$srcdir,;t t
22700 s,@lispdir@,$lispdir,;t t
22701 s,@locallisppath@,$locallisppath,;t t
22702 s,@lisppath@,$lisppath,;t t
22703 s,@x_default_search_path@,$x_default_search_path,;t t
22704 s,@etcdir@,$etcdir,;t t
22705 s,@archlibdir@,$archlibdir,;t t
22706 s,@docdir@,$docdir,;t t
22707 s,@bitmapdir@,$bitmapdir,;t t
22708 s,@gamedir@,$gamedir,;t t
22709 s,@gameuser@,$gameuser,;t t
22710 s,@c_switch_system@,$c_switch_system,;t t
22711 s,@c_switch_machine@,$c_switch_machine,;t t
22712 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22713 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22714 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22715 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22716 s,@machfile@,$machfile,;t t
22717 s,@opsysfile@,$opsysfile,;t t
22718 s,@carbon_appdir@,$carbon_appdir,;t t
22719 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22724 cat >>$CONFIG_STATUS <<\_ACEOF
22725 # Split the substitutions into bite-sized pieces for seds with
22726 # small command number limits, like on Digital OSF/1 and HP-UX.
22727 ac_max_sed_lines
=48
22728 ac_sed_frag
=1 # Number of current file.
22729 ac_beg
=1 # First line for current file.
22730 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22733 while $ac_more_lines; do
22734 if test $ac_beg -gt 1; then
22735 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22737 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22739 if test ! -s $tmp/subs.frag
; then
22740 ac_more_lines
=false
22742 # The purpose of the label and of the branching condition is to
22743 # speed up the sed processing (if there are no `@' at all, there
22744 # is no need to browse any of the substitutions).
22745 # These are the two extra sed commands mentioned above.
22747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22748 if test -z "$ac_sed_cmds"; then
22749 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22751 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22753 ac_sed_frag
=`expr $ac_sed_frag + 1`
22755 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22758 if test -z "$ac_sed_cmds"; then
22761 fi # test -n "$CONFIG_FILES"
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22765 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22766 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22768 - |
*:- |
*:-:* ) # input from stdin
22770 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22771 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22772 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22773 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22774 * ) ac_file_in
=$ac_file.
in ;;
22777 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22778 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22779 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22780 X"$ac_file" : 'X\(//\)[^/]' \| \
22781 X"$ac_file" : 'X\(//\)$' \| \
22782 X"$ac_file" : 'X\(/\)' \| \
22783 . : '\(.\)' 2>/dev/null ||
22785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22787 /^X\(\/\/\)$/{ s//\1/; q; }
22788 /^X\(\/\).*/{ s//\1/; q; }
22790 { if $as_mkdir_p; then
22795 while test ! -d "$as_dir"; do
22796 as_dirs
="$as_dir $as_dirs"
22797 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22799 X"$as_dir" : 'X\(//\)[^/]' \| \
22800 X"$as_dir" : 'X\(//\)$' \| \
22801 X"$as_dir" : 'X\(/\)' \| \
22802 . : '\(.\)' 2>/dev/null ||
22804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22806 /^X\(\/\/\)$/{ s//\1/; q; }
22807 /^X\(\/\).*/{ s//\1/; q; }
22810 test ! -n "$as_dirs" || mkdir
$as_dirs
22811 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22812 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22813 { (exit 1); exit 1; }; }; }
22817 if test "$ac_dir" != .
; then
22818 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22819 # A "../" for each directory in $ac_dir_suffix.
22820 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22822 ac_dir_suffix
= ac_top_builddir
=
22826 .
) # No --srcdir option. We are building in place.
22828 if test -z "$ac_top_builddir"; then
22831 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22833 [\\/]* | ?
:[\\/]* ) # Absolute path.
22834 ac_srcdir
=$srcdir$ac_dir_suffix;
22835 ac_top_srcdir
=$srcdir ;;
22836 *) # Relative path.
22837 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22838 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22841 # Do not use `cd foo && pwd` to compute absolute paths, because
22842 # the directories may not exist.
22844 .
) ac_abs_builddir
="$ac_dir";;
22847 .
) ac_abs_builddir
=`pwd`;;
22848 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22849 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22852 case $ac_abs_builddir in
22853 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22855 case ${ac_top_builddir}.
in
22856 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22857 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22858 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22861 case $ac_abs_builddir in
22862 .
) ac_abs_srcdir
=$ac_srcdir;;
22865 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22866 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22867 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22870 case $ac_abs_builddir in
22871 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22873 case $ac_top_srcdir in
22874 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22875 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22876 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22882 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22883 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22886 if test x
"$ac_file" != x-
; then
22887 { echo "$as_me:$LINENO: creating $ac_file" >&5
22888 echo "$as_me: creating $ac_file" >&6;}
22891 # Let's still pretend it is `configure' which instantiates (i.e., don't
22892 # use $as_me), people would be surprised to read:
22893 # /* config.h. Generated by config.status. */
22894 if test x
"$ac_file" = x-
; then
22897 configure_input
="$ac_file. "
22899 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22900 sed 's,.*/,,'` by configure."
22902 # First look for the input files in the build tree, otherwise in the
22904 ac_file_inputs
=`IFS=:
22905 for f in $ac_file_in; do
22907 -) echo $tmp/stdin ;;
22909 # Absolute (can't be DOS-style, as IFS=:)
22910 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22911 echo "$as_me: error: cannot find input file: $f" >&2;}
22912 { (exit 1); exit 1; }; }
22915 if test -f "$f"; then
22918 elif test -f "$srcdir/$f"; then
22923 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22924 echo "$as_me: error: cannot find input file: $f" >&2;}
22925 { (exit 1); exit 1; }; }
22928 done` ||
{ (exit 1); exit 1; }
22930 cat >>$CONFIG_STATUS <<_ACEOF
22934 cat >>$CONFIG_STATUS <<\_ACEOF
22936 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22937 s
,@configure_input@
,$configure_input,;t t
22938 s
,@srcdir@
,$ac_srcdir,;t t
22939 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22940 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22941 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22942 s
,@builddir@
,$ac_builddir,;t t
22943 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22944 s
,@top_builddir@
,$ac_top_builddir,;t t
22945 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22946 s
,@INSTALL@
,$ac_INSTALL,;t t
22947 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22949 if test x"$ac_file" != x-; then
22950 mv $tmp/out $ac_file
22958 cat >>$CONFIG_STATUS <<\_ACEOF
22961 # CONFIG_HEADER section.
22964 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22965 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22967 # ac_d sets the value in "#define NAME VALUE" lines.
22968 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22969 ac_dB
='[ ].*$,\1#\2'
22972 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22973 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22974 ac_uB
='$,\1#\2define\3'
22978 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22981 - |
*:- |
*:-:* ) # input from stdin
22983 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22984 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22985 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22986 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22987 * ) ac_file_in
=$ac_file.
in ;;
22990 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22991 echo "$as_me: creating $ac_file" >&6;}
22993 # First look for the input files in the build tree, otherwise in the
22995 ac_file_inputs
=`IFS=:
22996 for f in $ac_file_in; do
22998 -) echo $tmp/stdin ;;
23000 # Absolute (can't be DOS-style, as IFS=:)
23001 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23002 echo "$as_me: error: cannot find input file: $f" >&2;}
23003 { (exit 1); exit 1; }; }
23004 # Do quote $f, to prevent DOS paths from being IFS'd.
23007 if test -f "$f"; then
23010 elif test -f "$srcdir/$f"; then
23015 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23016 echo "$as_me: error: cannot find input file: $f" >&2;}
23017 { (exit 1); exit 1; }; }
23020 done` ||
{ (exit 1); exit 1; }
23021 # Remove the trailing spaces.
23022 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23026 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23027 # `conftest.undefs', that substitutes the proper values into
23028 # config.h.in to produce config.h. The first handles `#define'
23029 # templates, and the second `#undef' templates.
23030 # And first: Protect against being on the right side of a sed subst in
23031 # config.status. Protect against being in an unquoted here document
23032 # in config.status.
23033 rm -f conftest.defines conftest.undefs
23034 # Using a here document instead of a string reduces the quoting nightmare.
23035 # Putting comments in sed scripts is not portable.
23037 # `end' is used to avoid that the second main sed command (meant for
23038 # 0-ary CPP macros) applies to n-ary macro definitions.
23039 # See the Autoconf documentation for `clear'.
23040 cat >confdef2sed.
sed <<\_ACEOF
23045 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23047 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23050 # If some macros were called several times there might be several times
23051 # the same #defines, which is useless. Nevertheless, we may not want to
23052 # sort them, since we want the *last* AC-DEFINE to be honored.
23053 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23054 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23055 rm -f confdef2sed.sed
23057 # This sed command replaces #undef with comments. This is necessary, for
23058 # example, in the case of _POSIX_SOURCE, which is predefined and required
23059 # on some systems where configure will not decide to define it.
23060 cat >>conftest.undefs <<\_ACEOF
23061 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23064 # Break up conftest.defines because some shells have a limit on the size
23065 # of here documents, and old seds have small limits too (100 cmds).
23066 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23067 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23068 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23069 echo ' :' >>$CONFIG_STATUS
23070 rm -f conftest.tail
23071 while grep . conftest.defines >/dev/null
23073 # Write a limited-size here document to $tmp/defines.sed.
23074 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23075 # Speed up: don't consider the non `#define' lines.
23076 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23077 # Work around the forget-to-reset-the-flag bug.
23078 echo 't clr' >>$CONFIG_STATUS
23079 echo ': clr' >>$CONFIG_STATUS
23080 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23082 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23084 mv $tmp/out $tmp/in
23086 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23087 rm -f conftest.defines
23088 mv conftest.
tail conftest.defines
23090 rm -f conftest.defines
23091 echo ' fi # grep' >>$CONFIG_STATUS
23092 echo >>$CONFIG_STATUS
23094 # Break up conftest.undefs because some shells have a limit on the size
23095 # of here documents, and old seds have small limits too (100 cmds).
23096 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23097 rm -f conftest.
tail
23098 while grep . conftest.undefs
>/dev
/null
23100 # Write a limited-size here document to $tmp/undefs.sed.
23101 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23102 # Speed up: don't consider the non
`#undef'
23103 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23104 # Work around the forget-to-reset-the-flag bug.
23105 echo 't clr' >>$CONFIG_STATUS
23106 echo ': clr' >>$CONFIG_STATUS
23107 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23109 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23111 mv $tmp/out $tmp/in
23113 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23114 rm -f conftest.undefs
23115 mv conftest.tail conftest.undefs
23117 rm -f conftest.undefs
23119 cat >>$CONFIG_STATUS <<\_ACEOF
23120 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23121 # use $as_me), people would be surprised to read:
23122 # /* config.h. Generated by config.status. */
23123 if test x
"$ac_file" = x-
; then
23124 echo "/* Generated by configure. */" >$tmp/config.h
23126 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23128 cat $tmp/in >>$tmp/config.h
23130 if test x
"$ac_file" != x-
; then
23131 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23132 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23133 echo "$as_me: $ac_file is unchanged" >&6;}
23135 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23137 X"$ac_file" : 'X\(//\)[^/]' \| \
23138 X"$ac_file" : 'X\(//\)$' \| \
23139 X"$ac_file" : 'X\(/\)' \| \
23140 . : '\(.\)' 2>/dev/null ||
23142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23144 /^X\(\/\/\)$/{ s//\1/; q; }
23145 /^X\(\/\).*/{ s//\1/; q; }
23147 { if $as_mkdir_p; then
23152 while test ! -d "$as_dir"; do
23153 as_dirs
="$as_dir $as_dirs"
23154 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23156 X"$as_dir" : 'X\(//\)[^/]' \| \
23157 X"$as_dir" : 'X\(//\)$' \| \
23158 X"$as_dir" : 'X\(/\)' \| \
23159 . : '\(.\)' 2>/dev/null ||
23161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23163 /^X\(\/\/\)$/{ s//\1/; q; }
23164 /^X\(\/\).*/{ s//\1/; q; }
23167 test ! -n "$as_dirs" || mkdir
$as_dirs
23168 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23170 { (exit 1); exit 1; }; }; }
23173 mv $tmp/config.h
$ac_file
23177 rm -f $tmp/config.h
23181 cat >>$CONFIG_STATUS <<\_ACEOF
23184 # CONFIG_COMMANDS section.
23186 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23187 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23188 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23189 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23190 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23191 X"$ac_dest" : 'X\(//\)[^/]' \| \
23192 X"$ac_dest" : 'X\(//\)$' \| \
23193 X"$ac_dest" : 'X\(/\)' \| \
23194 . : '\(.\)' 2>/dev/null ||
23196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23198 /^X\(\/\/\)$/{ s//\1/; q; }
23199 /^X\(\/\).*/{ s//\1/; q; }
23201 { if $as_mkdir_p; then
23206 while test ! -d "$as_dir"; do
23207 as_dirs
="$as_dir $as_dirs"
23208 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23210 X"$as_dir" : 'X\(//\)[^/]' \| \
23211 X"$as_dir" : 'X\(//\)$' \| \
23212 X"$as_dir" : 'X\(/\)' \| \
23213 . : '\(.\)' 2>/dev/null ||
23215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23217 /^X\(\/\/\)$/{ s//\1/; q; }
23218 /^X\(\/\).*/{ s//\1/; q; }
23221 test ! -n "$as_dirs" || mkdir
$as_dirs
23222 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23224 { (exit 1); exit 1; }; }; }
23228 if test "$ac_dir" != .
; then
23229 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23230 # A "../" for each directory in $ac_dir_suffix.
23231 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23233 ac_dir_suffix
= ac_top_builddir
=
23237 .
) # No --srcdir option. We are building in place.
23239 if test -z "$ac_top_builddir"; then
23242 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23244 [\\/]* | ?
:[\\/]* ) # Absolute path.
23245 ac_srcdir
=$srcdir$ac_dir_suffix;
23246 ac_top_srcdir
=$srcdir ;;
23247 *) # Relative path.
23248 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23249 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23252 # Do not use `cd foo && pwd` to compute absolute paths, because
23253 # the directories may not exist.
23255 .
) ac_abs_builddir
="$ac_dir";;
23258 .
) ac_abs_builddir
=`pwd`;;
23259 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23260 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23263 case $ac_abs_builddir in
23264 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23266 case ${ac_top_builddir}.
in
23267 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23268 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23269 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23272 case $ac_abs_builddir in
23273 .
) ac_abs_srcdir
=$ac_srcdir;;
23276 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23277 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23278 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23281 case $ac_abs_builddir in
23282 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23284 case $ac_top_srcdir in
23285 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23286 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23287 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23292 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23293 echo "$as_me: executing $ac_dest commands" >&6;}
23297 ### Make the necessary directories, if they don't exist.
23298 for dir
in etc lisp
; do
23299 test -d ${dir} || mkdir
${dir}
23302 # Build src/Makefile from ${srcdir}/src/Makefile.c
23303 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23304 # This must be done after src/config.h is built, since we rely on that file.
23306 # Now get this: Some word that is part of the ${srcdir} directory name
23307 # or the ${configuration} value might, just might, happen to be an
23308 # identifier like `sun4' or `i386' or something, and be predefined by
23309 # the C preprocessor to some helpful value like 1, or maybe the empty
23310 # string. Needless to say consequent macro substitutions are less
23311 # than conducive to the makefile finding the correct directory.
23312 undefs
="`echo $top_srcdir $configuration $canonical |
23313 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23314 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23317 echo creating src
/epaths.h
23318 ${MAKE-make} epaths-force
23320 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23321 # `..' to `. .' unless invoked with -traditional
23323 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23324 CPPFLAGS
="$CPPFLAGS -traditional"
23327 echo creating lib-src
/Makefile
23329 rm -f junk.c junk1.c junk2.c
23330 sed -e '/start of cpp stuff/q' \
23331 < Makefile.c
> junk1.c
23332 sed -e '1,/start of cpp stuff/d'\
23333 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23334 < Makefile.c
> junk.c
23335 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23336 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23337 cat junk1.c junk2.c
> Makefile.new
23338 rm -f junk.c junk1.c junk2.c
23339 chmod 444 Makefile.new
23340 mv -f Makefile.new Makefile
23343 echo creating src
/Makefile
23345 rm -f junk.c junk1.c junk2.c
23346 sed -e '/start of cpp stuff/q' \
23347 < Makefile.c
> junk1.c
23348 sed -e '1,/start of cpp stuff/d'\
23349 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23350 < Makefile.c
> junk.c
23351 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23352 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23353 cat junk1.c junk2.c
> Makefile.new
23354 rm -f junk.c junk1.c junk2.c
23355 chmod 444 Makefile.new
23356 mv -f Makefile.new Makefile
23359 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23360 echo creating src
/.gdbinit
23361 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23364 # This is how we know whether to re-run configure in certain cases.
23365 touch src
/config.stamp
23372 cat >>$CONFIG_STATUS <<\_ACEOF
23374 { (exit 0); exit 0; }
23376 chmod +x
$CONFIG_STATUS
23377 ac_clean_files
=$ac_clean_files_save
23380 # configure is writing to config.log, and then calls config.status.
23381 # config.status does its own redirection, appending to config.log.
23382 # Unfortunately, on DOS this fails, as config.log is still kept open
23383 # by configure, so config.status won't be able to write to it; its
23384 # output is simply discarded. So we exec the FD to /dev/null,
23385 # effectively closing config.log, so it can be properly (re)opened and
23386 # appended to by config.status. When coming back to configure, we
23387 # need to make the FD available again.
23388 if test "$no_create" != yes; then
23390 ac_config_status_args
=
23391 test "$silent" = yes &&
23392 ac_config_status_args
="$ac_config_status_args --quiet"
23394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23397 # would make configure fail if this is the last instruction.
23398 $ac_cs_success ||
{ (exit 1); exit 1; }