2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath
='${locallisppath}:${lispdir}'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 i
[3456]86-*-freebsd*) machine
=intel386
;;
1727 if test -f /usr
/lib
/crti.o
; then
1729 cat >>confdefs.h
<<\_ACEOF
1735 case "${canonical}" in
1736 alpha
*-*-netbsd*) machine
=alpha
;;
1737 i
[3456]86-*-netbsd*) machine
=intel386
;;
1739 # This is somewhat bogus.
1740 machine
=hp9000s300
;;
1741 powerpc-apple-netbsd
*) machine
=macppc
;;
1742 mips-
*-netbsd*) machine
=pmax
;;
1743 mipsel-
*-netbsd*) machine
=pmax
;;
1744 mipseb-
*-netbsd*) machine
=pmax
;;
1745 ns32k-
*-netbsd*) machine
=ns32000
;;
1746 powerpc-
*-netbsd*) machine
=macppc
;;
1747 sparc
*-*-netbsd*) machine
=sparc
;;
1748 vax-
*-netbsd*) machine
=vax
;;
1749 arm-
*-netbsd*) machine
=arm
;;
1756 case "${canonical}" in
1757 alpha
*-*-openbsd*) machine
=alpha
;;
1758 i386-
*-openbsd*) machine
=intel386
;;
1759 m68k-
*-openbsd*) machine
=hp9000s300
;;
1760 mipsel-
*-openbsd*) machine
=pmax
;;
1761 ns32k-
*-openbsd*) machine
=ns32000
;;
1762 sparc-
*-openbsd*) machine
=sparc
;;
1763 vax-
*-openbsd*) machine
=vax
;;
1770 case "${canonical}" in
1771 i
[3456]86-*-lynxos*) machine
=intel386
;;
1772 powerpc-
*-lynxos*) machine
=powerpc
;;
1777 arm-acorn-riscix1.1
* )
1778 machine
=acorn opsys
=riscix1-1
1780 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1781 ## This name is riscix12 instead of riscix1.2
1782 ## to avoid a file name conflict on MSDOS.
1783 machine
=acorn opsys
=riscix12
1789 case "${canonical}" in
1790 i
[345]86-*-bsdi*) machine
=intel386
;;
1791 sparc-
*-bsdi*) machine
=sparc
;;
1792 powerpc-
*-bsdi*) machine
=macppc
;;
1794 case "${canonical}" in
1795 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1796 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1797 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1798 *-*-bsdi3* ) opsys
=bsdos3
;;
1799 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1804 ## Strictly speaking, we need the version of the alliant operating
1805 ## system to choose the right machine file, but currently the
1806 ## configuration name doesn't tell us enough to choose the right
1807 ## one; we need to give alliants their own operating system name to
1808 ## do this right. When someone cares, they can help us.
1810 machine
=alliant4 opsys
=bsd4-2
1813 machine
=alliant-2800 opsys
=bsd4-3
1816 ## Alpha (DEC) machines.
1818 machine
=alpha opsys
=osf1
1819 # This is needed to find X11R6.1 libraries for certain tests.
1820 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1821 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1823 # due to non-traditional preprocessing with the current compiler
1824 # defaults. OSF 4 can also have that compiler version, and there
1825 # seems always to have been a usable /usr/bin/cpp.
1826 NON_GNU_CPP
=/usr
/bin
/cpp
1827 case "${canonical}" in
1828 alpha
*-dec-osf[5-9]*)
1833 alpha
*-*-linux-gnu* )
1834 machine
=alpha opsys
=gnu-linux
1838 machine
=arm opsys
=gnu-linux
1843 machine
=altos opsys
=usg5-2
1848 machine
=amdahl opsys
=usg5-2-2
1851 ## Apollo, Domain/OS
1853 machine
=apollo opsys
=bsd4-3
1856 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 machine
=att3b opsys
=usg5-2-2
1861 ## AT&T 3b1 - The Mighty Unix PC!
1863 machine
=7300 opsys
=usg5-2-2
1868 machine
=ibmrs6000 opsys
=aix3-2
1873 machine
=dpx2 opsys
=usg5-3
1878 machine
=sps7 opsys
=usg5-2
1881 ## CCI 5/32, 6/32 -- see "Tahoe".
1884 ## I don't know what configuration name to use for this; config.sub
1885 ## doesn't seem to know anything about it. Hey, Celerity users, get
1886 ## in touch with us!
1887 celerity-celerity-bsd
* )
1888 machine
=celerity opsys
=bsd4-2
1892 ## What operating systems does this chip run that Emacs has been
1896 ## We'll use the catch-all code at the bottom to guess the
1897 ## operating system.
1901 mips-compaq-nonstopux
* )
1902 machine
=nonstopux opsys
=nonstopux
1906 *-convex-bsd* |
*-convex-convexos* )
1907 machine
=convex opsys
=bsd4-3
1908 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1909 NON_GNU_CPP
="cc -E -P"
1913 i
[3456]86-cubix-sysv* )
1914 machine
=intel386 opsys
=usg5-3
1918 cydra
*-cydrome-sysv* )
1919 machine
=cydra5 opsys
=usg5-3
1922 ## Data General AViiON Machines
1923 ## DG changed naming conventions with the release of 5.4.4.10, they
1924 ## dropped the initial 5.4 but left the intervening R. Because of the
1925 ## R this shouldn't conflict with older versions of the OS (which I
1926 ## think were named like dgux4.*). In addition, DG new AViiONs series
1927 ## uses either Motorola M88k or Intel Pentium CPUs.
1928 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1929 machine
=aviion opsys
=dgux4
1931 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1932 ## This name is dgux5-4-3 instead of dgux5-4r3
1933 ## to avoid a file name conflict on MSDOS.
1934 machine
=aviion opsys
=dgux5-4-3
1936 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1937 machine
=aviion opsys
=dgux5-4r2
1940 machine
=aviion opsys
=dgux
1943 ## Data General AViiON Intel (x86) Machines
1944 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1945 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1946 i
[345]86-dg-dguxR4* )
1947 machine
=aviion-intel opsys
=dgux4
1951 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1952 machine
=pmax opsys
=bsd4-2
1954 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1955 machine
=pmax opsys
=bsd4-3
1958 machine
=pmax opsys
=ultrix4-3
1961 machine
=pmax opsys
=osf1
1963 mips-dec-mach_bsd4.3
* )
1964 machine
=pmax opsys
=mach-bsd4-3
1967 ## Motorola Delta machines
1968 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1969 machine
=delta opsys
=usg5-3
1970 if test -z "`type gnucc | grep 'not found'`"
1972 if test -s /etc
/167config
1973 then CC
="gnucc -m68040"
1974 else CC
="gnucc -m68881"
1977 if test -z "`type gcc | grep 'not found'`"
1983 m88k-motorola-sysv4
* )
1984 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1985 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1986 # I hope there are not other 4.0 versions for this machine
1987 # which really need usg5-4 instead.
1988 machine
=delta88k opsys
=usg5-4-2
1990 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1991 machine
=delta88k opsys
=usg5-3
1996 machine
=dual opsys
=usg5-2
1998 m68
*-dual-uniplus* )
1999 machine
=dual opsys
=unipl5-2
2004 machine
=elxsi opsys
=usg5-2
2009 machine
=ns16000 opsys
=umax
2012 ## The GEC 63 - apparently, this port isn't really finished yet.
2013 # I'm sure we finished off the last of the machines, though. -- fx
2015 ## Gould Power Node and NP1
2017 machine
=gould opsys
=bsd4-2
2020 machine
=gould opsys
=bsd4-3
2023 machine
=gould-np1 opsys
=bsd4-3
2026 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2027 ## as far as Emacs is concerned).
2029 # Build needs to be different on 7.0 and later releases
2030 case "`uname -r`" in
2031 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2032 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2034 NON_GNU_CPP
="/lib/cpp"
2036 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 machine
=nh3000 opsys
=cxux
2040 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2041 powerpc-harris-powerunix
)
2042 machine
=nh6000 opsys
=powerunix
2043 NON_GNU_CPP
="cc -Xo -E -P"
2045 ## SR2001/SR2201 running HI-UX/MPP
2046 hppa1.1
-hitachi-hiuxmpp* )
2047 machine
=sr2k opsys
=hiuxmpp
2049 hppa1.1
-hitachi-hiuxwe2* )
2050 machine
=sr2k opsys
=hiuxwe2
2053 xps
*-honeywell-sysv* )
2054 machine
=xps100 opsys
=usg5-2
2057 ## HP 9000 series 200 or 300
2059 machine
=hp9000s300 opsys
=bsd4-3
2061 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 case "`uname -r`" in
2064 ## Someone's system reports A.B8.05 for this.
2065 ## I wonder what other possibilities there are.
2066 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2067 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2069 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2070 *) machine
=hp9000s300 opsys
=hpux
;;
2074 ## HP 9000 series 700 and 800, running HP/UX
2076 machine
=hp800 opsys
=hpux
2079 machine
=hp800 opsys
=hpux8
2081 hppa
*-hp-hpux9shr* )
2082 machine
=hp800 opsys
=hpux9shr
2085 machine
=hp800 opsys
=hpux9
2087 hppa
*-hp-hpux10.2
* )
2088 machine
=hp800 opsys
=hpux10-20
2091 machine
=hp800 opsys
=hpux10
2093 hppa
*-hp-hpux1[1-9]* )
2094 machine
=hp800 opsys
=hpux11
2097 hppa
*-*-linux-gnu* )
2098 machine
=hp800 opsys
=gnu-linux
2101 ## HP 9000 series 700 and 800, running HP/UX
2103 ## Cross-compilation? Nah!
2104 case "`uname -r`" in
2105 ## Someone's system reports A.B8.05 for this.
2106 ## I wonder what other possibilities there are.
2107 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2108 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2109 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2110 *) machine
=hp800 opsys
=hpux10
;;
2114 machine
=hp800 opsys
=nextstep
2119 machine
=orion opsys
=bsd4-2
2121 clipper-orion-bsd
* )
2122 machine
=orion105 opsys
=bsd4-2
2126 i
[3456]86-ibm-aix1.1
* )
2127 machine
=ibmps2-aix opsys
=usg5-2-2
2129 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2130 machine
=ibmps2-aix opsys
=usg5-3
2133 machine
=ibm370aix opsys
=usg5-3
2136 machine
=ibms390 opsys
=gnu-linux
2138 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2139 machine
=ibmrs6000 opsys
=aix3-1
2141 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2142 machine
=ibmrs6000 opsys
=aix3-2-5
2144 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2145 machine
=ibmrs6000 opsys
=aix4-1
2147 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2148 machine
=ibmrs6000 opsys
=aix4-2
2150 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2151 machine
=ibmrs6000 opsys
=aix4-2
2153 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2154 machine
=ibmrs6000 opsys
=aix4
2156 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2157 machine
=ibmrs6000 opsys
=aix4-1
2159 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2160 machine
=ibmrs6000 opsys
=aix3-2
2163 machine
=ibmrt opsys
=bsd4-3
2166 machine
=ibmrt opsys
=bsd4-2
2169 machine
=ibmrt opsys
=bsd4-3
2172 machine
=ibmrt opsys
=bsd4-2
2175 machine
=ibmrt opsys
=bsd4-3
2178 machine
=ibmrt opsys
=bsd4-3
2181 machine
=ibmrt-aix opsys
=usg5-2-2
2184 ## Integrated Solutions `Optimum V'
2186 machine
=isi-ov opsys
=bsd4-2
2189 machine
=isi-ov opsys
=bsd4-3
2192 ## Intel 386 machines where we do care about the manufacturer
2193 i
[3456]86-intsys-sysv* )
2194 machine
=is386 opsys
=usg5-2-2
2198 i
[3456]86-prime-sysv* )
2199 machine
=i386 opsys
=usg5-3
2202 ## Sequent Symmetry running Dynix
2203 i
[3456]86-sequent-bsd* )
2204 machine
=symmetry opsys
=bsd4-3
2207 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2208 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2209 machine
=sequent-ptx opsys
=ptx4
2210 NON_GNU_CPP
=/lib
/cpp
2213 ## Sequent Symmetry running DYNIX/ptx
2214 ## Use the old cpp rather than the newer ANSI one.
2215 i
[3456]86-sequent-ptx* )
2216 machine
=sequent-ptx opsys
=ptx
2217 NON_GNU_CPP
="/lib/cpp"
2220 ## ncr machine running svr4.3.
2221 i
[3456]86-ncr-sysv4.3
)
2222 machine
=ncr386 opsys
=usg5-4-3
2225 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2226 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2227 i
[3456]86-ncr-sysv* )
2228 machine
=ncr386 opsys
=usg5-4-2
2231 ## Intel Paragon OSF/1
2233 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2238 machine
=i860 opsys
=usg5-4
2239 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2240 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2243 ## Macintosh PowerPC
2244 powerpc
*-*-linux-gnu* )
2245 machine
=macppc opsys
=gnu-linux
2248 ## Masscomp machines
2249 m68
*-masscomp-rtu* )
2250 machine
=masscomp opsys
=rtu
2253 ## Megatest machines
2254 m68
*-megatest-bsd* )
2255 machine
=mega68 opsys
=bsd4-2
2258 ## Workstations sold by MIPS
2259 ## This is not necessarily all workstations using the MIPS processor -
2260 ## Irises are produced by SGI, and DECstations by DEC.
2262 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2263 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2264 ## it gives for choosing between the alternatives seems to be "Use
2265 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2266 ## the BSD world." I'll assume that these are instructions for
2267 ## handling two odd situations, and that every other situation
2268 ## should use mips.h and usg5-2-2, they being listed first.
2271 ## Fall through to the general code at the bottom to decide on the OS.
2273 mips-mips-riscos4
* )
2274 machine
=mips4 opsys
=bsd4-3
2275 NON_GNU_CC
="cc -systype bsd43"
2276 NON_GNU_CPP
="cc -systype bsd43 -E"
2278 mips-mips-riscos5
* )
2279 machine
=mips4 opsys
=riscos5
2280 NON_GNU_CC
="cc -systype bsd43"
2281 NON_GNU_CPP
="cc -systype bsd43 -E"
2284 machine
=mips opsys
=bsd4-3
2287 machine
=mips opsys
=usg5-2-2
2291 m68
*-next-* | m68k-
*-nextstep* )
2292 machine
=m68k opsys
=nextstep
2295 ## The complete machine from National Semiconductor
2297 machine
=ns32000 opsys
=usg5-2
2301 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2302 machine
=tower32 opsys
=usg5-2-2
2304 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2305 machine
=tower32v3 opsys
=usg5-3
2310 machine
=ews4800 opsys
=ux4800
2313 ## Nixdorf Targon 31
2314 m68
*-nixdorf-sysv* )
2315 machine
=targon31 opsys
=usg5-2-2
2320 machine
=nu opsys
=usg5-2
2325 machine
=plexus opsys
=usg5-2
2329 ## I don't really have any idea what sort of processor the Pyramid has,
2330 ## so I'm assuming it is its own architecture.
2331 pyramid-pyramid-bsd
* )
2332 machine
=pyramid opsys
=bsd4-2
2336 ns32k-sequent-bsd4.2
* )
2337 machine
=sequent opsys
=bsd4-2
2339 ns32k-sequent-bsd4.3
* )
2340 machine
=sequent opsys
=bsd4-3
2344 mips-siemens-sysv
* | mips-sni-sysv
*)
2345 machine
=mips-siemens opsys
=usg5-4
2346 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2347 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2350 ## Silicon Graphics machines
2351 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2353 machine
=irist opsys
=iris3-5
2355 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2356 machine
=irist opsys
=iris3-6
2360 machine
=iris4d opsys
=irix3-3
2363 machine
=iris4d opsys
=irix4-0
2366 machine
=iris4d opsys
=irix6-5
2367 # Without defining _LANGUAGE_C, things get masked out in the headers
2368 # so that, for instance, grepping for `free' in stdlib.h fails and
2369 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2370 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2371 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2374 machine
=iris4d opsys
=irix6-0
2375 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2376 # but presumably it does no harm.
2377 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2378 # -32 probably isn't necessary in later v.6s -- anyone know which?
2379 NON_GCC_TEST_OPTIONS
=-32
2381 mips-sgi-irix5.
[01]* )
2382 machine
=iris4d opsys
=irix5-0
2384 mips-sgi-irix5
* | mips-sgi-irix
* )
2385 machine
=iris4d opsys
=irix5-2
2390 machine
=news opsys
=bsd4-2
2393 machine
=news opsys
=bsd4-3
2395 m68
*-sony-newsos3* | m68
*-sony-news3*)
2396 machine
=news opsys
=bsd4-3
2398 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2399 machine
=news-risc opsys
=bsd4-3
2401 mips-sony-newsos6
* )
2402 machine
=news-r6 opsys
=newsos6
2405 machine
=news-risc opsys
=newsos5
2410 machine
=stride opsys
=usg5-2
2414 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2415 machine
=sparc opsys
=gnu-linux
2418 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2419 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2420 | rs6000-
*-solaris2*)
2421 case "${canonical}" in
2422 m68
*-sunos1* ) machine
=sun1
;;
2423 m68
*-sunos2* ) machine
=sun2
;;
2424 m68
* ) machine
=sun3
;;
2425 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2426 i
[3456]86-*-* ) machine
=intel386
;;
2427 powerpcle
* ) machine
=powerpcle
;;
2428 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2429 sparc
* ) machine
=sparc
;;
2432 case "${canonical}" in
2433 ## The Sun386 didn't get past 4.0.
2434 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2435 *-sunos4.0
* ) opsys
=sunos4-0
;;
2436 *-sunos4.1.
[3-9]*noshare
)
2437 ## This name is sunos413 instead of sunos4-1-3
2438 ## to avoid a file name conflict on MSDOS.
2440 NON_GNU_CPP
=/usr
/lib
/cpp
2441 NON_GCC_TEST_OPTIONS
=-Bstatic
2442 GCC_TEST_OPTIONS
=-static
2444 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2446 NON_GNU_CPP
=/usr
/lib
/cpp
2448 *-sunos4* |
*-sunos )
2450 NON_GCC_TEST_OPTIONS
=-Bstatic
2451 GCC_TEST_OPTIONS
=-static
2453 *-sunos5.3
* |
*-solaris2.3
* )
2455 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2457 *-sunos5.4
* |
*-solaris2.4
* )
2459 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2462 *-sunos5.5
* |
*-solaris2.5
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.6
* |
*-solaris2.6
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5* |
*-solaris* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2478 ## Watch out for a compiler that we know will not work.
2479 case "${canonical}" in
2480 *-solaris* |
*-sunos5* )
2481 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2482 ## /usr/ucb/cc doesn't work;
2483 ## we should find some other compiler that does work.
2491 machine
=sparc opsys
=nextstep
2495 m68
*-tadpole-sysv* )
2496 machine
=tad68k opsys
=usg5-3
2500 tahoe-tahoe-bsd4.2
* )
2501 machine
=tahoe opsys
=bsd4-2
2503 tahoe-tahoe-bsd4.3
* )
2504 machine
=tahoe opsys
=bsd4-3
2507 ## Tandem Integrity S2
2509 machine
=tandem-s2 opsys
=usg5-3
2513 m88k-tektronix-sysv3
* )
2514 machine
=tekxd88 opsys
=usg5-3
2517 ## Tektronix 16000 box (6130?)
2518 ns16k-tektronix-bsd
* )
2519 machine
=ns16000 opsys
=bsd4-2
2522 ## src/m/tek4300.h hints that this is a m68k machine.
2523 m68
*-tektronix-bsd* )
2524 machine
=tek4300 opsys
=bsd4-3
2528 ## We seem to have lost the machine-description file titan.h!
2530 machine
=titan opsys
=usg5-3
2533 ## Ustation E30 (SS5E)
2534 m68
*-unisys-uniplus* )
2535 machine
=ustation opsystem
=unipl5-2
2541 case "${canonical}" in
2542 *-bsd4.1
* ) opsys
=bsd4-1
;;
2543 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2544 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2545 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2546 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2547 *-vms* ) opsys
=vms
;;
2553 ns16k-whitechapel-
* )
2555 ## We don't know what sort of OS runs on these; we'll let the
2556 ## operating system guessing code below try.
2561 machine
=wicat opsys
=usg5-2
2566 machine
=ia64 opsys
=gnu-linux
2569 ## Intel 386 machines where we don't care about the manufacturer
2572 case "${canonical}" in
2573 *-cygwin ) opsys
=cygwin
;;
2574 *-darwin* ) opsys
=darwin
2575 CPP
="${CC-cc} -E -no-cpp-precomp"
2577 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2578 *-isc2.2
* ) opsys
=isc2-2
;;
2579 *-isc4.0
* ) opsys
=isc4-0
;;
2580 *-isc4.
* ) opsys
=isc4-1
2581 GCC_TEST_OPTIONS
=-posix
2582 NON_GCC_TEST_OPTIONS
=-Xp
2584 *-isc* ) opsys
=isc3-0
;;
2585 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2586 *-esix* ) opsys
=esix
;;
2587 *-xenix* ) opsys
=xenix
;;
2588 *-linux-gnu* ) opsys
=gnu-linux
;;
2589 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2590 *-sco3.2v5
* ) opsys
=sco5
2591 NON_GNU_CPP
=/lib
/cpp
2592 # Prevent -belf from being passed to $CPP.
2593 # /lib/cpp does not accept it.
2594 OVERRIDE_CPPFLAGS
=" "
2596 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2597 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2598 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-386bsd* ) opsys
=386bsd
;;
2600 *-nextstep* ) opsys
=nextstep
;;
2601 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2605 ## m68k Linux-based GNU system
2607 machine
=m68k opsys
=gnu-linux
2610 ## Mips Linux-based GNU system
2611 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2612 machine
=mips opsys
=gnu-linux
2616 sparc-fujitsu-sysv4
* )
2617 machine
=sparc opsys
=uxpds
2618 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2623 f301-fujitsu-uxpv4.1
)
2624 machine
=f301 opsys
=uxpv
2627 ## Darwin / Mac OS X
2628 powerpc-apple-darwin
* )
2629 machine
=powermac opsys
=darwin
2630 # Define CPP as follows to make autoconf work correctly.
2631 CPP
="${CC-cc} -E -no-cpp-precomp"
2632 # Use fink packages if available.
2633 if test -d /sw
/include
&& test -d /sw
/lib
; then
2634 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2635 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2636 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2640 ## AMD x86-64 Linux-based GNU system
2641 x86_64-
*-linux-gnu* )
2642 machine
=amdx86-64 opsys
=gnu-linux
2650 ### If the code above didn't choose an operating system, just choose
2651 ### an operating system based on the configuration name. You really
2652 ### only want to use this when you have no idea what the right
2653 ### operating system is; if you know what operating systems a machine
2654 ### runs, it's cleaner to make it explicit in the case statement
2656 if test x
"${opsys}" = x
; then
2657 case "${canonical}" in
2658 *-gnu* ) opsys
=gnu
;;
2659 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2660 *-bsd4.2
) opsys
=bsd4-2
;;
2661 *-bsd4.3
) opsys
=bsd4-3
;;
2662 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2663 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2664 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2665 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2666 *-sysv4.2uw
* ) opsys
=unixware
;;
2667 *-sysv5uw* ) opsys
=unixware
;;
2668 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2669 *-sysv4.1
* |
*-sysvr4.1
* )
2670 NON_GNU_CPP
=/usr
/lib
/cpp
2672 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2673 if [ x
$NON_GNU_CPP = x
]; then
2674 if [ -f /usr
/ccs
/lib
/cpp
]; then
2675 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2677 NON_GNU_CPP
=/lib
/cpp
2681 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2690 if test $unported = yes; then
2691 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2692 Check \`etc/MACHINES' for recognized configuration names." >&5
2693 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2694 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2695 { (exit 1); exit 1; }; }
2698 machfile
="m/${machine}.h"
2699 opsysfile
="s/${opsys}.h"
2702 #### Choose a compiler.
2703 test -n "$CC" && cc_specified
=yes
2705 # Save the value of CFLAGS that the user specified.
2706 SPECIFIED_CFLAGS
="$CFLAGS"
2709 "yes" ) CC
="gcc" GCC
=yes ;;
2710 "no" ) : ${CC=cc} ;;
2714 ac_cpp
='$CPP $CPPFLAGS'
2715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2721 echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC
="$CC" # Let the user override the test.
2729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir
=.
2734 for ac_exec_ext
in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 if test -n "$CC"; then
2747 echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2755 if test -z "$ac_cv_prog_CC"; then
2757 # Extract the first word of "gcc", so it can be a program name with args.
2758 set dummy gcc
; ac_word
=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$ac_ct_CC"; then
2765 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir
=.
2772 for ac_exec_ext
in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_ac_ct_CC
="gcc"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 echo "${ECHO_T}$ac_ct_CC" >&6
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2800 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC
="$CC" # Let the user override the test.
2809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir
=.
2814 for ac_exec_ext
in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test -n "$CC"; then
2827 echo "$as_me:$LINENO: result: $CC" >&5
2828 echo "${ECHO_T}$CC" >&6
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2835 if test -z "$ac_cv_prog_CC"; then
2837 # Extract the first word of "cc", so it can be a program name with args.
2838 set dummy cc
; ac_word
=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC
="cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc
; ac_word
=$2
2881 echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883 if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC
="$CC" # Let the user override the test.
2890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir
=.
2895 for ac_exec_ext
in '' $ac_executable_extensions; do
2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected
=yes
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy
$ac_cv_prog_CC
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2917 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2923 if test -n "$CC"; then
2924 echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC
="$CC" # Let the user override the test.
2946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir
=.
2951 for ac_exec_ext
in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$CC"; then
2964 echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2971 test -n "$CC" && break
2974 if test -z "$CC"; then
2978 # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy
$ac_prog; ac_word
=$2
2980 echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir
=.
2993 for ac_exec_ext
in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_ac_ct_CC
="$ac_prog"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3005 if test -n "$ac_ct_CC"; then
3006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3007 echo "${ECHO_T}$ac_ct_CC" >&6
3009 echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3013 test -n "$ac_ct_CC" && break
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO:" \
3030 "checking for C compiler version" >&5
3031 ac_compiler
=`set X $ac_compile; echo $2`
3032 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3033 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3038 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3043 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 ac_clean_files_save
=$ac_clean_files
3064 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3065 # Try to create an executable without -o first, disregard a.out.
3066 # It will help us diagnose broken compilers, and finding out an intuition
3068 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3070 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3072 (eval $ac_link_default) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 # Find the output, starting from the most likely. This scheme is
3077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3080 # Be careful to initialize this variable, since it used to be cached.
3081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3083 # b.out is created by i960 compilers.
3084 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3086 test -f "$ac_file" ||
continue
3088 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3091 # This is the source file.
3094 # We found the default executable, but exeext='' is most
3098 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 # FIXME: I believe we export ac_cv_exeext for Libtool,
3100 # but it would be cool to find out if it's true. Does anybody
3101 # maintain Libtool? --akim.
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.
$ac_ext >&5
3112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: C compiler cannot create executables
3115 See \`config.log' for more details." >&2;}
3116 { (exit 77); exit 77; }; }
3119 ac_exeext
=$ac_cv_exeext
3120 echo "$as_me:$LINENO: result: $ac_file" >&5
3121 echo "${ECHO_T}$ac_file" >&6
3123 # Check the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3128 # If not cross compiling, check that we can run a simple program.
3129 if test "$cross_compiling" != yes; then
3130 if { ac_try
='./$ac_file'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; }; then
3138 if test "$cross_compiling" = maybe
; then
3141 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot run C compiled programs.
3145 If you meant to cross compile, use \`--host'.
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3151 echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6
3154 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3155 ac_clean_files
=$ac_clean_files_save
3156 # Check the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3161 echo "${ECHO_T}$cross_compiling" >&6
3163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3166 (eval $ac_link) 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3172 # work properly (i.e., refer to `conftest.exe'), while it won't with
3174 for ac_file
in conftest.exe conftest conftest.
*; do
3175 test -f "$ac_file" ||
continue
3177 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3178 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3188 See \`config.log' for more details." >&2;}
3189 { (exit 1); exit 1; }; }
3192 rm -f conftest
$ac_cv_exeext
3193 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3194 echo "${ECHO_T}$ac_cv_exeext" >&6
3196 rm -f conftest.
$ac_ext
3197 EXEEXT
=$ac_cv_exeext
3199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3201 if test "${ac_cv_objext+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 cat >conftest.
$ac_ext <<_ACEOF
3207 cat confdefs.h
>>conftest.
$ac_ext
3208 cat >>conftest.
$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -f conftest.o conftest.obj
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; then
3225 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3227 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3228 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.
$ac_ext >&5
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3243 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3246 echo "${ECHO_T}$ac_cv_objext" >&6
3247 OBJEXT
=$ac_cv_objext
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.
$ac_ext <<_ACEOF
3257 cat confdefs.h
>>conftest.
$ac_ext
3258 cat >>conftest.
$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3272 rm -f conftest.
$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1
>conftest.err
3278 cat conftest.err
>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try
='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.
$ac_ext >&5
3300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3301 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3304 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3306 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3307 ac_test_CFLAGS
=${CFLAGS+set}
3308 ac_save_CFLAGS
=$CFLAGS
3310 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3312 if test "${ac_cv_prog_cc_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 cat >conftest.
$ac_ext <<_ACEOF
3318 cat confdefs.h
>>conftest.
$ac_ext
3319 cat >>conftest.
$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3330 rm -f conftest.
$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3334 grep -v '^ *+' conftest.er1
>conftest.err
3336 cat conftest.err
>&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try
='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.
$ac_ext >&5
3358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3360 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3362 if test "$ac_test_CFLAGS" = set; then
3363 CFLAGS
=$ac_save_CFLAGS
3364 elif test $ac_cv_prog_cc_g = yes; then
3365 if test "$GCC" = yes; then
3371 if test "$GCC" = yes; then
3377 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3378 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3379 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 ac_cv_prog_cc_stdc
=no
3384 cat >conftest.
$ac_ext <<_ACEOF
3387 cat confdefs.h
>>conftest.
$ac_ext
3388 cat >>conftest.
$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3392 #include <sys/types.h>
3393 #include <sys/stat.h>
3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395 struct buf { int x; };
3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397 static char *e (p, i)
3403 static char *f (char * (*g) (char **, int), char **p, ...)
3408 s = g (p, va_arg (v,int));
3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414 function prototypes and stuff, but not '\xHH' hex character constants.
3415 These don't provoke an error unfortunately, instead are silently treated
3416 as 'x'. The following induces an error, until -std1 is added to get
3417 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418 array size at least. It's necessary to write '\x00'==0 to get something
3419 that's true only with -std1. */
3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422 int test (int i, double x);
3423 struct s1 {int (*f) (int a);};
3424 struct s2 {int (*f) (double a);};
3425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3431 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3436 # Don't try gcc -ansi; that turns off useful extensions and
3437 # breaks some systems' header files.
3438 # AIX -qlanglvl=ansi
3439 # Ultrix and OSF/1 -std1
3440 # HP-UX 10.20 and later -Ae
3441 # HP-UX older versions -Aa -D_HPUX_SOURCE
3442 # SVR4 -Xc -D__EXTENSIONS__
3443 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 CC
="$ac_save_CC $ac_arg"
3446 rm -f conftest.
$ac_objext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>conftest.er1
3450 grep -v '^ *+' conftest.er1
>conftest.err
3452 cat conftest.err
>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try
='test -s conftest.$ac_objext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3467 ac_cv_prog_cc_stdc
=$ac_arg
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.
$ac_ext >&5
3474 rm -f conftest.err conftest.
$ac_objext
3476 rm -f conftest.
$ac_ext conftest.
$ac_objext
3481 case "x$ac_cv_prog_cc_stdc" in
3483 echo "$as_me:$LINENO: result: none needed" >&5
3484 echo "${ECHO_T}none needed" >&6 ;;
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3487 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3488 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3491 # Some people use a C++ compiler to compile C. Since we use `exit',
3492 # in C++ we need to declare it. In case someone uses the same compiler
3493 # for both compiling C and C++ we need to have the C++ compiler decide
3494 # the declaration of exit, since it's the most demanding environment.
3495 cat >conftest.
$ac_ext <<_ACEOF
3500 rm -f conftest.
$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>conftest.er1
3504 grep -v '^ *+' conftest.er1
>conftest.err
3506 cat conftest.err
>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try
='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3521 for ac_declaration
in \
3523 'extern "C" void std::exit (int) throw (); using std::exit;' \
3524 'extern "C" void std::exit (int); using std::exit;' \
3525 'extern "C" void exit (int) throw ();' \
3526 'extern "C" void exit (int);' \
3529 cat >conftest.
$ac_ext <<_ACEOF
3532 cat confdefs.h
>>conftest.
$ac_ext
3533 cat >>conftest.
$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3545 rm -f conftest.
$ac_objext
3546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>conftest.er1
3549 grep -v '^ *+' conftest.er1
>conftest.err
3551 cat conftest.err
>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } &&
3554 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try
='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.
$ac_ext >&5
3573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3574 cat >conftest.
$ac_ext <<_ACEOF
3577 cat confdefs.h
>>conftest.
$ac_ext
3578 cat >>conftest.
$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3589 rm -f conftest.
$ac_objext
3590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591 (eval $ac_compile) 2>conftest.er1
3593 grep -v '^ *+' conftest.er1
>conftest.err
3595 cat conftest.err
>&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try
='test -s conftest.$ac_objext'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; }; then
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.
$ac_ext >&5
3616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 if test -n "$ac_declaration"; then
3620 echo '#ifdef __cplusplus' >>confdefs.h
3621 echo $ac_declaration >>confdefs.h
3622 echo '#endif' >>confdefs.h
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.
$ac_ext >&5
3630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3632 ac_cpp
='$CPP $CPPFLAGS'
3633 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3643 #### Some systems specify a CPP to use unless we are using GCC.
3644 #### Now that we know whether we are using GCC, we can decide whether
3645 #### to use that one.
3646 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3651 #### Some systems specify a CC to use unless we are using GCC.
3652 #### Now that we know whether we are using GCC, we can decide whether
3653 #### to use that one.
3654 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3655 test x
$cc_specified != xyes
3660 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3662 CC
="$CC $GCC_TEST_OPTIONS"
3665 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3667 CC
="$CC $NON_GCC_TEST_OPTIONS"
3670 #### Some other nice autoconf tests.
3672 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3673 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3675 if test "$LN_S" = "ln -s"; then
3676 echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6
3679 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3680 echo "${ECHO_T}no, using $LN_S" >&6
3684 ac_cpp
='$CPP $CPPFLAGS'
3685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3690 # On Suns, sometimes $CPP names a directory.
3691 if test -n "$CPP" && test -d "$CPP"; then
3694 if test -z "$CPP"; then
3695 if test "${ac_cv_prog_CPP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 # Double quotes because CPP needs to be expanded
3699 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3702 for ac_c_preproc_warn_flag
in '' yes
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat >conftest.
$ac_ext <<_ACEOF
3713 cat confdefs.h
>>conftest.
$ac_ext
3714 cat >>conftest.
$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3717 # include <limits.h>
3719 # include <assert.h>
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1
>conftest.err
3728 cat conftest.err
>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev
/null
; then
3731 if test -s conftest.err
; then
3732 ac_cpp_err
=$ac_c_preproc_warn_flag
3733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3740 if test -z "$ac_cpp_err"; then
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.
$ac_ext >&5
3746 # Broken: fails on valid input.
3749 rm -f conftest.err conftest.
$ac_ext
3751 # OK, works on sane cases. Now check whether non-existent headers
3752 # can be detected and how.
3753 cat >conftest.
$ac_ext <<_ACEOF
3756 cat confdefs.h
>>conftest.
$ac_ext
3757 cat >>conftest.
$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <ac_nonexistent.h>
3761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3764 grep -v '^ *+' conftest.er1
>conftest.err
3766 cat conftest.err
>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev
/null
; then
3769 if test -s conftest.err
; then
3770 ac_cpp_err
=$ac_c_preproc_warn_flag
3771 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3778 if test -z "$ac_cpp_err"; then
3779 # Broken: success on invalid input.
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.
$ac_ext >&5
3785 # Passes both tests.
3789 rm -f conftest.err conftest.
$ac_ext
3792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793 rm -f conftest.err conftest.
$ac_ext
3794 if $ac_preproc_ok; then
3806 echo "$as_me:$LINENO: result: $CPP" >&5
3807 echo "${ECHO_T}$CPP" >&6
3809 for ac_c_preproc_warn_flag
in '' yes
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814 # <limits.h> exists even on freestanding compilers.
3815 # On the NeXT, cc -E runs the code through the compiler's parser,
3816 # not just through cpp. "Syntax error" is here to catch this case.
3817 cat >conftest.
$ac_ext <<_ACEOF
3820 cat confdefs.h
>>conftest.
$ac_ext
3821 cat >>conftest.
$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3824 # include <limits.h>
3826 # include <assert.h>
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1
>conftest.err
3835 cat conftest.err
>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev
/null
; then
3838 if test -s conftest.err
; then
3839 ac_cpp_err
=$ac_c_preproc_warn_flag
3840 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3847 if test -z "$ac_cpp_err"; then
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.
$ac_ext >&5
3853 # Broken: fails on valid input.
3856 rm -f conftest.err conftest.
$ac_ext
3858 # OK, works on sane cases. Now check whether non-existent headers
3859 # can be detected and how.
3860 cat >conftest.
$ac_ext <<_ACEOF
3863 cat confdefs.h
>>conftest.
$ac_ext
3864 cat >>conftest.
$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #include <ac_nonexistent.h>
3868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3871 grep -v '^ *+' conftest.er1
>conftest.err
3873 cat conftest.err
>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev
/null
; then
3876 if test -s conftest.err
; then
3877 ac_cpp_err
=$ac_c_preproc_warn_flag
3878 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3885 if test -z "$ac_cpp_err"; then
3886 # Broken: success on invalid input.
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.
$ac_ext >&5
3892 # Passes both tests.
3896 rm -f conftest.err conftest.
$ac_ext
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.
$ac_ext
3901 if $ac_preproc_ok; then
3904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details." >&5
3906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3907 See \`config.log' for more details." >&2;}
3908 { (exit 1); exit 1; }; }
3912 ac_cpp
='$CPP $CPPFLAGS'
3913 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3917 # Find a good install program. We prefer a C program (faster),
3918 # so one script is as good as another. But avoid the broken or
3919 # incompatible versions:
3920 # SysV /etc/install, /usr/sbin/install
3921 # SunOS /usr/etc/install
3922 # IRIX /sbin/install
3924 # AmigaOS /C/install, which installs bootblocks on floppy discs
3925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3928 # OS/2's system install, which has a completely different semantic
3929 # ./install, which can be erroneously created by make from ./install.sh.
3930 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3932 if test -z "$INSTALL"; then
3933 if test "${ac_cv_path_install+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir
=.
3941 # Account for people who put trailing slashes in PATH elements.
3943 .
/ | .
// |
/cC
/* | \
3944 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3945 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3948 # OSF1 and SCO ODT 3.0 have their own names for install.
3949 # Don't use installbsd from OSF since it installs stuff as root
3951 for ac_prog
in ginstall scoinst
install; do
3952 for ac_exec_ext
in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3954 if test $ac_prog = install &&
3955 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3956 # AIX install. It has an incompatible calling convention.
3958 elif test $ac_prog = install &&
3959 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3960 # program-specific install script used by HP pwplus--don't use.
3963 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3975 if test "${ac_cv_path_install+set}" = set; then
3976 INSTALL
=$ac_cv_path_install
3978 # As a last resort, use the slow shell script. We don't cache a
3979 # path for INSTALL within a source directory, because that will
3980 # break other packages using the cache if that directory is
3981 # removed, or if the path is relative.
3982 INSTALL
=$ac_install_sh
3985 echo "$as_me:$LINENO: result: $INSTALL" >&5
3986 echo "${ECHO_T}$INSTALL" >&6
3988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989 # It thinks the first close brace ends the variable substitution.
3990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3996 if test "x$RANLIB" = x
; then
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3999 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4000 echo "$as_me:$LINENO: checking for $ac_word" >&5
4001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002 if test "${ac_cv_prog_RANLIB+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 if test -n "$RANLIB"; then
4006 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir
=.
4013 for ac_exec_ext
in '' $ac_executable_extensions; do
4014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 RANLIB
=$ac_cv_prog_RANLIB
4025 if test -n "$RANLIB"; then
4026 echo "$as_me:$LINENO: result: $RANLIB" >&5
4027 echo "${ECHO_T}$RANLIB" >&6
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4034 if test -z "$ac_cv_prog_RANLIB"; then
4035 ac_ct_RANLIB
=$RANLIB
4036 # Extract the first word of "ranlib", so it can be a program name with args.
4037 set dummy ranlib
; ac_word
=$2
4038 echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if test -n "$ac_ct_RANLIB"; then
4044 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir
=.
4051 for ac_exec_ext
in '' $ac_executable_extensions; do
4052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4063 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4064 if test -n "$ac_ct_RANLIB"; then
4065 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4068 echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4072 RANLIB
=$ac_ct_RANLIB
4074 RANLIB
="$ac_cv_prog_RANLIB"
4078 # Extract the first word of "install-info", so it can be a program name with args.
4079 set dummy install-info
; ac_word
=$2
4080 echo "$as_me:$LINENO: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 case $INSTALL_INFO in
4087 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir
=.
4095 for ac_exec_ext
in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4109 if test -n "$INSTALL_INFO"; then
4110 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4111 echo "${ECHO_T}$INSTALL_INFO" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 # Extract the first word of "install-info", so it can be a program name with args.
4118 set dummy install-info
; ac_word
=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 case $INSTALL_INFO in
4126 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4130 for as_dir
in /usr
/sbin
4133 test -z "$as_dir" && as_dir
=.
4134 for ac_exec_ext
in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4148 if test -n "$INSTALL_INFO"; then
4149 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4150 echo "${ECHO_T}$INSTALL_INFO" >&6
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4156 # Extract the first word of "install-info", so it can be a program name with args.
4157 set dummy install-info
; ac_word
=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 case $INSTALL_INFO in
4165 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir
=.
4173 for ac_exec_ext
in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4186 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4188 if test -n "$INSTALL_INFO"; then
4189 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4190 echo "${ECHO_T}$INSTALL_INFO" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4196 # Extract the first word of "gzip", so it can be a program name with args.
4197 set dummy
gzip; ac_word
=$2
4198 echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4227 if test -n "$GZIP_PROG"; then
4228 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4229 echo "${ECHO_T}$GZIP_PROG" >&6
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4237 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4239 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4242 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4244 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4248 late_LDFLAGS
=$LDFLAGS
4249 if test "$GCC" = yes; then
4250 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4252 LDFLAGS
="$LDFLAGS -znocombreloc"
4255 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4256 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4258 cat >conftest.
$ac_ext <<_ACEOF
4261 rm -f conftest.
$ac_objext conftest
$ac_exeext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4263 (eval $ac_link) 2>conftest.er1
4265 grep -v '^ *+' conftest.er1
>conftest.err
4267 cat conftest.err
>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try
='test -s conftest$ac_exeext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.
$ac_ext >&5
4288 LDFLAGS
=$late_LDFLAGS
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4292 rm -f conftest.err conftest.
$ac_objext \
4293 conftest
$ac_exeext conftest.
$ac_ext
4296 echo "$as_me:$LINENO: checking for egrep" >&5
4297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4298 if test "${ac_cv_prog_egrep+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4302 then ac_cv_prog_egrep
='grep -E'
4303 else ac_cv_prog_egrep
='egrep'
4306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4308 EGREP
=$ac_cv_prog_egrep
4312 echo "$as_me:$LINENO: checking for AIX" >&5
4313 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4314 cat >conftest.
$ac_ext <<_ACEOF
4317 cat confdefs.h
>>conftest.
$ac_ext
4318 cat >>conftest.
$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "yes" >/dev
/null
2>&1; then
4327 echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6
4329 cat >>confdefs.h
<<\_ACEOF
4330 #define _ALL_SOURCE 1
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4342 #### Extract some information from the operating system and machine files.
4344 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4345 - which libraries the lib-src programs will want, and
4346 - whether the GNU malloc routines are usable..." >&5
4347 echo "$as_me: checking the machine- and system-dependent files to find out
4348 - which libraries the lib-src programs will want, and
4349 - whether the GNU malloc routines are usable..." >&6;}
4351 ### First figure out CFLAGS (which we use for running the compiler here)
4352 ### and REAL_CFLAGS (which we use for real compilation).
4353 ### The two are the same except on a few systems, where they are made
4354 ### different to work around various lossages. For example,
4355 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4356 ### as implying static linking.
4358 ### If the CFLAGS env var is specified, we use that value
4359 ### instead of the default.
4361 ### It's not important that this name contain the PID; you can't run
4362 ### two configures in the same directory and have anything work
4364 tempcname
="conftest.c"
4367 #include "'${srcdir}'/src/'${opsysfile}'"
4368 #include "'${srcdir}'/src/'${machfile}'"
4369 #ifndef LIBS_MACHINE
4370 #define LIBS_MACHINE
4375 #ifndef C_SWITCH_SYSTEM
4376 #define C_SWITCH_SYSTEM
4378 #ifndef C_SWITCH_MACHINE
4379 #define C_SWITCH_MACHINE
4381 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4382 configure___ c_switch_system=C_SWITCH_SYSTEM
4383 configure___ c_switch_machine=C_SWITCH_MACHINE
4386 #define LIB_X11_LIB -lX11
4389 #ifndef LIBX11_MACHINE
4390 #define LIBX11_MACHINE
4393 #ifndef LIBX11_SYSTEM
4394 #define LIBX11_SYSTEM
4396 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4399 configure___ unexec=UNEXEC
4401 configure___ unexec=unexec.o
4404 #ifdef SYSTEM_MALLOC
4405 configure___ system_malloc=yes
4407 configure___ system_malloc=no
4410 #ifdef USE_MMAP_FOR_BUFFERS
4411 configure___ use_mmap_for_buffers=yes
4413 configure___ use_mmap_for_buffers=no
4416 #ifndef C_DEBUG_SWITCH
4417 #define C_DEBUG_SWITCH -g
4420 #ifndef C_OPTIMIZE_SWITCH
4422 #define C_OPTIMIZE_SWITCH -O2
4424 #define C_OPTIMIZE_SWITCH -O
4428 #ifndef LD_SWITCH_MACHINE
4429 #define LD_SWITCH_MACHINE
4432 #ifndef LD_SWITCH_SYSTEM
4433 #define LD_SWITCH_SYSTEM
4436 #ifndef LD_SWITCH_X_SITE_AUX
4437 #define LD_SWITCH_X_SITE_AUX
4440 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4441 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4443 #ifdef THIS_IS_CONFIGURE
4445 /* Get the CFLAGS for tests in configure. */
4447 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4449 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4452 #else /* not THIS_IS_CONFIGURE */
4454 /* Get the CFLAGS for real compilation. */
4456 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4458 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4461 #endif /* not THIS_IS_CONFIGURE */
4464 # The value of CPP is a quoted variable reference, so we need to do this
4465 # to get its actual value...
4466 CPP
=`eval "echo $CPP"`
4467 eval `${CPP} -Isrc ${tempcname} \
4468 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4469 if test "x$SPECIFIED_CFLAGS" = x
; then
4470 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4471 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4473 REAL_CFLAGS
="$CFLAGS"
4477 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4479 ### Make sure subsequent tests use flags consistent with the build flags.
4481 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4482 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4484 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4490 cat >>confdefs.h
<<\_ACEOF
4491 #define _GNU_SOURCE 1
4496 # Check whether --enable-largefile or --disable-largefile was given.
4497 if test "${enable_largefile+set}" = set; then
4498 enableval
="$enable_largefile"
4501 if test "$enable_largefile" != no
; then
4503 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4504 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4505 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_cv_sys_largefile_CC
=no
4509 if test "$GCC" != yes; then
4512 # IRIX 6.2 and later do not support large files by default,
4513 # so use the C compiler's -n32 option if that helps.
4514 cat >conftest.
$ac_ext <<_ACEOF
4517 cat confdefs.h
>>conftest.
$ac_ext
4518 cat >>conftest.
$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4537 rm -f conftest.
$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try
='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.
$ac_ext >&5
4564 rm -f conftest.err conftest.
$ac_objext
4566 rm -f conftest.
$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568 (eval $ac_compile) 2>conftest.er1
4570 grep -v '^ *+' conftest.er1
>conftest.err
4572 cat conftest.err
>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try
='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_cv_sys_largefile_CC
=' -n32'; break
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.
$ac_ext >&5
4593 rm -f conftest.err conftest.
$ac_objext
4597 rm -f conftest.
$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4601 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4602 if test "$ac_cv_sys_largefile_CC" != no
; then
4603 CC
=$CC$ac_cv_sys_largefile_CC
4606 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4607 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4608 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_cv_sys_file_offset_bits
=no
4613 cat >conftest.
$ac_ext <<_ACEOF
4616 cat confdefs.h
>>conftest.
$ac_ext
4617 cat >>conftest.
$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 #include <sys/types.h>
4620 /* Check that off_t can represent 2**63 - 1 correctly.
4621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4622 since some C++ compilers masquerading as C compilers
4623 incorrectly reject 9223372036854775807. */
4624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4626 && LARGE_OFF_T % 2147483647 == 1)
4636 rm -f conftest.
$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1
>conftest.err
4642 cat conftest.err
>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try
='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 cat >conftest.
$ac_ext <<_ACEOF
4667 cat confdefs.h
>>conftest.
$ac_ext
4668 cat >>conftest.
$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #define _FILE_OFFSET_BITS 64
4671 #include <sys/types.h>
4672 /* Check that off_t can represent 2**63 - 1 correctly.
4673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4674 since some C++ compilers masquerading as C compilers
4675 incorrectly reject 9223372036854775807. */
4676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4678 && LARGE_OFF_T % 2147483647 == 1)
4688 rm -f conftest.
$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4692 grep -v '^ *+' conftest.er1
>conftest.err
4694 cat conftest.err
>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; } &&
4703 { ac_try
='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_cv_sys_file_offset_bits
=64; break
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.
$ac_ext >&5
4715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4719 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4720 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4721 if test "$ac_cv_sys_file_offset_bits" != no
; then
4723 cat >>confdefs.h
<<_ACEOF
4724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4729 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4730 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4731 if test "${ac_cv_sys_large_files+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 ac_cv_sys_large_files
=no
4736 cat >conftest.
$ac_ext <<_ACEOF
4739 cat confdefs.h
>>conftest.
$ac_ext
4740 cat >>conftest.
$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <sys/types.h>
4743 /* Check that off_t can represent 2**63 - 1 correctly.
4744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745 since some C++ compilers masquerading as C compilers
4746 incorrectly reject 9223372036854775807. */
4747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749 && LARGE_OFF_T % 2147483647 == 1)
4759 rm -f conftest.
$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761 (eval $ac_compile) 2>conftest.er1
4763 grep -v '^ *+' conftest.er1
>conftest.err
4765 cat conftest.err
>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try
='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4787 cat >conftest.
$ac_ext <<_ACEOF
4790 cat confdefs.h
>>conftest.
$ac_ext
4791 cat >>conftest.
$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #define _LARGE_FILES 1
4794 #include <sys/types.h>
4795 /* Check that off_t can represent 2**63 - 1 correctly.
4796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4797 since some C++ compilers masquerading as C compilers
4798 incorrectly reject 9223372036854775807. */
4799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4801 && LARGE_OFF_T % 2147483647 == 1)
4811 rm -f conftest.
$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4815 grep -v '^ *+' conftest.er1
>conftest.err
4817 cat conftest.err
>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try
='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_large_files
=1; break
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.
$ac_ext >&5
4838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4843 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4844 if test "$ac_cv_sys_large_files" != no
; then
4846 cat >>confdefs.h
<<_ACEOF
4847 #define _LARGE_FILES $ac_cv_sys_large_files
4855 if test "${with_sound}" != "no"; then
4856 # Sound support for GNU/Linux and the free BSDs.
4857 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4858 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4859 if test "${ac_cv_header_stdc+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 cat >conftest.
$ac_ext <<_ACEOF
4865 cat confdefs.h
>>conftest.
$ac_ext
4866 cat >>conftest.
$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4881 rm -f conftest.
$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4885 grep -v '^ *+' conftest.er1
>conftest.err
4887 cat conftest.err
>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try
='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_header_stdc
=yes
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.
$ac_ext >&5
4907 ac_cv_header_stdc
=no
4909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4911 if test $ac_cv_header_stdc = yes; then
4912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4913 cat >conftest.
$ac_ext <<_ACEOF
4916 cat confdefs.h
>>conftest.
$ac_ext
4917 cat >>conftest.
$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 $EGREP "memchr" >/dev
/null
2>&1; then
4926 ac_cv_header_stdc
=no
4932 if test $ac_cv_header_stdc = yes; then
4933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4934 cat >conftest.
$ac_ext <<_ACEOF
4937 cat confdefs.h
>>conftest.
$ac_ext
4938 cat >>conftest.
$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "free" >/dev
/null
2>&1; then
4947 ac_cv_header_stdc
=no
4953 if test $ac_cv_header_stdc = yes; then
4954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4955 if test "$cross_compiling" = yes; then
4958 cat >conftest.
$ac_ext <<_ACEOF
4961 cat confdefs.h
>>conftest.
$ac_ext
4962 cat >>conftest.
$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 #if ((' ' & 0x0FF) == 0x020)
4966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4969 # define ISLOWER(c) \
4970 (('a' <= (c) && (c) <= 'i') \
4971 || ('j' <= (c) && (c) <= 'r') \
4972 || ('s' <= (c) && (c) <= 'z'))
4973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4981 for (i = 0; i < 256; i++)
4982 if (XOR (islower (i), ISLOWER (i))
4983 || toupper (i) != TOUPPER (i))
4988 rm -f conftest
$ac_exeext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990 (eval $ac_link) 2>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
5001 echo "$as_me: program exited with status $ac_status" >&5
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.
$ac_ext >&5
5006 ac_cv_header_stdc
=no
5008 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5014 if test $ac_cv_header_stdc = yes; then
5016 cat >>confdefs.h
<<\_ACEOF
5017 #define STDC_HEADERS 1
5022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5032 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5033 inttypes.h stdint.h unistd.h
5035 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036 echo "$as_me:$LINENO: checking for $ac_header" >&5
5037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 cat >conftest.
$ac_ext <<_ACEOF
5044 cat confdefs.h
>>conftest.
$ac_ext
5045 cat >>conftest.
$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 $ac_includes_default
5049 #include <$ac_header>
5051 rm -f conftest.
$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1
>conftest.err
5057 cat conftest.err
>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try
='test -s conftest.$ac_objext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 eval "$as_ac_Header=yes"
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.
$ac_ext >&5
5077 eval "$as_ac_Header=no"
5079 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5084 cat >>confdefs.h
<<_ACEOF
5085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5096 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5098 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5100 echo "$as_me:$LINENO: checking for $ac_header" >&5
5101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5108 # Is the header compilable?
5109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5111 cat >conftest.
$ac_ext <<_ACEOF
5114 cat confdefs.h
>>conftest.
$ac_ext
5115 cat >>conftest.
$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118 #include <$ac_header>
5120 rm -f conftest.
$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 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); } &&
5129 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try
='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_header_compiler
=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.
$ac_ext >&5
5146 ac_header_compiler
=no
5148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150 echo "${ECHO_T}$ac_header_compiler" >&6
5152 # Is the header present?
5153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5155 cat >conftest.
$ac_ext <<_ACEOF
5158 cat confdefs.h
>>conftest.
$ac_ext
5159 cat >>conftest.
$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 #include <$ac_header>
5163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5166 grep -v '^ *+' conftest.er1
>conftest.err
5168 cat conftest.err
>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev
/null
; then
5171 if test -s conftest.err
; then
5172 ac_cpp_err
=$ac_c_preproc_warn_flag
5173 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5180 if test -z "$ac_cpp_err"; then
5181 ac_header_preproc
=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.
$ac_ext >&5
5186 ac_header_preproc
=no
5188 rm -f conftest.err conftest.
$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190 echo "${ECHO_T}$ac_header_preproc" >&6
5192 # So? What about this header?
5193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc
=yes
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5216 ## ------------------------------------------ ##
5217 ## Report this to the AC_PACKAGE_NAME lists. ##
5218 ## ------------------------------------------ ##
5221 sed "s/^/$as_me: WARNING: /" >&2
5224 echo "$as_me:$LINENO: checking for $ac_header" >&5
5225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 eval "$as_ac_Header=\$ac_header_preproc"
5231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5236 cat >>confdefs.h
<<_ACEOF
5237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244 # Emulation library used on NetBSD.
5245 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5246 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5247 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 ac_check_lib_save_LIBS
=$LIBS
5251 LIBS
="-lossaudio $LIBS"
5252 cat >conftest.
$ac_ext <<_ACEOF
5255 cat confdefs.h
>>conftest.
$ac_ext
5256 cat >>conftest.
$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5259 /* Override any gcc2 internal prototype to avoid an error. */
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5274 rm -f conftest.
$ac_objext conftest
$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276 (eval $ac_link) 2>conftest.er1
5278 grep -v '^ *+' conftest.er1
>conftest.err
5280 cat conftest.err
>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try
='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_lib_ossaudio__oss_ioctl
=yes
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.
$ac_ext >&5
5300 ac_cv_lib_ossaudio__oss_ioctl
=no
5302 rm -f conftest.err conftest.
$ac_objext \
5303 conftest
$ac_exeext conftest.
$ac_ext
5304 LIBS
=$ac_check_lib_save_LIBS
5306 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5307 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5308 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5342 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5343 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5344 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5345 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5348 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5350 echo "$as_me:$LINENO: checking for $ac_header" >&5
5351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5358 # Is the header compilable?
5359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5361 cat >conftest.
$ac_ext <<_ACEOF
5364 cat confdefs.h
>>conftest.
$ac_ext
5365 cat >>conftest.
$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 $ac_includes_default
5368 #include <$ac_header>
5370 rm -f conftest.
$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1
>conftest.err
5376 cat conftest.err
>&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try
='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 ac_header_compiler
=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 ac_header_compiler
=no
5398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5400 echo "${ECHO_T}$ac_header_compiler" >&6
5402 # Is the header present?
5403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5405 cat >conftest.
$ac_ext <<_ACEOF
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1
>conftest.err
5418 cat conftest.err
>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev
/null
; then
5421 if test -s conftest.err
; then
5422 ac_cpp_err
=$ac_c_preproc_warn_flag
5423 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5430 if test -z "$ac_cpp_err"; then
5431 ac_header_preproc
=yes
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5436 ac_header_preproc
=no
5438 rm -f conftest.err conftest.
$ac_ext
5439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5440 echo "${ECHO_T}$ac_header_preproc" >&6
5442 # So? What about this header?
5443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5449 ac_header_preproc
=yes
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5466 ## ------------------------------------------ ##
5467 ## Report this to the AC_PACKAGE_NAME lists. ##
5468 ## ------------------------------------------ ##
5471 sed "s/^/$as_me: WARNING: /" >&2
5474 echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 eval "$as_ac_Header=\$ac_header_preproc"
5481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5486 cat >>confdefs.h
<<_ACEOF
5487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5495 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5496 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5497 cat >conftest.
$ac_ext <<_ACEOF
5500 cat confdefs.h
>>conftest.
$ac_ext
5501 cat >>conftest.
$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <sys/personality.h>
5507 personality (PER_LINUX32)
5512 rm -f conftest.
$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1
>conftest.err
5518 cat conftest.err
>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; } &&
5527 { ac_try
='test -s conftest.$ac_objext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 emacs_cv_personality_linux32
=yes
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.
$ac_ext >&5
5538 emacs_cv_personality_linux32
=no
5540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5541 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5542 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5544 if test $emacs_cv_personality_linux32 = yes; then
5546 cat >>confdefs.h
<<\_ACEOF
5547 #define HAVE_PERSONALITY_LINUX32 1
5553 for ac_header
in term.h
5555 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 cat >conftest.
$ac_ext <<_ACEOF
5564 cat confdefs.h
>>conftest.
$ac_ext
5565 cat >>conftest.
$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <$ac_header>
5569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5570 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5572 grep -v '^ *+' conftest.er1
>conftest.err
5574 cat conftest.err
>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } >/dev
/null
; then
5577 if test -s conftest.err
; then
5578 ac_cpp_err
=$ac_c_preproc_warn_flag
5579 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5586 if test -z "$ac_cpp_err"; then
5587 eval "$as_ac_Header=yes"
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.
$ac_ext >&5
5592 eval "$as_ac_Header=no"
5594 rm -f conftest.err conftest.
$ac_ext
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5599 cat >>confdefs.h
<<_ACEOF
5600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5609 if test "${ac_cv_header_stdc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 cat >conftest.
$ac_ext <<_ACEOF
5615 cat confdefs.h
>>conftest.
$ac_ext
5616 cat >>conftest.
$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5631 rm -f conftest.
$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5635 grep -v '^ *+' conftest.er1
>conftest.err
5637 cat conftest.err
>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try
='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_header_stdc
=yes
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.
$ac_ext >&5
5657 ac_cv_header_stdc
=no
5659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5661 if test $ac_cv_header_stdc = yes; then
5662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5663 cat >conftest.
$ac_ext <<_ACEOF
5666 cat confdefs.h
>>conftest.
$ac_ext
5667 cat >>conftest.
$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "memchr" >/dev
/null
2>&1; then
5676 ac_cv_header_stdc
=no
5682 if test $ac_cv_header_stdc = yes; then
5683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5684 cat >conftest.
$ac_ext <<_ACEOF
5687 cat confdefs.h
>>conftest.
$ac_ext
5688 cat >>conftest.
$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "free" >/dev
/null
2>&1; then
5697 ac_cv_header_stdc
=no
5703 if test $ac_cv_header_stdc = yes; then
5704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5705 if test "$cross_compiling" = yes; then
5708 cat >conftest.
$ac_ext <<_ACEOF
5711 cat confdefs.h
>>conftest.
$ac_ext
5712 cat >>conftest.
$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5715 #if ((' ' & 0x0FF) == 0x020)
5716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5719 # define ISLOWER(c) \
5720 (('a' <= (c) && (c) <= 'i') \
5721 || ('j' <= (c) && (c) <= 'r') \
5722 || ('s' <= (c) && (c) <= 'z'))
5723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5731 for (i = 0; i < 256; i++)
5732 if (XOR (islower (i), ISLOWER (i))
5733 || toupper (i) != TOUPPER (i))
5738 rm -f conftest
$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5751 echo "$as_me: program exited with status $ac_status" >&5
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.
$ac_ext >&5
5756 ac_cv_header_stdc
=no
5758 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5762 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5763 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5764 if test $ac_cv_header_stdc = yes; then
5766 cat >>confdefs.h
<<\_ACEOF
5767 #define STDC_HEADERS 1
5772 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5773 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5774 if test "${ac_cv_header_time+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 cat >conftest.
$ac_ext <<_ACEOF
5780 cat confdefs.h
>>conftest.
$ac_ext
5781 cat >>conftest.
$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 #include <sys/time.h>
5790 if ((struct tm *) 0)
5796 rm -f conftest.
$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>conftest.er1
5800 grep -v '^ *+' conftest.er1
>conftest.err
5802 cat conftest.err
>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } &&
5805 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try
='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_header_time
=yes
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.
$ac_ext >&5
5822 ac_cv_header_time
=no
5824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5827 echo "${ECHO_T}$ac_cv_header_time" >&6
5828 if test $ac_cv_header_time = yes; then
5830 cat >>confdefs.h
<<\_ACEOF
5831 #define TIME_WITH_SYS_TIME 1
5836 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5837 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5838 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5852 char *p = (char *) sys_siglist;
5859 rm -f conftest.
$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1
>conftest.err
5865 cat conftest.err
>&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try
='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_have_decl_sys_siglist
=yes
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.
$ac_ext >&5
5885 ac_cv_have_decl_sys_siglist
=no
5887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5890 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5891 if test $ac_cv_have_decl_sys_siglist = yes; then
5893 cat >>confdefs.h
<<_ACEOF
5894 #define HAVE_DECL_SYS_SIGLIST 1
5899 cat >>confdefs.h
<<_ACEOF
5900 #define HAVE_DECL_SYS_SIGLIST 0
5907 if test $ac_cv_have_decl_sys_siglist != yes; then
5908 # For Tru64, at least:
5909 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5910 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5911 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 cat >conftest.
$ac_ext <<_ACEOF
5917 cat confdefs.h
>>conftest.
$ac_ext
5918 cat >>conftest.
$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5924 #ifndef __sys_siglist
5925 char *p = (char *) __sys_siglist;
5932 rm -f conftest.
$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5936 grep -v '^ *+' conftest.er1
>conftest.err
5938 cat conftest.err
>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try
='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_cv_have_decl___sys_siglist
=yes
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5958 ac_cv_have_decl___sys_siglist
=no
5960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5962 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5963 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5964 if test $ac_cv_have_decl___sys_siglist = yes; then
5966 cat >>confdefs.h
<<_ACEOF
5967 #define HAVE_DECL___SYS_SIGLIST 1
5972 cat >>confdefs.h
<<_ACEOF
5973 #define HAVE_DECL___SYS_SIGLIST 0
5980 if test $ac_cv_have_decl___sys_siglist = yes; then
5982 cat >>confdefs.h
<<\_ACEOF
5983 #define sys_siglist __sys_siglist
5988 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5989 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5990 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.
$ac_ext <<_ACEOF
5996 cat confdefs.h
>>conftest.
$ac_ext
5997 cat >>conftest.
$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 #include <sys/wait.h>
6002 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6005 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6013 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6018 rm -f conftest.
$ac_objext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>conftest.er1
6022 grep -v '^ *+' conftest.er1
>conftest.err
6024 cat conftest.err
>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } &&
6027 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try
='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_header_sys_wait_h
=yes
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 ac_cv_header_sys_wait_h
=no
6046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6050 if test $ac_cv_header_sys_wait_h = yes; then
6052 cat >>confdefs.h
<<\_ACEOF
6053 #define HAVE_SYS_WAIT_H 1
6059 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6060 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6061 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #ifdef TIME_WITH_SYS_TIME
6071 #include <sys/time.h>
6074 #ifdef HAVE_SYS_TIME_H
6075 #include <sys/time.h>
6086 static struct utimbuf x; x.actime = x.modtime;
6091 rm -f conftest.
$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6095 grep -v '^ *+' conftest.er1
>conftest.err
6097 cat conftest.err
>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try
='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 emacs_cv_struct_utimbuf
=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.
$ac_ext >&5
6117 emacs_cv_struct_utimbuf
=no
6119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6122 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6123 if test $emacs_cv_struct_utimbuf = yes; then
6125 cat >>confdefs.h
<<\_ACEOF
6126 #define HAVE_STRUCT_UTIMBUF 1
6131 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6132 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6133 if test "${ac_cv_type_signal+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 cat >conftest.
$ac_ext <<_ACEOF
6139 cat confdefs.h
>>conftest.
$ac_ext
6140 cat >>conftest.
$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <sys/types.h>
6148 extern "C" void (*signal (int, void (*)(int)))(int);
6150 void (*signal ()) ();
6161 rm -f conftest.
$ac_objext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6163 (eval $ac_compile) 2>conftest.er1
6165 grep -v '^ *+' conftest.er1
>conftest.err
6167 cat conftest.err
>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try
='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_type_signal
=void
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.
$ac_ext >&5
6187 ac_cv_type_signal
=int
6189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6192 echo "${ECHO_T}$ac_cv_type_signal" >&6
6194 cat >>confdefs.h
<<_ACEOF
6195 #define RETSIGTYPE $ac_cv_type_signal
6200 echo "$as_me:$LINENO: checking for speed_t" >&5
6201 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6202 if test "${emacs_cv_speed_t+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 cat >conftest.
$ac_ext <<_ACEOF
6208 cat confdefs.h
>>conftest.
$ac_ext
6209 cat >>conftest.
$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <termios.h>
6220 rm -f conftest.
$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>conftest.er1
6224 grep -v '^ *+' conftest.er1
>conftest.err
6226 cat conftest.err
>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; } &&
6235 { ac_try
='test -s conftest.$ac_objext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 emacs_cv_speed_t
=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.
$ac_ext >&5
6248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6250 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6251 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6252 if test $emacs_cv_speed_t = yes; then
6254 cat >>confdefs.h
<<\_ACEOF
6255 #define HAVE_SPEED_T 1
6260 echo "$as_me:$LINENO: checking for struct timeval" >&5
6261 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6262 if test "${emacs_cv_struct_timeval+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 cat >conftest.
$ac_ext <<_ACEOF
6268 cat confdefs.h
>>conftest.
$ac_ext
6269 cat >>conftest.
$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 #ifdef TIME_WITH_SYS_TIME
6272 #include <sys/time.h>
6275 #ifdef HAVE_SYS_TIME_H
6276 #include <sys/time.h>
6284 static struct timeval x; x.tv_sec = x.tv_usec;
6289 rm -f conftest.
$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6293 grep -v '^ *+' conftest.er1
>conftest.err
6295 cat conftest.err
>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; } &&
6304 { ac_try
='test -s conftest.$ac_objext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 emacs_cv_struct_timeval
=yes
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.
$ac_ext >&5
6315 emacs_cv_struct_timeval
=no
6317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6319 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6320 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6321 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6322 if test $emacs_cv_struct_timeval = yes; then
6324 cat >>confdefs.h
<<\_ACEOF
6325 #define HAVE_TIMEVAL 1
6330 echo "$as_me:$LINENO: checking for struct exception" >&5
6331 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6332 if test "${emacs_cv_struct_exception+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 cat >conftest.
$ac_ext <<_ACEOF
6338 cat confdefs.h
>>conftest.
$ac_ext
6339 cat >>conftest.
$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6345 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6350 rm -f conftest.
$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>conftest.er1
6354 grep -v '^ *+' conftest.er1
>conftest.err
6356 cat conftest.err
>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } &&
6359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try
='test -s conftest.$ac_objext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6371 emacs_cv_struct_exception
=yes
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.
$ac_ext >&5
6376 emacs_cv_struct_exception
=no
6378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6381 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6382 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6383 if test $emacs_cv_struct_exception != yes; then
6385 cat >>confdefs.h
<<\_ACEOF
6386 #define NO_MATHERR 1
6392 for ac_header
in sys
/socket.h
6394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6404 # Is the header compilable?
6405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6407 cat >conftest.
$ac_ext <<_ACEOF
6410 cat confdefs.h
>>conftest.
$ac_ext
6411 cat >>conftest.
$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6414 #include <$ac_header>
6416 rm -f conftest.
$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6420 grep -v '^ *+' conftest.er1
>conftest.err
6422 cat conftest.err
>&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try
='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler
=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6442 ac_header_compiler
=no
6444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.
$ac_ext <<_ACEOF
6454 cat confdefs.h
>>conftest.
$ac_ext
6455 cat >>conftest.
$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <$ac_header>
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1
>conftest.err
6464 cat conftest.err
>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev
/null
; then
6467 if test -s conftest.err
; then
6468 ac_cpp_err
=$ac_c_preproc_warn_flag
6469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc
=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6482 ac_header_preproc
=no
6484 rm -f conftest.err conftest.
$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6495 ac_header_preproc
=yes
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6512 ## ------------------------------------------ ##
6513 ## Report this to the AC_PACKAGE_NAME lists. ##
6514 ## ------------------------------------------ ##
6517 sed "s/^/$as_me: WARNING: /" >&2
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 eval "$as_ac_Header=\$ac_header_preproc"
6527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6532 cat >>confdefs.h
<<_ACEOF
6533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 for ac_header
in net
/if.h
6543 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 echo "$as_me:$LINENO: checking for $ac_header" >&5
6545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 cat >conftest.
$ac_ext <<_ACEOF
6552 cat confdefs.h
>>conftest.
$ac_ext
6553 cat >>conftest.
$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 $ac_includes_default
6556 #if HAVE_SYS_SOCKET_H
6557 #include <sys/socket.h>
6560 #include <$ac_header>
6562 rm -f conftest.
$ac_objext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564 (eval $ac_compile) 2>conftest.er1
6566 grep -v '^ *+' conftest.er1
>conftest.err
6568 cat conftest.err
>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try
='test -s conftest.$ac_objext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 eval "$as_ac_Header=yes"
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.
$ac_ext >&5
6588 eval "$as_ac_Header=no"
6590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h
<<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6604 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6605 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6606 if test "${ac_cv_struct_tm+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 cat >conftest.
$ac_ext <<_ACEOF
6612 cat confdefs.h
>>conftest.
$ac_ext
6613 cat >>conftest.
$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 #include <sys/types.h>
6621 struct tm *tp; tp->tm_sec;
6626 rm -f conftest.
$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1
>conftest.err
6632 cat conftest.err
>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try
='test -s conftest.$ac_objext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_struct_tm
=time.h
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.
$ac_ext >&5
6652 ac_cv_struct_tm
=sys
/time.h
6654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6657 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6658 if test $ac_cv_struct_tm = sys
/time.h
; then
6660 cat >>confdefs.h
<<\_ACEOF
6661 #define TM_IN_SYS_TIME 1
6666 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6667 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6668 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 cat >conftest.
$ac_ext <<_ACEOF
6674 cat confdefs.h
>>conftest.
$ac_ext
6675 cat >>conftest.
$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <sys/types.h>
6678 #include <$ac_cv_struct_tm>
6684 static struct tm ac_aggr;
6685 if (ac_aggr.tm_zone)
6691 rm -f conftest.
$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6695 grep -v '^ *+' conftest.er1
>conftest.err
6697 cat conftest.err
>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; } &&
6706 { ac_try
='test -s conftest.$ac_objext'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 ac_cv_member_struct_tm_tm_zone
=yes
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.
$ac_ext >&5
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <sys/types.h>
6724 #include <$ac_cv_struct_tm>
6730 static struct tm ac_aggr;
6731 if (sizeof ac_aggr.tm_zone)
6737 rm -f conftest.
$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>conftest.er1
6741 grep -v '^ *+' conftest.er1
>conftest.err
6743 cat conftest.err
>&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try
='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_cv_member_struct_tm_tm_zone
=yes
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.
$ac_ext >&5
6763 ac_cv_member_struct_tm_tm_zone
=no
6765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6769 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6770 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6771 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6773 cat >>confdefs.h
<<_ACEOF
6774 #define HAVE_STRUCT_TM_TM_ZONE 1
6780 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6782 cat >>confdefs.h
<<\_ACEOF
6783 #define HAVE_TM_ZONE 1
6787 echo "$as_me:$LINENO: checking for tzname" >&5
6788 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6789 if test "${ac_cv_var_tzname+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.
$ac_ext <<_ACEOF
6795 cat confdefs.h
>>conftest.
$ac_ext
6796 cat >>conftest.
$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6799 #ifndef tzname /* For SGI. */
6800 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6811 rm -f conftest.
$ac_objext conftest
$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6815 grep -v '^ *+' conftest.er1
>conftest.err
6817 cat conftest.err
>&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try
='test -s conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_var_tzname
=yes
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.
$ac_ext >&5
6839 rm -f conftest.err conftest.
$ac_objext \
6840 conftest
$ac_exeext conftest.
$ac_ext
6842 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6843 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6844 if test $ac_cv_var_tzname = yes; then
6846 cat >>confdefs.h
<<\_ACEOF
6847 #define HAVE_TZNAME 1
6853 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6854 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6855 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 cat >conftest.
$ac_ext <<_ACEOF
6861 cat confdefs.h
>>conftest.
$ac_ext
6862 cat >>conftest.
$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6869 static struct tm ac_aggr;
6870 if (ac_aggr.tm_gmtoff)
6876 rm -f conftest.
$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>conftest.er1
6880 grep -v '^ *+' conftest.er1
>conftest.err
6882 cat conftest.err
>&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
6885 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try
='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_member_struct_tm_tm_gmtoff
=yes
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.
$ac_ext >&5
6902 cat >conftest.
$ac_ext <<_ACEOF
6905 cat confdefs.h
>>conftest.
$ac_ext
6906 cat >>conftest.
$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6913 static struct tm ac_aggr;
6914 if (sizeof ac_aggr.tm_gmtoff)
6920 rm -f conftest.
$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922 (eval $ac_compile) 2>conftest.er1
6924 grep -v '^ *+' conftest.er1
>conftest.err
6926 cat conftest.err
>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
6935 { ac_try
='test -s conftest.$ac_objext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_member_struct_tm_tm_gmtoff
=yes
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.
$ac_ext >&5
6946 ac_cv_member_struct_tm_tm_gmtoff
=no
6948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6953 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6954 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6956 cat >>confdefs.h
<<\_ACEOF
6957 #define HAVE_TM_GMTOFF 1
6962 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6963 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6964 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.
$ac_ext <<_ACEOF
6970 cat confdefs.h
>>conftest.
$ac_ext
6971 cat >>conftest.
$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6974 #if HAVE_SYS_SOCKET_H
6975 #include <sys/socket.h>
6984 static struct ifreq ac_aggr;
6985 if (ac_aggr.ifr_flags)
6991 rm -f conftest.
$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6995 grep -v '^ *+' conftest.er1
>conftest.err
6997 cat conftest.err
>&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try
='test -s conftest.$ac_objext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_member_struct_ifreq_ifr_flags
=yes
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.
$ac_ext >&5
7017 cat >conftest.
$ac_ext <<_ACEOF
7020 cat confdefs.h
>>conftest.
$ac_ext
7021 cat >>conftest.
$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 #if HAVE_SYS_SOCKET_H
7025 #include <sys/socket.h>
7034 static struct ifreq ac_aggr;
7035 if (sizeof ac_aggr.ifr_flags)
7041 rm -f conftest.
$ac_objext
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>conftest.er1
7045 grep -v '^ *+' conftest.er1
>conftest.err
7047 cat conftest.err
>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try
='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_member_struct_ifreq_ifr_flags
=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.
$ac_ext >&5
7067 ac_cv_member_struct_ifreq_ifr_flags
=no
7069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7074 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7075 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7077 cat >>confdefs.h
<<_ACEOF
7078 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7083 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7084 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7085 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.
$ac_ext <<_ACEOF
7091 cat confdefs.h
>>conftest.
$ac_ext
7092 cat >>conftest.
$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #if HAVE_SYS_SOCKET_H
7096 #include <sys/socket.h>
7105 static struct ifreq ac_aggr;
7106 if (ac_aggr.ifr_hwaddr)
7112 rm -f conftest.
$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7116 grep -v '^ *+' conftest.er1
>conftest.err
7118 cat conftest.err
>&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try
='test -s conftest.$ac_objext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.
$ac_ext >&5
7138 cat >conftest.
$ac_ext <<_ACEOF
7141 cat confdefs.h
>>conftest.
$ac_ext
7142 cat >>conftest.
$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7145 #if HAVE_SYS_SOCKET_H
7146 #include <sys/socket.h>
7155 static struct ifreq ac_aggr;
7156 if (sizeof ac_aggr.ifr_hwaddr)
7162 rm -f conftest.
$ac_objext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164 (eval $ac_compile) 2>conftest.er1
7166 grep -v '^ *+' conftest.er1
>conftest.err
7168 cat conftest.err
>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try
='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.
$ac_ext >&5
7188 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7195 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7196 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7198 cat >>confdefs.h
<<_ACEOF
7199 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7204 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7205 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7206 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 cat >conftest.
$ac_ext <<_ACEOF
7212 cat confdefs.h
>>conftest.
$ac_ext
7213 cat >>conftest.
$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 #if HAVE_SYS_SOCKET_H
7217 #include <sys/socket.h>
7226 static struct ifreq ac_aggr;
7227 if (ac_aggr.ifr_netmask)
7233 rm -f conftest.
$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235 (eval $ac_compile) 2>conftest.er1
7237 grep -v '^ *+' conftest.er1
>conftest.err
7239 cat conftest.err
>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; } &&
7248 { ac_try
='test -s conftest.$ac_objext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.
$ac_ext >&5
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 $ac_includes_default
7266 #if HAVE_SYS_SOCKET_H
7267 #include <sys/socket.h>
7276 static struct ifreq ac_aggr;
7277 if (sizeof ac_aggr.ifr_netmask)
7283 rm -f conftest.
$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1
>conftest.err
7289 cat conftest.err
>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; } &&
7298 { ac_try
='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.
$ac_ext >&5
7309 ac_cv_member_struct_ifreq_ifr_netmask
=no
7311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7316 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7317 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7319 cat >>confdefs.h
<<_ACEOF
7320 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7325 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7326 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7327 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 cat >conftest.
$ac_ext <<_ACEOF
7333 cat confdefs.h
>>conftest.
$ac_ext
7334 cat >>conftest.
$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 #if HAVE_SYS_SOCKET_H
7338 #include <sys/socket.h>
7347 static struct ifreq ac_aggr;
7348 if (ac_aggr.ifr_broadaddr)
7354 rm -f conftest.
$ac_objext
7355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>conftest.er1
7358 grep -v '^ *+' conftest.er1
>conftest.err
7360 cat conftest.err
>&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } &&
7363 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try
='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.
$ac_ext >&5
7380 cat >conftest.
$ac_ext <<_ACEOF
7383 cat confdefs.h
>>conftest.
$ac_ext
7384 cat >>conftest.
$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 $ac_includes_default
7387 #if HAVE_SYS_SOCKET_H
7388 #include <sys/socket.h>
7397 static struct ifreq ac_aggr;
7398 if (sizeof ac_aggr.ifr_broadaddr)
7404 rm -f conftest.
$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>conftest.er1
7408 grep -v '^ *+' conftest.er1
>conftest.err
7410 cat conftest.err
>&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; } &&
7419 { ac_try
='test -s conftest.$ac_objext'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.
$ac_ext >&5
7430 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7437 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7438 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7440 cat >>confdefs.h
<<_ACEOF
7441 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7446 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7447 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7448 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 cat >conftest.
$ac_ext <<_ACEOF
7454 cat confdefs.h
>>conftest.
$ac_ext
7455 cat >>conftest.
$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 #if HAVE_SYS_SOCKET_H
7459 #include <sys/socket.h>
7468 static struct ifreq ac_aggr;
7469 if (ac_aggr.ifr_addr)
7475 rm -f conftest.
$ac_objext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477 (eval $ac_compile) 2>conftest.er1
7479 grep -v '^ *+' conftest.er1
>conftest.err
7481 cat conftest.err
>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try
='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_addr
=yes
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.
$ac_ext >&5
7501 cat >conftest.
$ac_ext <<_ACEOF
7504 cat confdefs.h
>>conftest.
$ac_ext
7505 cat >>conftest.
$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7508 #if HAVE_SYS_SOCKET_H
7509 #include <sys/socket.h>
7518 static struct ifreq ac_aggr;
7519 if (sizeof ac_aggr.ifr_addr)
7525 rm -f conftest.
$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>conftest.er1
7529 grep -v '^ *+' conftest.er1
>conftest.err
7531 cat conftest.err
>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; } &&
7540 { ac_try
='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_member_struct_ifreq_ifr_addr
=yes
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.
$ac_ext >&5
7551 ac_cv_member_struct_ifreq_ifr_addr
=no
7553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7557 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7558 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7559 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7561 cat >>confdefs.h
<<_ACEOF
7562 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7570 echo "$as_me:$LINENO: checking for function prototypes" >&5
7571 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7572 if test "$ac_cv_prog_cc_stdc" != no
; then
7573 echo "$as_me:$LINENO: result: yes" >&5
7574 echo "${ECHO_T}yes" >&6
7576 cat >>confdefs.h
<<\_ACEOF
7577 #define PROTOTYPES 1
7581 cat >>confdefs.h
<<\_ACEOF
7582 #define __PROTOTYPES 1
7586 echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6
7590 echo "$as_me:$LINENO: checking for working volatile" >&5
7591 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7592 if test "${ac_cv_c_volatile+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.
$ac_ext <<_ACEOF
7598 cat confdefs.h
>>conftest.
$ac_ext
7599 cat >>conftest.
$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7612 rm -f conftest.
$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7616 grep -v '^ *+' conftest.er1
>conftest.err
7618 cat conftest.err
>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try
='test -s conftest.$ac_objext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 ac_cv_c_volatile
=yes
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.
$ac_ext >&5
7640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7643 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7644 if test $ac_cv_c_volatile = no
; then
7646 cat >>confdefs.h
<<\_ACEOF
7652 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7653 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7654 if test "${ac_cv_c_const+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 cat >conftest.
$ac_ext <<_ACEOF
7660 cat confdefs.h
>>conftest.
$ac_ext
7661 cat >>conftest.
$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7667 /* FIXME: Include the comments suggested by Paul. */
7669 /* Ultrix mips cc rejects this. */
7670 typedef int charset[2];
7672 /* SunOS 4.1.1 cc rejects this. */
7673 char const *const *ccp;
7675 /* NEC SVR4.0.2 mips cc rejects this. */
7676 struct point {int x, y;};
7677 static struct point const zero = {0,0};
7678 /* AIX XL C 1.02.0.0 rejects this.
7679 It does not let you subtract one const X* pointer from another in
7680 an arm of an if-expression whose if-part is not a constant
7682 const char *g = "string";
7683 ccp = &g + (g ? g-g : 0);
7684 /* HPUX 7.0 cc rejects these. */
7687 ccp = (char const *const *) p;
7688 { /* SCO 3.2v4 cc rejects this. */
7690 char const *s = 0 ? (char *) 0 : (char const *) 0;
7694 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7696 const int *foo = &x[0];
7699 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7700 typedef const int *iptr;
7704 { /* AIX XL C 1.02.0.0 rejects this saying
7705 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7706 struct s { int j; const int *ap[3]; };
7707 struct s *b; b->j = 5;
7709 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7718 rm -f conftest.
$ac_objext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7720 (eval $ac_compile) 2>conftest.er1
7722 grep -v '^ *+' conftest.er1
>conftest.err
7724 cat conftest.err
>&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try
='test -s conftest.$ac_objext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.
$ac_ext >&5
7746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7748 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7749 echo "${ECHO_T}$ac_cv_c_const" >&6
7750 if test $ac_cv_c_const = no
; then
7752 cat >>confdefs.h
<<\_ACEOF
7758 echo "$as_me:$LINENO: checking for void * support" >&5
7759 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7760 if test "${emacs_cv_void_star+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 cat >conftest.
$ac_ext <<_ACEOF
7766 cat confdefs.h
>>conftest.
$ac_ext
7767 cat >>conftest.
$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7778 rm -f conftest.
$ac_objext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780 (eval $ac_compile) 2>conftest.er1
7782 grep -v '^ *+' conftest.er1
>conftest.err
7784 cat conftest.err
>&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try
='test -s conftest.$ac_objext'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 emacs_cv_void_star
=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.
$ac_ext >&5
7804 emacs_cv_void_star
=no
7806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7808 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7809 echo "${ECHO_T}$emacs_cv_void_star" >&6
7810 if test $emacs_cv_void_star = yes; then
7811 cat >>confdefs.h
<<\_ACEOF
7812 #define POINTER_TYPE void
7816 cat >>confdefs.h
<<\_ACEOF
7817 #define POINTER_TYPE char
7826 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7827 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7828 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7829 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 cat >conftest.
make <<\_ACEOF
7834 @
echo 'ac_maketemp="$(MAKE)"'
7836 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7837 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7838 if test -n "$ac_maketemp"; then
7839 eval ac_cv_prog_make_
${ac_make}_set
=yes
7841 eval ac_cv_prog_make_
${ac_make}_set
=no
7845 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7850 echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6
7852 SET_MAKE
="MAKE=${MAKE-make}"
7856 echo "$as_me:$LINENO: checking for long file names" >&5
7857 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7858 if test "${ac_cv_sys_long_file_names+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 ac_cv_sys_long_file_names
=yes
7862 # Test for long file names in all the places we know might matter:
7863 # . the current directory, where building will happen
7864 # $prefix/lib where we will be installing things
7865 # $exec_prefix/lib likewise
7866 # eval it to expand exec_prefix.
7867 # $TMPDIR if set, where it might want to write temporary files
7868 # if $TMPDIR is not set:
7869 # /tmp where it might want to write temporary files
7872 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7875 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7877 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7878 test -d $ac_dir ||
continue
7879 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7880 ac_xdir
=$ac_dir/cf$$
7881 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7882 ac_tf1
=$ac_xdir/conftest9012345
7883 ac_tf2
=$ac_xdir/conftest9012346
7884 (echo 1 >$ac_tf1) 2>/dev
/null
7885 (echo 2 >$ac_tf2) 2>/dev
/null
7886 ac_val
=`cat $ac_tf1 2>/dev/null`
7887 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7888 ac_cv_sys_long_file_names
=no
7889 rm -rf $ac_xdir 2>/dev
/null
7892 rm -rf $ac_xdir 2>/dev
/null
7895 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7896 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7897 if test $ac_cv_sys_long_file_names = yes; then
7899 cat >>confdefs.h
<<\_ACEOF
7900 #define HAVE_LONG_FILE_NAMES 1
7906 #### Choose a window system.
7908 echo "$as_me:$LINENO: checking for X" >&5
7909 echo $ECHO_N "checking for X... $ECHO_C" >&6
7911 ac_path_x_has_been_run
=yes
7913 # Check whether --with-x or --without-x was given.
7914 if test "${with_x+set}" = set; then
7918 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7919 if test "x$with_x" = xno
; then
7920 # The user explicitly disabled X.
7923 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7924 # Both variables are already set.
7927 if test "${ac_cv_have_x+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 # One or both of the vars are not set, and there is no cached value.
7931 ac_x_includes
=no ac_x_libraries
=no
7933 if mkdir conftest.dir
; then
7935 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7936 cat >Imakefile
<<'_ACEOF'
7938 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7940 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7942 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7943 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7944 for ac_extension
in a so sl
; do
7945 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7946 test -f $ac_im_libdir/libX11.
$ac_extension; then
7947 ac_im_usrlibdir
=$ac_im_libdir; break
7950 # Screen out bogus values from the imake configuration. They are
7951 # bogus both because they are the default anyway, and because
7952 # using them would break gcc on systems where it needs fixed includes.
7953 case $ac_im_incroot in
7955 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7957 case $ac_im_usrlibdir in
7959 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7966 # Standard set of common directories for X headers.
7967 # Check X11 before X11Rn because it is often a symlink to the current release.
7979 /usr/local/X11/include
7980 /usr/local/X11R6/include
7981 /usr/local/X11R5/include
7982 /usr/local/X11R4/include
7984 /usr/local/include/X11
7985 /usr/local/include/X11R6
7986 /usr/local/include/X11R5
7987 /usr/local/include/X11R4
7991 /usr/XFree86/include/X11
7995 /usr/unsupported/include
7997 /usr/local/x11r5/include
7998 /usr/lpp/Xamples/include
8000 /usr/openwin/include
8001 /usr/openwin/share/include'
8003 if test "$ac_x_includes" = no
; then
8004 # Guess where to find include files, by looking for a specified header file.
8005 # First, try using that file with no special directory specified.
8006 cat >conftest.
$ac_ext <<_ACEOF
8009 cat confdefs.h
>>conftest.
$ac_ext
8010 cat >>conftest.
$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <X11/Xlib.h>
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1
>conftest.err
8019 cat conftest.err
>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev
/null
; then
8022 if test -s conftest.err
; then
8023 ac_cpp_err
=$ac_c_preproc_warn_flag
8024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8031 if test -z "$ac_cpp_err"; then
8032 # We can compile using X headers with no special include directory.
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.
$ac_ext >&5
8038 for ac_dir
in $ac_x_header_dirs; do
8039 if test -r "$ac_dir/X11/Xlib.h"; then
8040 ac_x_includes
=$ac_dir
8045 rm -f conftest.err conftest.
$ac_ext
8046 fi # $ac_x_includes = no
8048 if test "$ac_x_libraries" = no
; then
8049 # Check for the libraries.
8050 # See if we find them without any special options.
8051 # Don't add to $LIBS permanently.
8054 cat >conftest.
$ac_ext <<_ACEOF
8057 cat confdefs.h
>>conftest.
$ac_ext
8058 cat >>conftest.
$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <X11/Xlib.h>
8069 rm -f conftest.
$ac_objext conftest
$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>conftest.er1
8073 grep -v '^ *+' conftest.er1
>conftest.err
8075 cat conftest.err
>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try
='test -s conftest$ac_exeext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8091 # We can link X programs with no special library path.
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.
$ac_ext >&5
8098 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8100 # Don't even attempt the hair of trying to link an X program!
8101 for ac_extension
in a so sl
; do
8102 if test -r $ac_dir/libX11.
$ac_extension; then
8103 ac_x_libraries
=$ac_dir
8109 rm -f conftest.err conftest.
$ac_objext \
8110 conftest
$ac_exeext conftest.
$ac_ext
8111 fi # $ac_x_libraries = no
8113 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8114 # Didn't find X anywhere. Cache the known absence of X.
8115 ac_cv_have_x
="have_x=no"
8117 # Record where we found X for the cache.
8118 ac_cv_have_x
="have_x=yes \
8119 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8124 eval "$ac_cv_have_x"
8127 if test "$have_x" != yes; then
8128 echo "$as_me:$LINENO: result: $have_x" >&5
8129 echo "${ECHO_T}$have_x" >&6
8132 # If each of the values was on the command line, it overrides each guess.
8133 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8134 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8135 # Update the cache value to reflect the command line values.
8136 ac_cv_have_x
="have_x=yes \
8137 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8138 # It might be that x_includes is empty (headers are found in the
8139 # standard search path. Then output the corresponding message
8140 ac_out_x_includes
=$x_includes
8141 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8142 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8143 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8146 if test "$no_x" = yes; then
8152 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8153 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8154 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8155 x_default_search_path
=""
8156 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8158 ${x_library}/X11/%L/%T/%N%C%S:\
8159 ${x_library}/X11/%l/%T/%N%C%S:\
8160 ${x_library}/X11/%T/%N%C%S:\
8161 ${x_library}/X11/%L/%T/%N%S:\
8162 ${x_library}/X11/%l/%T/%N%S:\
8163 ${x_library}/X11/%T/%N%S"
8164 if test x
"${x_default_search_path}" = x
; then
8165 x_default_search_path
=${x_search_path}
8167 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8171 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8172 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8175 if test x
"${x_includes}" = x
; then
8176 bitmapdir
=/usr
/include
/X11
/bitmaps
8178 # accumulate include directories that have X11 bitmap subdirectories
8180 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8181 if test -d "${bmd}/X11/bitmaps"; then
8182 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8184 if test -d "${bmd}/bitmaps"; then
8185 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8188 if test ${bmd_acc} != "dummyval"; then
8189 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8194 if test "${with_carbon}" != no
; then
8195 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8196 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8197 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8198 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8202 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8204 # Is the header compilable?
8205 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8206 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8207 cat >conftest.
$ac_ext <<_ACEOF
8210 cat confdefs.h
>>conftest.
$ac_ext
8211 cat >>conftest.
$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 $ac_includes_default
8214 #include <Carbon/Carbon.h>
8216 rm -f conftest.
$ac_objext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8218 (eval $ac_compile) 2>conftest.er1
8220 grep -v '^ *+' conftest.er1
>conftest.err
8222 cat conftest.err
>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try
='test -s conftest.$ac_objext'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 ac_header_compiler
=yes
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.
$ac_ext >&5
8242 ac_header_compiler
=no
8244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8246 echo "${ECHO_T}$ac_header_compiler" >&6
8248 # Is the header present?
8249 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8250 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8251 cat >conftest.
$ac_ext <<_ACEOF
8254 cat confdefs.h
>>conftest.
$ac_ext
8255 cat >>conftest.
$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <Carbon/Carbon.h>
8259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8260 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8262 grep -v '^ *+' conftest.er1
>conftest.err
8264 cat conftest.err
>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } >/dev
/null
; then
8267 if test -s conftest.err
; then
8268 ac_cpp_err
=$ac_c_preproc_warn_flag
8269 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8276 if test -z "$ac_cpp_err"; then
8277 ac_header_preproc
=yes
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.
$ac_ext >&5
8282 ac_header_preproc
=no
8284 rm -f conftest.err conftest.
$ac_ext
8285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8286 echo "${ECHO_T}$ac_header_preproc" >&6
8288 # So? What about this header?
8289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8291 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8292 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8294 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8295 ac_header_preproc
=yes
8298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8299 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8301 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8303 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8305 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8307 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8309 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8312 ## ------------------------------------------ ##
8313 ## Report this to the AC_PACKAGE_NAME lists. ##
8314 ## ------------------------------------------ ##
8317 sed "s/^/$as_me: WARNING: /" >&2
8320 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8321 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8327 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8331 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8337 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8338 if test "${with_carbon+set}" != set \
8339 && test "${carbon_appdir_x+set}" != set; then
8343 if test "${HAVE_CARBON}" = yes; then
8347 case "${window_system}" in
8351 case "${with_x_toolkit}" in
8352 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8353 motif
) USE_X_TOOLKIT
=MOTIF
;;
8355 USE_X_TOOLKIT
=none
;;
8356 no
) USE_X_TOOLKIT
=none
;;
8357 * ) USE_X_TOOLKIT
=maybe
;;
8367 ### If we're using X11, we should use the X menu package.
8370 yes ) HAVE_MENUS
=yes ;;
8373 if test "${opsys}" = "hpux9"; then
8374 case "${x_libraries}" in
8376 opsysfile
="s/hpux9-x11r4.h"
8381 if test "${opsys}" = "hpux9shr"; then
8382 case "${x_libraries}" in
8384 opsysfile
="s/hpux9shxr4.h"
8389 ### Compute the unexec source name from the object name.
8390 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8392 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8393 # Assume not, until told otherwise.
8396 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8397 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8398 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 cat >conftest.
$ac_ext <<_ACEOF
8404 cat confdefs.h
>>conftest.
$ac_ext
8405 cat >>conftest.
$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8409 #define malloc_get_state innocuous_malloc_get_state
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char malloc_get_state (); below.
8413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8414 <limits.h> exists even on freestanding compilers. */
8417 # include <limits.h>
8419 # include <assert.h>
8422 #undef malloc_get_state
8424 /* Override any gcc2 internal prototype to avoid an error. */
8429 /* We use char because int might match the return type of a gcc2
8430 builtin and then its argument prototype would still apply. */
8431 char malloc_get_state ();
8432 /* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8438 char (*f) () = malloc_get_state;
8447 return f != malloc_get_state;
8452 rm -f conftest.
$ac_objext conftest
$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1
>conftest.err
8458 cat conftest.err
>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try
='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_func_malloc_get_state
=yes
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.
$ac_ext >&5
8478 ac_cv_func_malloc_get_state
=no
8480 rm -f conftest.err conftest.
$ac_objext \
8481 conftest
$ac_exeext conftest.
$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8484 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8485 if test $ac_cv_func_malloc_get_state = yes; then
8491 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8492 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8493 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 cat >conftest.
$ac_ext <<_ACEOF
8499 cat confdefs.h
>>conftest.
$ac_ext
8500 cat >>conftest.
$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8504 #define malloc_set_state innocuous_malloc_set_state
8506 /* System header to define __stub macros and hopefully few prototypes,
8507 which can conflict with char malloc_set_state (); below.
8508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8509 <limits.h> exists even on freestanding compilers. */
8512 # include <limits.h>
8514 # include <assert.h>
8517 #undef malloc_set_state
8519 /* Override any gcc2 internal prototype to avoid an error. */
8524 /* We use char because int might match the return type of a gcc2
8525 builtin and then its argument prototype would still apply. */
8526 char malloc_set_state ();
8527 /* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */
8530 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8533 char (*f) () = malloc_set_state;
8542 return f != malloc_set_state;
8547 rm -f conftest.
$ac_objext conftest
$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8551 grep -v '^ *+' conftest.er1
>conftest.err
8553 cat conftest.err
>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try
='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_func_malloc_set_state
=yes
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.
$ac_ext >&5
8573 ac_cv_func_malloc_set_state
=no
8575 rm -f conftest.err conftest.
$ac_objext \
8576 conftest
$ac_exeext conftest.
$ac_ext
8578 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8579 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8580 if test $ac_cv_func_malloc_set_state = yes; then
8586 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8587 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8588 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 cat >conftest.
$ac_ext <<_ACEOF
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 extern void (* __after_morecore_hook)();
8601 __after_morecore_hook = 0
8606 rm -f conftest.
$ac_objext conftest
$ac_exeext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
8610 grep -v '^ *+' conftest.er1
>conftest.err
8612 cat conftest.err
>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try
='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 emacs_cv_var___after_morecore_hook
=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.
$ac_ext >&5
8632 emacs_cv_var___after_morecore_hook
=no
8634 rm -f conftest.err conftest.
$ac_objext \
8635 conftest
$ac_exeext conftest.
$ac_ext
8637 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8638 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8639 if test $emacs_cv_var___after_morecore_hook = no
; then
8642 if test "${system_malloc}" = "yes"; then
8645 (The GNU allocators don't work with this system configuration.)"
8647 if test "$doug_lea_malloc" = "yes" ; then
8648 if test "$GNU_MALLOC" = yes ; then
8650 (Using Doug Lea's new malloc from the GNU C Library.)"
8653 cat >>confdefs.h
<<\_ACEOF
8654 #define DOUG_LEA_MALLOC 1
8659 if test x
"${REL_ALLOC}" = x
; then
8660 REL_ALLOC
=${GNU_MALLOC}
8666 for ac_header
in stdlib.h unistd.h
8668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8670 echo "$as_me:$LINENO: checking for $ac_header" >&5
8671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8678 # Is the header compilable?
8679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8681 cat >conftest.
$ac_ext <<_ACEOF
8684 cat confdefs.h
>>conftest.
$ac_ext
8685 cat >>conftest.
$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 $ac_includes_default
8688 #include <$ac_header>
8690 rm -f conftest.
$ac_objext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8692 (eval $ac_compile) 2>conftest.er1
8694 grep -v '^ *+' conftest.er1
>conftest.err
8696 cat conftest.err
>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try
='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_header_compiler
=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.
$ac_ext >&5
8716 ac_header_compiler
=no
8718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8720 echo "${ECHO_T}$ac_header_compiler" >&6
8722 # Is the header present?
8723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8725 cat >conftest.
$ac_ext <<_ACEOF
8728 cat confdefs.h
>>conftest.
$ac_ext
8729 cat >>conftest.
$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include <$ac_header>
8733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8734 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8736 grep -v '^ *+' conftest.er1
>conftest.err
8738 cat conftest.err
>&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } >/dev
/null
; then
8741 if test -s conftest.err
; then
8742 ac_cpp_err
=$ac_c_preproc_warn_flag
8743 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8750 if test -z "$ac_cpp_err"; then
8751 ac_header_preproc
=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.
$ac_ext >&5
8756 ac_header_preproc
=no
8758 rm -f conftest.err conftest.
$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8760 echo "${ECHO_T}$ac_header_preproc" >&6
8762 # So? What about this header?
8763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8769 ac_header_preproc
=yes
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8786 ## ------------------------------------------ ##
8787 ## Report this to the AC_PACKAGE_NAME lists. ##
8788 ## ------------------------------------------ ##
8791 sed "s/^/$as_me: WARNING: /" >&2
8794 echo "$as_me:$LINENO: checking for $ac_header" >&5
8795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 eval "$as_ac_Header=\$ac_header_preproc"
8801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8806 cat >>confdefs.h
<<_ACEOF
8807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8815 for ac_func
in getpagesize
8817 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8818 echo "$as_me:$LINENO: checking for $ac_func" >&5
8819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8820 if eval "test \"\${$as_ac_var+set}\" = set"; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 cat >conftest.
$ac_ext <<_ACEOF
8826 cat confdefs.h
>>conftest.
$ac_ext
8827 cat >>conftest.
$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8831 #define $ac_func innocuous_$ac_func
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char $ac_func (); below.
8835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 <limits.h> exists even on freestanding compilers. */
8839 # include <limits.h>
8841 # include <assert.h>
8846 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8854 /* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8860 char (*f) () = $ac_func;
8869 return f != $ac_func;
8874 rm -f conftest.
$ac_objext conftest
$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>conftest.er1
8878 grep -v '^ *+' conftest.er1
>conftest.err
8880 cat conftest.err
>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
8883 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try
='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 eval "$as_ac_var=yes"
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 eval "$as_ac_var=no"
8902 rm -f conftest.err conftest.
$ac_objext \
8903 conftest
$ac_exeext conftest.
$ac_ext
8905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8907 if test `eval echo '${'$as_ac_var'}'` = yes; then
8908 cat >>confdefs.h
<<_ACEOF
8909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8915 echo "$as_me:$LINENO: checking for working mmap" >&5
8916 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8917 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 if test "$cross_compiling" = yes; then
8921 ac_cv_func_mmap_fixed_mapped
=no
8923 cat >conftest.
$ac_ext <<_ACEOF
8926 cat confdefs.h
>>conftest.
$ac_ext
8927 cat >>conftest.
$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 $ac_includes_default
8930 /* malloc might have been renamed as rpl_malloc. */
8933 /* Thanks to Mike Haertel and Jim Avera for this test.
8934 Here is a matrix of mmap possibilities:
8935 mmap private not fixed
8936 mmap private fixed at somewhere currently unmapped
8937 mmap private fixed at somewhere already mapped
8938 mmap shared not fixed
8939 mmap shared fixed at somewhere currently unmapped
8940 mmap shared fixed at somewhere already mapped
8941 For private mappings, we should verify that changes cannot be read()
8942 back from the file, nor mmap's back from the file at a different
8943 address. (There have been systems where private was not correctly
8944 implemented like the infamous i386 svr4.0, and systems where the
8945 VM page cache was not coherent with the file system buffer cache
8946 like early versions of FreeBSD and possibly contemporary NetBSD.)
8947 For shared mappings, we should conversely verify that changes get
8948 propagated back to all the places they're supposed to be.
8950 Grep wants private fixed already mapped.
8951 The main things grep needs to know about mmap are:
8952 * does it exist and is it safe to write into the mmap'd area
8953 * how to use it (BSD variants) */
8956 #include <sys/mman.h>
8958 #if !STDC_HEADERS && !HAVE_STDLIB_H
8962 /* This mess was copied from the GNU getpagesize.h. */
8963 #if !HAVE_GETPAGESIZE
8964 /* Assume that all systems that can run configure have sys/param.h. */
8965 # if !HAVE_SYS_PARAM_H
8966 # define HAVE_SYS_PARAM_H 1
8969 # ifdef _SC_PAGESIZE
8970 # define getpagesize() sysconf(_SC_PAGESIZE)
8971 # else /* no _SC_PAGESIZE */
8972 # if HAVE_SYS_PARAM_H
8973 # include <sys/param.h>
8974 # ifdef EXEC_PAGESIZE
8975 # define getpagesize() EXEC_PAGESIZE
8976 # else /* no EXEC_PAGESIZE */
8978 # define getpagesize() NBPG * CLSIZE
8981 # endif /* no CLSIZE */
8982 # else /* no NBPG */
8984 # define getpagesize() NBPC
8985 # else /* no NBPC */
8987 # define getpagesize() PAGESIZE
8988 # endif /* PAGESIZE */
8989 # endif /* no NBPC */
8990 # endif /* no NBPG */
8991 # endif /* no EXEC_PAGESIZE */
8992 # else /* no HAVE_SYS_PARAM_H */
8993 # define getpagesize() 8192 /* punt totally */
8994 # endif /* no HAVE_SYS_PARAM_H */
8995 # endif /* no _SC_PAGESIZE */
8997 #endif /* no HAVE_GETPAGESIZE */
9002 char *data, *data2, *data3;
9006 pagesize = getpagesize ();
9008 /* First, make a file with some known garbage in it. */
9009 data = (char *) malloc (pagesize);
9012 for (i = 0; i < pagesize; ++i)
9013 *(data + i) = rand ();
9015 fd = creat ("conftest.mmap", 0600);
9018 if (write (fd, data, pagesize) != pagesize)
9022 /* Next, try to mmap the file at a fixed address which already has
9023 something else allocated at it. If we can, also make sure that
9024 we see the same garbage. */
9025 fd = open ("conftest.mmap", O_RDWR);
9028 data2 = (char *) malloc (2 * pagesize);
9031 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9032 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9033 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9035 for (i = 0; i < pagesize; ++i)
9036 if (*(data + i) != *(data2 + i))
9039 /* Finally, make sure that changes to the mapped area do not
9040 percolate back to the file as seen by read(). (This is a bug on
9041 some variants of i386 svr4.0.) */
9042 for (i = 0; i < pagesize; ++i)
9043 *(data2 + i) = *(data2 + i) + 1;
9044 data3 = (char *) malloc (pagesize);
9047 if (read (fd, data3, pagesize) != pagesize)
9049 for (i = 0; i < pagesize; ++i)
9050 if (*(data + i) != *(data3 + i))
9056 rm -f conftest
$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_func_mmap_fixed_mapped
=yes
9069 echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.
$ac_ext >&5
9074 ac_cv_func_mmap_fixed_mapped
=no
9076 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9080 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9083 cat >>confdefs.h
<<\_ACEOF
9090 if test $use_mmap_for_buffers = yes; then
9094 LIBS
="$libsrc_libs $LIBS"
9097 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9098 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9099 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 ac_check_lib_save_LIBS
=$LIBS
9104 cat >conftest.
$ac_ext <<_ACEOF
9107 cat confdefs.h
>>conftest.
$ac_ext
9108 cat >>conftest.
$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any gcc2 internal prototype to avoid an error. */
9115 /* We use char because int might match the return type of a gcc2
9116 builtin and then its argument prototype would still apply. */
9126 rm -f conftest.
$ac_objext conftest
$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9130 grep -v '^ *+' conftest.er1
>conftest.err
9132 cat conftest.err
>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try
='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_lib_dnet_dnet_ntoa
=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.
$ac_ext >&5
9152 ac_cv_lib_dnet_dnet_ntoa
=no
9154 rm -f conftest.err conftest.
$ac_objext \
9155 conftest
$ac_exeext conftest.
$ac_ext
9156 LIBS
=$ac_check_lib_save_LIBS
9158 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9159 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9160 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9161 cat >>confdefs.h
<<_ACEOF
9162 #define HAVE_LIBDNET 1
9170 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9171 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9172 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 ac_check_lib_save_LIBS
=$LIBS
9177 cat >conftest.
$ac_ext <<_ACEOF
9180 cat confdefs.h
>>conftest.
$ac_ext
9181 cat >>conftest.
$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9193 rm -f conftest.
$ac_objext conftest
$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9197 grep -v '^ *+' conftest.er1
>conftest.err
9199 cat conftest.err
>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try
='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_lib_Xbsd_main
=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.
$ac_ext >&5
9219 ac_cv_lib_Xbsd_main
=no
9221 rm -f conftest.err conftest.
$ac_objext \
9222 conftest
$ac_exeext conftest.
$ac_ext
9223 LIBS
=$ac_check_lib_save_LIBS
9225 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9226 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9227 if test $ac_cv_lib_Xbsd_main = yes; then
9228 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9233 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9234 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9235 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 ac_check_lib_save_LIBS
=$LIBS
9239 LIBS
="-lpthreads $LIBS"
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9262 rm -f conftest.
$ac_objext conftest
$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>conftest.er1
9266 grep -v '^ *+' conftest.er1
>conftest.err
9268 cat conftest.err
>&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; } &&
9277 { ac_try
='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_lib_pthreads_cma_open
=yes
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.
$ac_ext >&5
9288 ac_cv_lib_pthreads_cma_open
=no
9290 rm -f conftest.err conftest.
$ac_objext \
9291 conftest
$ac_exeext conftest.
$ac_ext
9292 LIBS
=$ac_check_lib_save_LIBS
9294 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9295 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9296 if test $ac_cv_lib_pthreads_cma_open = yes; then
9297 cat >>confdefs.h
<<_ACEOF
9298 #define HAVE_LIBPTHREADS 1
9301 LIBS
="-lpthreads $LIBS"
9306 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9307 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9308 if test -d /usr
/X386
/include
; then
9310 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9314 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9315 echo "${ECHO_T}$HAVE_XFREE386" >&6
9320 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9321 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9322 if test "${gdb_cv_bigtoc+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9328 *) gdb_cv_bigtoc
=-bbigtoc ;;
9331 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9332 cat >conftest.
$ac_ext <<_ACEOF
9335 cat confdefs.h
>>conftest.
$ac_ext
9336 cat >>conftest.
$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9347 rm -f conftest.
$ac_objext conftest
$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9351 grep -v '^ *+' conftest.er1
>conftest.err
9353 cat conftest.err
>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; } &&
9362 { ac_try
='test -s conftest$ac_exeext'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.
$ac_ext >&5
9375 rm -f conftest.err conftest.
$ac_objext \
9376 conftest
$ac_exeext conftest.
$ac_ext
9379 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9380 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9384 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9385 # used for the tests that follow. We set them back to REAL_CFLAGS and
9386 # REAL_CPPFLAGS later on.
9388 REAL_CPPFLAGS
="$CPPFLAGS"
9390 if test "${HAVE_X11}" = "yes"; then
9391 DEFS
="$C_SWITCH_X_SITE $DEFS"
9392 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9394 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9395 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9397 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9398 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9399 # but it's more convenient here to set LD_RUN_PATH
9400 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9401 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9402 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9406 if test "${opsys}" = "gnu-linux"; then
9407 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9408 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9409 cat >conftest.
$ac_ext <<_ACEOF
9412 cat confdefs.h
>>conftest.
$ac_ext
9413 cat >>conftest.
$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9419 XOpenDisplay ("foo");
9424 rm -f conftest.
$ac_objext conftest
$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9428 grep -v '^ *+' conftest.er1
>conftest.err
9430 cat conftest.err
>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try
='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 xlinux_first_failure
=no
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.
$ac_ext >&5
9450 xlinux_first_failure
=yes
9452 rm -f conftest.err conftest.
$ac_objext \
9453 conftest
$ac_exeext conftest.
$ac_ext
9454 if test "${xlinux_first_failure}" = "yes"; then
9455 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9456 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9457 OLD_CPPFLAGS
="$CPPFLAGS"
9459 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9460 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9461 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9462 LIBS
="$LIBS -b i486-linuxaout"
9463 cat >conftest.
$ac_ext <<_ACEOF
9466 cat confdefs.h
>>conftest.
$ac_ext
9467 cat >>conftest.
$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9473 XOpenDisplay ("foo");
9478 rm -f conftest.
$ac_objext conftest
$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try
='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 xlinux_second_failure
=no
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.
$ac_ext >&5
9504 xlinux_second_failure
=yes
9506 rm -f conftest.err conftest.
$ac_objext \
9507 conftest
$ac_exeext conftest.
$ac_ext
9508 if test "${xlinux_second_failure}" = "yes"; then
9509 # If we get the same failure with -b, there is no use adding -b.
9510 # So take it out. This plays safe.
9511 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9512 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9513 CPPFLAGS
="$OLD_CPPFLAGS"
9515 echo "$as_me:$LINENO: result: no" >&5
9516 echo "${ECHO_T}no" >&6
9518 echo "$as_me:$LINENO: result: yes" >&5
9519 echo "${ECHO_T}yes" >&6
9522 echo "$as_me:$LINENO: result: no" >&5
9523 echo "${ECHO_T}no" >&6
9527 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9528 # header files included from there.
9529 echo "$as_me:$LINENO: checking for Xkb" >&5
9530 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9531 cat >conftest.
$ac_ext <<_ACEOF
9534 cat confdefs.h
>>conftest.
$ac_ext
9535 cat >>conftest.
$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 #include <X11/Xlib.h>
9538 #include <X11/XKBlib.h>
9542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9547 rm -f conftest.
$ac_objext conftest
$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549 (eval $ac_link) 2>conftest.er1
9551 grep -v '^ *+' conftest.er1
>conftest.err
9553 cat conftest.err
>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try
='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.
$ac_ext >&5
9575 rm -f conftest.err conftest.
$ac_objext \
9576 conftest
$ac_exeext conftest.
$ac_ext
9577 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9578 echo "${ECHO_T}$emacs_xkb" >&6
9579 if test $emacs_xkb = yes; then
9581 cat >>confdefs.h
<<\_ACEOF
9582 #define HAVE_XKBGETKEYBOARD 1
9591 for ac_func
in XrmSetDatabase XScreenResourceString \
9592 XScreenNumberOfScreen XSetWMProtocols
9594 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9595 echo "$as_me:$LINENO: checking for $ac_func" >&5
9596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9597 if eval "test \"\${$as_ac_var+set}\" = set"; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.
$ac_ext <<_ACEOF
9603 cat confdefs.h
>>conftest.
$ac_ext
9604 cat >>conftest.
$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608 #define $ac_func innocuous_$ac_func
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9616 # include <limits.h>
9618 # include <assert.h>
9623 /* Override any gcc2 internal prototype to avoid an error. */
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9631 /* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9637 char (*f) () = $ac_func;
9646 return f != $ac_func;
9651 rm -f conftest.
$ac_objext conftest
$ac_exeext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>conftest.er1
9655 grep -v '^ *+' conftest.er1
>conftest.err
9657 cat conftest.err
>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try
='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 eval "$as_ac_var=yes"
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.
$ac_ext >&5
9677 eval "$as_ac_var=no"
9679 rm -f conftest.err conftest.
$ac_objext \
9680 conftest
$ac_exeext conftest.
$ac_ext
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then
9685 cat >>confdefs.h
<<_ACEOF
9686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9694 if test "${window_system}" = "x11"; then
9695 echo "$as_me:$LINENO: checking X11 version 6" >&5
9696 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9697 if test "${emacs_cv_x11_version_6+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 cat >conftest.
$ac_ext <<_ACEOF
9703 cat confdefs.h
>>conftest.
$ac_ext
9704 cat >>conftest.
$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <X11/Xlib.h>
9710 #if XlibSpecificationRelease < 6
9718 rm -f conftest.
$ac_objext conftest
$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1
>conftest.err
9724 cat conftest.err
>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try
='test -s conftest$ac_exeext'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 emacs_cv_x11_version_6
=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.
$ac_ext >&5
9744 emacs_cv_x11_version_6
=no
9746 rm -f conftest.err conftest.
$ac_objext \
9747 conftest
$ac_exeext conftest.
$ac_ext
9750 if test $emacs_cv_x11_version_6 = yes; then
9751 echo "$as_me:$LINENO: result: 6 or newer" >&5
9752 echo "${ECHO_T}6 or newer" >&6
9754 cat >>confdefs.h
<<\_ACEOF
9755 #define HAVE_X11R6 1
9759 echo "$as_me:$LINENO: result: before 6" >&5
9760 echo "${ECHO_T}before 6" >&6
9764 if test "${window_system}" = "x11"; then
9765 echo "$as_me:$LINENO: checking X11 version 5" >&5
9766 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9767 if test "${emacs_cv_x11_version_5+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 cat >conftest.
$ac_ext <<_ACEOF
9773 cat confdefs.h
>>conftest.
$ac_ext
9774 cat >>conftest.
$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 #include <X11/Xlib.h>
9780 #if XlibSpecificationRelease < 5
9788 rm -f conftest.
$ac_objext conftest
$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>conftest.er1
9792 grep -v '^ *+' conftest.er1
>conftest.err
9794 cat conftest.err
>&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try
='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 emacs_cv_x11_version_5
=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 emacs_cv_x11_version_5
=no
9816 rm -f conftest.err conftest.
$ac_objext \
9817 conftest
$ac_exeext conftest.
$ac_ext
9820 if test $emacs_cv_x11_version_5 = yes; then
9821 echo "$as_me:$LINENO: result: 5 or newer" >&5
9822 echo "${ECHO_T}5 or newer" >&6
9825 cat >>confdefs.h
<<\_ACEOF
9826 #define HAVE_X11R5 1
9831 echo "$as_me:$LINENO: result: before 5" >&5
9832 echo "${ECHO_T}before 5" >&6
9839 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9840 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9841 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9842 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9843 { (exit 1); exit 1; }; };
9847 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9849 if test "X${with_pkg_config_prog}" != X
; then
9850 PKG_CONFIG
="${with_pkg_config_prog}"
9855 if test -z "$PKG_CONFIG"; then
9856 # Extract the first word of "pkg-config", so it can be a program name with args.
9857 set dummy pkg-config
; ac_word
=$2
9858 echo "$as_me:$LINENO: checking for $ac_word" >&5
9859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9860 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9872 test -z "$as_dir" && as_dir
=.
9873 for ac_exec_ext
in '' $ac_executable_extensions; do
9874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9875 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9886 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9888 if test -n "$PKG_CONFIG"; then
9889 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9890 echo "${ECHO_T}$PKG_CONFIG" >&6
9892 echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6
9898 if test "$PKG_CONFIG" = "no" ; then
9899 echo "*** The pkg-config script could not be found. Make sure it is"
9900 echo "*** in your path, or give the full path to pkg-config with"
9901 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9902 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9904 PKG_CONFIG_MIN_VERSION
=0.9.0
9905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9906 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9907 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9909 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9910 echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6
9914 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9915 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9916 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9917 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9918 echo "${ECHO_T}$GTK_CFLAGS" >&6
9920 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9921 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9922 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9923 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9924 echo "${ECHO_T}$GTK_LIBS" >&6
9928 ## If we have a custom action on failure, don't print errors, but
9929 ## do set a variable so people can do so.
9930 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9931 echo $GTK_PKG_ERRORS
9937 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9938 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9942 if test $succeeded = yes; then
9945 { { 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
9946 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;}
9947 { (exit 1); exit 1; }; }
9952 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9953 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9954 LIBS
="$GTK_LIBS $LIBS"
9957 cat >>confdefs.h
<<\_ACEOF
9963 if test "$with_toolkit_scroll_bars" != no
; then
9964 with_toolkit_scroll_bars
=yes
9967 HAVE_GTK_MULTIDISPLAY
=no
9969 HAVE_GTK_FILE_SELECTION
=no
9971 for ac_func
in gtk_file_selection_new
9973 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9974 echo "$as_me:$LINENO: checking for $ac_func" >&5
9975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9976 if eval "test \"\${$as_ac_var+set}\" = set"; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 cat >conftest.
$ac_ext <<_ACEOF
9982 cat confdefs.h
>>conftest.
$ac_ext
9983 cat >>conftest.
$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9987 #define $ac_func innocuous_$ac_func
9989 /* System header to define __stub macros and hopefully few prototypes,
9990 which can conflict with char $ac_func (); below.
9991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9992 <limits.h> exists even on freestanding compilers. */
9995 # include <limits.h>
9997 # include <assert.h>
10002 /* Override any gcc2 internal prototype to avoid an error. */
10007 /* We use char because int might match the return type of a gcc2
10008 builtin and then its argument prototype would still apply. */
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10016 char (*f) () = $ac_func;
10025 return f != $ac_func;
10030 rm -f conftest.
$ac_objext conftest
$ac_exeext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>conftest.er1
10034 grep -v '^ *+' conftest.er1
>conftest.err
10036 cat conftest.err
>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try
='test -s conftest$ac_exeext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 eval "$as_ac_var=yes"
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.
$ac_ext >&5
10056 eval "$as_ac_var=no"
10058 rm -f conftest.err conftest.
$ac_objext \
10059 conftest
$ac_exeext conftest.
$ac_ext
10061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10063 if test `eval echo '${'$as_ac_var'}'` = yes; then
10064 cat >>confdefs.h
<<_ACEOF
10065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10067 HAVE_GTK_FILE_SELECTION
=yes
10072 HAVE_GTK_FILE_CHOOSER
=no
10074 for ac_func
in gtk_file_chooser_dialog_new
10076 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10077 echo "$as_me:$LINENO: checking for $ac_func" >&5
10078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10079 if eval "test \"\${$as_ac_var+set}\" = set"; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 cat >conftest.
$ac_ext <<_ACEOF
10085 cat confdefs.h
>>conftest.
$ac_ext
10086 cat >>conftest.
$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10090 #define $ac_func innocuous_$ac_func
10092 /* System header to define __stub macros and hopefully few prototypes,
10093 which can conflict with char $ac_func (); below.
10094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10095 <limits.h> exists even on freestanding compilers. */
10098 # include <limits.h>
10100 # include <assert.h>
10105 /* Override any gcc2 internal prototype to avoid an error. */
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10113 /* The GNU C library defines this for functions which it implements
10114 to always fail with ENOSYS. Some functions are actually named
10115 something starting with __ and the normal name is an alias. */
10116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10119 char (*f) () = $ac_func;
10128 return f != $ac_func;
10133 rm -f conftest.
$ac_objext conftest
$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>conftest.er1
10137 grep -v '^ *+' conftest.er1
>conftest.err
10139 cat conftest.err
>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try
='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 eval "$as_ac_var=yes"
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.
$ac_ext >&5
10159 eval "$as_ac_var=no"
10161 rm -f conftest.err conftest.
$ac_objext \
10162 conftest
$ac_exeext conftest.
$ac_ext
10164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10166 if test `eval echo '${'$as_ac_var'}'` = yes; then
10167 cat >>confdefs.h
<<_ACEOF
10168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10170 HAVE_GTK_FILE_CHOOSER
=yes
10175 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10176 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10178 cat >>confdefs.h
<<\_ACEOF
10179 #define HAVE_GTK_FILE_BOTH 1
10184 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10185 HAVE_GTK_AND_PTHREAD
=no
10187 for ac_header
in pthread.h
10189 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10191 echo "$as_me:$LINENO: checking for $ac_header" >&5
10192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10199 # Is the header compilable?
10200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10202 cat >conftest.
$ac_ext <<_ACEOF
10205 cat confdefs.h
>>conftest.
$ac_ext
10206 cat >>conftest.
$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10209 #include <$ac_header>
10211 rm -f conftest.
$ac_objext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>conftest.er1
10215 grep -v '^ *+' conftest.er1
>conftest.err
10217 cat conftest.err
>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try
='test -s conftest.$ac_objext'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 ac_header_compiler
=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.
$ac_ext >&5
10237 ac_header_compiler
=no
10239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6
10243 # Is the header present?
10244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10246 cat >conftest.
$ac_ext <<_ACEOF
10249 cat confdefs.h
>>conftest.
$ac_ext
10250 cat >>conftest.
$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <$ac_header>
10254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10255 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10257 grep -v '^ *+' conftest.er1
>conftest.err
10259 cat conftest.err
>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } >/dev
/null
; then
10262 if test -s conftest.err
; then
10263 ac_cpp_err
=$ac_c_preproc_warn_flag
10264 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10271 if test -z "$ac_cpp_err"; then
10272 ac_header_preproc
=yes
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.
$ac_ext >&5
10277 ac_header_preproc
=no
10279 rm -f conftest.err conftest.
$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10281 echo "${ECHO_T}$ac_header_preproc" >&6
10283 # So? What about this header?
10284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10290 ac_header_preproc
=yes
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10307 ## ------------------------------------------ ##
10308 ## Report this to the AC_PACKAGE_NAME lists. ##
10309 ## ------------------------------------------ ##
10312 sed "s/^/$as_me: WARNING: /" >&2
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 eval "$as_ac_Header=\$ac_header_preproc"
10322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327 cat >>confdefs.h
<<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10335 if test "$ac_cv_header_pthread_h"; then
10336 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10337 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10338 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 ac_check_lib_save_LIBS
=$LIBS
10342 LIBS
="-lpthread $LIBS"
10343 cat >conftest.
$ac_ext <<_ACEOF
10346 cat confdefs.h
>>conftest.
$ac_ext
10347 cat >>conftest.
$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10350 /* Override any gcc2 internal prototype to avoid an error. */
10354 /* We use char because int might match the return type of a gcc2
10355 builtin and then its argument prototype would still apply. */
10356 char pthread_self ();
10365 rm -f conftest.
$ac_objext conftest
$ac_exeext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367 (eval $ac_link) 2>conftest.er1
10369 grep -v '^ *+' conftest.er1
>conftest.err
10371 cat conftest.err
>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try
='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_lib_pthread_pthread_self
=yes
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.
$ac_ext >&5
10391 ac_cv_lib_pthread_pthread_self
=no
10393 rm -f conftest.err conftest.
$ac_objext \
10394 conftest
$ac_exeext conftest.
$ac_ext
10395 LIBS
=$ac_check_lib_save_LIBS
10397 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10398 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10399 if test $ac_cv_lib_pthread_pthread_self = yes; then
10400 HAVE_GTK_AND_PTHREAD
=yes
10404 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10405 GTK_LIBS
="$GTK_LIBS -lpthread"
10407 cat >>confdefs.h
<<\_ACEOF
10408 #define HAVE_GTK_AND_PTHREAD 1
10415 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10416 if test x
"${HAVE_X11R5}" = xyes
; then
10417 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10418 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10419 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 cat >conftest.
$ac_ext <<_ACEOF
10425 cat confdefs.h
>>conftest.
$ac_ext
10426 cat >>conftest.
$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10429 #include <X11/Intrinsic.h>
10430 #include <X11/Xaw/Simple.h>
10439 rm -f conftest.
$ac_objext conftest
$ac_exeext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441 (eval $ac_link) 2>conftest.er1
10443 grep -v '^ *+' conftest.er1
>conftest.err
10445 cat conftest.err
>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } &&
10448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try
='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 emacs_cv_x11_version_5_with_xaw
=yes
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.
$ac_ext >&5
10465 emacs_cv_x11_version_5_with_xaw
=no
10467 rm -f conftest.err conftest.
$ac_objext \
10468 conftest
$ac_exeext conftest.
$ac_ext
10471 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10472 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10473 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10474 USE_X_TOOLKIT
=LUCID
10476 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10477 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10485 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10487 if test "${USE_X_TOOLKIT}" != "none"; then
10488 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10489 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10490 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 cat >conftest.
$ac_ext <<_ACEOF
10496 cat confdefs.h
>>conftest.
$ac_ext
10497 cat >>conftest.
$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #include <X11/Intrinsic.h>
10503 #if XtSpecificationRelease < 6
10511 rm -f conftest.
$ac_objext conftest
$ac_exeext
10512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10513 (eval $ac_link) 2>conftest.er1
10515 grep -v '^ *+' conftest.er1
>conftest.err
10517 cat conftest.err
>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } &&
10520 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try
='test -s conftest$ac_exeext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 emacs_cv_x11_toolkit_version_6
=yes
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.
$ac_ext >&5
10537 emacs_cv_x11_toolkit_version_6
=no
10539 rm -f conftest.err conftest.
$ac_objext \
10540 conftest
$ac_exeext conftest.
$ac_ext
10543 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10544 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10545 echo "$as_me:$LINENO: result: 6 or newer" >&5
10546 echo "${ECHO_T}6 or newer" >&6
10548 cat >>confdefs.h
<<\_ACEOF
10549 #define HAVE_X11XTR6 1
10553 echo "$as_me:$LINENO: result: before 6" >&5
10554 echo "${ECHO_T}before 6" >&6
10558 if test x
$HAVE_X11XTR6 = xyes
; then
10559 LIBS
="-lXt -lSM -lICE $LIBS"
10564 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10565 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10566 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 ac_check_lib_save_LIBS
=$LIBS
10571 cat >conftest.
$ac_ext <<_ACEOF
10574 cat confdefs.h
>>conftest.
$ac_ext
10575 cat >>conftest.
$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10578 /* Override any gcc2 internal prototype to avoid an error. */
10582 /* We use char because int might match the return type of a gcc2
10583 builtin and then its argument prototype would still apply. */
10584 char XmuConvertStandardSelection ();
10588 XmuConvertStandardSelection ();
10593 rm -f conftest.
$ac_objext conftest
$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595 (eval $ac_link) 2>conftest.er1
10597 grep -v '^ *+' conftest.er1
>conftest.err
10599 cat conftest.err
>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try
='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.
$ac_ext >&5
10619 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10621 rm -f conftest.err conftest.
$ac_objext \
10622 conftest
$ac_exeext conftest.
$ac_ext
10623 LIBS
=$ac_check_lib_save_LIBS
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10626 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10627 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10628 cat >>confdefs.h
<<_ACEOF
10629 #define HAVE_LIBXMU 1
10636 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10639 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10640 if test "${HAVE_X11}" = "yes"; then
10641 if test "${USE_X_TOOLKIT}" != "none"; then
10643 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10644 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10645 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 ac_check_lib_save_LIBS
=$LIBS
10649 LIBS
="-lXext $LIBS"
10650 cat >conftest.
$ac_ext <<_ACEOF
10653 cat confdefs.h
>>conftest.
$ac_ext
10654 cat >>conftest.
$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10657 /* Override any gcc2 internal prototype to avoid an error. */
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char XShapeQueryExtension ();
10667 XShapeQueryExtension ();
10672 rm -f conftest.
$ac_objext conftest
$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>conftest.er1
10676 grep -v '^ *+' conftest.er1
>conftest.err
10678 cat conftest.err
>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try
='test -s conftest$ac_exeext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.
$ac_ext >&5
10698 ac_cv_lib_Xext_XShapeQueryExtension
=no
10700 rm -f conftest.err conftest.
$ac_objext \
10701 conftest
$ac_exeext conftest.
$ac_ext
10702 LIBS
=$ac_check_lib_save_LIBS
10704 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10705 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10706 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10707 cat >>confdefs.h
<<_ACEOF
10708 #define HAVE_LIBXEXT 1
10711 LIBS
="-lXext $LIBS"
10718 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10719 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10720 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10721 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 cat >conftest.
$ac_ext <<_ACEOF
10727 cat confdefs.h
>>conftest.
$ac_ext
10728 cat >>conftest.
$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10734 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10737 Motif version prior to 2.1.
10743 rm -f conftest.
$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>conftest.er1
10747 grep -v '^ *+' conftest.er1
>conftest.err
10749 cat conftest.err
>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try
='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 emacs_cv_motif_version_2_1
=yes
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.
$ac_ext >&5
10769 emacs_cv_motif_version_2_1
=no
10771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10773 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10774 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10775 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10776 if test $emacs_cv_motif_version_2_1 = yes; then
10779 cat >>confdefs.h
<<\_ACEOF
10780 #define HAVE_MOTIF_2_1 1
10783 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10784 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10785 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 ac_check_lib_save_LIBS
=$LIBS
10790 cat >conftest.
$ac_ext <<_ACEOF
10793 cat confdefs.h
>>conftest.
$ac_ext
10794 cat >>conftest.
$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10797 /* Override any gcc2 internal prototype to avoid an error. */
10801 /* We use char because int might match the return type of a gcc2
10802 builtin and then its argument prototype would still apply. */
10803 char XpCreateContext ();
10807 XpCreateContext ();
10812 rm -f conftest.
$ac_objext conftest
$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>conftest.er1
10816 grep -v '^ *+' conftest.er1
>conftest.err
10818 cat conftest.err
>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try
='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_lib_Xp_XpCreateContext
=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.
$ac_ext >&5
10838 ac_cv_lib_Xp_XpCreateContext
=no
10840 rm -f conftest.err conftest.
$ac_objext \
10841 conftest
$ac_exeext conftest.
$ac_ext
10842 LIBS
=$ac_check_lib_save_LIBS
10844 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10845 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10846 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10850 if test ${HAVE_LIBXP} = yes; then
10852 cat >>confdefs.h
<<\_ACEOF
10853 #define HAVE_LIBXP 1
10858 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10859 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10860 if test "${emacs_cv_lesstif+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 # We put this in CFLAGS temporarily to precede other -I options
10864 # that might be in CFLAGS temporarily.
10865 # We put this in CPPFLAGS where it precedes the other -I options.
10866 OLD_CPPFLAGS
=$CPPFLAGS
10868 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10869 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10870 cat >conftest.
$ac_ext <<_ACEOF
10873 cat confdefs.h
>>conftest.
$ac_ext
10874 cat >>conftest.
$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10885 rm -f conftest.
$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>conftest.er1
10889 grep -v '^ *+' conftest.er1
>conftest.err
10891 cat conftest.err
>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try
='test -s conftest.$ac_objext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 emacs_cv_lesstif
=yes
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.
$ac_ext >&5
10911 emacs_cv_lesstif
=no
10913 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10915 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10916 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10917 if test $emacs_cv_lesstif = yes; then
10918 # Make sure this -I option remains in CPPFLAGS after it is set
10919 # back to REAL_CPPFLAGS.
10920 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10921 # have those other -I options anyway. Ultimately, having this
10922 # directory ultimately in CPPFLAGS will be enough.
10923 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10924 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10927 CPPFLAGS
=$OLD_CPPFLAGS
10932 ### Is -lXaw3d available?
10934 if test "${HAVE_X11}" = "yes"; then
10935 if test "${USE_X_TOOLKIT}" != "none"; then
10936 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10937 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10938 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.
$ac_ext <<_ACEOF
10944 cat confdefs.h
>>conftest.
$ac_ext
10945 cat >>conftest.
$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <X11/Xaw3d/Scrollbar.h>
10949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10952 grep -v '^ *+' conftest.er1
>conftest.err
10954 cat conftest.err
>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } >/dev
/null
; then
10957 if test -s conftest.err
; then
10958 ac_cpp_err
=$ac_c_preproc_warn_flag
10959 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10966 if test -z "$ac_cpp_err"; then
10967 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.
$ac_ext >&5
10972 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10974 rm -f conftest.err conftest.
$ac_ext
10976 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10977 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10978 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10979 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10980 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10981 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 ac_check_lib_save_LIBS
=$LIBS
10985 LIBS
="-lXaw3d $LIBS"
10986 cat >conftest.
$ac_ext <<_ACEOF
10989 cat confdefs.h
>>conftest.
$ac_ext
10990 cat >>conftest.
$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10993 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char XawScrollbarSetThumb ();
11003 XawScrollbarSetThumb ();
11008 rm -f conftest.
$ac_objext conftest
$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>conftest.er1
11012 grep -v '^ *+' conftest.er1
>conftest.err
11014 cat conftest.err
>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try
='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.
$ac_ext >&5
11034 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11036 rm -f conftest.err conftest.
$ac_objext \
11037 conftest
$ac_exeext conftest.
$ac_ext
11038 LIBS
=$ac_check_lib_save_LIBS
11040 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11041 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11042 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11049 if test "${HAVE_XAW3D}" = "yes"; then
11051 cat >>confdefs.h
<<\_ACEOF
11052 #define HAVE_XAW3D 1
11061 USE_TOOLKIT_SCROLL_BARS
=no
11062 if test "${with_toolkit_scroll_bars}" != "no"; then
11063 if test "${USE_X_TOOLKIT}" != "none"; then
11064 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11065 cat >>confdefs.h
<<\_ACEOF
11066 #define USE_TOOLKIT_SCROLL_BARS 1
11070 USE_TOOLKIT_SCROLL_BARS
=yes
11071 elif test "${HAVE_XAW3D}" = "yes"; then
11072 cat >>confdefs.h
<<\_ACEOF
11073 #define USE_TOOLKIT_SCROLL_BARS 1
11076 USE_TOOLKIT_SCROLL_BARS
=yes
11078 elif test "${HAVE_GTK}" = "yes"; then
11079 cat >>confdefs.h
<<\_ACEOF
11080 #define USE_TOOLKIT_SCROLL_BARS 1
11083 USE_TOOLKIT_SCROLL_BARS
=yes
11084 elif test "${HAVE_CARBON}" = "yes"; then
11085 cat >>confdefs.h
<<\_ACEOF
11086 #define USE_TOOLKIT_SCROLL_BARS 1
11089 USE_TOOLKIT_SCROLL_BARS
=yes
11093 cat >conftest.
$ac_ext <<_ACEOF
11096 cat confdefs.h
>>conftest.
$ac_ext
11097 cat >>conftest.
$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11100 #include <X11/Xlib.h>
11101 #include <X11/Xresource.h>
11110 rm -f conftest.
$ac_objext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112 (eval $ac_compile) 2>conftest.er1
11114 grep -v '^ *+' conftest.er1
>conftest.err
11116 cat conftest.err
>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try
='test -s conftest.$ac_objext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11133 cat >>confdefs.h
<<\_ACEOF
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.
$ac_ext >&5
11143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11146 if test "${with_xim}" != "no"; then
11148 cat >>confdefs.h
<<\_ACEOF
11155 if test "${HAVE_XIM}" != "no"; then
11156 late_CFLAGS
=$CFLAGS
11157 if test "$GCC" = yes; then
11158 CFLAGS
="$CFLAGS --pedantic-errors"
11160 cat >conftest.
$ac_ext <<_ACEOF
11163 cat confdefs.h
>>conftest.
$ac_ext
11164 cat >>conftest.
$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11167 #include <X11/Xlib.h>
11168 #include <X11/Xresource.h>
11177 XPointer *client_data;
11179 /* If we're not using GCC, it's probably not XFree86, and this is
11180 probably right, but we can't use something like --pedantic-errors. */
11181 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11182 char*, XIMProc, XPointer*);
11184 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11190 rm -f conftest.
$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>conftest.er1
11194 grep -v '^ *+' conftest.er1
>conftest.err
11196 cat conftest.err
>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try
='test -s conftest.$ac_objext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 emacs_cv_arg6_star
=yes
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.
$ac_ext >&5
11217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11219 if test "$emacs_cv_arg6_star" = yes; then
11220 cat >>confdefs.h
<<\_ACEOF
11221 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11225 cat >>confdefs.h
<<\_ACEOF
11226 #define XRegisterIMInstantiateCallback_arg6 XPointer
11230 CFLAGS
=$late_CFLAGS
11233 ### Use -lXpm if available, unless `--with-xpm=no'.
11235 if test "${HAVE_X11}" = "yes"; then
11236 if test "${with_xpm}" != "no"; then
11237 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11238 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11239 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11240 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11244 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11246 # Is the header compilable?
11247 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11248 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11249 cat >conftest.
$ac_ext <<_ACEOF
11252 cat confdefs.h
>>conftest.
$ac_ext
11253 cat >>conftest.
$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11256 #include <X11/xpm.h>
11258 rm -f conftest.
$ac_objext
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>conftest.er1
11262 grep -v '^ *+' conftest.er1
>conftest.err
11264 cat conftest.err
>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try
='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_header_compiler
=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.
$ac_ext >&5
11284 ac_header_compiler
=no
11286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11288 echo "${ECHO_T}$ac_header_compiler" >&6
11290 # Is the header present?
11291 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11292 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11293 cat >conftest.
$ac_ext <<_ACEOF
11296 cat confdefs.h
>>conftest.
$ac_ext
11297 cat >>conftest.
$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <X11/xpm.h>
11301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11302 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11304 grep -v '^ *+' conftest.er1
>conftest.err
11306 cat conftest.err
>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } >/dev
/null
; then
11309 if test -s conftest.err
; then
11310 ac_cpp_err
=$ac_c_preproc_warn_flag
11311 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11318 if test -z "$ac_cpp_err"; then
11319 ac_header_preproc
=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.
$ac_ext >&5
11324 ac_header_preproc
=no
11326 rm -f conftest.err conftest.
$ac_ext
11327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11328 echo "${ECHO_T}$ac_header_preproc" >&6
11330 # So? What about this header?
11331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11333 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11334 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11336 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11337 ac_header_preproc
=yes
11340 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11341 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11343 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11345 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11347 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11349 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11351 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11354 ## ------------------------------------------ ##
11355 ## Report this to the AC_PACKAGE_NAME lists. ##
11356 ## ------------------------------------------ ##
11359 sed "s/^/$as_me: WARNING: /" >&2
11362 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11363 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11364 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11369 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11370 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11373 if test $ac_cv_header_X11_xpm_h = yes; then
11374 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11375 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11376 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 ac_check_lib_save_LIBS
=$LIBS
11380 LIBS
="-lXpm -lX11 $LIBS"
11381 cat >conftest.
$ac_ext <<_ACEOF
11384 cat confdefs.h
>>conftest.
$ac_ext
11385 cat >>conftest.
$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11388 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11394 char XpmReadFileToPixmap ();
11398 XpmReadFileToPixmap ();
11403 rm -f conftest.
$ac_objext conftest
$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405 (eval $ac_link) 2>conftest.er1
11407 grep -v '^ *+' conftest.er1
>conftest.err
11409 cat conftest.err
>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try
='test -s conftest$ac_exeext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.
$ac_ext >&5
11429 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11431 rm -f conftest.err conftest.
$ac_objext \
11432 conftest
$ac_exeext conftest.
$ac_ext
11433 LIBS
=$ac_check_lib_save_LIBS
11435 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11436 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11437 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11444 if test "${HAVE_XPM}" = "yes"; then
11445 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11446 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11447 cat >conftest.
$ac_ext <<_ACEOF
11450 cat confdefs.h
>>conftest.
$ac_ext
11451 cat >>conftest.
$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include "X11/xpm.h"
11454 #ifndef XpmReturnAllocPixels
11455 no_return_alloc_pixels
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11468 if test "${HAVE_XPM}" = "yes"; then
11469 echo "$as_me:$LINENO: result: yes" >&5
11470 echo "${ECHO_T}yes" >&6
11472 echo "$as_me:$LINENO: result: no" >&5
11473 echo "${ECHO_T}no" >&6
11478 if test "${HAVE_XPM}" = "yes"; then
11480 cat >>confdefs.h
<<\_ACEOF
11487 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11489 if test "${HAVE_X11}" = "yes"; then
11490 if test "${with_jpeg}" != "no"; then
11491 if test "${ac_cv_header_jerror_h+set}" = set; then
11492 echo "$as_me:$LINENO: checking for jerror.h" >&5
11493 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11494 if test "${ac_cv_header_jerror_h+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11498 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11500 # Is the header compilable?
11501 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11502 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 $ac_includes_default
11510 #include <jerror.h>
11512 rm -f conftest.
$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11516 grep -v '^ *+' conftest.er1
>conftest.err
11518 cat conftest.err
>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try
='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_header_compiler
=yes
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.
$ac_ext >&5
11538 ac_header_compiler
=no
11540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11542 echo "${ECHO_T}$ac_header_compiler" >&6
11544 # Is the header present?
11545 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11546 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11547 cat >conftest.
$ac_ext <<_ACEOF
11550 cat confdefs.h
>>conftest.
$ac_ext
11551 cat >>conftest.
$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 #include <jerror.h>
11555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11556 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11558 grep -v '^ *+' conftest.er1
>conftest.err
11560 cat conftest.err
>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } >/dev
/null
; then
11563 if test -s conftest.err
; then
11564 ac_cpp_err
=$ac_c_preproc_warn_flag
11565 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11572 if test -z "$ac_cpp_err"; then
11573 ac_header_preproc
=yes
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.
$ac_ext >&5
11578 ac_header_preproc
=no
11580 rm -f conftest.err conftest.
$ac_ext
11581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11582 echo "${ECHO_T}$ac_header_preproc" >&6
11584 # So? What about this header?
11585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11588 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11590 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11591 ac_header_preproc
=yes
11594 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11595 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11597 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11599 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11601 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11603 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11605 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11608 ## ------------------------------------------ ##
11609 ## Report this to the AC_PACKAGE_NAME lists. ##
11610 ## ------------------------------------------ ##
11613 sed "s/^/$as_me: WARNING: /" >&2
11616 echo "$as_me:$LINENO: checking for jerror.h" >&5
11617 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11618 if test "${ac_cv_header_jerror_h+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 ac_cv_header_jerror_h
=$ac_header_preproc
11623 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11624 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11627 if test $ac_cv_header_jerror_h = yes; then
11628 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11629 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11630 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 ac_check_lib_save_LIBS
=$LIBS
11634 LIBS
="-ljpeg $LIBS"
11635 cat >conftest.
$ac_ext <<_ACEOF
11638 cat confdefs.h
>>conftest.
$ac_ext
11639 cat >>conftest.
$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11642 /* Override any gcc2 internal prototype to avoid an error. */
11646 /* We use char because int might match the return type of a gcc2
11647 builtin and then its argument prototype would still apply. */
11648 char jpeg_destroy_compress ();
11652 jpeg_destroy_compress ();
11657 rm -f conftest.
$ac_objext conftest
$ac_exeext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>conftest.er1
11661 grep -v '^ *+' conftest.er1
>conftest.err
11663 cat conftest.err
>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try
='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.
$ac_ext >&5
11683 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11685 rm -f conftest.err conftest.
$ac_objext \
11686 conftest
$ac_exeext conftest.
$ac_ext
11687 LIBS
=$ac_check_lib_save_LIBS
11689 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11690 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11691 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11701 if test "${HAVE_JPEG}" = "yes"; then
11702 cat >>confdefs.h
<<\_ACEOF
11703 #define HAVE_JPEG 1
11706 cat >conftest.
$ac_ext <<_ACEOF
11709 cat confdefs.h
>>conftest.
$ac_ext
11710 cat >>conftest.
$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11712 #include <jpeglib.h>
11713 version=JPEG_LIB_VERSION
11716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11717 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11718 cat >>confdefs.h
<<\_ACEOF
11719 #define HAVE_JPEG 1
11723 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11724 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11732 ### Use -lpng if available, unless `--with-png=no'.
11734 if test "${HAVE_X11}" = "yes"; then
11735 if test "${with_png}" != "no"; then
11736 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11737 # in /usr/include/libpng.
11740 for ac_header
in png.h libpng
/png.h
11742 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11744 echo "$as_me:$LINENO: checking for $ac_header" >&5
11745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11752 # Is the header compilable?
11753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 $ac_includes_default
11762 #include <$ac_header>
11764 rm -f conftest.
$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>conftest.er1
11768 grep -v '^ *+' conftest.er1
>conftest.err
11770 cat conftest.err
>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try
='test -s conftest.$ac_objext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_header_compiler
=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.
$ac_ext >&5
11790 ac_header_compiler
=no
11792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11794 echo "${ECHO_T}$ac_header_compiler" >&6
11796 # Is the header present?
11797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11799 cat >conftest.
$ac_ext <<_ACEOF
11802 cat confdefs.h
>>conftest.
$ac_ext
11803 cat >>conftest.
$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 #include <$ac_header>
11807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11808 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11810 grep -v '^ *+' conftest.er1
>conftest.err
11812 cat conftest.err
>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } >/dev
/null
; then
11815 if test -s conftest.err
; then
11816 ac_cpp_err
=$ac_c_preproc_warn_flag
11817 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11824 if test -z "$ac_cpp_err"; then
11825 ac_header_preproc
=yes
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.
$ac_ext >&5
11830 ac_header_preproc
=no
11832 rm -f conftest.err conftest.
$ac_ext
11833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc
=yes
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11860 ## ------------------------------------------ ##
11861 ## Report this to the AC_PACKAGE_NAME lists. ##
11862 ## ------------------------------------------ ##
11865 sed "s/^/$as_me: WARNING: /" >&2
11868 echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 eval "$as_ac_Header=\$ac_header_preproc"
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11880 cat >>confdefs.h
<<_ACEOF
11881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11888 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11889 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11890 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11891 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 ac_check_lib_save_LIBS
=$LIBS
11895 LIBS
="-lpng -lz -lm $LIBS"
11896 cat >conftest.
$ac_ext <<_ACEOF
11899 cat confdefs.h
>>conftest.
$ac_ext
11900 cat >>conftest.
$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11903 /* Override any gcc2 internal prototype to avoid an error. */
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909 char png_get_channels ();
11913 png_get_channels ();
11918 rm -f conftest.
$ac_objext conftest
$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1
>conftest.err
11924 cat conftest.err
>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try
='test -s conftest$ac_exeext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_lib_png_png_get_channels
=yes
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.
$ac_ext >&5
11944 ac_cv_lib_png_png_get_channels
=no
11946 rm -f conftest.err conftest.
$ac_objext \
11947 conftest
$ac_exeext conftest.
$ac_ext
11948 LIBS
=$ac_check_lib_save_LIBS
11950 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11951 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11952 if test $ac_cv_lib_png_png_get_channels = yes; then
11959 if test "${HAVE_PNG}" = "yes"; then
11961 cat >>confdefs.h
<<\_ACEOF
11968 ### Use -ltiff if available, unless `--with-tiff=no'.
11970 if test "${HAVE_X11}" = "yes"; then
11971 if test "${with_tiff}" != "no"; then
11972 if test "${ac_cv_header_tiffio_h+set}" = set; then
11973 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11974 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11975 if test "${ac_cv_header_tiffio_h+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11979 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11981 # Is the header compilable?
11982 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11983 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11984 cat >conftest.
$ac_ext <<_ACEOF
11987 cat confdefs.h
>>conftest.
$ac_ext
11988 cat >>conftest.
$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 $ac_includes_default
11991 #include <tiffio.h>
11993 rm -f conftest.
$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11997 grep -v '^ *+' conftest.er1
>conftest.err
11999 cat conftest.err
>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try
='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_header_compiler
=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.
$ac_ext >&5
12019 ac_header_compiler
=no
12021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12023 echo "${ECHO_T}$ac_header_compiler" >&6
12025 # Is the header present?
12026 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12027 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12028 cat >conftest.
$ac_ext <<_ACEOF
12031 cat confdefs.h
>>conftest.
$ac_ext
12032 cat >>conftest.
$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 #include <tiffio.h>
12036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12039 grep -v '^ *+' conftest.er1
>conftest.err
12041 cat conftest.err
>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } >/dev
/null
; then
12044 if test -s conftest.err
; then
12045 ac_cpp_err
=$ac_c_preproc_warn_flag
12046 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12053 if test -z "$ac_cpp_err"; then
12054 ac_header_preproc
=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.
$ac_ext >&5
12059 ac_header_preproc
=no
12061 rm -f conftest.err conftest.
$ac_ext
12062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12063 echo "${ECHO_T}$ac_header_preproc" >&6
12065 # So? What about this header?
12066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12068 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12069 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12070 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12071 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12072 ac_header_preproc
=yes
12075 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12076 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12078 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12080 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12082 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12084 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12086 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12089 ## ------------------------------------------ ##
12090 ## Report this to the AC_PACKAGE_NAME lists. ##
12091 ## ------------------------------------------ ##
12094 sed "s/^/$as_me: WARNING: /" >&2
12097 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12098 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12099 if test "${ac_cv_header_tiffio_h+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 ac_cv_header_tiffio_h
=$ac_header_preproc
12104 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12105 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12108 if test $ac_cv_header_tiffio_h = yes; then
12110 # At least one tiff package requires the jpeg library.
12111 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12112 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12113 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12114 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 ac_check_lib_save_LIBS
=$LIBS
12118 LIBS
="-ltiff $tifflibs $LIBS"
12119 cat >conftest.
$ac_ext <<_ACEOF
12122 cat confdefs.h
>>conftest.
$ac_ext
12123 cat >>conftest.
$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12126 /* Override any gcc2 internal prototype to avoid an error. */
12130 /* We use char because int might match the return type of a gcc2
12131 builtin and then its argument prototype would still apply. */
12132 char TIFFGetVersion ();
12141 rm -f conftest.
$ac_objext conftest
$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143 (eval $ac_link) 2>conftest.er1
12145 grep -v '^ *+' conftest.er1
>conftest.err
12147 cat conftest.err
>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try
='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_lib_tiff_TIFFGetVersion
=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.
$ac_ext >&5
12167 ac_cv_lib_tiff_TIFFGetVersion
=no
12169 rm -f conftest.err conftest.
$ac_objext \
12170 conftest
$ac_exeext conftest.
$ac_ext
12171 LIBS
=$ac_check_lib_save_LIBS
12173 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12174 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12175 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12184 if test "${HAVE_TIFF}" = "yes"; then
12186 cat >>confdefs.h
<<\_ACEOF
12187 #define HAVE_TIFF 1
12193 ### Use -lgif if available, unless `--with-gif=no'.
12195 if test "${HAVE_X11}" = "yes"; then
12196 if test "${with_gif}" != "no"; then
12197 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12198 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12199 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12200 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12203 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12204 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12206 # Is the header compilable?
12207 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12208 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12209 cat >conftest.
$ac_ext <<_ACEOF
12212 cat confdefs.h
>>conftest.
$ac_ext
12213 cat >>conftest.
$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 $ac_includes_default
12216 #include <gif_lib.h>
12218 rm -f conftest.
$ac_objext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220 (eval $ac_compile) 2>conftest.er1
12222 grep -v '^ *+' conftest.er1
>conftest.err
12224 cat conftest.err
>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try
='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_header_compiler
=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.
$ac_ext >&5
12244 ac_header_compiler
=no
12246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12248 echo "${ECHO_T}$ac_header_compiler" >&6
12250 # Is the header present?
12251 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12252 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12253 cat >conftest.
$ac_ext <<_ACEOF
12256 cat confdefs.h
>>conftest.
$ac_ext
12257 cat >>conftest.
$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <gif_lib.h>
12261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12262 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12264 grep -v '^ *+' conftest.er1
>conftest.err
12266 cat conftest.err
>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } >/dev
/null
; then
12269 if test -s conftest.err
; then
12270 ac_cpp_err
=$ac_c_preproc_warn_flag
12271 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12278 if test -z "$ac_cpp_err"; then
12279 ac_header_preproc
=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.
$ac_ext >&5
12284 ac_header_preproc
=no
12286 rm -f conftest.err conftest.
$ac_ext
12287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12288 echo "${ECHO_T}$ac_header_preproc" >&6
12290 # So? What about this header?
12291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12293 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12294 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12296 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12297 ac_header_preproc
=yes
12300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12301 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12303 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12305 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12307 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12309 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12311 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12314 ## ------------------------------------------ ##
12315 ## Report this to the AC_PACKAGE_NAME lists. ##
12316 ## ------------------------------------------ ##
12319 sed "s/^/$as_me: WARNING: /" >&2
12322 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12323 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12324 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 ac_cv_header_gif_lib_h
=$ac_header_preproc
12329 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12330 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12333 if test $ac_cv_header_gif_lib_h = yes; then
12334 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12335 # Earlier versions can crash Emacs.
12336 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12337 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12338 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_check_lib_save_LIBS
=$LIBS
12342 LIBS
="-lungif $LIBS"
12343 cat >conftest.
$ac_ext <<_ACEOF
12346 cat confdefs.h
>>conftest.
$ac_ext
12347 cat >>conftest.
$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12350 /* Override any gcc2 internal prototype to avoid an error. */
12354 /* We use char because int might match the return type of a gcc2
12355 builtin and then its argument prototype would still apply. */
12356 char EGifPutExtensionLast ();
12360 EGifPutExtensionLast ();
12365 rm -f conftest.
$ac_objext conftest
$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367 (eval $ac_link) 2>conftest.er1
12369 grep -v '^ *+' conftest.er1
>conftest.err
12371 cat conftest.err
>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try
='test -s conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.
$ac_ext >&5
12391 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12393 rm -f conftest.err conftest.
$ac_objext \
12394 conftest
$ac_exeext conftest.
$ac_ext
12395 LIBS
=$ac_check_lib_save_LIBS
12397 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12398 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12399 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12408 if test "${HAVE_GIF}" = "yes"; then
12410 cat >>confdefs.h
<<\_ACEOF
12417 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12418 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12419 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12420 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12424 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12426 # Is the header compilable?
12427 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12428 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12429 cat >conftest.
$ac_ext <<_ACEOF
12432 cat confdefs.h
>>conftest.
$ac_ext
12433 cat >>conftest.
$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435 $ac_includes_default
12436 #include <malloc/malloc.h>
12438 rm -f conftest.
$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>conftest.er1
12442 grep -v '^ *+' conftest.er1
>conftest.err
12444 cat conftest.err
>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try
='test -s conftest.$ac_objext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_header_compiler
=yes
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.
$ac_ext >&5
12464 ac_header_compiler
=no
12466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12468 echo "${ECHO_T}$ac_header_compiler" >&6
12470 # Is the header present?
12471 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12472 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12473 cat >conftest.
$ac_ext <<_ACEOF
12476 cat confdefs.h
>>conftest.
$ac_ext
12477 cat >>conftest.
$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 #include <malloc/malloc.h>
12481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12482 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12484 grep -v '^ *+' conftest.er1
>conftest.err
12486 cat conftest.err
>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } >/dev
/null
; then
12489 if test -s conftest.err
; then
12490 ac_cpp_err
=$ac_c_preproc_warn_flag
12491 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12498 if test -z "$ac_cpp_err"; then
12499 ac_header_preproc
=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.
$ac_ext >&5
12504 ac_header_preproc
=no
12506 rm -f conftest.err conftest.
$ac_ext
12507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12508 echo "${ECHO_T}$ac_header_preproc" >&6
12510 # So? What about this header?
12511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12513 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12514 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12516 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12517 ac_header_preproc
=yes
12520 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12521 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12523 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12525 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12527 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12528 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12529 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12531 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12534 ## ------------------------------------------ ##
12535 ## Report this to the AC_PACKAGE_NAME lists. ##
12536 ## ------------------------------------------ ##
12539 sed "s/^/$as_me: WARNING: /" >&2
12542 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12543 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12544 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12549 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12550 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12553 if test $ac_cv_header_malloc_malloc_h = yes; then
12555 cat >>confdefs.h
<<\_ACEOF
12556 #define HAVE_MALLOC_MALLOC_H 1
12563 ### Use Mac OS X Carbon API to implement GUI.
12564 if test "${HAVE_CARBON}" = "yes"; then
12566 cat >>confdefs.h
<<\_ACEOF
12567 #define HAVE_CARBON 1
12570 ## Specify the install directory
12572 if test "${carbon_appdir_x}" != ""; then
12573 case ${carbon_appdir_x} in
12574 y | ye |
yes) carbon_appdir
=/Applications
;;
12575 * ) carbon_appdir
=${carbon_appdir_x} ;;
12578 # We also have mouse menus.
12581 tmp_CFLAGS
="$CFLAGS"
12582 CFLAGS
="$CFLAGS -framework Carbon"
12583 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12584 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12585 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 cat >conftest.
$ac_ext <<_ACEOF
12591 cat confdefs.h
>>conftest.
$ac_ext
12592 cat >>conftest.
$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12596 #define CancelMenuTracking innocuous_CancelMenuTracking
12598 /* System header to define __stub macros and hopefully few prototypes,
12599 which can conflict with char CancelMenuTracking (); below.
12600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12601 <limits.h> exists even on freestanding compilers. */
12604 # include <limits.h>
12606 # include <assert.h>
12609 #undef CancelMenuTracking
12611 /* Override any gcc2 internal prototype to avoid an error. */
12616 /* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12618 char CancelMenuTracking ();
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12625 char (*f) () = CancelMenuTracking;
12634 return f != CancelMenuTracking;
12639 rm -f conftest.
$ac_objext conftest
$ac_exeext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12641 (eval $ac_link) 2>conftest.er1
12643 grep -v '^ *+' conftest.er1
>conftest.err
12645 cat conftest.err
>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try
='test -s conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 ac_cv_func_CancelMenuTracking
=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.
$ac_ext >&5
12665 ac_cv_func_CancelMenuTracking
=no
12667 rm -f conftest.err conftest.
$ac_objext \
12668 conftest
$ac_exeext conftest.
$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12671 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12672 if test $ac_cv_func_CancelMenuTracking = yes; then
12678 if test "$have_cmt" = yes; then
12680 cat >>confdefs.h
<<\_ACEOF
12681 #define HAVE_CANCELMENUTRACKING 1
12685 CFLAGS
="$tmp_CFLAGS"
12688 ### Use session management (-lSM -lICE) if available
12690 if test "${HAVE_X11}" = "yes"; then
12691 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12692 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12693 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12694 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12698 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12700 # Is the header compilable?
12701 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12702 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12703 cat >conftest.
$ac_ext <<_ACEOF
12706 cat confdefs.h
>>conftest.
$ac_ext
12707 cat >>conftest.
$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 $ac_includes_default
12710 #include <X11/SM/SMlib.h>
12712 rm -f conftest.
$ac_objext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>conftest.er1
12716 grep -v '^ *+' conftest.er1
>conftest.err
12718 cat conftest.err
>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try
='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_header_compiler
=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.
$ac_ext >&5
12738 ac_header_compiler
=no
12740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12742 echo "${ECHO_T}$ac_header_compiler" >&6
12744 # Is the header present?
12745 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12746 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12747 cat >conftest.
$ac_ext <<_ACEOF
12750 cat confdefs.h
>>conftest.
$ac_ext
12751 cat >>conftest.
$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 #include <X11/SM/SMlib.h>
12755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12756 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12758 grep -v '^ *+' conftest.er1
>conftest.err
12760 cat conftest.err
>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } >/dev
/null
; then
12763 if test -s conftest.err
; then
12764 ac_cpp_err
=$ac_c_preproc_warn_flag
12765 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12772 if test -z "$ac_cpp_err"; then
12773 ac_header_preproc
=yes
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.
$ac_ext >&5
12778 ac_header_preproc
=no
12780 rm -f conftest.err conftest.
$ac_ext
12781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12782 echo "${ECHO_T}$ac_header_preproc" >&6
12784 # So? What about this header?
12785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12787 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12788 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12790 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12791 ac_header_preproc
=yes
12794 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12795 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12797 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12799 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12801 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12803 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12805 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12808 ## ------------------------------------------ ##
12809 ## Report this to the AC_PACKAGE_NAME lists. ##
12810 ## ------------------------------------------ ##
12813 sed "s/^/$as_me: WARNING: /" >&2
12816 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12817 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12818 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12823 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12824 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12827 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12828 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12829 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12830 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 ac_check_lib_save_LIBS
=$LIBS
12834 LIBS
="-lSM -lICE $LIBS"
12835 cat >conftest.
$ac_ext <<_ACEOF
12838 cat confdefs.h
>>conftest.
$ac_ext
12839 cat >>conftest.
$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12842 /* Override any gcc2 internal prototype to avoid an error. */
12846 /* We use char because int might match the return type of a gcc2
12847 builtin and then its argument prototype would still apply. */
12848 char SmcOpenConnection ();
12852 SmcOpenConnection ();
12857 rm -f conftest.
$ac_objext conftest
$ac_exeext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859 (eval $ac_link) 2>conftest.er1
12861 grep -v '^ *+' conftest.er1
>conftest.err
12863 cat conftest.err
>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try
='test -s conftest$ac_exeext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_lib_SM_SmcOpenConnection
=yes
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.
$ac_ext >&5
12883 ac_cv_lib_SM_SmcOpenConnection
=no
12885 rm -f conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12887 LIBS
=$ac_check_lib_save_LIBS
12889 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12890 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12891 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12899 if test "${HAVE_X_SM}" = "yes"; then
12901 cat >>confdefs.h
<<\_ACEOF
12902 #define HAVE_X_SM 1
12907 *) LIBS
="-lSM -lICE $LIBS" ;;
12912 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12913 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12914 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12915 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 cat >conftest.
$ac_ext <<_ACEOF
12921 cat confdefs.h
>>conftest.
$ac_ext
12922 cat >>conftest.
$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12933 rm -f conftest.
$ac_objext conftest
$ac_exeext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12935 (eval $ac_link) 2>conftest.er1
12937 grep -v '^ *+' conftest.er1
>conftest.err
12939 cat conftest.err
>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try
='test -s conftest$ac_exeext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 emacs_cv_netdb_declares_h_errno
=yes
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.
$ac_ext >&5
12959 emacs_cv_netdb_declares_h_errno
=no
12961 rm -f conftest.err conftest.
$ac_objext \
12962 conftest
$ac_exeext conftest.
$ac_ext
12964 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12965 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12966 if test $emacs_cv_netdb_declares_h_errno = yes; then
12968 cat >>confdefs.h
<<\_ACEOF
12969 #define HAVE_H_ERRNO 1
12974 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12975 # for constant arguments. Useless!
12976 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12977 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12978 if test "${ac_cv_working_alloca_h+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 cat >conftest.
$ac_ext <<_ACEOF
12984 cat confdefs.h
>>conftest.
$ac_ext
12985 cat >>conftest.
$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 #include <alloca.h>
12991 char *p = (char *) alloca (2 * sizeof (int));
12996 rm -f conftest.
$ac_objext conftest
$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
13000 grep -v '^ *+' conftest.er1
>conftest.err
13002 cat conftest.err
>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try
='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_working_alloca_h
=yes
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.
$ac_ext >&5
13022 ac_cv_working_alloca_h
=no
13024 rm -f conftest.err conftest.
$ac_objext \
13025 conftest
$ac_exeext conftest.
$ac_ext
13027 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13028 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13029 if test $ac_cv_working_alloca_h = yes; then
13031 cat >>confdefs.h
<<\_ACEOF
13032 #define HAVE_ALLOCA_H 1
13037 echo "$as_me:$LINENO: checking for alloca" >&5
13038 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13039 if test "${ac_cv_func_alloca_works+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 cat >conftest.
$ac_ext <<_ACEOF
13045 cat confdefs.h
>>conftest.
$ac_ext
13046 cat >>conftest.
$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 # define alloca __builtin_alloca
13052 # include <malloc.h>
13053 # define alloca _alloca
13056 # include <alloca.h>
13061 # ifndef alloca /* predefined by HP cc +Olibcalls */
13072 char *p = (char *) alloca (1);
13077 rm -f conftest.
$ac_objext conftest
$ac_exeext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13079 (eval $ac_link) 2>conftest.er1
13081 grep -v '^ *+' conftest.er1
>conftest.err
13083 cat conftest.err
>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try
='test -s conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_func_alloca_works
=yes
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.
$ac_ext >&5
13103 ac_cv_func_alloca_works
=no
13105 rm -f conftest.err conftest.
$ac_objext \
13106 conftest
$ac_exeext conftest.
$ac_ext
13108 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13109 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13111 if test $ac_cv_func_alloca_works = yes; then
13113 cat >>confdefs.h
<<\_ACEOF
13114 #define HAVE_ALLOCA 1
13118 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13119 # that cause trouble. Some versions do not even contain alloca or
13120 # contain a buggy version. If you still want to use their alloca,
13121 # use ar to extract alloca.o from them instead of compiling alloca.c.
13123 ALLOCA
=alloca.
$ac_objext
13125 cat >>confdefs.h
<<\_ACEOF
13130 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13131 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13132 if test "${ac_cv_os_cray+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 cat >conftest.
$ac_ext <<_ACEOF
13138 cat confdefs.h
>>conftest.
$ac_ext
13139 cat >>conftest.
$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #if defined(CRAY) && ! defined(CRAY2)
13148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13149 $EGREP "webecray" >/dev
/null
2>&1; then
13157 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13158 echo "${ECHO_T}$ac_cv_os_cray" >&6
13159 if test $ac_cv_os_cray = yes; then
13160 for ac_func
in _getb67 GETB67 getb67
; do
13161 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13162 echo "$as_me:$LINENO: checking for $ac_func" >&5
13163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13164 if eval "test \"\${$as_ac_var+set}\" = set"; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 cat >conftest.
$ac_ext <<_ACEOF
13170 cat confdefs.h
>>conftest.
$ac_ext
13171 cat >>conftest.
$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13175 #define $ac_func innocuous_$ac_func
13177 /* System header to define __stub macros and hopefully few prototypes,
13178 which can conflict with char $ac_func (); below.
13179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13180 <limits.h> exists even on freestanding compilers. */
13183 # include <limits.h>
13185 # include <assert.h>
13190 /* Override any gcc2 internal prototype to avoid an error. */
13195 /* We use char because int might match the return type of a gcc2
13196 builtin and then its argument prototype would still apply. */
13198 /* The GNU C library defines this for functions which it implements
13199 to always fail with ENOSYS. Some functions are actually named
13200 something starting with __ and the normal name is an alias. */
13201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13204 char (*f) () = $ac_func;
13213 return f != $ac_func;
13218 rm -f conftest.
$ac_objext conftest
$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220 (eval $ac_link) 2>conftest.er1
13222 grep -v '^ *+' conftest.er1
>conftest.err
13224 cat conftest.err
>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try
='test -s conftest$ac_exeext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 eval "$as_ac_var=yes"
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.
$ac_ext >&5
13244 eval "$as_ac_var=no"
13246 rm -f conftest.err conftest.
$ac_objext \
13247 conftest
$ac_exeext conftest.
$ac_ext
13249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13251 if test `eval echo '${'$as_ac_var'}'` = yes; then
13253 cat >>confdefs.h
<<_ACEOF
13254 #define CRAY_STACKSEG_END $ac_func
13263 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13264 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13265 if test "${ac_cv_c_stack_direction+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 if test "$cross_compiling" = yes; then
13269 ac_cv_c_stack_direction
=0
13271 cat >conftest.
$ac_ext <<_ACEOF
13274 cat confdefs.h
>>conftest.
$ac_ext
13275 cat >>conftest.
$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 find_stack_direction ()
13280 static char *addr = 0;
13285 return find_stack_direction ();
13288 return (&dummy > addr) ? 1 : -1;
13294 exit (find_stack_direction () < 0);
13297 rm -f conftest
$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; }; then
13308 ac_cv_c_stack_direction
=1
13310 echo "$as_me: program exited with status $ac_status" >&5
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.
$ac_ext >&5
13314 ( exit $ac_status )
13315 ac_cv_c_stack_direction
=-1
13317 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13320 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13321 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13323 cat >>confdefs.h
<<_ACEOF
13324 #define STACK_DIRECTION $ac_cv_c_stack_direction
13331 # fmod, logb, and frexp are found in -lm on most systems.
13332 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13334 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13335 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13336 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_check_lib_save_LIBS
=$LIBS
13341 cat >conftest.
$ac_ext <<_ACEOF
13344 cat confdefs.h
>>conftest.
$ac_ext
13345 cat >>conftest.
$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 /* Override any gcc2 internal prototype to avoid an error. */
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13363 rm -f conftest.
$ac_objext conftest
$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>conftest.er1
13367 grep -v '^ *+' conftest.er1
>conftest.err
13369 cat conftest.err
>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; } &&
13378 { ac_try
='test -s conftest$ac_exeext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_cv_lib_m_sqrt
=yes
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.
$ac_ext >&5
13389 ac_cv_lib_m_sqrt
=no
13391 rm -f conftest.err conftest.
$ac_objext \
13392 conftest
$ac_exeext conftest.
$ac_ext
13393 LIBS
=$ac_check_lib_save_LIBS
13395 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13396 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13397 if test $ac_cv_lib_m_sqrt = yes; then
13398 cat >>confdefs.h
<<_ACEOF
13399 #define HAVE_LIBM 1
13407 # Check for mail-locking functions in a "mail" library. Probably this should
13408 # have the same check as for liblockfile below.
13410 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13411 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13412 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 ac_check_lib_save_LIBS
=$LIBS
13416 LIBS
="-lmail $LIBS"
13417 cat >conftest.
$ac_ext <<_ACEOF
13420 cat confdefs.h
>>conftest.
$ac_ext
13421 cat >>conftest.
$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13424 /* Override any gcc2 internal prototype to avoid an error. */
13428 /* We use char because int might match the return type of a gcc2
13429 builtin and then its argument prototype would still apply. */
13439 rm -f conftest.
$ac_objext conftest
$ac_exeext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>conftest.er1
13443 grep -v '^ *+' conftest.er1
>conftest.err
13445 cat conftest.err
>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try
='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_cv_lib_mail_maillock
=yes
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.
$ac_ext >&5
13465 ac_cv_lib_mail_maillock
=no
13467 rm -f conftest.err conftest.
$ac_objext \
13468 conftest
$ac_exeext conftest.
$ac_ext
13469 LIBS
=$ac_check_lib_save_LIBS
13471 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13472 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13473 if test $ac_cv_lib_mail_maillock = yes; then
13474 cat >>confdefs.h
<<_ACEOF
13475 #define HAVE_LIBMAIL 1
13478 LIBS
="-lmail $LIBS"
13483 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13484 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13485 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 ac_check_lib_save_LIBS
=$LIBS
13489 LIBS
="-llockfile $LIBS"
13490 cat >conftest.
$ac_ext <<_ACEOF
13493 cat confdefs.h
>>conftest.
$ac_ext
13494 cat >>conftest.
$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any gcc2 internal prototype to avoid an error. */
13501 /* We use char because int might match the return type of a gcc2
13502 builtin and then its argument prototype would still apply. */
13512 rm -f conftest.
$ac_objext conftest
$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>conftest.er1
13516 grep -v '^ *+' conftest.er1
>conftest.err
13518 cat conftest.err
>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try
='test -s conftest$ac_exeext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_lib_lockfile_maillock
=yes
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.
$ac_ext >&5
13538 ac_cv_lib_lockfile_maillock
=no
13540 rm -f conftest.err conftest.
$ac_objext \
13541 conftest
$ac_exeext conftest.
$ac_ext
13542 LIBS
=$ac_check_lib_save_LIBS
13544 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13545 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13546 if test $ac_cv_lib_lockfile_maillock = yes; then
13547 cat >>confdefs.h
<<_ACEOF
13548 #define HAVE_LIBLOCKFILE 1
13551 LIBS
="-llockfile $LIBS"
13555 # If we have the shared liblockfile, assume we must use it for mail
13556 # locking (e.g. Debian). If we couldn't link against liblockfile
13557 # (no liblockfile.a installed), ensure that we don't need to.
13558 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13559 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13560 set dummy liblockfile.so
; ac_word
=$2
13561 echo "$as_me:$LINENO: checking for $ac_word" >&5
13562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13563 if test "${ac_cv_prog_liblockfile+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 if test -n "$liblockfile"; then
13567 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13570 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13571 for as_dir
in $as_dummy
13574 test -z "$as_dir" && as_dir
=.
13575 for ac_exec_ext
in '' $ac_executable_extensions; do
13576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577 ac_cv_prog_liblockfile
="yes"
13578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13587 liblockfile
=$ac_cv_prog_liblockfile
13588 if test -n "$liblockfile"; then
13589 echo "$as_me:$LINENO: result: $liblockfile" >&5
13590 echo "${ECHO_T}$liblockfile" >&6
13592 echo "$as_me:$LINENO: result: no" >&5
13593 echo "${ECHO_T}no" >&6
13596 if test $ac_cv_prog_liblockfile = yes; then
13597 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13598 This probably means that movemail could lose mail.
13599 There may be a \`development' package to install containing liblockfile." >&5
13600 echo "$as_me: error: Shared liblockfile found but can't link against it.
13601 This probably means that movemail could lose mail.
13602 There may be a \`development' package to install containing liblockfile." >&2;}
13603 { (exit 1); exit 1; }; }
13608 for ac_func
in touchlock
13610 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13611 echo "$as_me:$LINENO: checking for $ac_func" >&5
13612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13613 if eval "test \"\${$as_ac_var+set}\" = set"; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 cat >conftest.
$ac_ext <<_ACEOF
13619 cat confdefs.h
>>conftest.
$ac_ext
13620 cat >>conftest.
$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13624 #define $ac_func innocuous_$ac_func
13626 /* System header to define __stub macros and hopefully few prototypes,
13627 which can conflict with char $ac_func (); below.
13628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13629 <limits.h> exists even on freestanding compilers. */
13632 # include <limits.h>
13634 # include <assert.h>
13639 /* Override any gcc2 internal prototype to avoid an error. */
13644 /* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13647 /* The GNU C library defines this for functions which it implements
13648 to always fail with ENOSYS. Some functions are actually named
13649 something starting with __ and the normal name is an alias. */
13650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13653 char (*f) () = $ac_func;
13662 return f != $ac_func;
13667 rm -f conftest.
$ac_objext conftest
$ac_exeext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13669 (eval $ac_link) 2>conftest.er1
13671 grep -v '^ *+' conftest.er1
>conftest.err
13673 cat conftest.err
>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try
='test -s conftest$ac_exeext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 eval "$as_ac_var=yes"
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.
$ac_ext >&5
13693 eval "$as_ac_var=no"
13695 rm -f conftest.err conftest.
$ac_objext \
13696 conftest
$ac_exeext conftest.
$ac_ext
13698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13700 if test `eval echo '${'$as_ac_var'}'` = yes; then
13701 cat >>confdefs.h
<<_ACEOF
13702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13709 for ac_header
in maillock.h
13711 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13713 echo "$as_me:$LINENO: checking for $ac_header" >&5
13714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13721 # Is the header compilable?
13722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13724 cat >conftest.
$ac_ext <<_ACEOF
13727 cat confdefs.h
>>conftest.
$ac_ext
13728 cat >>conftest.
$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 $ac_includes_default
13731 #include <$ac_header>
13733 rm -f conftest.
$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13737 grep -v '^ *+' conftest.er1
>conftest.err
13739 cat conftest.err
>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try
='test -s conftest.$ac_objext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_header_compiler
=yes
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.
$ac_ext >&5
13759 ac_header_compiler
=no
13761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13763 echo "${ECHO_T}$ac_header_compiler" >&6
13765 # Is the header present?
13766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13768 cat >conftest.
$ac_ext <<_ACEOF
13771 cat confdefs.h
>>conftest.
$ac_ext
13772 cat >>conftest.
$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 #include <$ac_header>
13776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13779 grep -v '^ *+' conftest.er1
>conftest.err
13781 cat conftest.err
>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } >/dev
/null
; then
13784 if test -s conftest.err
; then
13785 ac_cpp_err
=$ac_c_preproc_warn_flag
13786 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13793 if test -z "$ac_cpp_err"; then
13794 ac_header_preproc
=yes
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.
$ac_ext >&5
13799 ac_header_preproc
=no
13801 rm -f conftest.err conftest.
$ac_ext
13802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13803 echo "${ECHO_T}$ac_header_preproc" >&6
13805 # So? What about this header?
13806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13812 ac_header_preproc
=yes
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13829 ## ------------------------------------------ ##
13830 ## Report this to the AC_PACKAGE_NAME lists. ##
13831 ## ------------------------------------------ ##
13834 sed "s/^/$as_me: WARNING: /" >&2
13837 echo "$as_me:$LINENO: checking for $ac_header" >&5
13838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 eval "$as_ac_Header=\$ac_header_preproc"
13844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13849 cat >>confdefs.h
<<_ACEOF
13850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13926 for ac_func
in gethostname getdomainname dup2 \
13927 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13928 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13929 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13930 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13931 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13932 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13933 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13934 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13936 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13939 if eval "test \"\${$as_ac_var+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 cat >conftest.
$ac_ext <<_ACEOF
13945 cat confdefs.h
>>conftest.
$ac_ext
13946 cat >>conftest.
$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13958 # include <limits.h>
13960 # include <assert.h>
13965 /* Override any gcc2 internal prototype to avoid an error. */
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13979 char (*f) () = $ac_func;
13988 return f != $ac_func;
13993 rm -f conftest.
$ac_objext conftest
$ac_exeext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13995 (eval $ac_link) 2>conftest.er1
13997 grep -v '^ *+' conftest.er1
>conftest.err
13999 cat conftest.err
>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try
='test -s conftest$ac_exeext'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 eval "$as_ac_var=yes"
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.
$ac_ext >&5
14019 eval "$as_ac_var=no"
14021 rm -f conftest.err conftest.
$ac_objext \
14022 conftest
$ac_exeext conftest.
$ac_ext
14024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14026 if test `eval echo '${'$as_ac_var'}'` = yes; then
14027 cat >>confdefs.h
<<_ACEOF
14028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14036 for ac_header
in sys
/un.h
14038 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14040 echo "$as_me:$LINENO: checking for $ac_header" >&5
14041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14048 # Is the header compilable?
14049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14051 cat >conftest.
$ac_ext <<_ACEOF
14054 cat confdefs.h
>>conftest.
$ac_ext
14055 cat >>conftest.
$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 $ac_includes_default
14058 #include <$ac_header>
14060 rm -f conftest.
$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>conftest.er1
14064 grep -v '^ *+' conftest.er1
>conftest.err
14066 cat conftest.err
>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try
='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_header_compiler
=yes
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.
$ac_ext >&5
14086 ac_header_compiler
=no
14088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14090 echo "${ECHO_T}$ac_header_compiler" >&6
14092 # Is the header present?
14093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14095 cat >conftest.
$ac_ext <<_ACEOF
14098 cat confdefs.h
>>conftest.
$ac_ext
14099 cat >>conftest.
$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 #include <$ac_header>
14103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14106 grep -v '^ *+' conftest.er1
>conftest.err
14108 cat conftest.err
>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } >/dev
/null
; then
14111 if test -s conftest.err
; then
14112 ac_cpp_err
=$ac_c_preproc_warn_flag
14113 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14120 if test -z "$ac_cpp_err"; then
14121 ac_header_preproc
=yes
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.
$ac_ext >&5
14126 ac_header_preproc
=no
14128 rm -f conftest.err conftest.
$ac_ext
14129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14130 echo "${ECHO_T}$ac_header_preproc" >&6
14132 # So? What about this header?
14133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14139 ac_header_preproc
=yes
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14156 ## ------------------------------------------ ##
14157 ## Report this to the AC_PACKAGE_NAME lists. ##
14158 ## ------------------------------------------ ##
14161 sed "s/^/$as_me: WARNING: /" >&2
14164 echo "$as_me:$LINENO: checking for $ac_header" >&5
14165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 eval "$as_ac_Header=\$ac_header_preproc"
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14176 cat >>confdefs.h
<<_ACEOF
14177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14188 for ac_header
in stdlib.h sys
/time.h unistd.h
14190 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14200 # Is the header compilable?
14201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14203 cat >conftest.
$ac_ext <<_ACEOF
14206 cat confdefs.h
>>conftest.
$ac_ext
14207 cat >>conftest.
$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209 $ac_includes_default
14210 #include <$ac_header>
14212 rm -f conftest.
$ac_objext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14214 (eval $ac_compile) 2>conftest.er1
14216 grep -v '^ *+' conftest.er1
>conftest.err
14218 cat conftest.err
>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try
='test -s conftest.$ac_objext'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 ac_header_compiler
=yes
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.
$ac_ext >&5
14238 ac_header_compiler
=no
14240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14242 echo "${ECHO_T}$ac_header_compiler" >&6
14244 # Is the header present?
14245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14247 cat >conftest.
$ac_ext <<_ACEOF
14250 cat confdefs.h
>>conftest.
$ac_ext
14251 cat >>conftest.
$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 #include <$ac_header>
14255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14256 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14258 grep -v '^ *+' conftest.er1
>conftest.err
14260 cat conftest.err
>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } >/dev
/null
; then
14263 if test -s conftest.err
; then
14264 ac_cpp_err
=$ac_c_preproc_warn_flag
14265 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14272 if test -z "$ac_cpp_err"; then
14273 ac_header_preproc
=yes
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.
$ac_ext >&5
14278 ac_header_preproc
=no
14280 rm -f conftest.err conftest.
$ac_ext
14281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14282 echo "${ECHO_T}$ac_header_preproc" >&6
14284 # So? What about this header?
14285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14291 ac_header_preproc
=yes
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14308 ## ------------------------------------------ ##
14309 ## Report this to the AC_PACKAGE_NAME lists. ##
14310 ## ------------------------------------------ ##
14313 sed "s/^/$as_me: WARNING: /" >&2
14316 echo "$as_me:$LINENO: checking for $ac_header" >&5
14317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 eval "$as_ac_Header=\$ac_header_preproc"
14323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14328 cat >>confdefs.h
<<_ACEOF
14329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14337 for ac_func
in alarm
14339 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14340 echo "$as_me:$LINENO: checking for $ac_func" >&5
14341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14342 if eval "test \"\${$as_ac_var+set}\" = set"; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 cat >conftest.
$ac_ext <<_ACEOF
14348 cat confdefs.h
>>conftest.
$ac_ext
14349 cat >>conftest.
$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14353 #define $ac_func innocuous_$ac_func
14355 /* System header to define __stub macros and hopefully few prototypes,
14356 which can conflict with char $ac_func (); below.
14357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14358 <limits.h> exists even on freestanding compilers. */
14361 # include <limits.h>
14363 # include <assert.h>
14368 /* Override any gcc2 internal prototype to avoid an error. */
14373 /* We use char because int might match the return type of a gcc2
14374 builtin and then its argument prototype would still apply. */
14376 /* The GNU C library defines this for functions which it implements
14377 to always fail with ENOSYS. Some functions are actually named
14378 something starting with __ and the normal name is an alias. */
14379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14382 char (*f) () = $ac_func;
14391 return f != $ac_func;
14396 rm -f conftest.
$ac_objext conftest
$ac_exeext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14398 (eval $ac_link) 2>conftest.er1
14400 grep -v '^ *+' conftest.er1
>conftest.err
14402 cat conftest.err
>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try
='test -s conftest$ac_exeext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 eval "$as_ac_var=yes"
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.
$ac_ext >&5
14422 eval "$as_ac_var=no"
14424 rm -f conftest.err conftest.
$ac_objext \
14425 conftest
$ac_exeext conftest.
$ac_ext
14427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14429 if test `eval echo '${'$as_ac_var'}'` = yes; then
14430 cat >>confdefs.h
<<_ACEOF
14431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14437 echo "$as_me:$LINENO: checking for working mktime" >&5
14438 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14439 if test "${ac_cv_func_working_mktime+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 if test "$cross_compiling" = yes; then
14443 ac_cv_func_working_mktime
=no
14445 cat >conftest.
$ac_ext <<_ACEOF
14448 cat confdefs.h
>>conftest.
$ac_ext
14449 cat >>conftest.
$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 /* Test program from Paul Eggert and Tony Leneis. */
14452 #if TIME_WITH_SYS_TIME
14453 # include <sys/time.h>
14456 # if HAVE_SYS_TIME_H
14457 # include <sys/time.h>
14464 # include <stdlib.h>
14468 # include <unistd.h>
14472 # define alarm(X) /* empty */
14475 /* Work around redefinition to rpl_putenv by other config tests. */
14478 static time_t time_t_max;
14479 static time_t time_t_min;
14481 /* Values we'll use to set the TZ environment variable. */
14482 static char *tz_strings[] = {
14483 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14484 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14486 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14488 /* Fail if mktime fails to convert a date in the spring-forward gap.
14489 Based on a problem report from Andreas Jaeger. */
14491 spring_forward_gap ()
14493 /* glibc (up to about 1998-10-07) failed this test. */
14496 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14497 instead of "TZ=America/Vancouver" in order to detect the bug even
14498 on systems that don't support the Olson extension, or don't have the
14499 full zoneinfo tables installed. */
14500 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14509 if (mktime (&tm) == (time_t)-1)
14518 if ((lt = localtime (&now)) && mktime (lt) != now)
14526 mktime_test1 (now);
14527 mktime_test1 ((time_t) (time_t_max - now));
14528 mktime_test1 ((time_t) (time_t_min + now));
14534 /* Based on code from Ariel Faigon. */
14544 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14554 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14555 now = mktime (&tm);
14556 if (now != (time_t) -1)
14558 struct tm *lt = localtime (&now);
14560 && lt->tm_year == tm.tm_year
14561 && lt->tm_mon == tm.tm_mon
14562 && lt->tm_mday == tm.tm_mday
14563 && lt->tm_hour == tm.tm_hour
14564 && lt->tm_min == tm.tm_min
14565 && lt->tm_sec == tm.tm_sec
14566 && lt->tm_yday == tm.tm_yday
14567 && lt->tm_wday == tm.tm_wday
14568 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14569 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14580 /* This test makes some buggy mktime implementations loop.
14581 Give up after 60 seconds; a mktime slower than that
14582 isn't worth using anyway. */
14585 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14588 if ((time_t) -1 < 0)
14589 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14591 delta = time_t_max / 997; /* a suitable prime number */
14592 for (i = 0; i < N_STRINGS; i++)
14595 putenv (tz_strings[i]);
14597 for (t = 0; t <= time_t_max - delta; t += delta)
14599 mktime_test ((time_t) 1);
14600 mktime_test ((time_t) (60 * 60));
14601 mktime_test ((time_t) (60 * 60 * 24));
14603 for (j = 1; 0 < j; j *= 2)
14605 bigtime_test (j - 1);
14608 spring_forward_gap ();
14612 rm -f conftest
$ac_exeext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ac_cv_func_working_mktime
=yes
14625 echo "$as_me: program exited with status $ac_status" >&5
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.
$ac_ext >&5
14629 ( exit $ac_status )
14630 ac_cv_func_working_mktime
=no
14632 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14635 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14636 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14637 if test $ac_cv_func_working_mktime = no
; then
14639 "mktime.$ac_objext" | \
14640 *" mktime.$ac_objext" | \
14641 "mktime.$ac_objext "* | \
14642 *" mktime.$ac_objext "* ) ;;
14643 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14648 if test "$ac_cv_func_working_mktime" = no
; then
14650 cat >>confdefs.h
<<\_ACEOF
14651 #define BROKEN_MKTIME 1
14656 ac_have_func
=no
# yes means we've found a way to get the load average.
14658 # Make sure getloadavg.c is where it belongs, at configure-time.
14659 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14660 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14661 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14662 { (exit 1); exit 1; }; }
14666 # Check for getloadavg, but be sure not to touch the cache variable.
14667 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14668 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14669 if test "${ac_cv_func_getloadavg+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 cat >conftest.
$ac_ext <<_ACEOF
14675 cat confdefs.h
>>conftest.
$ac_ext
14676 cat >>conftest.
$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14680 #define getloadavg innocuous_getloadavg
14682 /* System header to define __stub macros and hopefully few prototypes,
14683 which can conflict with char getloadavg (); below.
14684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14685 <limits.h> exists even on freestanding compilers. */
14688 # include <limits.h>
14690 # include <assert.h>
14695 /* Override any gcc2 internal prototype to avoid an error. */
14700 /* We use char because int might match the return type of a gcc2
14701 builtin and then its argument prototype would still apply. */
14702 char getloadavg ();
14703 /* The GNU C library defines this for functions which it implements
14704 to always fail with ENOSYS. Some functions are actually named
14705 something starting with __ and the normal name is an alias. */
14706 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14709 char (*f) () = getloadavg;
14718 return f != getloadavg;
14723 rm -f conftest.
$ac_objext conftest
$ac_exeext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14725 (eval $ac_link) 2>conftest.er1
14727 grep -v '^ *+' conftest.er1
>conftest.err
14729 cat conftest.err
>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try
='test -s conftest$ac_exeext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_func_getloadavg
=yes
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.
$ac_ext >&5
14749 ac_cv_func_getloadavg
=no
14751 rm -f conftest.err conftest.
$ac_objext \
14752 conftest
$ac_exeext conftest.
$ac_ext
14754 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14755 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14756 if test $ac_cv_func_getloadavg = yes; then
14761 ) && ac_have_func
=yes
14763 # On HPUX9, an unprivileged user can get load averages through this function.
14765 for ac_func
in pstat_getdynamic
14767 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14768 echo "$as_me:$LINENO: checking for $ac_func" >&5
14769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14770 if eval "test \"\${$as_ac_var+set}\" = set"; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 cat >conftest.
$ac_ext <<_ACEOF
14776 cat confdefs.h
>>conftest.
$ac_ext
14777 cat >>conftest.
$ac_ext <<_ACEOF
14778 /* end confdefs.h. */
14779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14781 #define $ac_func innocuous_$ac_func
14783 /* System header to define __stub macros and hopefully few prototypes,
14784 which can conflict with char $ac_func (); below.
14785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14786 <limits.h> exists even on freestanding compilers. */
14789 # include <limits.h>
14791 # include <assert.h>
14796 /* Override any gcc2 internal prototype to avoid an error. */
14801 /* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14804 /* The GNU C library defines this for functions which it implements
14805 to always fail with ENOSYS. Some functions are actually named
14806 something starting with __ and the normal name is an alias. */
14807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14810 char (*f) () = $ac_func;
14819 return f != $ac_func;
14824 rm -f conftest.
$ac_objext conftest
$ac_exeext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14826 (eval $ac_link) 2>conftest.er1
14828 grep -v '^ *+' conftest.er1
>conftest.err
14830 cat conftest.err
>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try
='test -s conftest$ac_exeext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 eval "$as_ac_var=yes"
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.
$ac_ext >&5
14850 eval "$as_ac_var=no"
14852 rm -f conftest.err conftest.
$ac_objext \
14853 conftest
$ac_exeext conftest.
$ac_ext
14855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14857 if test `eval echo '${'$as_ac_var'}'` = yes; then
14858 cat >>confdefs.h
<<_ACEOF
14859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14866 # Solaris has libkstat which does not require root.
14868 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14869 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14870 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 ac_check_lib_save_LIBS
=$LIBS
14874 LIBS
="-lkstat $LIBS"
14875 cat >conftest.
$ac_ext <<_ACEOF
14878 cat confdefs.h
>>conftest.
$ac_ext
14879 cat >>conftest.
$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14882 /* Override any gcc2 internal prototype to avoid an error. */
14886 /* We use char because int might match the return type of a gcc2
14887 builtin and then its argument prototype would still apply. */
14888 char kstat_open ();
14897 rm -f conftest.
$ac_objext conftest
$ac_exeext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14899 (eval $ac_link) 2>conftest.er1
14901 grep -v '^ *+' conftest.er1
>conftest.err
14903 cat conftest.err
>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } &&
14906 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } &&
14912 { ac_try
='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_cv_lib_kstat_kstat_open
=yes
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.
$ac_ext >&5
14923 ac_cv_lib_kstat_kstat_open
=no
14925 rm -f conftest.err conftest.
$ac_objext \
14926 conftest
$ac_exeext conftest.
$ac_ext
14927 LIBS
=$ac_check_lib_save_LIBS
14929 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14930 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14931 if test $ac_cv_lib_kstat_kstat_open = yes; then
14932 cat >>confdefs.h
<<_ACEOF
14933 #define HAVE_LIBKSTAT 1
14936 LIBS
="-lkstat $LIBS"
14940 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14942 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14943 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14944 # to get the right answer into the cache.
14945 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14946 if test $ac_have_func = no
; then
14947 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14948 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14949 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 ac_check_lib_save_LIBS
=$LIBS
14954 cat >conftest.
$ac_ext <<_ACEOF
14957 cat confdefs.h
>>conftest.
$ac_ext
14958 cat >>conftest.
$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14961 /* Override any gcc2 internal prototype to avoid an error. */
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14976 rm -f conftest.
$ac_objext conftest
$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978 (eval $ac_link) 2>conftest.er1
14980 grep -v '^ *+' conftest.er1
>conftest.err
14982 cat conftest.err
>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try
='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_lib_elf_elf_begin
=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.
$ac_ext >&5
15002 ac_cv_lib_elf_elf_begin
=no
15004 rm -f conftest.err conftest.
$ac_objext \
15005 conftest
$ac_exeext conftest.
$ac_ext
15006 LIBS
=$ac_check_lib_save_LIBS
15008 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15009 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15010 if test $ac_cv_lib_elf_elf_begin = yes; then
15015 if test $ac_have_func = no
; then
15016 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15017 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15018 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 ac_check_lib_save_LIBS
=$LIBS
15023 cat >conftest.
$ac_ext <<_ACEOF
15026 cat confdefs.h
>>conftest.
$ac_ext
15027 cat >>conftest.
$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 /* Override any gcc2 internal prototype to avoid an error. */
15034 /* We use char because int might match the return type of a gcc2
15035 builtin and then its argument prototype would still apply. */
15045 rm -f conftest.
$ac_objext conftest
$ac_exeext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15047 (eval $ac_link) 2>conftest.er1
15049 grep -v '^ *+' conftest.er1
>conftest.err
15051 cat conftest.err
>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; } &&
15060 { ac_try
='test -s conftest$ac_exeext'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_cv_lib_kvm_kvm_open
=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.
$ac_ext >&5
15071 ac_cv_lib_kvm_kvm_open
=no
15073 rm -f conftest.err conftest.
$ac_objext \
15074 conftest
$ac_exeext conftest.
$ac_ext
15075 LIBS
=$ac_check_lib_save_LIBS
15077 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15078 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15079 if test $ac_cv_lib_kvm_kvm_open = yes; then
15083 # Check for the 4.4BSD definition of getloadavg.
15084 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15085 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15086 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 ac_check_lib_save_LIBS
=$LIBS
15090 LIBS
="-lutil $LIBS"
15091 cat >conftest.
$ac_ext <<_ACEOF
15094 cat confdefs.h
>>conftest.
$ac_ext
15095 cat >>conftest.
$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15098 /* Override any gcc2 internal prototype to avoid an error. */
15102 /* We use char because int might match the return type of a gcc2
15103 builtin and then its argument prototype would still apply. */
15104 char getloadavg ();
15113 rm -f conftest.
$ac_objext conftest
$ac_exeext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115 (eval $ac_link) 2>conftest.er1
15117 grep -v '^ *+' conftest.er1
>conftest.err
15119 cat conftest.err
>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try
='test -s conftest$ac_exeext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_lib_util_getloadavg
=yes
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.
$ac_ext >&5
15139 ac_cv_lib_util_getloadavg
=no
15141 rm -f conftest.err conftest.
$ac_objext \
15142 conftest
$ac_exeext conftest.
$ac_ext
15143 LIBS
=$ac_check_lib_save_LIBS
15145 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15146 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15147 if test $ac_cv_lib_util_getloadavg = yes; then
15148 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15153 if test $ac_have_func = no
; then
15154 # There is a commonly available library for RS/6000 AIX.
15155 # Since it is not a standard part of AIX, it might be installed locally.
15156 ac_getloadavg_LIBS
=$LIBS
15157 LIBS
="-L/usr/local/lib $LIBS"
15158 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15159 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15160 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 ac_check_lib_save_LIBS
=$LIBS
15164 LIBS
="-lgetloadavg $LIBS"
15165 cat >conftest.
$ac_ext <<_ACEOF
15168 cat confdefs.h
>>conftest.
$ac_ext
15169 cat >>conftest.
$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15172 /* Override any gcc2 internal prototype to avoid an error. */
15176 /* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15178 char getloadavg ();
15187 rm -f conftest.
$ac_objext conftest
$ac_exeext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15189 (eval $ac_link) 2>conftest.er1
15191 grep -v '^ *+' conftest.er1
>conftest.err
15193 cat conftest.err
>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; } &&
15202 { ac_try
='test -s conftest$ac_exeext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 ac_cv_lib_getloadavg_getloadavg
=yes
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.
$ac_ext >&5
15213 ac_cv_lib_getloadavg_getloadavg
=no
15215 rm -f conftest.err conftest.
$ac_objext \
15216 conftest
$ac_exeext conftest.
$ac_ext
15217 LIBS
=$ac_check_lib_save_LIBS
15219 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15220 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15221 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15222 LIBS
="-lgetloadavg $LIBS"
15224 LIBS
=$ac_getloadavg_LIBS
15229 # Make sure it is really in the library, if we think we found it,
15230 # otherwise set up the replacement function.
15232 for ac_func
in getloadavg
15234 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_var+set}\" = set"; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 cat >conftest.
$ac_ext <<_ACEOF
15243 cat confdefs.h
>>conftest.
$ac_ext
15244 cat >>conftest.
$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15248 #define $ac_func innocuous_$ac_func
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15256 # include <limits.h>
15258 # include <assert.h>
15263 /* Override any gcc2 internal prototype to avoid an error. */
15268 /* We use char because int might match the return type of a gcc2
15269 builtin and then its argument prototype would still apply. */
15271 /* The GNU C library defines this for functions which it implements
15272 to always fail with ENOSYS. Some functions are actually named
15273 something starting with __ and the normal name is an alias. */
15274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15277 char (*f) () = $ac_func;
15286 return f != $ac_func;
15291 rm -f conftest.
$ac_objext conftest
$ac_exeext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15293 (eval $ac_link) 2>conftest.er1
15295 grep -v '^ *+' conftest.er1
>conftest.err
15297 cat conftest.err
>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try
='test -s conftest$ac_exeext'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 eval "$as_ac_var=yes"
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.
$ac_ext >&5
15317 eval "$as_ac_var=no"
15319 rm -f conftest.err conftest.
$ac_objext \
15320 conftest
$ac_exeext conftest.
$ac_ext
15322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15324 if test `eval echo '${'$as_ac_var'}'` = yes; then
15325 cat >>confdefs.h
<<_ACEOF
15326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15331 "getloadavg.$ac_objext" | \
15332 *" getloadavg.$ac_objext" | \
15333 "getloadavg.$ac_objext "* | \
15334 *" getloadavg.$ac_objext "* ) ;;
15335 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15339 cat >>confdefs.h
<<\_ACEOF
15340 #define C_GETLOADAVG 1
15343 # Figure out what our getloadavg.c needs.
15345 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15346 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15347 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15348 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15352 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15354 # Is the header compilable?
15355 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15356 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15357 cat >conftest.
$ac_ext <<_ACEOF
15360 cat confdefs.h
>>conftest.
$ac_ext
15361 cat >>conftest.
$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 $ac_includes_default
15364 #include <sys/dg_sys_info.h>
15366 rm -f conftest.
$ac_objext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>conftest.er1
15370 grep -v '^ *+' conftest.er1
>conftest.err
15372 cat conftest.err
>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
15375 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try
='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_header_compiler
=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.
$ac_ext >&5
15392 ac_header_compiler
=no
15394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15396 echo "${ECHO_T}$ac_header_compiler" >&6
15398 # Is the header present?
15399 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15400 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15401 cat >conftest.
$ac_ext <<_ACEOF
15404 cat confdefs.h
>>conftest.
$ac_ext
15405 cat >>conftest.
$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #include <sys/dg_sys_info.h>
15409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15410 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15412 grep -v '^ *+' conftest.er1
>conftest.err
15414 cat conftest.err
>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } >/dev
/null
; then
15417 if test -s conftest.err
; then
15418 ac_cpp_err
=$ac_c_preproc_warn_flag
15419 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15426 if test -z "$ac_cpp_err"; then
15427 ac_header_preproc
=yes
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.
$ac_ext >&5
15432 ac_header_preproc
=no
15434 rm -f conftest.err conftest.
$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15436 echo "${ECHO_T}$ac_header_preproc" >&6
15438 # So? What about this header?
15439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15441 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15442 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15444 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15445 ac_header_preproc
=yes
15448 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15449 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15451 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15453 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15455 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15457 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15459 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15462 ## ------------------------------------------ ##
15463 ## Report this to the AC_PACKAGE_NAME lists. ##
15464 ## ------------------------------------------ ##
15467 sed "s/^/$as_me: WARNING: /" >&2
15470 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15471 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15478 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15481 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15484 cat >>confdefs.h
<<\_ACEOF
15489 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15490 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 ac_check_lib_save_LIBS
=$LIBS
15496 cat >conftest.
$ac_ext <<_ACEOF
15499 cat confdefs.h
>>conftest.
$ac_ext
15500 cat >>conftest.
$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15503 /* Override any gcc2 internal prototype to avoid an error. */
15507 /* We use char because int might match the return type of a gcc2
15508 builtin and then its argument prototype would still apply. */
15509 char dg_sys_info ();
15518 rm -f conftest.
$ac_objext conftest
$ac_exeext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15520 (eval $ac_link) 2>conftest.er1
15522 grep -v '^ *+' conftest.er1
>conftest.err
15524 cat conftest.err
>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } &&
15527 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try
='test -s conftest$ac_exeext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_cv_lib_dgc_dg_sys_info
=yes
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.
$ac_ext >&5
15544 ac_cv_lib_dgc_dg_sys_info
=no
15546 rm -f conftest.err conftest.
$ac_objext \
15547 conftest
$ac_exeext conftest.
$ac_ext
15548 LIBS
=$ac_check_lib_save_LIBS
15550 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15551 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15552 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15553 cat >>confdefs.h
<<_ACEOF
15554 #define HAVE_LIBDGC 1
15565 if test "${ac_cv_header_locale_h+set}" = set; then
15566 echo "$as_me:$LINENO: checking for locale.h" >&5
15567 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15568 if test "${ac_cv_header_locale_h+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15572 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15574 # Is the header compilable?
15575 echo "$as_me:$LINENO: checking locale.h usability" >&5
15576 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15577 cat >conftest.
$ac_ext <<_ACEOF
15580 cat confdefs.h
>>conftest.
$ac_ext
15581 cat >>conftest.
$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15584 #include <locale.h>
15586 rm -f conftest.
$ac_objext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1
>conftest.err
15592 cat conftest.err
>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; } &&
15601 { ac_try
='test -s conftest.$ac_objext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_header_compiler
=yes
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.
$ac_ext >&5
15612 ac_header_compiler
=no
15614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15616 echo "${ECHO_T}$ac_header_compiler" >&6
15618 # Is the header present?
15619 echo "$as_me:$LINENO: checking locale.h presence" >&5
15620 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 #include <locale.h>
15629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15630 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15632 grep -v '^ *+' conftest.er1
>conftest.err
15634 cat conftest.err
>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } >/dev
/null
; then
15637 if test -s conftest.err
; then
15638 ac_cpp_err
=$ac_c_preproc_warn_flag
15639 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15646 if test -z "$ac_cpp_err"; then
15647 ac_header_preproc
=yes
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.
$ac_ext >&5
15652 ac_header_preproc
=no
15654 rm -f conftest.err conftest.
$ac_ext
15655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15656 echo "${ECHO_T}$ac_header_preproc" >&6
15658 # So? What about this header?
15659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15661 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15662 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15664 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15665 ac_header_preproc
=yes
15668 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15669 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15671 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15673 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15675 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15677 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15679 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15682 ## ------------------------------------------ ##
15683 ## Report this to the AC_PACKAGE_NAME lists. ##
15684 ## ------------------------------------------ ##
15687 sed "s/^/$as_me: WARNING: /" >&2
15690 echo "$as_me:$LINENO: checking for locale.h" >&5
15691 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15692 if test "${ac_cv_header_locale_h+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 ac_cv_header_locale_h
=$ac_header_preproc
15697 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15698 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15704 for ac_func
in setlocale
15706 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15707 echo "$as_me:$LINENO: checking for $ac_func" >&5
15708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_var+set}\" = set"; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 cat >conftest.
$ac_ext <<_ACEOF
15715 cat confdefs.h
>>conftest.
$ac_ext
15716 cat >>conftest.
$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15720 #define $ac_func innocuous_$ac_func
15722 /* System header to define __stub macros and hopefully few prototypes,
15723 which can conflict with char $ac_func (); below.
15724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15725 <limits.h> exists even on freestanding compilers. */
15728 # include <limits.h>
15730 # include <assert.h>
15735 /* Override any gcc2 internal prototype to avoid an error. */
15740 /* We use char because int might match the return type of a gcc2
15741 builtin and then its argument prototype would still apply. */
15743 /* The GNU C library defines this for functions which it implements
15744 to always fail with ENOSYS. Some functions are actually named
15745 something starting with __ and the normal name is an alias. */
15746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15749 char (*f) () = $ac_func;
15758 return f != $ac_func;
15763 rm -f conftest.
$ac_objext conftest
$ac_exeext
15764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15765 (eval $ac_link) 2>conftest.er1
15767 grep -v '^ *+' conftest.er1
>conftest.err
15769 cat conftest.err
>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try
='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 eval "$as_ac_var=yes"
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.
$ac_ext >&5
15789 eval "$as_ac_var=no"
15791 rm -f conftest.err conftest.
$ac_objext \
15792 conftest
$ac_exeext conftest.
$ac_ext
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797 cat >>confdefs.h
<<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15805 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15806 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15807 # Irix 4.0.5F has the header but not the library.
15808 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15811 cat >>confdefs.h
<<\_ACEOF
15817 if test $ac_have_func = no
; then
15818 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15819 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15820 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15821 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15825 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15827 # Is the header compilable?
15828 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15829 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15830 cat >conftest.
$ac_ext <<_ACEOF
15833 cat confdefs.h
>>conftest.
$ac_ext
15834 cat >>conftest.
$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15837 #include <inq_stats/cpustats.h>
15839 rm -f conftest.
$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841 (eval $ac_compile) 2>conftest.er1
15843 grep -v '^ *+' conftest.er1
>conftest.err
15845 cat conftest.err
>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; } &&
15854 { ac_try
='test -s conftest.$ac_objext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_header_compiler
=yes
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.
$ac_ext >&5
15865 ac_header_compiler
=no
15867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869 echo "${ECHO_T}$ac_header_compiler" >&6
15871 # Is the header present?
15872 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15873 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15874 cat >conftest.
$ac_ext <<_ACEOF
15877 cat confdefs.h
>>conftest.
$ac_ext
15878 cat >>conftest.
$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #include <inq_stats/cpustats.h>
15882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15883 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15885 grep -v '^ *+' conftest.er1
>conftest.err
15887 cat conftest.err
>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } >/dev
/null
; then
15890 if test -s conftest.err
; then
15891 ac_cpp_err
=$ac_c_preproc_warn_flag
15892 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15899 if test -z "$ac_cpp_err"; then
15900 ac_header_preproc
=yes
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.
$ac_ext >&5
15905 ac_header_preproc
=no
15907 rm -f conftest.err conftest.
$ac_ext
15908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15909 echo "${ECHO_T}$ac_header_preproc" >&6
15911 # So? What about this header?
15912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15914 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15915 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15917 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15918 ac_header_preproc
=yes
15921 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15922 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15924 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15926 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15928 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15930 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15932 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15935 ## ------------------------------------------ ##
15936 ## Report this to the AC_PACKAGE_NAME lists. ##
15937 ## ------------------------------------------ ##
15940 sed "s/^/$as_me: WARNING: /" >&2
15943 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15944 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15945 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15950 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15951 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15954 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15957 cat >>confdefs.h
<<\_ACEOF
15962 cat >>confdefs.h
<<\_ACEOF
15971 if test $ac_have_func = no
; then
15972 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15973 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15974 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15975 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15979 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15981 # Is the header compilable?
15982 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15983 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15984 cat >conftest.
$ac_ext <<_ACEOF
15987 cat confdefs.h
>>conftest.
$ac_ext
15988 cat >>conftest.
$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <sys/cpustats.h>
15993 rm -f conftest.
$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>conftest.er1
15997 grep -v '^ *+' conftest.er1
>conftest.err
15999 cat conftest.err
>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try
='test -s conftest.$ac_objext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_header_compiler
=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.
$ac_ext >&5
16019 ac_header_compiler
=no
16021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16023 echo "${ECHO_T}$ac_header_compiler" >&6
16025 # Is the header present?
16026 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16027 echo $ECHO_N "checking sys/cpustats.h presence... $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 #include <sys/cpustats.h>
16036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16039 grep -v '^ *+' conftest.er1
>conftest.err
16041 cat conftest.err
>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } >/dev
/null
; then
16044 if test -s conftest.err
; then
16045 ac_cpp_err
=$ac_c_preproc_warn_flag
16046 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16053 if test -z "$ac_cpp_err"; then
16054 ac_header_preproc
=yes
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.
$ac_ext >&5
16059 ac_header_preproc
=no
16061 rm -f conftest.err conftest.
$ac_ext
16062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16063 echo "${ECHO_T}$ac_header_preproc" >&6
16065 # So? What about this header?
16066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16068 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16069 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16071 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16072 ac_header_preproc
=yes
16075 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16076 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16078 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16080 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16082 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16084 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16086 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16089 ## ------------------------------------------ ##
16090 ## Report this to the AC_PACKAGE_NAME lists. ##
16091 ## ------------------------------------------ ##
16094 sed "s/^/$as_me: WARNING: /" >&2
16097 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16098 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16099 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16104 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16105 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16108 if test $ac_cv_header_sys_cpustats_h = yes; then
16109 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16118 if test $ac_have_func = no
; then
16120 for ac_header
in mach
/mach.h
16122 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16124 echo "$as_me:$LINENO: checking for $ac_header" >&5
16125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16132 # Is the header compilable?
16133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16135 cat >conftest.
$ac_ext <<_ACEOF
16138 cat confdefs.h
>>conftest.
$ac_ext
16139 cat >>conftest.
$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 $ac_includes_default
16142 #include <$ac_header>
16144 rm -f conftest.
$ac_objext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146 (eval $ac_compile) 2>conftest.er1
16148 grep -v '^ *+' conftest.er1
>conftest.err
16150 cat conftest.err
>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; } &&
16159 { ac_try
='test -s conftest.$ac_objext'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 ac_header_compiler
=yes
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.
$ac_ext >&5
16170 ac_header_compiler
=no
16172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16174 echo "${ECHO_T}$ac_header_compiler" >&6
16176 # Is the header present?
16177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16179 cat >conftest.
$ac_ext <<_ACEOF
16182 cat confdefs.h
>>conftest.
$ac_ext
16183 cat >>conftest.
$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 #include <$ac_header>
16187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16190 grep -v '^ *+' conftest.er1
>conftest.err
16192 cat conftest.err
>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } >/dev
/null
; then
16195 if test -s conftest.err
; then
16196 ac_cpp_err
=$ac_c_preproc_warn_flag
16197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16204 if test -z "$ac_cpp_err"; then
16205 ac_header_preproc
=yes
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.
$ac_ext >&5
16210 ac_header_preproc
=no
16212 rm -f conftest.err conftest.
$ac_ext
16213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16214 echo "${ECHO_T}$ac_header_preproc" >&6
16216 # So? What about this header?
16217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16223 ac_header_preproc
=yes
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16240 ## ------------------------------------------ ##
16241 ## Report this to the AC_PACKAGE_NAME lists. ##
16242 ## ------------------------------------------ ##
16245 sed "s/^/$as_me: WARNING: /" >&2
16248 echo "$as_me:$LINENO: checking for $ac_header" >&5
16249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 eval "$as_ac_Header=\$ac_header_preproc"
16255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16260 cat >>confdefs.h
<<_ACEOF
16261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16271 for ac_header
in nlist.h
16273 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16275 echo "$as_me:$LINENO: checking for $ac_header" >&5
16276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16283 # Is the header compilable?
16284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16286 cat >conftest.
$ac_ext <<_ACEOF
16289 cat confdefs.h
>>conftest.
$ac_ext
16290 cat >>conftest.
$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 #include <$ac_header>
16295 rm -f conftest.
$ac_objext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16297 (eval $ac_compile) 2>conftest.er1
16299 grep -v '^ *+' conftest.er1
>conftest.err
16301 cat conftest.err
>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try
='test -s conftest.$ac_objext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 ac_header_compiler
=yes
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.
$ac_ext >&5
16321 ac_header_compiler
=no
16323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16325 echo "${ECHO_T}$ac_header_compiler" >&6
16327 # Is the header present?
16328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16330 cat >conftest.
$ac_ext <<_ACEOF
16333 cat confdefs.h
>>conftest.
$ac_ext
16334 cat >>conftest.
$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 #include <$ac_header>
16338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16339 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16341 grep -v '^ *+' conftest.er1
>conftest.err
16343 cat conftest.err
>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } >/dev
/null
; then
16346 if test -s conftest.err
; then
16347 ac_cpp_err
=$ac_c_preproc_warn_flag
16348 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16355 if test -z "$ac_cpp_err"; then
16356 ac_header_preproc
=yes
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.
$ac_ext >&5
16361 ac_header_preproc
=no
16363 rm -f conftest.err conftest.
$ac_ext
16364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16365 echo "${ECHO_T}$ac_header_preproc" >&6
16367 # So? What about this header?
16368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16374 ac_header_preproc
=yes
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16391 ## ------------------------------------------ ##
16392 ## Report this to the AC_PACKAGE_NAME lists. ##
16393 ## ------------------------------------------ ##
16396 sed "s/^/$as_me: WARNING: /" >&2
16399 echo "$as_me:$LINENO: checking for $ac_header" >&5
16400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 eval "$as_ac_Header=\$ac_header_preproc"
16406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16411 cat >>confdefs.h
<<_ACEOF
16412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16414 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16415 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16416 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 cat >conftest.
$ac_ext <<_ACEOF
16422 cat confdefs.h
>>conftest.
$ac_ext
16423 cat >>conftest.
$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16430 static struct nlist ac_aggr;
16431 if (ac_aggr.n_un.n_name)
16437 rm -f conftest.
$ac_objext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439 (eval $ac_compile) 2>conftest.er1
16441 grep -v '^ *+' conftest.er1
>conftest.err
16443 cat conftest.err
>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try
='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_cv_member_struct_nlist_n_un_n_name
=yes
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.
$ac_ext >&5
16463 cat >conftest.
$ac_ext <<_ACEOF
16466 cat confdefs.h
>>conftest.
$ac_ext
16467 cat >>conftest.
$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16474 static struct nlist ac_aggr;
16475 if (sizeof ac_aggr.n_un.n_name)
16481 rm -f conftest.
$ac_objext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483 (eval $ac_compile) 2>conftest.er1
16485 grep -v '^ *+' conftest.er1
>conftest.err
16487 cat conftest.err
>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try
='test -s conftest.$ac_objext'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_cv_member_struct_nlist_n_un_n_name
=yes
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.
$ac_ext >&5
16507 ac_cv_member_struct_nlist_n_un_n_name
=no
16509 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16513 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16514 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16515 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16517 cat >>confdefs.h
<<_ACEOF
16518 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16522 cat >>confdefs.h
<<\_ACEOF
16523 #define NLIST_NAME_UNION 1
16537 # Some definitions of getloadavg require that the program be installed setgid.
16538 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16539 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16540 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 cat >conftest.
$ac_ext <<_ACEOF
16546 cat confdefs.h
>>conftest.
$ac_ext
16547 cat >>conftest.
$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16550 #ifdef LDAV_PRIVILEGED
16551 Yowza Am I SETGID yet
16554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16555 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16556 ac_cv_func_getloadavg_setgid
=yes
16558 ac_cv_func_getloadavg_setgid
=no
16563 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16564 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16565 if test $ac_cv_func_getloadavg_setgid = yes; then
16568 cat >>confdefs.h
<<\_ACEOF
16569 #define GETLOADAVG_PRIVILEGED 1
16576 if test $ac_cv_func_getloadavg_setgid = yes; then
16577 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16578 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16579 if test "${ac_cv_group_kmem+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16583 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16584 # If we got an error (system does not support symlinks), try without -L.
16585 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16586 ac_cv_group_kmem
=`echo $ac_ls_output \
16587 | sed -ne 's/[ ][ ]*/ /g;
16588 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16592 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16593 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16594 KMEM_GROUP
=$ac_cv_group_kmem
16596 if test "x$ac_save_LIBS" = x
; then
16597 GETLOADAVG_LIBS
=$LIBS
16599 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16605 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16606 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16607 if test "${ac_cv_sys_largefile_source+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 ac_cv_sys_largefile_source
=no
16612 cat >conftest.
$ac_ext <<_ACEOF
16615 cat confdefs.h
>>conftest.
$ac_ext
16616 cat >>conftest.
$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16627 rm -f conftest.
$ac_objext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>conftest.er1
16631 grep -v '^ *+' conftest.er1
>conftest.err
16633 cat conftest.err
>&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try
='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.
$ac_ext >&5
16654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16655 cat >conftest.
$ac_ext <<_ACEOF
16658 cat confdefs.h
>>conftest.
$ac_ext
16659 cat >>conftest.
$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 #define _LARGEFILE_SOURCE 1
16671 rm -f conftest.
$ac_objext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>conftest.er1
16675 grep -v '^ *+' conftest.er1
>conftest.err
16677 cat conftest.err
>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
16692 ac_cv_sys_largefile_source
=1; break
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.
$ac_ext >&5
16698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16702 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16703 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16704 if test "$ac_cv_sys_largefile_source" != no
; then
16706 cat >>confdefs.h
<<_ACEOF
16707 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16713 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16714 # in glibc 2.1.3, but that breaks too many other things.
16715 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16716 echo "$as_me:$LINENO: checking for fseeko" >&5
16717 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16718 if test "${ac_cv_func_fseeko+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 cat >conftest.
$ac_ext <<_ACEOF
16724 cat confdefs.h
>>conftest.
$ac_ext
16725 cat >>conftest.
$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16731 return fseeko && fseeko (stdin, 0, 0);
16736 rm -f conftest.
$ac_objext conftest
$ac_exeext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>conftest.er1
16740 grep -v '^ *+' conftest.er1
>conftest.err
16742 cat conftest.err
>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try
='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_func_fseeko
=yes
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.
$ac_ext >&5
16762 ac_cv_func_fseeko
=no
16764 rm -f conftest.err conftest.
$ac_objext \
16765 conftest
$ac_exeext conftest.
$ac_ext
16767 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16768 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16769 if test $ac_cv_func_fseeko = yes; then
16771 cat >>confdefs.h
<<\_ACEOF
16772 #define HAVE_FSEEKO 1
16778 # Configure getopt.
16779 # getopt.m4 serial 10
16781 # The getopt module assume you want GNU getopt, with getopt_long etc,
16782 # rather than vanilla POSIX getopt. This means your your code should
16783 # always include <getopt.h> for the getopt prototypes.
16795 # Prerequisites of lib/getopt*.
16802 for ac_header
in getopt.h
16804 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16806 echo "$as_me:$LINENO: checking for $ac_header" >&5
16807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16814 # Is the header compilable?
16815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16817 cat >conftest.
$ac_ext <<_ACEOF
16820 cat confdefs.h
>>conftest.
$ac_ext
16821 cat >>conftest.
$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 $ac_includes_default
16824 #include <$ac_header>
16826 rm -f conftest.
$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16830 grep -v '^ *+' conftest.er1
>conftest.err
16832 cat conftest.err
>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try
='test -s conftest.$ac_objext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 ac_header_compiler
=yes
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.
$ac_ext >&5
16852 ac_header_compiler
=no
16854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16856 echo "${ECHO_T}$ac_header_compiler" >&6
16858 # Is the header present?
16859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16861 cat >conftest.
$ac_ext <<_ACEOF
16864 cat confdefs.h
>>conftest.
$ac_ext
16865 cat >>conftest.
$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 #include <$ac_header>
16869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16870 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16872 grep -v '^ *+' conftest.er1
>conftest.err
16874 cat conftest.err
>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } >/dev
/null
; then
16877 if test -s conftest.err
; then
16878 ac_cpp_err
=$ac_c_preproc_warn_flag
16879 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16886 if test -z "$ac_cpp_err"; then
16887 ac_header_preproc
=yes
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.
$ac_ext >&5
16892 ac_header_preproc
=no
16894 rm -f conftest.err conftest.
$ac_ext
16895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16896 echo "${ECHO_T}$ac_header_preproc" >&6
16898 # So? What about this header?
16899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16905 ac_header_preproc
=yes
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16922 ## ------------------------------------------ ##
16923 ## Report this to the AC_PACKAGE_NAME lists. ##
16924 ## ------------------------------------------ ##
16927 sed "s/^/$as_me: WARNING: /" >&2
16930 echo "$as_me:$LINENO: checking for $ac_header" >&5
16931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 eval "$as_ac_Header=\$ac_header_preproc"
16937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16942 cat >>confdefs.h
<<_ACEOF
16943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16952 if test -z "$GETOPT_H"; then
16954 for ac_func
in getopt_long_only
16956 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16957 echo "$as_me:$LINENO: checking for $ac_func" >&5
16958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16959 if eval "test \"\${$as_ac_var+set}\" = set"; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 cat >conftest.
$ac_ext <<_ACEOF
16965 cat confdefs.h
>>conftest.
$ac_ext
16966 cat >>conftest.
$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16970 #define $ac_func innocuous_$ac_func
16972 /* System header to define __stub macros and hopefully few prototypes,
16973 which can conflict with char $ac_func (); below.
16974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16975 <limits.h> exists even on freestanding compilers. */
16978 # include <limits.h>
16980 # include <assert.h>
16985 /* Override any gcc2 internal prototype to avoid an error. */
16990 /* We use char because int might match the return type of a gcc2
16991 builtin and then its argument prototype would still apply. */
16993 /* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
16996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16999 char (*f) () = $ac_func;
17008 return f != $ac_func;
17013 rm -f conftest.
$ac_objext conftest
$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015 (eval $ac_link) 2>conftest.er1
17017 grep -v '^ *+' conftest.er1
>conftest.err
17019 cat conftest.err
>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try
='test -s conftest$ac_exeext'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 eval "$as_ac_var=yes"
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.
$ac_ext >&5
17039 eval "$as_ac_var=no"
17041 rm -f conftest.err conftest.
$ac_objext \
17042 conftest
$ac_exeext conftest.
$ac_ext
17044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17046 if test `eval echo '${'$as_ac_var'}'` = yes; then
17047 cat >>confdefs.h
<<_ACEOF
17048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17058 if test -z "$GETOPT_H"; then
17059 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17060 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17061 if test "${ac_cv_have_decl_optreset+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 cat >conftest.
$ac_ext <<_ACEOF
17067 cat confdefs.h
>>conftest.
$ac_ext
17068 cat >>conftest.
$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070 #include <getopt.h>
17076 char *p = (char *) optreset;
17083 rm -f conftest.
$ac_objext
17084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17085 (eval $ac_compile) 2>conftest.er1
17087 grep -v '^ *+' conftest.er1
>conftest.err
17089 cat conftest.err
>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try
='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_cv_have_decl_optreset
=yes
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.
$ac_ext >&5
17109 ac_cv_have_decl_optreset
=no
17111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17113 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17114 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17115 if test $ac_cv_have_decl_optreset = yes; then
17121 if test -z "$GETOPT_H"; then
17122 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17123 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17124 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 if test "$cross_compiling" = yes; then
17128 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17129 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17130 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 cat >conftest.
$ac_ext <<_ACEOF
17136 cat confdefs.h
>>conftest.
$ac_ext
17137 cat >>conftest.
$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 #include <getopt.h>
17144 #ifndef getopt_clip
17145 char *p = (char *) getopt_clip;
17152 rm -f conftest.
$ac_objext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17154 (eval $ac_compile) 2>conftest.er1
17156 grep -v '^ *+' conftest.er1
>conftest.err
17158 cat conftest.err
>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try
='test -s conftest.$ac_objext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_cv_have_decl_getopt_clip
=yes
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.
$ac_ext >&5
17178 ac_cv_have_decl_getopt_clip
=no
17180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17183 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17184 if test $ac_cv_have_decl_getopt_clip = yes; then
17185 gl_cv_func_gnu_getopt
=no
17187 gl_cv_func_gnu_getopt
=yes
17191 cat >conftest.
$ac_ext <<_ACEOF
17194 cat confdefs.h
>>conftest.
$ac_ext
17195 cat >>conftest.
$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 #include <getopt.h>
17203 myargv[0] = "conftest";
17206 return getopt (2, myargv, "+a") != '?';
17212 rm -f conftest
$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 gl_cv_func_gnu_getopt
=yes
17225 echo "$as_me: program exited with status $ac_status" >&5
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.
$ac_ext >&5
17229 ( exit $ac_status )
17230 gl_cv_func_gnu_getopt
=no
17232 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17235 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17236 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17237 if test "$gl_cv_func_gnu_getopt" = "no"; then
17244 if test -n "$GETOPT_H"; then
17249 cat >>confdefs.h
<<\_ACEOF
17250 #define __GETOPT_PREFIX rpl_
17256 GETOPTOBJS
='getopt.o getopt1.o'
17263 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17264 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17265 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 # Use it with a single arg.
17269 cat >conftest.
$ac_ext <<_ACEOF
17272 cat confdefs.h
>>conftest.
$ac_ext
17273 cat >>conftest.
$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 $ac_includes_default
17284 rm -f conftest.
$ac_objext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286 (eval $ac_compile) 2>conftest.er1
17288 grep -v '^ *+' conftest.er1
>conftest.err
17290 cat conftest.err
>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try
='test -s conftest.$ac_objext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 ac_cv_func_getpgrp_void
=no
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.
$ac_ext >&5
17310 ac_cv_func_getpgrp_void
=yes
17312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17315 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17316 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17317 if test $ac_cv_func_getpgrp_void = yes; then
17319 cat >>confdefs.h
<<\_ACEOF
17320 #define GETPGRP_VOID 1
17327 for ac_func
in strftime
17329 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17330 echo "$as_me:$LINENO: checking for $ac_func" >&5
17331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17332 if eval "test \"\${$as_ac_var+set}\" = set"; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 cat >conftest.
$ac_ext <<_ACEOF
17338 cat confdefs.h
>>conftest.
$ac_ext
17339 cat >>conftest.
$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17343 #define $ac_func innocuous_$ac_func
17345 /* System header to define __stub macros and hopefully few prototypes,
17346 which can conflict with char $ac_func (); below.
17347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17348 <limits.h> exists even on freestanding compilers. */
17351 # include <limits.h>
17353 # include <assert.h>
17358 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17366 /* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17372 char (*f) () = $ac_func;
17381 return f != $ac_func;
17386 rm -f conftest.
$ac_objext conftest
$ac_exeext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388 (eval $ac_link) 2>conftest.er1
17390 grep -v '^ *+' conftest.er1
>conftest.err
17392 cat conftest.err
>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try
='test -s conftest$ac_exeext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 eval "$as_ac_var=yes"
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.
$ac_ext >&5
17412 eval "$as_ac_var=no"
17414 rm -f conftest.err conftest.
$ac_objext \
17415 conftest
$ac_exeext conftest.
$ac_ext
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17419 if test `eval echo '${'$as_ac_var'}'` = yes; then
17420 cat >>confdefs.h
<<_ACEOF
17421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17425 # strftime is in -lintl on SCO UNIX.
17426 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17427 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17428 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 ac_check_lib_save_LIBS
=$LIBS
17432 LIBS
="-lintl $LIBS"
17433 cat >conftest.
$ac_ext <<_ACEOF
17436 cat confdefs.h
>>conftest.
$ac_ext
17437 cat >>conftest.
$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17440 /* Override any gcc2 internal prototype to avoid an error. */
17444 /* We use char because int might match the return type of a gcc2
17445 builtin and then its argument prototype would still apply. */
17455 rm -f conftest.
$ac_objext conftest
$ac_exeext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457 (eval $ac_link) 2>conftest.er1
17459 grep -v '^ *+' conftest.er1
>conftest.err
17461 cat conftest.err
>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try
='test -s conftest$ac_exeext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_lib_intl_strftime
=yes
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.
$ac_ext >&5
17481 ac_cv_lib_intl_strftime
=no
17483 rm -f conftest.err conftest.
$ac_objext \
17484 conftest
$ac_exeext conftest.
$ac_ext
17485 LIBS
=$ac_check_lib_save_LIBS
17487 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17488 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17489 if test $ac_cv_lib_intl_strftime = yes; then
17490 cat >>confdefs.h
<<\_ACEOF
17491 #define HAVE_STRFTIME 1
17494 LIBS
="-lintl $LIBS"
17503 for ac_func
in grantpt
17505 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17506 echo "$as_me:$LINENO: checking for $ac_func" >&5
17507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17508 if eval "test \"\${$as_ac_var+set}\" = set"; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 cat >conftest.
$ac_ext <<_ACEOF
17514 cat confdefs.h
>>conftest.
$ac_ext
17515 cat >>conftest.
$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17519 #define $ac_func innocuous_$ac_func
17521 /* System header to define __stub macros and hopefully few prototypes,
17522 which can conflict with char $ac_func (); below.
17523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17524 <limits.h> exists even on freestanding compilers. */
17527 # include <limits.h>
17529 # include <assert.h>
17534 /* Override any gcc2 internal prototype to avoid an error. */
17539 /* We use char because int might match the return type of a gcc2
17540 builtin and then its argument prototype would still apply. */
17542 /* The GNU C library defines this for functions which it implements
17543 to always fail with ENOSYS. Some functions are actually named
17544 something starting with __ and the normal name is an alias. */
17545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17548 char (*f) () = $ac_func;
17557 return f != $ac_func;
17562 rm -f conftest.
$ac_objext conftest
$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564 (eval $ac_link) 2>conftest.er1
17566 grep -v '^ *+' conftest.er1
>conftest.err
17568 cat conftest.err
>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try
='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 eval "$as_ac_var=yes"
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.
$ac_ext >&5
17588 eval "$as_ac_var=no"
17590 rm -f conftest.err conftest.
$ac_objext \
17591 conftest
$ac_exeext conftest.
$ac_ext
17593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17595 if test `eval echo '${'$as_ac_var'}'` = yes; then
17596 cat >>confdefs.h
<<_ACEOF
17597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 # PTY-related GNU extensions.
17606 for ac_func
in getpt
17608 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609 echo "$as_me:$LINENO: checking for $ac_func" >&5
17610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17611 if eval "test \"\${$as_ac_var+set}\" = set"; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 cat >conftest.
$ac_ext <<_ACEOF
17617 cat confdefs.h
>>conftest.
$ac_ext
17618 cat >>conftest.
$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17622 #define $ac_func innocuous_$ac_func
17624 /* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func (); below.
17626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627 <limits.h> exists even on freestanding compilers. */
17630 # include <limits.h>
17632 # include <assert.h>
17637 /* Override any gcc2 internal prototype to avoid an error. */
17642 /* We use char because int might match the return type of a gcc2
17643 builtin and then its argument prototype would still apply. */
17645 /* The GNU C library defines this for functions which it implements
17646 to always fail with ENOSYS. Some functions are actually named
17647 something starting with __ and the normal name is an alias. */
17648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17651 char (*f) () = $ac_func;
17660 return f != $ac_func;
17665 rm -f conftest.
$ac_objext conftest
$ac_exeext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17667 (eval $ac_link) 2>conftest.er1
17669 grep -v '^ *+' conftest.er1
>conftest.err
17671 cat conftest.err
>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } &&
17674 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try
='test -s conftest$ac_exeext'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 eval "$as_ac_var=yes"
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.
$ac_ext >&5
17691 eval "$as_ac_var=no"
17693 rm -f conftest.err conftest.
$ac_objext \
17694 conftest
$ac_exeext conftest.
$ac_ext
17696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699 cat >>confdefs.h
<<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17707 # Check this now, so that we will NOT find the above functions in ncurses.
17708 # That is because we have not set up to link ncurses in lib-src.
17709 # It's better to believe a function is not available
17710 # than to expect to find it in ncurses.
17712 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17713 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17714 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 ac_check_lib_save_LIBS
=$LIBS
17718 LIBS
="-lncurses $LIBS"
17719 cat >conftest.
$ac_ext <<_ACEOF
17722 cat confdefs.h
>>conftest.
$ac_ext
17723 cat >>conftest.
$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17726 /* Override any gcc2 internal prototype to avoid an error. */
17730 /* We use char because int might match the return type of a gcc2
17731 builtin and then its argument prototype would still apply. */
17741 rm -f conftest.
$ac_objext conftest
$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>conftest.er1
17745 grep -v '^ *+' conftest.er1
>conftest.err
17747 cat conftest.err
>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try
='test -s conftest$ac_exeext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_lib_ncurses_tparm
=yes
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.
$ac_ext >&5
17767 ac_cv_lib_ncurses_tparm
=no
17769 rm -f conftest.err conftest.
$ac_objext \
17770 conftest
$ac_exeext conftest.
$ac_ext
17771 LIBS
=$ac_check_lib_save_LIBS
17773 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17774 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17775 if test $ac_cv_lib_ncurses_tparm = yes; then
17776 cat >>confdefs.h
<<_ACEOF
17777 #define HAVE_LIBNCURSES 1
17780 LIBS
="-lncurses $LIBS"
17785 # Do we need the Hesiod library to provide the support routines?
17786 if test "$with_hesiod" = yes ; then
17787 # Don't set $LIBS here -- see comments above.
17789 echo "$as_me:$LINENO: checking for res_send" >&5
17790 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17791 if test "${ac_cv_func_res_send+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 cat >conftest.
$ac_ext <<_ACEOF
17797 cat confdefs.h
>>conftest.
$ac_ext
17798 cat >>conftest.
$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17802 #define res_send innocuous_res_send
17804 /* System header to define __stub macros and hopefully few prototypes,
17805 which can conflict with char res_send (); below.
17806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17807 <limits.h> exists even on freestanding compilers. */
17810 # include <limits.h>
17812 # include <assert.h>
17817 /* Override any gcc2 internal prototype to avoid an error. */
17822 /* We use char because int might match the return type of a gcc2
17823 builtin and then its argument prototype would still apply. */
17825 /* The GNU C library defines this for functions which it implements
17826 to always fail with ENOSYS. Some functions are actually named
17827 something starting with __ and the normal name is an alias. */
17828 #if defined (__stub_res_send) || defined (__stub___res_send)
17831 char (*f) () = res_send;
17840 return f != res_send;
17845 rm -f conftest.
$ac_objext conftest
$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>conftest.er1
17849 grep -v '^ *+' conftest.er1
>conftest.err
17851 cat conftest.err
>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try
='test -s conftest$ac_exeext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_func_res_send
=yes
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.
$ac_ext >&5
17871 ac_cv_func_res_send
=no
17873 rm -f conftest.err conftest.
$ac_objext \
17874 conftest
$ac_exeext conftest.
$ac_ext
17876 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17877 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17878 if test $ac_cv_func_res_send = yes; then
17881 echo "$as_me:$LINENO: checking for __res_send" >&5
17882 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17883 if test "${ac_cv_func___res_send+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 cat >conftest.
$ac_ext <<_ACEOF
17889 cat confdefs.h
>>conftest.
$ac_ext
17890 cat >>conftest.
$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17894 #define __res_send innocuous___res_send
17896 /* System header to define __stub macros and hopefully few prototypes,
17897 which can conflict with char __res_send (); below.
17898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17899 <limits.h> exists even on freestanding compilers. */
17902 # include <limits.h>
17904 # include <assert.h>
17909 /* Override any gcc2 internal prototype to avoid an error. */
17914 /* We use char because int might match the return type of a gcc2
17915 builtin and then its argument prototype would still apply. */
17916 char __res_send ();
17917 /* The GNU C library defines this for functions which it implements
17918 to always fail with ENOSYS. Some functions are actually named
17919 something starting with __ and the normal name is an alias. */
17920 #if defined (__stub___res_send) || defined (__stub_____res_send)
17923 char (*f) () = __res_send;
17932 return f != __res_send;
17937 rm -f conftest.
$ac_objext conftest
$ac_exeext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17939 (eval $ac_link) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1
>conftest.err
17943 cat conftest.err
>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try
='test -s conftest$ac_exeext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_func___res_send
=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.
$ac_ext >&5
17963 ac_cv_func___res_send
=no
17965 rm -f conftest.err conftest.
$ac_objext \
17966 conftest
$ac_exeext conftest.
$ac_ext
17968 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17969 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17970 if test $ac_cv_func___res_send = yes; then
17973 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17974 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17975 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 ac_check_lib_save_LIBS
=$LIBS
17979 LIBS
="-lresolv $LIBS"
17980 cat >conftest.
$ac_ext <<_ACEOF
17983 cat confdefs.h
>>conftest.
$ac_ext
17984 cat >>conftest.
$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17987 /* Override any gcc2 internal prototype to avoid an error. */
17991 /* We use char because int might match the return type of a gcc2
17992 builtin and then its argument prototype would still apply. */
18002 rm -f conftest.
$ac_objext conftest
$ac_exeext
18003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004 (eval $ac_link) 2>conftest.er1
18006 grep -v '^ *+' conftest.er1
>conftest.err
18008 cat conftest.err
>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try
='test -s conftest$ac_exeext'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 ac_cv_lib_resolv_res_send
=yes
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.
$ac_ext >&5
18028 ac_cv_lib_resolv_res_send
=no
18030 rm -f conftest.err conftest.
$ac_objext \
18031 conftest
$ac_exeext conftest.
$ac_ext
18032 LIBS
=$ac_check_lib_save_LIBS
18034 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18035 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18036 if test $ac_cv_lib_resolv_res_send = yes; then
18039 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18040 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18041 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 ac_check_lib_save_LIBS
=$LIBS
18045 LIBS
="-lresolv $LIBS"
18046 cat >conftest.
$ac_ext <<_ACEOF
18049 cat confdefs.h
>>conftest.
$ac_ext
18050 cat >>conftest.
$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18053 /* Override any gcc2 internal prototype to avoid an error. */
18057 /* We use char because int might match the return type of a gcc2
18058 builtin and then its argument prototype would still apply. */
18059 char __res_send ();
18068 rm -f conftest.
$ac_objext conftest
$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070 (eval $ac_link) 2>conftest.er1
18072 grep -v '^ *+' conftest.er1
>conftest.err
18074 cat conftest.err
>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try
='test -s conftest$ac_exeext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 ac_cv_lib_resolv___res_send
=yes
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.
$ac_ext >&5
18094 ac_cv_lib_resolv___res_send
=no
18096 rm -f conftest.err conftest.
$ac_objext \
18097 conftest
$ac_exeext conftest.
$ac_ext
18098 LIBS
=$ac_check_lib_save_LIBS
18100 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18101 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18102 if test $ac_cv_lib_resolv___res_send = yes; then
18112 if test "$resolv" = yes ; then
18115 cat >>confdefs.h
<<\_ACEOF
18116 #define HAVE_LIBRESOLV 1
18122 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18123 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18124 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 cat >conftest.
$ac_ext <<_ACEOF
18130 cat confdefs.h
>>conftest.
$ac_ext
18131 cat >>conftest.
$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18135 #define hes_getmailhost innocuous_hes_getmailhost
18137 /* System header to define __stub macros and hopefully few prototypes,
18138 which can conflict with char hes_getmailhost (); below.
18139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18140 <limits.h> exists even on freestanding compilers. */
18143 # include <limits.h>
18145 # include <assert.h>
18148 #undef hes_getmailhost
18150 /* Override any gcc2 internal prototype to avoid an error. */
18155 /* We use char because int might match the return type of a gcc2
18156 builtin and then its argument prototype would still apply. */
18157 char hes_getmailhost ();
18158 /* The GNU C library defines this for functions which it implements
18159 to always fail with ENOSYS. Some functions are actually named
18160 something starting with __ and the normal name is an alias. */
18161 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18164 char (*f) () = hes_getmailhost;
18173 return f != hes_getmailhost;
18178 rm -f conftest.
$ac_objext conftest
$ac_exeext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>conftest.er1
18182 grep -v '^ *+' conftest.er1
>conftest.err
18184 cat conftest.err
>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189 (eval $ac_try) 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; } &&
18193 { ac_try
='test -s conftest$ac_exeext'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_func_hes_getmailhost
=yes
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.
$ac_ext >&5
18204 ac_cv_func_hes_getmailhost
=no
18206 rm -f conftest.err conftest.
$ac_objext \
18207 conftest
$ac_exeext conftest.
$ac_ext
18209 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18210 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18211 if test $ac_cv_func_hes_getmailhost = yes; then
18214 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18215 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18216 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 ac_check_lib_save_LIBS
=$LIBS
18220 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18221 cat >conftest.
$ac_ext <<_ACEOF
18224 cat confdefs.h
>>conftest.
$ac_ext
18225 cat >>conftest.
$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18228 /* Override any gcc2 internal prototype to avoid an error. */
18232 /* We use char because int might match the return type of a gcc2
18233 builtin and then its argument prototype would still apply. */
18234 char hes_getmailhost ();
18238 hes_getmailhost ();
18243 rm -f conftest.
$ac_objext conftest
$ac_exeext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245 (eval $ac_link) 2>conftest.er1
18247 grep -v '^ *+' conftest.er1
>conftest.err
18249 cat conftest.err
>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try
='test -s conftest$ac_exeext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_lib_hesiod_hes_getmailhost
=yes
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.
$ac_ext >&5
18269 ac_cv_lib_hesiod_hes_getmailhost
=no
18271 rm -f conftest.err conftest.
$ac_objext \
18272 conftest
$ac_exeext conftest.
$ac_ext
18273 LIBS
=$ac_check_lib_save_LIBS
18275 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18276 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18277 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18279 cat >>confdefs.h
<<\_ACEOF
18280 #define HAVE_LIBHESIOD 1
18291 # These tell us which Kerberos-related libraries to use.
18292 if test "${with_kerberos+set}" = set; then
18294 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18295 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18296 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 ac_check_lib_save_LIBS
=$LIBS
18300 LIBS
="-lcom_err $LIBS"
18301 cat >conftest.
$ac_ext <<_ACEOF
18304 cat confdefs.h
>>conftest.
$ac_ext
18305 cat >>conftest.
$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any gcc2 internal prototype to avoid an error. */
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18323 rm -f conftest.
$ac_objext conftest
$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18327 grep -v '^ *+' conftest.er1
>conftest.err
18329 cat conftest.err
>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try
='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_com_err_com_err
=yes
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.
$ac_ext >&5
18349 ac_cv_lib_com_err_com_err
=no
18351 rm -f conftest.err conftest.
$ac_objext \
18352 conftest
$ac_exeext conftest.
$ac_ext
18353 LIBS
=$ac_check_lib_save_LIBS
18355 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18356 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18357 if test $ac_cv_lib_com_err_com_err = yes; then
18358 cat >>confdefs.h
<<_ACEOF
18359 #define HAVE_LIBCOM_ERR 1
18362 LIBS
="-lcom_err $LIBS"
18367 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18368 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18369 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 ac_check_lib_save_LIBS
=$LIBS
18373 LIBS
="-lk5crypto $LIBS"
18374 cat >conftest.
$ac_ext <<_ACEOF
18377 cat confdefs.h
>>conftest.
$ac_ext
18378 cat >>conftest.
$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18381 /* Override any gcc2 internal prototype to avoid an error. */
18385 /* We use char because int might match the return type of a gcc2
18386 builtin and then its argument prototype would still apply. */
18387 char mit_des_cbc_encrypt ();
18391 mit_des_cbc_encrypt ();
18396 rm -f conftest.
$ac_objext conftest
$ac_exeext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>conftest.er1
18400 grep -v '^ *+' conftest.er1
>conftest.err
18402 cat conftest.err
>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try
='test -s conftest$ac_exeext'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.
$ac_ext >&5
18422 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18424 rm -f conftest.err conftest.
$ac_objext \
18425 conftest
$ac_exeext conftest.
$ac_ext
18426 LIBS
=$ac_check_lib_save_LIBS
18428 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18429 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18430 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18431 cat >>confdefs.h
<<_ACEOF
18432 #define HAVE_LIBK5CRYPTO 1
18435 LIBS
="-lk5crypto $LIBS"
18440 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18441 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18442 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 ac_check_lib_save_LIBS
=$LIBS
18446 LIBS
="-lcrypto $LIBS"
18447 cat >conftest.
$ac_ext <<_ACEOF
18450 cat confdefs.h
>>conftest.
$ac_ext
18451 cat >>conftest.
$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18454 /* Override any gcc2 internal prototype to avoid an error. */
18458 /* We use char because int might match the return type of a gcc2
18459 builtin and then its argument prototype would still apply. */
18460 char mit_des_cbc_encrypt ();
18464 mit_des_cbc_encrypt ();
18469 rm -f conftest.
$ac_objext conftest
$ac_exeext
18470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18471 (eval $ac_link) 2>conftest.er1
18473 grep -v '^ *+' conftest.er1
>conftest.err
18475 cat conftest.err
>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
18478 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try
='test -s conftest$ac_exeext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.
$ac_ext >&5
18495 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18497 rm -f conftest.err conftest.
$ac_objext \
18498 conftest
$ac_exeext conftest.
$ac_ext
18499 LIBS
=$ac_check_lib_save_LIBS
18501 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18502 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18503 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18504 cat >>confdefs.h
<<_ACEOF
18505 #define HAVE_LIBCRYPTO 1
18508 LIBS
="-lcrypto $LIBS"
18513 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18514 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18515 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_check_lib_save_LIBS
=$LIBS
18519 LIBS
="-lkrb5 $LIBS"
18520 cat >conftest.
$ac_ext <<_ACEOF
18523 cat confdefs.h
>>conftest.
$ac_ext
18524 cat >>conftest.
$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any gcc2 internal prototype to avoid an error. */
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18533 char krb5_init_context ();
18537 krb5_init_context ();
18542 rm -f conftest.
$ac_objext conftest
$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1
>conftest.err
18548 cat conftest.err
>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try
='test -s conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_lib_krb5_krb5_init_context
=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.
$ac_ext >&5
18568 ac_cv_lib_krb5_krb5_init_context
=no
18570 rm -f conftest.err conftest.
$ac_objext \
18571 conftest
$ac_exeext conftest.
$ac_ext
18572 LIBS
=$ac_check_lib_save_LIBS
18574 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18575 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18576 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18577 cat >>confdefs.h
<<_ACEOF
18578 #define HAVE_LIBKRB5 1
18581 LIBS
="-lkrb5 $LIBS"
18585 if test "${with_kerberos5+set}" != set; then
18587 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18588 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18589 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_check_lib_save_LIBS
=$LIBS
18593 LIBS
="-ldes425 $LIBS"
18594 cat >conftest.
$ac_ext <<_ACEOF
18597 cat confdefs.h
>>conftest.
$ac_ext
18598 cat >>conftest.
$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any gcc2 internal prototype to avoid an error. */
18605 /* We use char because int might match the return type of a gcc2
18606 builtin and then its argument prototype would still apply. */
18607 char des_cbc_encrypt ();
18611 des_cbc_encrypt ();
18616 rm -f conftest.
$ac_objext conftest
$ac_exeext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18618 (eval $ac_link) 2>conftest.er1
18620 grep -v '^ *+' conftest.er1
>conftest.err
18622 cat conftest.err
>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try
='test -s conftest$ac_exeext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_lib_des425_des_cbc_encrypt
=yes
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.
$ac_ext >&5
18642 ac_cv_lib_des425_des_cbc_encrypt
=no
18644 rm -f conftest.err conftest.
$ac_objext \
18645 conftest
$ac_exeext conftest.
$ac_ext
18646 LIBS
=$ac_check_lib_save_LIBS
18648 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18649 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18650 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18651 cat >>confdefs.h
<<_ACEOF
18652 #define HAVE_LIBDES425 1
18655 LIBS
="-ldes425 $LIBS"
18659 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18660 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18661 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 ac_check_lib_save_LIBS
=$LIBS
18666 cat >conftest.
$ac_ext <<_ACEOF
18669 cat confdefs.h
>>conftest.
$ac_ext
18670 cat >>conftest.
$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 /* Override any gcc2 internal prototype to avoid an error. */
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18679 char des_cbc_encrypt ();
18683 des_cbc_encrypt ();
18688 rm -f conftest.
$ac_objext conftest
$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690 (eval $ac_link) 2>conftest.er1
18692 grep -v '^ *+' conftest.er1
>conftest.err
18694 cat conftest.err
>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try
='test -s conftest$ac_exeext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 ac_cv_lib_des_des_cbc_encrypt
=yes
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.
$ac_ext >&5
18714 ac_cv_lib_des_des_cbc_encrypt
=no
18716 rm -f conftest.err conftest.
$ac_objext \
18717 conftest
$ac_exeext conftest.
$ac_ext
18718 LIBS
=$ac_check_lib_save_LIBS
18720 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18721 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18722 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18723 cat >>confdefs.h
<<_ACEOF
18724 #define HAVE_LIBDES 1
18734 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18735 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18736 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 ac_check_lib_save_LIBS
=$LIBS
18740 LIBS
="-lkrb4 $LIBS"
18741 cat >conftest.
$ac_ext <<_ACEOF
18744 cat confdefs.h
>>conftest.
$ac_ext
18745 cat >>conftest.
$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18748 /* Override any gcc2 internal prototype to avoid an error. */
18752 /* We use char because int might match the return type of a gcc2
18753 builtin and then its argument prototype would still apply. */
18754 char krb_get_cred ();
18763 rm -f conftest.
$ac_objext conftest
$ac_exeext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18765 (eval $ac_link) 2>conftest.er1
18767 grep -v '^ *+' conftest.er1
>conftest.err
18769 cat conftest.err
>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try
='test -s conftest$ac_exeext'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 ac_cv_lib_krb4_krb_get_cred
=yes
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.
$ac_ext >&5
18789 ac_cv_lib_krb4_krb_get_cred
=no
18791 rm -f conftest.err conftest.
$ac_objext \
18792 conftest
$ac_exeext conftest.
$ac_ext
18793 LIBS
=$ac_check_lib_save_LIBS
18795 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18796 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18797 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18798 cat >>confdefs.h
<<_ACEOF
18799 #define HAVE_LIBKRB4 1
18802 LIBS
="-lkrb4 $LIBS"
18806 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18807 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18808 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 ac_check_lib_save_LIBS
=$LIBS
18813 cat >conftest.
$ac_ext <<_ACEOF
18816 cat confdefs.h
>>conftest.
$ac_ext
18817 cat >>conftest.
$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18820 /* Override any gcc2 internal prototype to avoid an error. */
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826 char krb_get_cred ();
18835 rm -f conftest.
$ac_objext conftest
$ac_exeext
18836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18837 (eval $ac_link) 2>conftest.er1
18839 grep -v '^ *+' conftest.er1
>conftest.err
18841 cat conftest.err
>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
18844 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try
='test -s conftest$ac_exeext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_lib_krb_krb_get_cred
=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.
$ac_ext >&5
18861 ac_cv_lib_krb_krb_get_cred
=no
18863 rm -f conftest.err conftest.
$ac_objext \
18864 conftest
$ac_exeext conftest.
$ac_ext
18865 LIBS
=$ac_check_lib_save_LIBS
18867 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18868 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18869 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18870 cat >>confdefs.h
<<_ACEOF
18871 #define HAVE_LIBKRB 1
18882 if test "${with_kerberos5+set}" = set; then
18884 for ac_header
in krb5.h
18886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18888 echo "$as_me:$LINENO: checking for $ac_header" >&5
18889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18896 # Is the header compilable?
18897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18899 cat >conftest.
$ac_ext <<_ACEOF
18902 cat confdefs.h
>>conftest.
$ac_ext
18903 cat >>conftest.
$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 $ac_includes_default
18906 #include <$ac_header>
18908 rm -f conftest.
$ac_objext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18910 (eval $ac_compile) 2>conftest.er1
18912 grep -v '^ *+' conftest.er1
>conftest.err
18914 cat conftest.err
>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try
='test -s conftest.$ac_objext'
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_header_compiler
=yes
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.
$ac_ext >&5
18934 ac_header_compiler
=no
18936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18938 echo "${ECHO_T}$ac_header_compiler" >&6
18940 # Is the header present?
18941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18943 cat >conftest.
$ac_ext <<_ACEOF
18946 cat confdefs.h
>>conftest.
$ac_ext
18947 cat >>conftest.
$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 #include <$ac_header>
18951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18954 grep -v '^ *+' conftest.er1
>conftest.err
18956 cat conftest.err
>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } >/dev
/null
; then
18959 if test -s conftest.err
; then
18960 ac_cpp_err
=$ac_c_preproc_warn_flag
18961 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18968 if test -z "$ac_cpp_err"; then
18969 ac_header_preproc
=yes
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.
$ac_ext >&5
18974 ac_header_preproc
=no
18976 rm -f conftest.err conftest.
$ac_ext
18977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18978 echo "${ECHO_T}$ac_header_preproc" >&6
18980 # So? What about this header?
18981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18987 ac_header_preproc
=yes
18990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19004 ## ------------------------------------------ ##
19005 ## Report this to the AC_PACKAGE_NAME lists. ##
19006 ## ------------------------------------------ ##
19009 sed "s/^/$as_me: WARNING: /" >&2
19012 echo "$as_me:$LINENO: checking for $ac_header" >&5
19013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 eval "$as_ac_Header=\$ac_header_preproc"
19019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19024 cat >>confdefs.h
<<_ACEOF
19025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19034 for ac_header
in des.h
19036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19038 echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19046 # Is the header compilable?
19047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19049 cat >conftest.
$ac_ext <<_ACEOF
19052 cat confdefs.h
>>conftest.
$ac_ext
19053 cat >>conftest.
$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 $ac_includes_default
19056 #include <$ac_header>
19058 rm -f conftest.
$ac_objext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19060 (eval $ac_compile) 2>conftest.er1
19062 grep -v '^ *+' conftest.er1
>conftest.err
19064 cat conftest.err
>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try
='test -s conftest.$ac_objext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_header_compiler
=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.
$ac_ext >&5
19084 ac_header_compiler
=no
19086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19088 echo "${ECHO_T}$ac_header_compiler" >&6
19090 # Is the header present?
19091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19093 cat >conftest.
$ac_ext <<_ACEOF
19096 cat confdefs.h
>>conftest.
$ac_ext
19097 cat >>conftest.
$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <$ac_header>
19101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19104 grep -v '^ *+' conftest.er1
>conftest.err
19106 cat conftest.err
>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } >/dev
/null
; then
19109 if test -s conftest.err
; then
19110 ac_cpp_err
=$ac_c_preproc_warn_flag
19111 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19118 if test -z "$ac_cpp_err"; then
19119 ac_header_preproc
=yes
19121 echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.
$ac_ext >&5
19124 ac_header_preproc
=no
19126 rm -f conftest.err conftest.
$ac_ext
19127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19128 echo "${ECHO_T}$ac_header_preproc" >&6
19130 # So? What about this header?
19131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19137 ac_header_preproc
=yes
19140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19154 ## ------------------------------------------ ##
19155 ## Report this to the AC_PACKAGE_NAME lists. ##
19156 ## ------------------------------------------ ##
19159 sed "s/^/$as_me: WARNING: /" >&2
19162 echo "$as_me:$LINENO: checking for $ac_header" >&5
19163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 eval "$as_ac_Header=\$ac_header_preproc"
19169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19174 cat >>confdefs.h
<<_ACEOF
19175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19180 for ac_header
in kerberosIV
/des.h
19182 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184 echo "$as_me:$LINENO: checking for $ac_header" >&5
19185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19192 # Is the header compilable?
19193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19195 cat >conftest.
$ac_ext <<_ACEOF
19198 cat confdefs.h
>>conftest.
$ac_ext
19199 cat >>conftest.
$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201 $ac_includes_default
19202 #include <$ac_header>
19204 rm -f conftest.
$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206 (eval $ac_compile) 2>conftest.er1
19208 grep -v '^ *+' conftest.er1
>conftest.err
19210 cat conftest.err
>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try
='test -s conftest.$ac_objext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_header_compiler
=yes
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.
$ac_ext >&5
19230 ac_header_compiler
=no
19232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19234 echo "${ECHO_T}$ac_header_compiler" >&6
19236 # Is the header present?
19237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19239 cat >conftest.
$ac_ext <<_ACEOF
19242 cat confdefs.h
>>conftest.
$ac_ext
19243 cat >>conftest.
$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 #include <$ac_header>
19247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19250 grep -v '^ *+' conftest.er1
>conftest.err
19252 cat conftest.err
>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } >/dev
/null
; then
19255 if test -s conftest.err
; then
19256 ac_cpp_err
=$ac_c_preproc_warn_flag
19257 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19264 if test -z "$ac_cpp_err"; then
19265 ac_header_preproc
=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.
$ac_ext >&5
19270 ac_header_preproc
=no
19272 rm -f conftest.err conftest.
$ac_ext
19273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19274 echo "${ECHO_T}$ac_header_preproc" >&6
19276 # So? What about this header?
19277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19283 ac_header_preproc
=yes
19286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19300 ## ------------------------------------------ ##
19301 ## Report this to the AC_PACKAGE_NAME lists. ##
19302 ## ------------------------------------------ ##
19305 sed "s/^/$as_me: WARNING: /" >&2
19308 echo "$as_me:$LINENO: checking for $ac_header" >&5
19309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19313 eval "$as_ac_Header=\$ac_header_preproc"
19315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320 cat >>confdefs.h
<<_ACEOF
19321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19326 for ac_header
in kerberos
/des.h
19328 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330 echo "$as_me:$LINENO: checking for $ac_header" >&5
19331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19338 # Is the header compilable?
19339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19341 cat >conftest.
$ac_ext <<_ACEOF
19344 cat confdefs.h
>>conftest.
$ac_ext
19345 cat >>conftest.
$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 $ac_includes_default
19348 #include <$ac_header>
19350 rm -f conftest.
$ac_objext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19352 (eval $ac_compile) 2>conftest.er1
19354 grep -v '^ *+' conftest.er1
>conftest.err
19356 cat conftest.err
>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try
='test -s conftest.$ac_objext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_header_compiler
=yes
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.
$ac_ext >&5
19376 ac_header_compiler
=no
19378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19380 echo "${ECHO_T}$ac_header_compiler" >&6
19382 # Is the header present?
19383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19385 cat >conftest.
$ac_ext <<_ACEOF
19388 cat confdefs.h
>>conftest.
$ac_ext
19389 cat >>conftest.
$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391 #include <$ac_header>
19393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19394 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
19401 if test -s conftest.err
; then
19402 ac_cpp_err
=$ac_c_preproc_warn_flag
19403 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19410 if test -z "$ac_cpp_err"; then
19411 ac_header_preproc
=yes
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.
$ac_ext >&5
19416 ac_header_preproc
=no
19418 rm -f conftest.err conftest.
$ac_ext
19419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19420 echo "${ECHO_T}$ac_header_preproc" >&6
19422 # So? What about this header?
19423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19429 ac_header_preproc
=yes
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19446 ## ------------------------------------------ ##
19447 ## Report this to the AC_PACKAGE_NAME lists. ##
19448 ## ------------------------------------------ ##
19451 sed "s/^/$as_me: WARNING: /" >&2
19454 echo "$as_me:$LINENO: checking for $ac_header" >&5
19455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 eval "$as_ac_Header=\$ac_header_preproc"
19461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19466 cat >>confdefs.h
<<_ACEOF
19467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19483 for ac_header
in krb.h
19485 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19487 echo "$as_me:$LINENO: checking for $ac_header" >&5
19488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19495 # Is the header compilable?
19496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19498 cat >conftest.
$ac_ext <<_ACEOF
19501 cat confdefs.h
>>conftest.
$ac_ext
19502 cat >>conftest.
$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 $ac_includes_default
19505 #include <$ac_header>
19507 rm -f conftest.
$ac_objext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>conftest.er1
19511 grep -v '^ *+' conftest.er1
>conftest.err
19513 cat conftest.err
>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try
='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_header_compiler
=yes
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.
$ac_ext >&5
19533 ac_header_compiler
=no
19535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19537 echo "${ECHO_T}$ac_header_compiler" >&6
19539 # Is the header present?
19540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19541 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
19550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19551 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19553 grep -v '^ *+' conftest.er1
>conftest.err
19555 cat conftest.err
>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } >/dev
/null
; then
19558 if test -s conftest.err
; then
19559 ac_cpp_err
=$ac_c_preproc_warn_flag
19560 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19567 if test -z "$ac_cpp_err"; then
19568 ac_header_preproc
=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.
$ac_ext >&5
19573 ac_header_preproc
=no
19575 rm -f conftest.err conftest.
$ac_ext
19576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19577 echo "${ECHO_T}$ac_header_preproc" >&6
19579 # So? What about this header?
19580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19586 ac_header_preproc
=yes
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19603 ## ------------------------------------------ ##
19604 ## Report this to the AC_PACKAGE_NAME lists. ##
19605 ## ------------------------------------------ ##
19608 sed "s/^/$as_me: WARNING: /" >&2
19611 echo "$as_me:$LINENO: checking for $ac_header" >&5
19612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 eval "$as_ac_Header=\$ac_header_preproc"
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19623 cat >>confdefs.h
<<_ACEOF
19624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19629 for ac_header
in kerberosIV
/krb.h
19631 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19633 echo "$as_me:$LINENO: checking for $ac_header" >&5
19634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19641 # Is the header compilable?
19642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19644 cat >conftest.
$ac_ext <<_ACEOF
19647 cat confdefs.h
>>conftest.
$ac_ext
19648 cat >>conftest.
$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 $ac_includes_default
19651 #include <$ac_header>
19653 rm -f conftest.
$ac_objext
19654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19655 (eval $ac_compile) 2>conftest.er1
19657 grep -v '^ *+' conftest.er1
>conftest.err
19659 cat conftest.err
>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try
='test -s conftest.$ac_objext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_header_compiler
=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.
$ac_ext >&5
19679 ac_header_compiler
=no
19681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19683 echo "${ECHO_T}$ac_header_compiler" >&6
19685 # Is the header present?
19686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19688 cat >conftest.
$ac_ext <<_ACEOF
19691 cat confdefs.h
>>conftest.
$ac_ext
19692 cat >>conftest.
$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <$ac_header>
19696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19697 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19699 grep -v '^ *+' conftest.er1
>conftest.err
19701 cat conftest.err
>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } >/dev
/null
; then
19704 if test -s conftest.err
; then
19705 ac_cpp_err
=$ac_c_preproc_warn_flag
19706 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19713 if test -z "$ac_cpp_err"; then
19714 ac_header_preproc
=yes
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.
$ac_ext >&5
19719 ac_header_preproc
=no
19721 rm -f conftest.err conftest.
$ac_ext
19722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19723 echo "${ECHO_T}$ac_header_preproc" >&6
19725 # So? What about this header?
19726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19732 ac_header_preproc
=yes
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19749 ## ------------------------------------------ ##
19750 ## Report this to the AC_PACKAGE_NAME lists. ##
19751 ## ------------------------------------------ ##
19754 sed "s/^/$as_me: WARNING: /" >&2
19757 echo "$as_me:$LINENO: checking for $ac_header" >&5
19758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 eval "$as_ac_Header=\$ac_header_preproc"
19764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19769 cat >>confdefs.h
<<_ACEOF
19770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19775 for ac_header
in kerberos
/krb.h
19777 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779 echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19787 # Is the header compilable?
19788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19790 cat >conftest.
$ac_ext <<_ACEOF
19793 cat confdefs.h
>>conftest.
$ac_ext
19794 cat >>conftest.
$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 $ac_includes_default
19797 #include <$ac_header>
19799 rm -f conftest.
$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801 (eval $ac_compile) 2>conftest.er1
19803 grep -v '^ *+' conftest.er1
>conftest.err
19805 cat conftest.err
>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try
='test -s conftest.$ac_objext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_header_compiler
=yes
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.
$ac_ext >&5
19825 ac_header_compiler
=no
19827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6
19831 # Is the header present?
19832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19834 cat >conftest.
$ac_ext <<_ACEOF
19837 cat confdefs.h
>>conftest.
$ac_ext
19838 cat >>conftest.
$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 #include <$ac_header>
19842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19843 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19845 grep -v '^ *+' conftest.er1
>conftest.err
19847 cat conftest.err
>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } >/dev
/null
; then
19850 if test -s conftest.err
; then
19851 ac_cpp_err
=$ac_c_preproc_warn_flag
19852 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19859 if test -z "$ac_cpp_err"; then
19860 ac_header_preproc
=yes
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.
$ac_ext >&5
19865 ac_header_preproc
=no
19867 rm -f conftest.err conftest.
$ac_ext
19868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19869 echo "${ECHO_T}$ac_header_preproc" >&6
19871 # So? What about this header?
19872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19878 ac_header_preproc
=yes
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19895 ## ------------------------------------------ ##
19896 ## Report this to the AC_PACKAGE_NAME lists. ##
19897 ## ------------------------------------------ ##
19900 sed "s/^/$as_me: WARNING: /" >&2
19903 echo "$as_me:$LINENO: checking for $ac_header" >&5
19904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19908 eval "$as_ac_Header=\$ac_header_preproc"
19910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915 cat >>confdefs.h
<<_ACEOF
19916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19933 for ac_header
in com_err.h
19935 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19937 echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19945 # Is the header compilable?
19946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19947 echo $ECHO_N "checking $ac_header usability... $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. */
19954 $ac_includes_default
19955 #include <$ac_header>
19957 rm -f conftest.
$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>conftest.er1
19961 grep -v '^ *+' conftest.er1
>conftest.err
19963 cat conftest.err
>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; } &&
19972 { ac_try
='test -s conftest.$ac_objext'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 ac_header_compiler
=yes
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.
$ac_ext >&5
19983 ac_header_compiler
=no
19985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19987 echo "${ECHO_T}$ac_header_compiler" >&6
19989 # Is the header present?
19990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19992 cat >conftest.
$ac_ext <<_ACEOF
19995 cat confdefs.h
>>conftest.
$ac_ext
19996 cat >>conftest.
$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <$ac_header>
20000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20001 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20003 grep -v '^ *+' conftest.er1
>conftest.err
20005 cat conftest.err
>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } >/dev
/null
; then
20008 if test -s conftest.err
; then
20009 ac_cpp_err
=$ac_c_preproc_warn_flag
20010 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20017 if test -z "$ac_cpp_err"; then
20018 ac_header_preproc
=yes
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.
$ac_ext >&5
20023 ac_header_preproc
=no
20025 rm -f conftest.err conftest.
$ac_ext
20026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20027 echo "${ECHO_T}$ac_header_preproc" >&6
20029 # So? What about this header?
20030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20036 ac_header_preproc
=yes
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20053 ## ------------------------------------------ ##
20054 ## Report this to the AC_PACKAGE_NAME lists. ##
20055 ## ------------------------------------------ ##
20058 sed "s/^/$as_me: WARNING: /" >&2
20061 echo "$as_me:$LINENO: checking for $ac_header" >&5
20062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 eval "$as_ac_Header=\$ac_header_preproc"
20068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20073 cat >>confdefs.h
<<_ACEOF
20074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20083 # Solaris requires -lintl if you want strerror (which calls dgettext)
20084 # to return localized messages.
20086 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20087 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20088 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 ac_check_lib_save_LIBS
=$LIBS
20092 LIBS
="-lintl $LIBS"
20093 cat >conftest.
$ac_ext <<_ACEOF
20096 cat confdefs.h
>>conftest.
$ac_ext
20097 cat >>conftest.
$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20100 /* Override any gcc2 internal prototype to avoid an error. */
20104 /* We use char because int might match the return type of a gcc2
20105 builtin and then its argument prototype would still apply. */
20115 rm -f conftest.
$ac_objext conftest
$ac_exeext
20116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20117 (eval $ac_link) 2>conftest.er1
20119 grep -v '^ *+' conftest.er1
>conftest.err
20121 cat conftest.err
>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } &&
20124 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try
='test -s conftest$ac_exeext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_lib_intl_dgettext
=yes
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.
$ac_ext >&5
20141 ac_cv_lib_intl_dgettext
=no
20143 rm -f conftest.err conftest.
$ac_objext \
20144 conftest
$ac_exeext conftest.
$ac_ext
20145 LIBS
=$ac_check_lib_save_LIBS
20147 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20148 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20149 if test $ac_cv_lib_intl_dgettext = yes; then
20150 cat >>confdefs.h
<<_ACEOF
20151 #define HAVE_LIBINTL 1
20154 LIBS
="-lintl $LIBS"
20159 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20160 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20161 if test "${emacs_cv_localtime_cache+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 if test x
$ac_cv_func_tzset = xyes
; then
20165 if test "$cross_compiling" = yes; then
20166 # If we have tzset, assume the worst when cross-compiling.
20167 emacs_cv_localtime_cache
=yes
20169 cat >conftest.
$ac_ext <<_ACEOF
20172 cat confdefs.h
>>conftest.
$ac_ext
20173 cat >>conftest.
$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20176 extern char **environ;
20180 for (to = from = environ; (*to = *from); from++)
20181 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20184 char TZ_GMT0[] = "TZ=GMT0";
20185 char TZ_PST8[] = "TZ=PST8";
20188 time_t now = time ((time_t *) 0);
20189 int hour_GMT0, hour_unset;
20190 if (putenv (TZ_GMT0) != 0)
20192 hour_GMT0 = localtime (&now)->tm_hour;
20194 hour_unset = localtime (&now)->tm_hour;
20195 if (putenv (TZ_PST8) != 0)
20197 if (localtime (&now)->tm_hour == hour_GMT0)
20200 if (localtime (&now)->tm_hour != hour_unset)
20205 rm -f conftest
$ac_exeext
20206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20207 (eval $ac_link) 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 emacs_cv_localtime_cache
=no
20218 echo "$as_me: program exited with status $ac_status" >&5
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.
$ac_ext >&5
20222 ( exit $ac_status )
20223 emacs_cv_localtime_cache
=yes
20225 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20228 # If we lack tzset, report that localtime does not cache TZ,
20229 # since we can't invalidate the cache if we don't have tzset.
20230 emacs_cv_localtime_cache
=no
20233 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20234 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20235 if test $emacs_cv_localtime_cache = yes; then
20237 cat >>confdefs.h
<<\_ACEOF
20238 #define LOCALTIME_CACHE 1
20243 if test "x$HAVE_TIMEVAL" = xyes
; then
20245 for ac_func
in gettimeofday
20247 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20248 echo "$as_me:$LINENO: checking for $ac_func" >&5
20249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20250 if eval "test \"\${$as_ac_var+set}\" = set"; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 cat >conftest.
$ac_ext <<_ACEOF
20256 cat confdefs.h
>>conftest.
$ac_ext
20257 cat >>conftest.
$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20261 #define $ac_func innocuous_$ac_func
20263 /* System header to define __stub macros and hopefully few prototypes,
20264 which can conflict with char $ac_func (); below.
20265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20266 <limits.h> exists even on freestanding compilers. */
20269 # include <limits.h>
20271 # include <assert.h>
20276 /* Override any gcc2 internal prototype to avoid an error. */
20281 /* We use char because int might match the return type of a gcc2
20282 builtin and then its argument prototype would still apply. */
20284 /* The GNU C library defines this for functions which it implements
20285 to always fail with ENOSYS. Some functions are actually named
20286 something starting with __ and the normal name is an alias. */
20287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20290 char (*f) () = $ac_func;
20299 return f != $ac_func;
20304 rm -f conftest.
$ac_objext conftest
$ac_exeext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20306 (eval $ac_link) 2>conftest.er1
20308 grep -v '^ *+' conftest.er1
>conftest.err
20310 cat conftest.err
>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try
='test -s conftest$ac_exeext'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 eval "$as_ac_var=yes"
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.
$ac_ext >&5
20330 eval "$as_ac_var=no"
20332 rm -f conftest.err conftest.
$ac_objext \
20333 conftest
$ac_exeext conftest.
$ac_ext
20335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20337 if test `eval echo '${'$as_ac_var'}'` = yes; then
20338 cat >>confdefs.h
<<_ACEOF
20339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20345 if test $ac_cv_func_gettimeofday = yes; then
20346 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20347 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20348 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 cat >conftest.
$ac_ext <<_ACEOF
20354 cat confdefs.h
>>conftest.
$ac_ext
20355 cat >>conftest.
$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20358 #ifdef TIME_WITH_SYS_TIME
20359 #include <sys/time.h>
20362 #ifdef HAVE_SYS_TIME_H
20363 #include <sys/time.h>
20371 struct timeval time;
20372 gettimeofday (&time, 0);
20377 rm -f conftest.
$ac_objext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20379 (eval $ac_compile) 2>conftest.er1
20381 grep -v '^ *+' conftest.er1
>conftest.err
20383 cat conftest.err
>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
20386 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try
='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 emacs_cv_gettimeofday_two_arguments
=yes
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.
$ac_ext >&5
20403 emacs_cv_gettimeofday_two_arguments
=no
20405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20407 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20408 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20409 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20411 cat >>confdefs.h
<<\_ACEOF
20412 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20419 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20420 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20421 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20422 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 cat >conftest.
$ac_ext <<_ACEOF
20428 cat confdefs.h
>>conftest.
$ac_ext
20429 cat >>conftest.
$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 #include <sys/types.h>
20432 #include <$ac_cv_struct_tm>
20438 static struct tm ac_aggr;
20439 if (ac_aggr.tm_zone)
20445 rm -f conftest.
$ac_objext
20446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20447 (eval $ac_compile) 2>conftest.er1
20449 grep -v '^ *+' conftest.er1
>conftest.err
20451 cat conftest.err
>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } &&
20454 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try
='test -s conftest.$ac_objext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_cv_member_struct_tm_tm_zone
=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.
$ac_ext >&5
20471 cat >conftest.
$ac_ext <<_ACEOF
20474 cat confdefs.h
>>conftest.
$ac_ext
20475 cat >>conftest.
$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 #include <sys/types.h>
20478 #include <$ac_cv_struct_tm>
20484 static struct tm ac_aggr;
20485 if (sizeof ac_aggr.tm_zone)
20491 rm -f conftest.
$ac_objext
20492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20493 (eval $ac_compile) 2>conftest.er1
20495 grep -v '^ *+' conftest.er1
>conftest.err
20497 cat conftest.err
>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try
='test -s conftest.$ac_objext'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 ac_cv_member_struct_tm_tm_zone
=yes
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.
$ac_ext >&5
20517 ac_cv_member_struct_tm_tm_zone
=no
20519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20523 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20524 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20525 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20527 cat >>confdefs.h
<<_ACEOF
20528 #define HAVE_STRUCT_TM_TM_ZONE 1
20534 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20536 cat >>confdefs.h
<<\_ACEOF
20537 #define HAVE_TM_ZONE 1
20541 echo "$as_me:$LINENO: checking for tzname" >&5
20542 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20543 if test "${ac_cv_var_tzname+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 cat >conftest.
$ac_ext <<_ACEOF
20549 cat confdefs.h
>>conftest.
$ac_ext
20550 cat >>conftest.
$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20553 #ifndef tzname /* For SGI. */
20554 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20565 rm -f conftest.
$ac_objext conftest
$ac_exeext
20566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20567 (eval $ac_link) 2>conftest.er1
20569 grep -v '^ *+' conftest.er1
>conftest.err
20571 cat conftest.err
>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try
='test -s conftest$ac_exeext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_cv_var_tzname
=yes
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.
$ac_ext >&5
20591 ac_cv_var_tzname
=no
20593 rm -f conftest.err conftest.
$ac_objext \
20594 conftest
$ac_exeext conftest.
$ac_ext
20596 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20597 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20598 if test $ac_cv_var_tzname = yes; then
20600 cat >>confdefs.h
<<\_ACEOF
20601 #define HAVE_TZNAME 1
20608 if test "$ac_cv_func_gettimeofday" = yes; then
20609 echo "$as_me:$LINENO: checking for struct timezone" >&5
20610 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20611 if test "${emacs_cv_struct_timezone+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 cat >conftest.
$ac_ext <<_ACEOF
20617 cat confdefs.h
>>conftest.
$ac_ext
20618 cat >>conftest.
$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 #include <sys/time.h>
20624 struct timezone tz;
20629 rm -f conftest.
$ac_objext
20630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20631 (eval $ac_compile) 2>conftest.er1
20633 grep -v '^ *+' conftest.er1
>conftest.err
20635 cat conftest.err
>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try
='test -s conftest.$ac_objext'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 if test "$cross_compiling" = yes; then
20651 emacs_cv_struct_timezone
=yes
20653 cat >conftest.
$ac_ext <<_ACEOF
20656 cat confdefs.h
>>conftest.
$ac_ext
20657 cat >>conftest.
$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 #ifdef TIME_WITH_SYS_TIME
20661 #include <sys/time.h>
20664 #ifdef HAVE_SYS_TIME_H
20665 #include <sys/time.h>
20671 struct timeval time;
20672 struct timezone dummy;
20673 exit (gettimeofday (&time, &dummy));
20676 rm -f conftest
$ac_exeext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20678 (eval $ac_link) 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 emacs_cv_struct_timezone
=yes
20689 echo "$as_me: program exited with status $ac_status" >&5
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.
$ac_ext >&5
20693 ( exit $ac_status )
20694 emacs_cv_struct_timezone
=no
20696 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.
$ac_ext >&5
20702 emacs_cv_struct_timezone
=no
20704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20706 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20707 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20711 echo "$as_me:$LINENO: checking for socket" >&5
20712 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20713 if test "${ac_cv_func_socket+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 cat >conftest.
$ac_ext <<_ACEOF
20719 cat confdefs.h
>>conftest.
$ac_ext
20720 cat >>conftest.
$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20724 #define socket innocuous_socket
20726 /* System header to define __stub macros and hopefully few prototypes,
20727 which can conflict with char socket (); below.
20728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20729 <limits.h> exists even on freestanding compilers. */
20732 # include <limits.h>
20734 # include <assert.h>
20739 /* Override any gcc2 internal prototype to avoid an error. */
20744 /* We use char because int might match the return type of a gcc2
20745 builtin and then its argument prototype would still apply. */
20747 /* The GNU C library defines this for functions which it implements
20748 to always fail with ENOSYS. Some functions are actually named
20749 something starting with __ and the normal name is an alias. */
20750 #if defined (__stub_socket) || defined (__stub___socket)
20753 char (*f) () = socket;
20762 return f != socket;
20767 rm -f conftest.
$ac_objext conftest
$ac_exeext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20769 (eval $ac_link) 2>conftest.er1
20771 grep -v '^ *+' conftest.er1
>conftest.err
20773 cat conftest.err
>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try
='test -s conftest$ac_exeext'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 ac_cv_func_socket
=yes
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.
$ac_ext >&5
20793 ac_cv_func_socket
=no
20795 rm -f conftest.err conftest.
$ac_objext \
20796 conftest
$ac_exeext conftest.
$ac_ext
20798 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20799 echo "${ECHO_T}$ac_cv_func_socket" >&6
20800 if test $ac_cv_func_socket = yes; then
20806 if test $ok_so_far = yes; then
20807 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20808 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20809 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20810 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20814 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20816 # Is the header compilable?
20817 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20818 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20819 cat >conftest.
$ac_ext <<_ACEOF
20822 cat confdefs.h
>>conftest.
$ac_ext
20823 cat >>conftest.
$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20826 #include <netinet/in.h>
20828 rm -f conftest.
$ac_objext
20829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20830 (eval $ac_compile) 2>conftest.er1
20832 grep -v '^ *+' conftest.er1
>conftest.err
20834 cat conftest.err
>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try
='test -s conftest.$ac_objext'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 ac_header_compiler
=yes
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.
$ac_ext >&5
20854 ac_header_compiler
=no
20856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20858 echo "${ECHO_T}$ac_header_compiler" >&6
20860 # Is the header present?
20861 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20862 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20863 cat >conftest.
$ac_ext <<_ACEOF
20866 cat confdefs.h
>>conftest.
$ac_ext
20867 cat >>conftest.
$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 #include <netinet/in.h>
20871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20872 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20874 grep -v '^ *+' conftest.er1
>conftest.err
20876 cat conftest.err
>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } >/dev
/null
; then
20879 if test -s conftest.err
; then
20880 ac_cpp_err
=$ac_c_preproc_warn_flag
20881 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20888 if test -z "$ac_cpp_err"; then
20889 ac_header_preproc
=yes
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.
$ac_ext >&5
20894 ac_header_preproc
=no
20896 rm -f conftest.err conftest.
$ac_ext
20897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20898 echo "${ECHO_T}$ac_header_preproc" >&6
20900 # So? What about this header?
20901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20903 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20904 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20905 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20906 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20907 ac_header_preproc
=yes
20910 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20911 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20913 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20915 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20917 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20918 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20919 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20920 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20921 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20924 ## ------------------------------------------ ##
20925 ## Report this to the AC_PACKAGE_NAME lists. ##
20926 ## ------------------------------------------ ##
20929 sed "s/^/$as_me: WARNING: /" >&2
20932 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20933 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20934 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 ac_cv_header_netinet_in_h
=$ac_header_preproc
20939 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20940 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20943 if test $ac_cv_header_netinet_in_h = yes; then
20951 if test $ok_so_far = yes; then
20952 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20953 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20954 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20955 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20959 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20961 # Is the header compilable?
20962 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20963 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20964 cat >conftest.
$ac_ext <<_ACEOF
20967 cat confdefs.h
>>conftest.
$ac_ext
20968 cat >>conftest.
$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 $ac_includes_default
20971 #include <arpa/inet.h>
20973 rm -f conftest.
$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>conftest.er1
20977 grep -v '^ *+' conftest.er1
>conftest.err
20979 cat conftest.err
>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try
='test -s conftest.$ac_objext'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_header_compiler
=yes
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.
$ac_ext >&5
20999 ac_header_compiler
=no
21001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21003 echo "${ECHO_T}$ac_header_compiler" >&6
21005 # Is the header present?
21006 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21007 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21008 cat >conftest.
$ac_ext <<_ACEOF
21011 cat confdefs.h
>>conftest.
$ac_ext
21012 cat >>conftest.
$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 #include <arpa/inet.h>
21016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21019 grep -v '^ *+' conftest.er1
>conftest.err
21021 cat conftest.err
>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } >/dev
/null
; then
21024 if test -s conftest.err
; then
21025 ac_cpp_err
=$ac_c_preproc_warn_flag
21026 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21033 if test -z "$ac_cpp_err"; then
21034 ac_header_preproc
=yes
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.
$ac_ext >&5
21039 ac_header_preproc
=no
21041 rm -f conftest.err conftest.
$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21043 echo "${ECHO_T}$ac_header_preproc" >&6
21045 # So? What about this header?
21046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21048 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21049 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21051 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21052 ac_header_preproc
=yes
21055 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21056 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21058 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21060 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21062 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21064 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21066 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21069 ## ------------------------------------------ ##
21070 ## Report this to the AC_PACKAGE_NAME lists. ##
21071 ## ------------------------------------------ ##
21074 sed "s/^/$as_me: WARNING: /" >&2
21077 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21078 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21079 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21084 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21085 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21088 if test $ac_cv_header_arpa_inet_h = yes; then
21096 if test $ok_so_far = yes; then
21098 cat >>confdefs.h
<<\_ACEOF
21099 #define HAVE_INET_SOCKETS 1
21105 for ac_header
in sys
/ioctl.h
21107 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21109 echo "$as_me:$LINENO: checking for $ac_header" >&5
21110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21117 # Is the header compilable?
21118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21120 cat >conftest.
$ac_ext <<_ACEOF
21123 cat confdefs.h
>>conftest.
$ac_ext
21124 cat >>conftest.
$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 $ac_includes_default
21127 #include <$ac_header>
21129 rm -f conftest.
$ac_objext
21130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131 (eval $ac_compile) 2>conftest.er1
21133 grep -v '^ *+' conftest.er1
>conftest.err
21135 cat conftest.err
>&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try
='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_header_compiler
=yes
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.
$ac_ext >&5
21155 ac_header_compiler
=no
21157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21159 echo "${ECHO_T}$ac_header_compiler" >&6
21161 # Is the header present?
21162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21164 cat >conftest.
$ac_ext <<_ACEOF
21167 cat confdefs.h
>>conftest.
$ac_ext
21168 cat >>conftest.
$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <$ac_header>
21172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21175 grep -v '^ *+' conftest.er1
>conftest.err
21177 cat conftest.err
>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } >/dev
/null
; then
21180 if test -s conftest.err
; then
21181 ac_cpp_err
=$ac_c_preproc_warn_flag
21182 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21189 if test -z "$ac_cpp_err"; then
21190 ac_header_preproc
=yes
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.
$ac_ext >&5
21195 ac_header_preproc
=no
21197 rm -f conftest.err conftest.
$ac_ext
21198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21199 echo "${ECHO_T}$ac_header_preproc" >&6
21201 # So? What about this header?
21202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21208 ac_header_preproc
=yes
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21225 ## ------------------------------------------ ##
21226 ## Report this to the AC_PACKAGE_NAME lists. ##
21227 ## ------------------------------------------ ##
21230 sed "s/^/$as_me: WARNING: /" >&2
21233 echo "$as_me:$LINENO: checking for $ac_header" >&5
21234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 eval "$as_ac_Header=\$ac_header_preproc"
21240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21245 cat >>confdefs.h
<<_ACEOF
21246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21254 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21256 cat >>confdefs.h
<<\_ACEOF
21257 #define HAVE_AIX_SMT_EXP 1
21262 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21263 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21264 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21265 echo "$as_me:$LINENO: result: yes" >&5
21266 echo "${ECHO_T}yes" >&6
21268 cat >>confdefs.h
<<\_ACEOF
21269 #define HAVE_DEV_PTMX 1
21273 echo "$as_me:$LINENO: result: no" >&5
21274 echo "${ECHO_T}no" >&6
21277 echo "$as_me:$LINENO: checking for pid_t" >&5
21278 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21279 if test "${ac_cv_type_pid_t+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 cat >conftest.
$ac_ext <<_ACEOF
21285 cat confdefs.h
>>conftest.
$ac_ext
21286 cat >>conftest.
$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 $ac_includes_default
21294 if (sizeof (pid_t))
21300 rm -f conftest.
$ac_objext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302 (eval $ac_compile) 2>conftest.er1
21304 grep -v '^ *+' conftest.er1
>conftest.err
21306 cat conftest.err
>&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try
='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 ac_cv_type_pid_t
=yes
21323 echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.
$ac_ext >&5
21326 ac_cv_type_pid_t
=no
21328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21330 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21331 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21332 if test $ac_cv_type_pid_t = yes; then
21336 cat >>confdefs.h
<<_ACEOF
21344 for ac_header
in unistd.h vfork.h
21346 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21348 echo "$as_me:$LINENO: checking for $ac_header" >&5
21349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21356 # Is the header compilable?
21357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21359 cat >conftest.
$ac_ext <<_ACEOF
21362 cat confdefs.h
>>conftest.
$ac_ext
21363 cat >>conftest.
$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21365 $ac_includes_default
21366 #include <$ac_header>
21368 rm -f conftest.
$ac_objext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21370 (eval $ac_compile) 2>conftest.er1
21372 grep -v '^ *+' conftest.er1
>conftest.err
21374 cat conftest.err
>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } &&
21377 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379 (eval $ac_try) 2>&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); }; } &&
21383 { ac_try
='test -s conftest.$ac_objext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21389 ac_header_compiler
=yes
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.
$ac_ext >&5
21394 ac_header_compiler
=no
21396 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21398 echo "${ECHO_T}$ac_header_compiler" >&6
21400 # Is the header present?
21401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21403 cat >conftest.
$ac_ext <<_ACEOF
21406 cat confdefs.h
>>conftest.
$ac_ext
21407 cat >>conftest.
$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <$ac_header>
21411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21414 grep -v '^ *+' conftest.er1
>conftest.err
21416 cat conftest.err
>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } >/dev
/null
; then
21419 if test -s conftest.err
; then
21420 ac_cpp_err
=$ac_c_preproc_warn_flag
21421 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21428 if test -z "$ac_cpp_err"; then
21429 ac_header_preproc
=yes
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.
$ac_ext >&5
21434 ac_header_preproc
=no
21436 rm -f conftest.err conftest.
$ac_ext
21437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21438 echo "${ECHO_T}$ac_header_preproc" >&6
21440 # So? What about this header?
21441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21447 ac_header_preproc
=yes
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21464 ## ------------------------------------------ ##
21465 ## Report this to the AC_PACKAGE_NAME lists. ##
21466 ## ------------------------------------------ ##
21469 sed "s/^/$as_me: WARNING: /" >&2
21472 echo "$as_me:$LINENO: checking for $ac_header" >&5
21473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21477 eval "$as_ac_Header=\$ac_header_preproc"
21479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21484 cat >>confdefs.h
<<_ACEOF
21485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21494 for ac_func
in fork vfork
21496 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21497 echo "$as_me:$LINENO: checking for $ac_func" >&5
21498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21499 if eval "test \"\${$as_ac_var+set}\" = set"; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 cat >conftest.
$ac_ext <<_ACEOF
21505 cat confdefs.h
>>conftest.
$ac_ext
21506 cat >>conftest.
$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21510 #define $ac_func innocuous_$ac_func
21512 /* System header to define __stub macros and hopefully few prototypes,
21513 which can conflict with char $ac_func (); below.
21514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21515 <limits.h> exists even on freestanding compilers. */
21518 # include <limits.h>
21520 # include <assert.h>
21525 /* Override any gcc2 internal prototype to avoid an error. */
21530 /* We use char because int might match the return type of a gcc2
21531 builtin and then its argument prototype would still apply. */
21533 /* The GNU C library defines this for functions which it implements
21534 to always fail with ENOSYS. Some functions are actually named
21535 something starting with __ and the normal name is an alias. */
21536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21539 char (*f) () = $ac_func;
21548 return f != $ac_func;
21553 rm -f conftest.
$ac_objext conftest
$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>conftest.er1
21557 grep -v '^ *+' conftest.er1
>conftest.err
21559 cat conftest.err
>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } &&
21562 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; } &&
21568 { ac_try
='test -s conftest$ac_exeext'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 eval "$as_ac_var=yes"
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.
$ac_ext >&5
21579 eval "$as_ac_var=no"
21581 rm -f conftest.err conftest.
$ac_objext \
21582 conftest
$ac_exeext conftest.
$ac_ext
21584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21586 if test `eval echo '${'$as_ac_var'}'` = yes; then
21587 cat >>confdefs.h
<<_ACEOF
21588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21594 if test "x$ac_cv_func_fork" = xyes
; then
21595 echo "$as_me:$LINENO: checking for working fork" >&5
21596 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21597 if test "${ac_cv_func_fork_works+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 if test "$cross_compiling" = yes; then
21601 ac_cv_func_fork_works
=cross
21603 cat >conftest.
$ac_ext <<_ACEOF
21606 cat confdefs.h
>>conftest.
$ac_ext
21607 cat >>conftest.
$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21614 /* By Ruediger Kuhlmann. */
21623 rm -f conftest
$ac_exeext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21625 (eval $ac_link) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21634 ac_cv_func_fork_works
=yes
21636 echo "$as_me: program exited with status $ac_status" >&5
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.
$ac_ext >&5
21640 ( exit $ac_status )
21641 ac_cv_func_fork_works
=no
21643 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21646 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21647 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21650 ac_cv_func_fork_works
=$ac_cv_func_fork
21652 if test "x$ac_cv_func_fork_works" = xcross
; then
21654 *-*-amigaos* |
*-*-msdosdjgpp*)
21655 # Override, as these systems have only a dummy fork() stub
21656 ac_cv_func_fork_works
=no
21659 ac_cv_func_fork_works
=yes
21662 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21663 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21665 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21666 if test "x$ac_cv_func_vfork" = xyes
; then
21667 echo "$as_me:$LINENO: checking for working vfork" >&5
21668 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21669 if test "${ac_cv_func_vfork_works+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 if test "$cross_compiling" = yes; then
21673 ac_cv_func_vfork_works
=cross
21675 cat >conftest.
$ac_ext <<_ACEOF
21678 cat confdefs.h
>>conftest.
$ac_ext
21679 cat >>conftest.
$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 /* Thanks to Paul Eggert for this test. */
21683 #include <stdlib.h>
21684 #include <sys/types.h>
21685 #include <sys/stat.h>
21686 #include <sys/wait.h>
21688 # include <unistd.h>
21691 # include <vfork.h>
21693 /* On some sparc systems, changes by the child to local and incoming
21694 argument registers are propagated back to the parent. The compiler
21695 is told about this with #include <vfork.h>, but some compilers
21696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21697 static variable whose address is put into a register that is
21698 clobbered by the vfork. */
21701 sparc_address_test (int arg)
21703 sparc_address_test (arg) int arg;
21706 static pid_t child;
21724 pid_t parent = getpid ();
21727 sparc_address_test (0);
21732 /* Here is another test for sparc vfork register problems. This
21733 test uses lots of local variables, at least as many local
21734 variables as main has allocated so far including compiler
21735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21737 reuse the register of parent for one of the local variables,
21738 since it will think that parent can't possibly be used any more
21739 in this routine. Assigning to the local variable will thus
21740 munge parent in the parent process. */
21742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21744 /* Convince the compiler that p..p7 are live; otherwise, it might
21745 use the same hardware register for all 8 local variables. */
21746 if (p != p1 || p != p2 || p != p3 || p != p4
21747 || p != p5 || p != p6 || p != p7)
21750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21751 from child file descriptors. If the child closes a descriptor
21752 before it execs or exits, this munges the parent's descriptor
21753 as well. Test for this by closing stdout in the child. */
21754 _exit(close(fileno(stdout)) != 0);
21759 while (wait(&status) != child)
21762 /* Was there some problem with vforking? */
21765 /* Did the child fail? (This shouldn't happen.) */
21768 /* Did the vfork/compiler bug occur? */
21769 || parent != getpid()
21771 /* Did the file descriptor bug occur? */
21772 || fstat(fileno(stdout), &st) != 0
21777 rm -f conftest
$ac_exeext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21779 (eval $ac_link) 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784 (eval $ac_try) 2>&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 ac_cv_func_vfork_works
=yes
21790 echo "$as_me: program exited with status $ac_status" >&5
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.
$ac_ext >&5
21794 ( exit $ac_status )
21795 ac_cv_func_vfork_works
=no
21797 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21800 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21801 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21804 if test "x$ac_cv_func_fork_works" = xcross
; then
21805 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21806 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21807 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21810 if test "x$ac_cv_func_vfork_works" = xyes
; then
21812 cat >>confdefs.h
<<\_ACEOF
21813 #define HAVE_WORKING_VFORK 1
21818 cat >>confdefs.h
<<\_ACEOF
21823 if test "x$ac_cv_func_fork_works" = xyes
; then
21825 cat >>confdefs.h
<<\_ACEOF
21826 #define HAVE_WORKING_FORK 1
21832 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21833 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21834 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 cat >conftest.
$ac_ext <<_ACEOF
21840 cat confdefs.h
>>conftest.
$ac_ext
21841 cat >>conftest.
$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 #include <langinfo.h>
21847 char* cs = nl_langinfo(CODESET);
21852 rm -f conftest.
$ac_objext conftest
$ac_exeext
21853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 (eval $ac_link) 2>conftest.er1
21856 grep -v '^ *+' conftest.er1
>conftest.err
21858 cat conftest.err
>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try
='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 emacs_cv_langinfo_codeset
=yes
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.
$ac_ext >&5
21878 emacs_cv_langinfo_codeset
=no
21880 rm -f conftest.err conftest.
$ac_objext \
21881 conftest
$ac_exeext conftest.
$ac_ext
21884 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21885 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21886 if test $emacs_cv_langinfo_codeset = yes; then
21888 cat >>confdefs.h
<<\_ACEOF
21889 #define HAVE_LANGINFO_CODESET 1
21894 echo "$as_me:$LINENO: checking for size_t" >&5
21895 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21896 if test "${ac_cv_type_size_t+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 cat >conftest.
$ac_ext <<_ACEOF
21902 cat confdefs.h
>>conftest.
$ac_ext
21903 cat >>conftest.
$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 $ac_includes_default
21911 if (sizeof (size_t))
21917 rm -f conftest.
$ac_objext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21919 (eval $ac_compile) 2>conftest.er1
21921 grep -v '^ *+' conftest.er1
>conftest.err
21923 cat conftest.err
>&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } &&
21926 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try
='test -s conftest.$ac_objext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 ac_cv_type_size_t
=yes
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.
$ac_ext >&5
21943 ac_cv_type_size_t
=no
21945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21948 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21949 if test $ac_cv_type_size_t = yes; then
21951 cat >>confdefs.h
<<_ACEOF
21952 #define HAVE_SIZE_T 1
21959 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21960 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21961 if test "${ac_cv_type_mbstate_t+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 cat >conftest.
$ac_ext <<_ACEOF
21967 cat confdefs.h
>>conftest.
$ac_ext
21968 cat >>conftest.
$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21970 $ac_includes_default
21971 # include <wchar.h>
21975 mbstate_t x; return sizeof x;
21980 rm -f conftest.
$ac_objext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21982 (eval $ac_compile) 2>conftest.er1
21984 grep -v '^ *+' conftest.er1
>conftest.err
21986 cat conftest.err
>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
21989 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try
='test -s conftest.$ac_objext'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_cv_type_mbstate_t
=yes
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.
$ac_ext >&5
22006 ac_cv_type_mbstate_t
=no
22008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22010 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22011 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22012 if test $ac_cv_type_mbstate_t = yes; then
22014 cat >>confdefs.h
<<\_ACEOF
22015 #define HAVE_MBSTATE_T 1
22020 cat >>confdefs.h
<<\_ACEOF
22021 #define mbstate_t int
22026 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22027 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22028 if test "${emacs_cv_c_restrict+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 cat >conftest.
$ac_ext <<_ACEOF
22034 cat confdefs.h
>>conftest.
$ac_ext
22035 cat >>conftest.
$ac_ext <<_ACEOF
22036 /* end confdefs.h. */
22037 void fred (int *restrict x);
22046 rm -f conftest.
$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048 (eval $ac_compile) 2>conftest.er1
22050 grep -v '^ *+' conftest.er1
>conftest.err
22052 cat conftest.err
>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try
='test -s conftest.$ac_objext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 emacs_cv_c_restrict
=yes
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.
$ac_ext >&5
22072 cat >conftest.
$ac_ext <<_ACEOF
22075 cat confdefs.h
>>conftest.
$ac_ext
22076 cat >>conftest.
$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 void fred (int *__restrict x);
22087 rm -f conftest.
$ac_objext
22088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22089 (eval $ac_compile) 2>conftest.er1
22091 grep -v '^ *+' conftest.er1
>conftest.err
22093 cat conftest.err
>&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } &&
22096 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098 (eval $ac_try) 2>&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try
='test -s conftest.$ac_objext'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22108 emacs_cv_c_restrict
=__restrict
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.
$ac_ext >&5
22113 emacs_cv_c_restrict
=no
22115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22119 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22120 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22121 case "$emacs_cv_c_restrict" in
22122 yes) emacs_restrict
=restrict
;;
22123 no
) emacs_restrict
="";;
22124 *) emacs_restrict
="$emacs_cv_c_restrict";;
22126 if test "$emacs_restrict" != __restrict
; then
22128 cat >>confdefs.h
<<_ACEOF
22129 #define __restrict $emacs_restrict
22134 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22135 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22136 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 cat >conftest.
$ac_ext <<_ACEOF
22142 cat confdefs.h
>>conftest.
$ac_ext
22143 cat >>conftest.
$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 void fred (int x[__restrict]);
22154 rm -f conftest.
$ac_objext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22156 (eval $ac_compile) 2>conftest.er1
22158 grep -v '^ *+' conftest.er1
>conftest.err
22160 cat conftest.err
>&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } &&
22163 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; } &&
22169 { ac_try
='test -s conftest.$ac_objext'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 emacs_cv_c_restrict_arr
=yes
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.
$ac_ext >&5
22180 emacs_cv_c_restrict_arr
=no
22182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22184 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22185 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22186 if test "$emacs_cv_c_restrict_arr" = yes; then
22188 cat >>confdefs.h
<<\_ACEOF
22189 #define __restrict_arr __restrict
22196 # Set up the CFLAGS for real compilation, so we can substitute it.
22197 CFLAGS
="$REAL_CFLAGS"
22198 CPPFLAGS
="$REAL_CPPFLAGS"
22200 #### Find out which version of Emacs this is.
22201 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22202 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22203 if test x
"${version}" = x
; then
22204 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22205 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22206 { (exit 1); exit 1; }; }
22209 ### Specify what sort of things we'll be editing into Makefile and config.h.
22210 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22246 cat >>confdefs.h
<<_ACEOF
22247 #define EMACS_CONFIGURATION "${canonical}"
22251 cat >>confdefs.h
<<_ACEOF
22252 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22256 cat >>confdefs.h
<<_ACEOF
22257 #define config_machfile "${machfile}"
22261 cat >>confdefs.h
<<_ACEOF
22262 #define config_opsysfile "${opsysfile}"
22266 cat >>confdefs.h
<<_ACEOF
22267 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22271 cat >>confdefs.h
<<_ACEOF
22272 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22276 cat >>confdefs.h
<<_ACEOF
22277 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22281 cat >>confdefs.h
<<_ACEOF
22282 #define UNEXEC_SRC ${UNEXEC_SRC}
22286 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22288 cat >>confdefs.h
<<\_ACEOF
22289 #define HAVE_X_WINDOWS 1
22293 if test "${USE_X_TOOLKIT}" != "none" ; then
22295 cat >>confdefs.h
<<\_ACEOF
22296 #define USE_X_TOOLKIT 1
22300 if test "${HAVE_X11}" = "yes" ; then
22302 cat >>confdefs.h
<<\_ACEOF
22307 if test "${HAVE_XFREE386}" = "yes" ; then
22309 cat >>confdefs.h
<<\_ACEOF
22310 #define HAVE_XFREE386 1
22314 if test "${HAVE_MENUS}" = "yes" ; then
22316 cat >>confdefs.h
<<\_ACEOF
22317 #define HAVE_MENUS 1
22321 if test "${GNU_MALLOC}" = "yes" ; then
22323 cat >>confdefs.h
<<\_ACEOF
22324 #define GNU_MALLOC 1
22328 if test "${REL_ALLOC}" = "yes" ; then
22330 cat >>confdefs.h
<<\_ACEOF
22331 #define REL_ALLOC 1
22340 #### Report on what we decided to do.
22341 #### Report GTK as a toolkit, even if it doesn't use Xt.
22342 #### It makes printing result more understandable as using GTK sets
22343 #### toolkit_scroll_bars to yes by default.
22344 if test "${HAVE_GTK}" = "yes"; then
22349 Configured for \`${canonical}'.
22351 Where should the build process find the source code? ${srcdir}
22352 What operating system and machine description files should Emacs use?
22353 \`${opsysfile}' and \`${machfile}'
22354 What compiler should emacs be built with? ${CC} ${CFLAGS}
22355 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22356 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22357 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22358 What window system should Emacs use? ${window_system}
22359 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22361 if test -n "${x_includes}"; then
22362 echo " Where do we find X Windows header files? ${x_includes}"
22364 echo " Where do we find X Windows header files? Standard dirs"
22366 if test -n "${x_libraries}"; then
22367 echo " Where do we find X Windows libraries? ${x_libraries}"
22369 echo " Where do we find X Windows libraries? Standard dirs"
22372 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22373 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22374 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22375 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22376 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22377 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22378 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22381 if test $USE_XASSERTS = yes; then
22382 echo " Compiling with asserts turned on."
22383 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22389 # Remove any trailing slashes in these variables.
22390 test "${prefix}" != NONE
&&
22391 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22392 test "${exec_prefix}" != NONE
&&
22393 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22395 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22396 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22397 ## from Makefile.c can correctly provide the arg `-traditional' to the
22400 cat >conftest.
$ac_ext <<_ACEOF
22403 cat confdefs.h
>>conftest.
$ac_ext
22404 cat >>conftest.
$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22409 $EGREP "yes..yes" >/dev
/null
2>&1; then
22410 CPP_NEED_TRADITIONAL
=no
22412 CPP_NEED_TRADITIONAL
=yes
22417 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"
22418 ac_config_commands
="$ac_config_commands default"
22419 cat >confcache
<<\_ACEOF
22420 # This file is a shell script that caches the results of configure
22421 # tests run on this system so they can be shared between configure
22422 # scripts and configure runs, see configure's option --config-cache.
22423 # It is not useful on other systems. If it contains results you don't
22424 # want to keep, you may remove or edit it.
22426 # config.status only pays attention to the cache file if you give it
22427 # the --recheck option to rerun configure.
22429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22431 # following values.
22435 # The following way of writing the cache mishandles newlines in values,
22436 # but we know of no workaround that is simple, portable, and efficient.
22437 # So, don't put newlines in cache variables' values.
22438 # Ultrix sh set writes to stderr and can't be redirected directly,
22439 # and sets the high bit in the cache file unless we assign to the vars.
22442 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22444 # `set' does not quote correctly, so add quotes (double-quote
22445 # substitution turns \\\\ into \\, and sed turns \\ into \).
22448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22451 # `set' quotes correctly as required by POSIX, so do not add quotes.
22453 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22462 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22464 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22465 if test -w $cache_file; then
22466 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22467 cat confcache
>$cache_file
22469 echo "not updating unwritable cache $cache_file"
22474 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22475 # Let make expand exec_prefix.
22476 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22478 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22479 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22480 # trailing colons and then remove the whole line if VPATH becomes empty
22481 # (actually we leave an empty line to preserve line numbers).
22482 if test "x$srcdir" = x.
; then
22483 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22484 s/:*\$(srcdir):*/:/;
22485 s/:*\${srcdir}:*/:/;
22487 s/^\([^=]*=[ ]*\):*/\1/;
22493 DEFS
=-DHAVE_CONFIG_H
22497 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22498 # 1. Remove the extension, and $U if already installed.
22499 ac_i
=`echo "$ac_i" |
22500 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22502 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22503 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22505 LIBOBJS
=$ac_libobjs
22507 LTLIBOBJS
=$ac_ltlibobjs
22511 : ${CONFIG_STATUS=./config.status}
22512 ac_clean_files_save
=$ac_clean_files
22513 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22514 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22515 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22516 cat >$CONFIG_STATUS <<_ACEOF
22518 # Generated by $as_me.
22519 # Run this file to recreate the current configuration.
22520 # Compiler output produced by configure, useful for debugging
22521 # configure, is in config.log if it exists.
22524 ac_cs_recheck=false
22526 SHELL=\${CONFIG_SHELL-$SHELL}
22529 cat >>$CONFIG_STATUS <<\_ACEOF
22530 ## --------------------- ##
22531 ## M4sh Initialization. ##
22532 ## --------------------- ##
22534 # Be Bourne compatible
22535 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22538 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22539 # is contrary to our usage. Disable this feature.
22540 alias -g '${1+"$@"}'='"$@"'
22541 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22544 DUALCASE
=1; export DUALCASE
# for MKS sh
22546 # Support unset when possible.
22547 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22554 # Work around bugs in pre-3.0 UWIN ksh.
22555 $as_unset ENV MAIL MAILPATH
22562 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22563 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22564 LC_TELEPHONE LC_TIME
22566 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22567 eval $as_var=C
; export $as_var
22573 # Required to use basename.
22574 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22580 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22581 as_basename
=basename
22587 # Name of the executable.
22588 as_me
=`$as_basename "$0" ||
22589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22590 X"$0" : 'X\(//\)$' \| \
22591 X"$0" : 'X\(/\)$' \| \
22592 . : '\(.\)' 2>/dev/null ||
22594 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22595 /^X\/\(\/\/\)$/{ s//\1/; q; }
22596 /^X\/\(\/\).*/{ s//\1/; q; }
22600 # PATH needs CR, and LINENO needs CR and PATH.
22601 # Avoid depending upon Character Ranges.
22602 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22603 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22604 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22605 as_cr_digits
='0123456789'
22606 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22608 # The user is always right.
22609 if test "${PATH_SEPARATOR+set}" != set; then
22610 echo "#! /bin/sh" >conf$$.sh
22611 echo "exit 0" >>conf$$.sh
22613 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22622 as_lineno_1
=$LINENO
22623 as_lineno_2
=$LINENO
22624 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22625 test "x$as_lineno_1" != "x$as_lineno_2" &&
22626 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22627 # Find who we are. Look in the path if we contain no path at all
22630 *[\\/]* ) as_myself
=$0 ;;
22631 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22632 for as_dir
in $PATH
22635 test -z "$as_dir" && as_dir
=.
22636 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22641 # We did not find ourselves, most probably we were run as `sh COMMAND'
22642 # in which case we are not to be found in the path.
22643 if test "x$as_myself" = x
; then
22646 if test ! -f "$as_myself"; then
22647 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22648 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22649 { (exit 1); exit 1; }; }
22651 case $CONFIG_SHELL in
22653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22654 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22657 test -z "$as_dir" && as_dir
=.
22658 for as_base
in sh bash ksh sh5
; do
22661 if ("$as_dir/$as_base" -c '
22662 as_lineno_1=$LINENO
22663 as_lineno_2=$LINENO
22664 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22665 test "x$as_lineno_1" != "x$as_lineno_2" &&
22666 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22667 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22668 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22669 CONFIG_SHELL
=$as_dir/$as_base
22670 export CONFIG_SHELL
22671 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22679 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22680 # uniformly replaced by the line number. The first 'sed' inserts a
22681 # line-number line before each line; the second 'sed' does the real
22682 # work. The second script uses 'N' to pair each line-number line
22683 # with the numbered line, and appends trailing '-' during
22684 # substitution so that $LINENO is not a special case at line end.
22685 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22686 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22687 sed '=' <$as_myself |
22692 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22695 s,^['$as_cr_digits']*\n,,
22696 ' >$as_me.lineno
&&
22697 chmod +x
$as_me.lineno ||
22698 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22699 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22700 { (exit 1); exit 1; }; }
22702 # Don't try to exec as it changes $[0], causing all sort of problems
22703 # (the dirname of $[0] is not the place where we might find the
22704 # original and so on. Autoconf is especially sensible to this).
22706 # Exit status is that of the last command.
22711 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22712 *c
*,-n*) ECHO_N
= ECHO_C
='
22714 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22715 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22718 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22724 rm -f conf$$ conf$$.exe conf$$.
file
22726 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22727 # We could just check for DJGPP; but this test a) works b) is more generic
22728 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22729 if test -f conf$$.exe
; then
22730 # Don't use ln at all; we don't have any links
22735 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22740 rm -f conf$$ conf$$.exe conf$$.
file
22742 if mkdir
-p .
2>/dev
/null
; then
22745 test -d .
/-p && rmdir .
/-p
22749 as_executable_p
="test -f"
22751 # Sed expression to map a string onto a valid CPP name.
22752 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22754 # Sed expression to map a string onto a valid variable name.
22755 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22759 # We need space, tab and new line, in precisely that order.
22769 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22770 # report actual input values of CONFIG_FILES etc. instead of their
22771 # values after options handling. Logging --version etc. is OK.
22775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22776 ## Running $as_me. ##
22781 This file was extended by $as_me, which was
22782 generated by GNU Autoconf 2.59. Invocation command line was
22784 CONFIG_FILES = $CONFIG_FILES
22785 CONFIG_HEADERS = $CONFIG_HEADERS
22786 CONFIG_LINKS = $CONFIG_LINKS
22787 CONFIG_COMMANDS = $CONFIG_COMMANDS
22791 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22795 # Files that config.status was made for.
22796 if test -n "$ac_config_files"; then
22797 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22800 if test -n "$ac_config_headers"; then
22801 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22804 if test -n "$ac_config_links"; then
22805 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22808 if test -n "$ac_config_commands"; then
22809 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22812 cat >>$CONFIG_STATUS <<\_ACEOF
22815 \`$as_me' instantiates files from templates according to the
22816 current configuration.
22818 Usage: $0 [OPTIONS] [FILE]...
22820 -h, --help print this help, then exit
22821 -V, --version print version number, then exit
22822 -q, --quiet do not print progress messages
22823 -d, --debug don't remove temporary files
22824 --recheck update $as_me by reconfiguring in the same conditions
22825 --file=FILE[:TEMPLATE]
22826 instantiate the configuration file FILE
22827 --header=FILE[:TEMPLATE]
22828 instantiate the configuration header FILE
22830 Configuration files:
22833 Configuration headers:
22836 Configuration commands:
22839 Report bugs to <bug-autoconf@gnu.org>."
22842 cat >>$CONFIG_STATUS <<_ACEOF
22845 configured by $0, generated by GNU Autoconf 2.59,
22846 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22848 Copyright (C) 2003 Free Software Foundation, Inc.
22849 This config.status script is free software; the Free Software Foundation
22850 gives unlimited permission to copy, distribute and modify it."
22855 cat >>$CONFIG_STATUS <<\_ACEOF
22856 # If no file are specified by the user, then we need to provide default
22857 # value. By we need to know if files were specified by the user.
22863 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22864 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22872 *) # This is not an option, so the user has probably given explicit
22875 ac_need_defaults
=false
;;
22879 # Handling of the options.
22881 cat >>$CONFIG_STATUS <<\_ACEOF
22882 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22884 --version |
--vers* |
-V )
22885 echo "$ac_cs_version"; exit 0 ;;
22887 # Conflict between --help and --header
22888 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22889 Try \`$0 --help' for more information." >&5
22890 echo "$as_me: error: ambiguous option: $1
22891 Try \`$0 --help' for more information." >&2;}
22892 { (exit 1); exit 1; }; };;
22893 --help |
--hel |
-h )
22894 echo "$ac_cs_usage"; exit 0 ;;
22895 --debug |
--d* |
-d )
22897 --file |
--fil |
--fi |
--f )
22899 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22900 ac_need_defaults
=false
;;
22901 --header |
--heade |
--head |
--hea )
22903 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22904 ac_need_defaults
=false
;;
22905 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22906 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22909 # This is an error.
22910 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22911 Try \`$0 --help' for more information." >&5
22912 echo "$as_me: error: unrecognized option: $1
22913 Try \`$0 --help' for more information." >&2;}
22914 { (exit 1); exit 1; }; } ;;
22916 *) ac_config_targets
="$ac_config_targets $1" ;;
22922 ac_configure_extra_args
=
22924 if $ac_cs_silent; then
22926 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22930 cat >>$CONFIG_STATUS <<_ACEOF
22931 if \$ac_cs_recheck; then
22932 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22933 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22938 cat >>$CONFIG_STATUS <<_ACEOF
22940 # INIT-COMMANDS section.
22943 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22949 cat >>$CONFIG_STATUS <<\_ACEOF
22950 for ac_config_target
in $ac_config_targets
22952 case "$ac_config_target" in
22953 # Handling of arguments.
22954 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22955 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22956 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22957 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22958 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22959 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22960 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22961 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22962 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22963 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22964 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22965 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22968 { (exit 1); exit 1; }; };;
22972 # If the user did not use the arguments to specify the items to instantiate,
22973 # then the envvar interface is used. Set only those that are not.
22974 # We use the long form for the default assignment because of an extremely
22975 # bizarre bug on SunOS 4.1.3.
22976 if $ac_need_defaults; then
22977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22982 # Have a temporary directory for convenience. Make it in the build tree
22983 # simply because there is no reason to put it here, and in addition,
22984 # creating and moving files from /tmp can sometimes cause problems.
22985 # Create a temporary directory, and hook for its removal unless debugging.
22988 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22989 trap '{ (exit 1); exit 1; }' 1 2 13 15
22992 # Create a (secure) tmp directory for tmp files.
22995 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22996 test -n "$tmp" && test -d "$tmp"
22999 tmp
=.
/confstat$$
-$RANDOM
23000 (umask 077 && mkdir
$tmp)
23003 echo "$me: cannot create a temporary directory in ." >&2
23004 { (exit 1); exit 1; }
23009 cat >>$CONFIG_STATUS <<_ACEOF
23012 # CONFIG_FILES section.
23015 # No need to generate the scripts if there are no CONFIG_FILES.
23016 # This happens for instance when ./config.status config.h
23017 if test -n "\$CONFIG_FILES"; then
23018 # Protect against being on the right side of a sed subst in config.status.
23019 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23020 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23021 s,@SHELL@,$SHELL,;t t
23022 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23023 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23024 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23025 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23026 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23027 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23028 s,@exec_prefix@,$exec_prefix,;t t
23029 s,@prefix@,$prefix,;t t
23030 s,@program_transform_name@,$program_transform_name,;t t
23031 s,@bindir@,$bindir,;t t
23032 s,@sbindir@,$sbindir,;t t
23033 s,@libexecdir@,$libexecdir,;t t
23034 s,@datadir@,$datadir,;t t
23035 s,@sysconfdir@,$sysconfdir,;t t
23036 s,@sharedstatedir@,$sharedstatedir,;t t
23037 s,@localstatedir@,$localstatedir,;t t
23038 s,@libdir@,$libdir,;t t
23039 s,@includedir@,$includedir,;t t
23040 s,@oldincludedir@,$oldincludedir,;t t
23041 s,@infodir@,$infodir,;t t
23042 s,@mandir@,$mandir,;t t
23043 s,@build_alias@,$build_alias,;t t
23044 s,@host_alias@,$host_alias,;t t
23045 s,@target_alias@,$target_alias,;t t
23046 s,@DEFS@,$DEFS,;t t
23047 s,@ECHO_C@,$ECHO_C,;t t
23048 s,@ECHO_N@,$ECHO_N,;t t
23049 s,@ECHO_T@,$ECHO_T,;t t
23050 s,@LIBS@,$LIBS,;t t
23051 s,@MAINT@,$MAINT,;t t
23052 s,@build@,$build,;t t
23053 s,@build_cpu@,$build_cpu,;t t
23054 s,@build_vendor@,$build_vendor,;t t
23055 s,@build_os@,$build_os,;t t
23056 s,@host@,$host,;t t
23057 s,@host_cpu@,$host_cpu,;t t
23058 s,@host_vendor@,$host_vendor,;t t
23059 s,@host_os@,$host_os,;t t
23061 s,@CFLAGS@,$CFLAGS,;t t
23062 s,@LDFLAGS@,$LDFLAGS,;t t
23063 s,@CPPFLAGS@,$CPPFLAGS,;t t
23064 s,@ac_ct_CC@,$ac_ct_CC,;t t
23065 s,@EXEEXT@,$EXEEXT,;t t
23066 s,@OBJEXT@,$OBJEXT,;t t
23067 s,@LN_S@,$LN_S,;t t
23069 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23070 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23071 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23072 s,@RANLIB@,$RANLIB,;t t
23073 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23074 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23075 s,@GZIP_PROG@,$GZIP_PROG,;t t
23076 s,@EGREP@,$EGREP,;t t
23077 s,@LIBSOUND@,$LIBSOUND,;t t
23078 s,@SET_MAKE@,$SET_MAKE,;t t
23079 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23080 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23081 s,@GTK_LIBS@,$GTK_LIBS,;t t
23082 s,@ALLOCA@,$ALLOCA,;t t
23083 s,@liblockfile@,$liblockfile,;t t
23084 s,@LIBOBJS@,$LIBOBJS,;t t
23085 s,@NEED_SETGID@,$NEED_SETGID,;t t
23086 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23087 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23088 s,@GETOPT_H@,$GETOPT_H,;t t
23089 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23090 s,@version@,$version,;t t
23091 s,@configuration@,$configuration,;t t
23092 s,@canonical@,$canonical,;t t
23093 s,@srcdir@,$srcdir,;t t
23094 s,@lispdir@,$lispdir,;t t
23095 s,@locallisppath@,$locallisppath,;t t
23096 s,@lisppath@,$lisppath,;t t
23097 s,@x_default_search_path@,$x_default_search_path,;t t
23098 s,@etcdir@,$etcdir,;t t
23099 s,@archlibdir@,$archlibdir,;t t
23100 s,@docdir@,$docdir,;t t
23101 s,@bitmapdir@,$bitmapdir,;t t
23102 s,@gamedir@,$gamedir,;t t
23103 s,@gameuser@,$gameuser,;t t
23104 s,@c_switch_system@,$c_switch_system,;t t
23105 s,@c_switch_machine@,$c_switch_machine,;t t
23106 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23107 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23108 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23109 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23110 s,@machfile@,$machfile,;t t
23111 s,@opsysfile@,$opsysfile,;t t
23112 s,@carbon_appdir@,$carbon_appdir,;t t
23113 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23118 cat >>$CONFIG_STATUS <<\_ACEOF
23119 # Split the substitutions into bite-sized pieces for seds with
23120 # small command number limits, like on Digital OSF/1 and HP-UX.
23121 ac_max_sed_lines
=48
23122 ac_sed_frag
=1 # Number of current file.
23123 ac_beg
=1 # First line for current file.
23124 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23127 while $ac_more_lines; do
23128 if test $ac_beg -gt 1; then
23129 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23131 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23133 if test ! -s $tmp/subs.frag
; then
23134 ac_more_lines
=false
23136 # The purpose of the label and of the branching condition is to
23137 # speed up the sed processing (if there are no `@' at all, there
23138 # is no need to browse any of the substitutions).
23139 # These are the two extra sed commands mentioned above.
23141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23142 if test -z "$ac_sed_cmds"; then
23143 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23145 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23147 ac_sed_frag
=`expr $ac_sed_frag + 1`
23149 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23152 if test -z "$ac_sed_cmds"; then
23155 fi # test -n "$CONFIG_FILES"
23158 cat >>$CONFIG_STATUS <<\_ACEOF
23159 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23162 - |
*:- |
*:-:* ) # input from stdin
23164 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23165 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23166 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23167 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23168 * ) ac_file_in
=$ac_file.
in ;;
23171 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23172 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23174 X"$ac_file" : 'X\(//\)[^/]' \| \
23175 X"$ac_file" : 'X\(//\)$' \| \
23176 X"$ac_file" : 'X\(/\)' \| \
23177 . : '\(.\)' 2>/dev/null ||
23179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23181 /^X\(\/\/\)$/{ s//\1/; q; }
23182 /^X\(\/\).*/{ s//\1/; q; }
23184 { if $as_mkdir_p; then
23189 while test ! -d "$as_dir"; do
23190 as_dirs
="$as_dir $as_dirs"
23191 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23193 X"$as_dir" : 'X\(//\)[^/]' \| \
23194 X"$as_dir" : 'X\(//\)$' \| \
23195 X"$as_dir" : 'X\(/\)' \| \
23196 . : '\(.\)' 2>/dev/null ||
23198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23200 /^X\(\/\/\)$/{ s//\1/; q; }
23201 /^X\(\/\).*/{ s//\1/; q; }
23204 test ! -n "$as_dirs" || mkdir
$as_dirs
23205 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23207 { (exit 1); exit 1; }; }; }
23211 if test "$ac_dir" != .
; then
23212 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23213 # A "../" for each directory in $ac_dir_suffix.
23214 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23216 ac_dir_suffix
= ac_top_builddir
=
23220 .
) # No --srcdir option. We are building in place.
23222 if test -z "$ac_top_builddir"; then
23225 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23227 [\\/]* | ?
:[\\/]* ) # Absolute path.
23228 ac_srcdir
=$srcdir$ac_dir_suffix;
23229 ac_top_srcdir
=$srcdir ;;
23230 *) # Relative path.
23231 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23232 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23235 # Do not use `cd foo && pwd` to compute absolute paths, because
23236 # the directories may not exist.
23238 .
) ac_abs_builddir
="$ac_dir";;
23241 .
) ac_abs_builddir
=`pwd`;;
23242 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23243 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23246 case $ac_abs_builddir in
23247 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23249 case ${ac_top_builddir}.
in
23250 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23251 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23252 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23255 case $ac_abs_builddir in
23256 .
) ac_abs_srcdir
=$ac_srcdir;;
23259 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23260 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23261 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23264 case $ac_abs_builddir in
23265 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23267 case $ac_top_srcdir in
23268 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23269 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23270 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23276 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23277 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23280 # Let's still pretend it is `configure' which instantiates (i.e., don't
23281 # use $as_me), people would be surprised to read:
23282 # /* config.h. Generated by config.status. */
23283 if test x
"$ac_file" = x-
; then
23286 configure_input
="$ac_file. "
23288 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23289 sed 's,.*/,,'` by configure."
23291 # First look for the input files in the build tree, otherwise in the
23293 ac_file_inputs
=`IFS=:
23294 for f in $ac_file_in; do
23296 -) echo $tmp/stdin ;;
23298 # Absolute (can't be DOS-style, as IFS=:)
23299 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23300 echo "$as_me: error: cannot find input file: $f" >&2;}
23301 { (exit 1); exit 1; }; }
23304 if test -f "$f"; then
23307 elif test -f "$srcdir/$f"; then
23312 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23313 echo "$as_me: error: cannot find input file: $f" >&2;}
23314 { (exit 1); exit 1; }; }
23317 done` ||
{ (exit 1); exit 1; }
23319 if test x
"$ac_file" != x-
; then
23320 { echo "$as_me:$LINENO: creating $ac_file" >&5
23321 echo "$as_me: creating $ac_file" >&6;}
23325 cat >>$CONFIG_STATUS <<_ACEOF
23329 cat >>$CONFIG_STATUS <<\_ACEOF
23331 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23332 s
,@configure_input@
,$configure_input,;t t
23333 s
,@srcdir@
,$ac_srcdir,;t t
23334 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23335 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23336 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23337 s
,@builddir@
,$ac_builddir,;t t
23338 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23339 s
,@top_builddir@
,$ac_top_builddir,;t t
23340 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23341 s
,@INSTALL@
,$ac_INSTALL,;t t
23342 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23344 if test x"$ac_file" != x-; then
23345 mv $tmp/out $ac_file
23353 cat >>$CONFIG_STATUS <<\_ACEOF
23356 # CONFIG_HEADER section.
23359 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23360 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23362 # ac_d sets the value in "#define NAME VALUE" lines.
23363 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23364 ac_dB
='[ ].*$,\1#\2'
23367 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23368 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23369 ac_uB
='$,\1#\2define\3'
23373 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23376 - |
*:- |
*:-:* ) # input from stdin
23378 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23379 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23380 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23381 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23382 * ) ac_file_in
=$ac_file.
in ;;
23385 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23386 echo "$as_me: creating $ac_file" >&6;}
23388 # First look for the input files in the build tree, otherwise in the
23390 ac_file_inputs
=`IFS=:
23391 for f in $ac_file_in; do
23393 -) echo $tmp/stdin ;;
23395 # Absolute (can't be DOS-style, as IFS=:)
23396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23397 echo "$as_me: error: cannot find input file: $f" >&2;}
23398 { (exit 1); exit 1; }; }
23399 # Do quote $f, to prevent DOS paths from being IFS'd.
23402 if test -f "$f"; then
23405 elif test -f "$srcdir/$f"; then
23410 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23411 echo "$as_me: error: cannot find input file: $f" >&2;}
23412 { (exit 1); exit 1; }; }
23415 done` ||
{ (exit 1); exit 1; }
23416 # Remove the trailing spaces.
23417 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23421 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23422 # `conftest.undefs', that substitutes the proper values into
23423 # config.h.in to produce config.h. The first handles `#define'
23424 # templates, and the second `#undef' templates.
23425 # And first: Protect against being on the right side of a sed subst in
23426 # config.status. Protect against being in an unquoted here document
23427 # in config.status.
23428 rm -f conftest.defines conftest.undefs
23429 # Using a here document instead of a string reduces the quoting nightmare.
23430 # Putting comments in sed scripts is not portable.
23432 # `end' is used to avoid that the second main sed command (meant for
23433 # 0-ary CPP macros) applies to n-ary macro definitions.
23434 # See the Autoconf documentation for `clear'.
23435 cat >confdef2sed.
sed <<\_ACEOF
23440 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23442 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23445 # If some macros were called several times there might be several times
23446 # the same #defines, which is useless. Nevertheless, we may not want to
23447 # sort them, since we want the *last* AC-DEFINE to be honored.
23448 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23449 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23450 rm -f confdef2sed.sed
23452 # This sed command replaces #undef with comments. This is necessary, for
23453 # example, in the case of _POSIX_SOURCE, which is predefined and required
23454 # on some systems where configure will not decide to define it.
23455 cat >>conftest.undefs <<\_ACEOF
23456 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23459 # Break up conftest.defines because some shells have a limit on the size
23460 # of here documents, and old seds have small limits too (100 cmds).
23461 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23462 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23463 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23464 echo ' :' >>$CONFIG_STATUS
23465 rm -f conftest.tail
23466 while grep . conftest.defines >/dev/null
23468 # Write a limited-size here document to $tmp/defines.sed.
23469 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23470 # Speed up: don't consider the non `#define' lines.
23471 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23472 # Work around the forget-to-reset-the-flag bug.
23473 echo 't clr' >>$CONFIG_STATUS
23474 echo ': clr' >>$CONFIG_STATUS
23475 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23477 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23479 mv $tmp/out $tmp/in
23481 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23482 rm -f conftest.defines
23483 mv conftest.
tail conftest.defines
23485 rm -f conftest.defines
23486 echo ' fi # grep' >>$CONFIG_STATUS
23487 echo >>$CONFIG_STATUS
23489 # Break up conftest.undefs because some shells have a limit on the size
23490 # of here documents, and old seds have small limits too (100 cmds).
23491 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23492 rm -f conftest.
tail
23493 while grep . conftest.undefs
>/dev
/null
23495 # Write a limited-size here document to $tmp/undefs.sed.
23496 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23497 # Speed up: don't consider the non
`#undef'
23498 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23499 # Work around the forget-to-reset-the-flag bug.
23500 echo 't clr' >>$CONFIG_STATUS
23501 echo ': clr' >>$CONFIG_STATUS
23502 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23504 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23506 mv $tmp/out $tmp/in
23508 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23509 rm -f conftest.undefs
23510 mv conftest.tail conftest.undefs
23512 rm -f conftest.undefs
23514 cat >>$CONFIG_STATUS <<\_ACEOF
23515 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23516 # use $as_me), people would be surprised to read:
23517 # /* config.h. Generated by config.status. */
23518 if test x
"$ac_file" = x-
; then
23519 echo "/* Generated by configure. */" >$tmp/config.h
23521 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23523 cat $tmp/in >>$tmp/config.h
23525 if test x
"$ac_file" != x-
; then
23526 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23527 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23528 echo "$as_me: $ac_file is unchanged" >&6;}
23530 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23532 X"$ac_file" : 'X\(//\)[^/]' \| \
23533 X"$ac_file" : 'X\(//\)$' \| \
23534 X"$ac_file" : 'X\(/\)' \| \
23535 . : '\(.\)' 2>/dev/null ||
23537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23539 /^X\(\/\/\)$/{ s//\1/; q; }
23540 /^X\(\/\).*/{ s//\1/; q; }
23542 { if $as_mkdir_p; then
23547 while test ! -d "$as_dir"; do
23548 as_dirs
="$as_dir $as_dirs"
23549 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23551 X"$as_dir" : 'X\(//\)[^/]' \| \
23552 X"$as_dir" : 'X\(//\)$' \| \
23553 X"$as_dir" : 'X\(/\)' \| \
23554 . : '\(.\)' 2>/dev/null ||
23556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23558 /^X\(\/\/\)$/{ s//\1/; q; }
23559 /^X\(\/\).*/{ s//\1/; q; }
23562 test ! -n "$as_dirs" || mkdir
$as_dirs
23563 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23565 { (exit 1); exit 1; }; }; }
23568 mv $tmp/config.h
$ac_file
23572 rm -f $tmp/config.h
23576 cat >>$CONFIG_STATUS <<\_ACEOF
23579 # CONFIG_COMMANDS section.
23581 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23582 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23583 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23584 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23585 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23586 X"$ac_dest" : 'X\(//\)[^/]' \| \
23587 X"$ac_dest" : 'X\(//\)$' \| \
23588 X"$ac_dest" : 'X\(/\)' \| \
23589 . : '\(.\)' 2>/dev/null ||
23591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23593 /^X\(\/\/\)$/{ s//\1/; q; }
23594 /^X\(\/\).*/{ s//\1/; q; }
23596 { if $as_mkdir_p; then
23601 while test ! -d "$as_dir"; do
23602 as_dirs
="$as_dir $as_dirs"
23603 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23605 X"$as_dir" : 'X\(//\)[^/]' \| \
23606 X"$as_dir" : 'X\(//\)$' \| \
23607 X"$as_dir" : 'X\(/\)' \| \
23608 . : '\(.\)' 2>/dev/null ||
23610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23612 /^X\(\/\/\)$/{ s//\1/; q; }
23613 /^X\(\/\).*/{ s//\1/; q; }
23616 test ! -n "$as_dirs" || mkdir
$as_dirs
23617 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23619 { (exit 1); exit 1; }; }; }
23623 if test "$ac_dir" != .
; then
23624 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23625 # A "../" for each directory in $ac_dir_suffix.
23626 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23628 ac_dir_suffix
= ac_top_builddir
=
23632 .
) # No --srcdir option. We are building in place.
23634 if test -z "$ac_top_builddir"; then
23637 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23639 [\\/]* | ?
:[\\/]* ) # Absolute path.
23640 ac_srcdir
=$srcdir$ac_dir_suffix;
23641 ac_top_srcdir
=$srcdir ;;
23642 *) # Relative path.
23643 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23644 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23647 # Do not use `cd foo && pwd` to compute absolute paths, because
23648 # the directories may not exist.
23650 .
) ac_abs_builddir
="$ac_dir";;
23653 .
) ac_abs_builddir
=`pwd`;;
23654 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23655 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23658 case $ac_abs_builddir in
23659 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23661 case ${ac_top_builddir}.
in
23662 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23663 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23664 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23667 case $ac_abs_builddir in
23668 .
) ac_abs_srcdir
=$ac_srcdir;;
23671 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23672 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23673 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23676 case $ac_abs_builddir in
23677 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23679 case $ac_top_srcdir in
23680 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23681 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23682 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23687 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23688 echo "$as_me: executing $ac_dest commands" >&6;}
23692 ### Make the necessary directories, if they don't exist.
23693 for dir
in etc lisp
; do
23694 test -d ${dir} || mkdir
${dir}
23697 # Build src/Makefile from ${srcdir}/src/Makefile.c
23698 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23699 # This must be done after src/config.h is built, since we rely on that file.
23701 # Now get this: Some word that is part of the ${srcdir} directory name
23702 # or the ${configuration} value might, just might, happen to be an
23703 # identifier like `sun4' or `i386' or something, and be predefined by
23704 # the C preprocessor to some helpful value like 1, or maybe the empty
23705 # string. Needless to say consequent macro substitutions are less
23706 # than conducive to the makefile finding the correct directory.
23707 undefs
="`echo $top_srcdir $configuration $canonical |
23708 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23709 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23712 echo creating src
/epaths.h
23713 ${MAKE-make} epaths-force
23715 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23716 # `..' to `. .' unless invoked with -traditional
23718 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23719 CPPFLAGS
="$CPPFLAGS -traditional"
23722 echo creating lib-src
/Makefile
23724 rm -f junk.c junk1.c junk2.c
23725 sed -e '/start of cpp stuff/q' \
23726 < Makefile.c
> junk1.c
23727 sed -e '1,/start of cpp stuff/d'\
23728 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23729 < Makefile.c
> junk.c
23730 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23731 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23732 cat junk1.c junk2.c
> Makefile.new
23733 rm -f junk.c junk1.c junk2.c
23734 chmod 444 Makefile.new
23735 mv -f Makefile.new Makefile
23738 echo creating src
/Makefile
23740 rm -f junk.c junk1.c junk2.c
23741 sed -e '/start of cpp stuff/q' \
23742 < Makefile.c
> junk1.c
23743 sed -e '1,/start of cpp stuff/d'\
23744 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23745 < Makefile.c
> junk.c
23746 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23747 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23748 cat junk1.c junk2.c
> Makefile.new
23749 rm -f junk.c junk1.c junk2.c
23750 chmod 444 Makefile.new
23751 mv -f Makefile.new Makefile
23754 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23755 echo creating src
/.gdbinit
23756 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23759 # This is how we know whether to re-run configure in certain cases.
23760 touch src
/config.stamp
23767 cat >>$CONFIG_STATUS <<\_ACEOF
23769 { (exit 0); exit 0; }
23771 chmod +x
$CONFIG_STATUS
23772 ac_clean_files
=$ac_clean_files_save
23775 # configure is writing to config.log, and then calls config.status.
23776 # config.status does its own redirection, appending to config.log.
23777 # Unfortunately, on DOS this fails, as config.log is still kept open
23778 # by configure, so config.status won't be able to write to it; its
23779 # output is simply discarded. So we exec the FD to /dev/null,
23780 # effectively closing config.log, so it can be properly (re)opened and
23781 # appended to by config.status. When coming back to configure, we
23782 # need to make the FD available again.
23783 if test "$no_create" != yes; then
23785 ac_config_status_args
=
23786 test "$silent" = yes &&
23787 ac_config_status_args
="$ac_config_status_args --quiet"
23789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23792 # would make configure fail if this is the last instruction.
23793 $ac_cs_success ||
{ (exit 1); exit 1; }