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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath
='${locallisppath}:${lispdir}'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 i
[3456]86-*-freebsd*) machine
=intel386
;;
1721 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1728 if test -f /usr
/lib
/crti.o
; then
1730 cat >>confdefs.h
<<\_ACEOF
1736 case "${canonical}" in
1737 alpha
*-*-netbsd*) machine
=alpha
;;
1738 i
[3456]86-*-netbsd*) machine
=intel386
;;
1740 # This is somewhat bogus.
1741 machine
=hp9000s300
;;
1742 powerpc-apple-netbsd
*) machine
=macppc
;;
1743 mips-
*-netbsd*) machine
=pmax
;;
1744 mipsel-
*-netbsd*) machine
=pmax
;;
1745 mipseb-
*-netbsd*) machine
=pmax
;;
1746 ns32k-
*-netbsd*) machine
=ns32000
;;
1747 powerpc-
*-netbsd*) machine
=macppc
;;
1748 sparc
*-*-netbsd*) machine
=sparc
;;
1749 vax-
*-netbsd*) machine
=vax
;;
1750 arm-
*-netbsd*) machine
=arm
;;
1757 case "${canonical}" in
1758 alpha
*-*-openbsd*) machine
=alpha
;;
1759 i386-
*-openbsd*) machine
=intel386
;;
1760 m68k-
*-openbsd*) machine
=hp9000s300
;;
1761 mipsel-
*-openbsd*) machine
=pmax
;;
1762 ns32k-
*-openbsd*) machine
=ns32000
;;
1763 sparc-
*-openbsd*) machine
=sparc
;;
1764 vax-
*-openbsd*) machine
=vax
;;
1771 case "${canonical}" in
1772 i
[3456]86-*-lynxos*) machine
=intel386
;;
1773 powerpc-
*-lynxos*) machine
=powerpc
;;
1778 arm-acorn-riscix1.1
* )
1779 machine
=acorn opsys
=riscix1-1
1781 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine
=acorn opsys
=riscix12
1790 case "${canonical}" in
1791 i
[345]86-*-bsdi*) machine
=intel386
;;
1792 sparc-
*-bsdi*) machine
=sparc
;;
1793 powerpc-
*-bsdi*) machine
=macppc
;;
1795 case "${canonical}" in
1796 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1797 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1798 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1799 *-*-bsdi3* ) opsys
=bsdos3
;;
1800 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1811 machine
=alliant4 opsys
=bsd4-2
1814 machine
=alliant-2800 opsys
=bsd4-3
1817 ## Alpha (DEC) machines.
1819 machine
=alpha opsys
=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP
=/usr
/bin
/cpp
1828 case "${canonical}" in
1829 alpha
*-dec-osf[5-9]*)
1834 alpha
*-*-linux-gnu* )
1835 machine
=alpha opsys
=gnu-linux
1839 machine
=arm opsys
=gnu-linux
1844 machine
=altos opsys
=usg5-2
1849 machine
=amdahl opsys
=usg5-2-2
1852 ## Apollo, Domain/OS
1854 machine
=apollo opsys
=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 machine
=att3b opsys
=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1864 machine
=7300 opsys
=usg5-2-2
1869 machine
=ibmrs6000 opsys
=aix3-2
1874 machine
=dpx2 opsys
=usg5-3
1879 machine
=sps7 opsys
=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd
* )
1889 machine
=celerity opsys
=bsd4-2
1893 ## What operating systems does this chip run that Emacs has been
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1902 mips-compaq-nonstopux
* )
1903 machine
=nonstopux opsys
=nonstopux
1907 *-convex-bsd* |
*-convex-convexos* )
1908 machine
=convex opsys
=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP
="cc -E -P"
1914 i
[3456]86-cubix-sysv* )
1915 machine
=intel386 opsys
=usg5-3
1919 cydra
*-cydrome-sysv* )
1920 machine
=cydra5 opsys
=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1930 machine
=aviion opsys
=dgux4
1932 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine
=aviion opsys
=dgux5-4-3
1937 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1938 machine
=aviion opsys
=dgux5-4r2
1941 machine
=aviion opsys
=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i
[345]86-dg-dguxR4* )
1948 machine
=aviion-intel opsys
=dgux4
1952 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1953 machine
=pmax opsys
=bsd4-2
1955 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1956 machine
=pmax opsys
=bsd4-3
1959 machine
=pmax opsys
=ultrix4-3
1962 machine
=pmax opsys
=osf1
1964 mips-dec-mach_bsd4.3
* )
1965 machine
=pmax opsys
=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1970 machine
=delta opsys
=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1973 if test -s /etc
/167config
1974 then CC
="gnucc -m68040"
1975 else CC
="gnucc -m68881"
1978 if test -z "`type gcc | grep 'not found'`"
1984 m88k-motorola-sysv4
* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine
=delta88k opsys
=usg5-4-2
1991 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1992 machine
=delta88k opsys
=usg5-3
1997 machine
=dual opsys
=usg5-2
1999 m68
*-dual-uniplus* )
2000 machine
=dual opsys
=unipl5-2
2005 machine
=elxsi opsys
=usg5-2
2010 machine
=ns16000 opsys
=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2018 machine
=gould opsys
=bsd4-2
2021 machine
=gould opsys
=bsd4-3
2024 machine
=gould-np1 opsys
=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2033 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2035 NON_GNU_CPP
="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 machine
=nh3000 opsys
=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix
)
2043 machine
=nh6000 opsys
=powerunix
2044 NON_GNU_CPP
="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1
-hitachi-hiuxmpp* )
2048 machine
=sr2k opsys
=hiuxmpp
2050 hppa1.1
-hitachi-hiuxwe2* )
2051 machine
=sr2k opsys
=hiuxwe2
2054 xps
*-honeywell-sysv* )
2055 machine
=xps100 opsys
=usg5-2
2058 ## HP 9000 series 200 or 300
2060 machine
=hp9000s300 opsys
=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2070 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2071 *) machine
=hp9000s300 opsys
=hpux
;;
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 machine
=hp800 opsys
=hpux
2080 machine
=hp800 opsys
=hpux8
2082 hppa
*-hp-hpux9shr* )
2083 machine
=hp800 opsys
=hpux9shr
2086 machine
=hp800 opsys
=hpux9
2088 hppa
*-hp-hpux10.2
* )
2089 machine
=hp800 opsys
=hpux10-20
2092 machine
=hp800 opsys
=hpux10
2094 hppa
*-hp-hpux1[1-9]* )
2095 machine
=hp800 opsys
=hpux11
2096 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2099 hppa
*-*-linux-gnu* )
2100 machine
=hp800 opsys
=gnu-linux
2103 ## HP 9000 series 700 and 800, running HP/UX
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2111 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2112 *) machine
=hp800 opsys
=hpux10
;;
2116 machine
=hp800 opsys
=nextstep
2121 machine
=orion opsys
=bsd4-2
2123 clipper-orion-bsd
* )
2124 machine
=orion105 opsys
=bsd4-2
2128 i
[3456]86-ibm-aix1.1
* )
2129 machine
=ibmps2-aix opsys
=usg5-2-2
2131 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2132 machine
=ibmps2-aix opsys
=usg5-3
2135 machine
=ibm370aix opsys
=usg5-3
2138 machine
=ibms390 opsys
=gnu-linux
2140 s390x-
*-linux-gnu* )
2141 machine
=ibms390x opsys
=gnu-linux
2143 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2144 machine
=ibmrs6000 opsys
=aix3-1
2146 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2147 machine
=ibmrs6000 opsys
=aix3-2-5
2149 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2150 machine
=ibmrs6000 opsys
=aix4-1
2152 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2153 machine
=ibmrs6000 opsys
=aix4-2
2155 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2156 machine
=ibmrs6000 opsys
=aix4-2
2158 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2159 machine
=ibmrs6000 opsys
=aix4
2161 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2162 machine
=ibmrs6000 opsys
=aix4-1
2164 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2165 machine
=ibmrs6000 opsys
=aix3-2
2168 machine
=ibmrt opsys
=bsd4-3
2171 machine
=ibmrt opsys
=bsd4-2
2174 machine
=ibmrt opsys
=bsd4-3
2177 machine
=ibmrt opsys
=bsd4-2
2180 machine
=ibmrt opsys
=bsd4-3
2183 machine
=ibmrt opsys
=bsd4-3
2186 machine
=ibmrt-aix opsys
=usg5-2-2
2189 ## Integrated Solutions `Optimum V'
2191 machine
=isi-ov opsys
=bsd4-2
2194 machine
=isi-ov opsys
=bsd4-3
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i
[3456]86-intsys-sysv* )
2199 machine
=is386 opsys
=usg5-2-2
2203 i
[3456]86-prime-sysv* )
2204 machine
=i386 opsys
=usg5-3
2207 ## Sequent Symmetry running Dynix
2208 i
[3456]86-sequent-bsd* )
2209 machine
=symmetry opsys
=bsd4-3
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2214 machine
=sequent-ptx opsys
=ptx4
2215 NON_GNU_CPP
=/lib
/cpp
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i
[3456]86-sequent-ptx* )
2221 machine
=sequent-ptx opsys
=ptx
2222 NON_GNU_CPP
="/lib/cpp"
2225 ## ncr machine running svr4.3.
2226 i
[3456]86-ncr-sysv4.3
)
2227 machine
=ncr386 opsys
=usg5-4-3
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i
[3456]86-ncr-sysv* )
2233 machine
=ncr386 opsys
=usg5-4-2
2236 ## Intel Paragon OSF/1
2238 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2243 machine
=i860 opsys
=usg5-4
2244 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2248 ## Macintosh PowerPC
2249 powerpc
*-*-linux-gnu* )
2250 machine
=macppc opsys
=gnu-linux
2253 ## Masscomp machines
2254 m68
*-masscomp-rtu* )
2255 machine
=masscomp opsys
=rtu
2258 ## Megatest machines
2259 m68
*-megatest-bsd* )
2260 machine
=mega68 opsys
=bsd4-2
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2276 ## Fall through to the general code at the bottom to decide on the OS.
2278 mips-mips-riscos4
* )
2279 machine
=mips4 opsys
=bsd4-3
2280 NON_GNU_CC
="cc -systype bsd43"
2281 NON_GNU_CPP
="cc -systype bsd43 -E"
2283 mips-mips-riscos5
* )
2284 machine
=mips4 opsys
=riscos5
2285 NON_GNU_CC
="cc -systype bsd43"
2286 NON_GNU_CPP
="cc -systype bsd43 -E"
2289 machine
=mips opsys
=bsd4-3
2292 machine
=mips opsys
=usg5-2-2
2296 m68
*-next-* | m68k-
*-nextstep* )
2297 machine
=m68k opsys
=nextstep
2300 ## The complete machine from National Semiconductor
2302 machine
=ns32000 opsys
=usg5-2
2306 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2307 machine
=tower32 opsys
=usg5-2-2
2309 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2310 machine
=tower32v3 opsys
=usg5-3
2315 machine
=ews4800 opsys
=ux4800
2318 ## Nixdorf Targon 31
2319 m68
*-nixdorf-sysv* )
2320 machine
=targon31 opsys
=usg5-2-2
2325 machine
=nu opsys
=usg5-2
2330 machine
=plexus opsys
=usg5-2
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd
* )
2337 machine
=pyramid opsys
=bsd4-2
2341 ns32k-sequent-bsd4.2
* )
2342 machine
=sequent opsys
=bsd4-2
2344 ns32k-sequent-bsd4.3
* )
2345 machine
=sequent opsys
=bsd4-3
2349 mips-siemens-sysv
* | mips-sni-sysv
*)
2350 machine
=mips-siemens opsys
=usg5-4
2351 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2352 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2358 machine
=irist opsys
=iris3-5
2360 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2361 machine
=irist opsys
=iris3-6
2365 machine
=iris4d opsys
=irix3-3
2368 machine
=iris4d opsys
=irix4-0
2371 machine
=iris4d opsys
=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2379 machine
=iris4d opsys
=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS
=-32
2386 mips-sgi-irix5.
[01]* )
2387 machine
=iris4d opsys
=irix5-0
2389 mips-sgi-irix5
* | mips-sgi-irix
* )
2390 machine
=iris4d opsys
=irix5-2
2395 machine
=news opsys
=bsd4-2
2398 machine
=news opsys
=bsd4-3
2400 m68
*-sony-newsos3* | m68
*-sony-news3*)
2401 machine
=news opsys
=bsd4-3
2403 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2404 machine
=news-risc opsys
=bsd4-3
2406 mips-sony-newsos6
* )
2407 machine
=news-r6 opsys
=newsos6
2410 machine
=news-risc opsys
=newsos5
2415 machine
=stride opsys
=usg5-2
2419 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2420 machine
=sparc opsys
=gnu-linux
2423 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2424 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2425 | rs6000-
*-solaris2*)
2426 case "${canonical}" in
2427 m68
*-sunos1* ) machine
=sun1
;;
2428 m68
*-sunos2* ) machine
=sun2
;;
2429 m68
* ) machine
=sun3
;;
2430 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2431 i
[3456]86-*-* ) machine
=intel386
;;
2432 powerpcle
* ) machine
=powerpcle
;;
2433 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2434 sparc
* ) machine
=sparc
;;
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2440 *-sunos4.0
* ) opsys
=sunos4-0
;;
2441 *-sunos4.1.
[3-9]*noshare
)
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2445 NON_GNU_CPP
=/usr
/lib
/cpp
2446 NON_GCC_TEST_OPTIONS
=-Bstatic
2447 GCC_TEST_OPTIONS
=-static
2449 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2451 NON_GNU_CPP
=/usr
/lib
/cpp
2453 *-sunos4* |
*-sunos )
2455 NON_GCC_TEST_OPTIONS
=-Bstatic
2456 GCC_TEST_OPTIONS
=-static
2458 *-sunos5.3
* |
*-solaris2.3
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2462 *-sunos5.4
* |
*-solaris2.4
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.5
* |
*-solaris2.5
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5.6
* |
*-solaris2.6
* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2477 *-sunos5* |
*-solaris* )
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* |
*-sunos5* )
2486 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2496 machine
=sparc opsys
=nextstep
2500 m68
*-tadpole-sysv* )
2501 machine
=tad68k opsys
=usg5-3
2505 tahoe-tahoe-bsd4.2
* )
2506 machine
=tahoe opsys
=bsd4-2
2508 tahoe-tahoe-bsd4.3
* )
2509 machine
=tahoe opsys
=bsd4-3
2512 ## Tandem Integrity S2
2514 machine
=tandem-s2 opsys
=usg5-3
2518 m88k-tektronix-sysv3
* )
2519 machine
=tekxd88 opsys
=usg5-3
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd
* )
2524 machine
=ns16000 opsys
=bsd4-2
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68
*-tektronix-bsd* )
2529 machine
=tek4300 opsys
=bsd4-3
2533 ## We seem to have lost the machine-description file titan.h!
2535 machine
=titan opsys
=usg5-3
2538 ## Ustation E30 (SS5E)
2539 m68
*-unisys-uniplus* )
2540 machine
=ustation opsystem
=unipl5-2
2546 case "${canonical}" in
2547 *-bsd4.1
* ) opsys
=bsd4-1
;;
2548 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2549 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2550 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2551 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2552 *-vms* ) opsys
=vms
;;
2558 ns16k-whitechapel-
* )
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2566 machine
=wicat opsys
=usg5-2
2571 machine
=ia64 opsys
=gnu-linux
2574 ## Intel 386 machines where we don't care about the manufacturer
2577 case "${canonical}" in
2578 *-cygwin ) opsys
=cygwin
;;
2579 *-darwin* ) opsys
=darwin
2580 CPP
="${CC-cc} -E -no-cpp-precomp"
2582 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2583 *-isc2.2
* ) opsys
=isc2-2
;;
2584 *-isc4.0
* ) opsys
=isc4-0
;;
2585 *-isc4.
* ) opsys
=isc4-1
2586 GCC_TEST_OPTIONS
=-posix
2587 NON_GCC_TEST_OPTIONS
=-Xp
2589 *-isc* ) opsys
=isc3-0
;;
2590 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2591 *-esix* ) opsys
=esix
;;
2592 *-xenix* ) opsys
=xenix
;;
2593 *-linux-gnu* ) opsys
=gnu-linux
;;
2594 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2595 *-sco3.2v5
* ) opsys
=sco5
2596 NON_GNU_CPP
=/lib
/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS
=" "
2601 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2602 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2604 *-386bsd* ) opsys
=386bsd
;;
2605 *-nextstep* ) opsys
=nextstep
;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2610 ## m68k Linux-based GNU system
2612 machine
=m68k opsys
=gnu-linux
2615 ## Mips Linux-based GNU system
2616 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2617 machine
=mips opsys
=gnu-linux
2621 sparc-fujitsu-sysv4
* )
2622 machine
=sparc opsys
=uxpds
2623 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2628 f301-fujitsu-uxpv4.1
)
2629 machine
=f301 opsys
=uxpv
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin
* )
2634 machine
=powermac opsys
=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP
="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw
/include
&& test -d /sw
/lib
; then
2639 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2640 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-
*-linux-gnu* )
2647 machine
=amdx86-64 opsys
=gnu-linux
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2661 if test x
"${opsys}" = x
; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys
=gnu
;;
2664 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2665 *-bsd4.2
) opsys
=bsd4-2
;;
2666 *-bsd4.3
) opsys
=bsd4-3
;;
2667 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2668 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2669 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2670 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2671 *-sysv4.2uw
* ) opsys
=unixware
;;
2672 *-sysv5uw* ) opsys
=unixware
;;
2673 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2674 *-sysv4.1
* |
*-sysvr4.1
* )
2675 NON_GNU_CPP
=/usr
/lib
/cpp
2677 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2678 if [ x
$NON_GNU_CPP = x
]; then
2679 if [ -f /usr
/ccs
/lib
/cpp
]; then
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 NON_GNU_CPP
=/lib
/cpp
2686 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2703 machfile
="m/${machine}.h"
2704 opsysfile
="s/${opsys}.h"
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified
=yes
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS
="$CFLAGS"
2714 "yes" ) CC
="gcc" GCC
=yes ;;
2715 "no" ) : ${CC=cc} ;;
2719 ac_cpp
='$CPP $CPPFLAGS'
2720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC
="$CC" # Let the user override the test.
2734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir
=.
2739 for ac_exec_ext
in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_CC"; then
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc
; ac_word
=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir
=.
2777 for ac_exec_ext
in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC
="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC
="$CC" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc
; ac_word
=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir
=.
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC
="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc
; ac_word
=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC
="$CC" # Let the user override the test.
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir
=.
2900 for ac_exec_ext
in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected
=yes
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy
$ac_cv_prog_CC
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2922 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC
="$CC" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CC" && break
2979 if test -z "$CC"; then
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy
$ac_prog; ac_word
=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC
="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ac_ct_CC" && break
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler
=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </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); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 ac_clean_files_save
=$ac_clean_files
3069 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3088 # b.out is created by i960 compilers.
3089 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3091 test -f "$ac_file" ||
continue
3093 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3096 # This is the source file.
3099 # We found the default executable, but exeext='' is most
3103 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3124 ac_exeext
=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try
='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 if test "$cross_compiling" = maybe
; then
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3159 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3160 ac_clean_files
=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 for ac_file
in conftest.exe conftest conftest.
*; do
3180 test -f "$ac_file" ||
continue
3182 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3183 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3197 rm -f conftest
$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3201 rm -f conftest.
$ac_ext
3202 EXEEXT
=$ac_cv_exeext
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3233 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.
$ac_ext >&5
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT
=$ac_cv_objext
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 cat >conftest.
$ac_ext <<_ACEOF
3262 cat confdefs.h
>>conftest.
$ac_ext
3263 cat >>conftest.
$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3277 rm -f conftest.
$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try
='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.
$ac_ext >&5
3305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3306 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CFLAGS
=${CFLAGS+set}
3313 ac_save_CFLAGS
=$CFLAGS
3315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317 if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.
$ac_ext <<_ACEOF
3323 cat confdefs.h
>>conftest.
$ac_ext
3324 cat >>conftest.
$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3335 rm -f conftest.
$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3339 grep -v '^ *+' conftest.er1
>conftest.err
3341 cat conftest.err
>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try
='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.
$ac_ext >&5
3363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3367 if test "$ac_test_CFLAGS" = set; then
3368 CFLAGS
=$ac_save_CFLAGS
3369 elif test $ac_cv_prog_cc_g = yes; then
3370 if test "$GCC" = yes; then
3376 if test "$GCC" = yes; then
3382 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3383 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3384 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_prog_cc_stdc
=no
3389 cat >conftest.
$ac_ext <<_ACEOF
3392 cat confdefs.h
>>conftest.
$ac_ext
3393 cat >>conftest.
$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3397 #include <sys/types.h>
3398 #include <sys/stat.h>
3399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3400 struct buf { int x; };
3401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402 static char *e (p, i)
3408 static char *f (char * (*g) (char **, int), char **p, ...)
3413 s = g (p, va_arg (v,int));
3418 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3419 function prototypes and stuff, but not '\xHH' hex character constants.
3420 These don't provoke an error unfortunately, instead are silently treated
3421 as 'x'. The following induces an error, until -std1 is added to get
3422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3423 array size at least. It's necessary to write '\x00'==0 to get something
3424 that's true only with -std1. */
3425 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 # Don't try gcc -ansi; that turns off useful extensions and
3442 # breaks some systems' header files.
3443 # AIX -qlanglvl=ansi
3444 # Ultrix and OSF/1 -std1
3445 # HP-UX 10.20 and later -Ae
3446 # HP-UX older versions -Aa -D_HPUX_SOURCE
3447 # SVR4 -Xc -D__EXTENSIONS__
3448 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 CC
="$ac_save_CC $ac_arg"
3451 rm -f conftest.
$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1
>conftest.err
3457 cat conftest.err
>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try
='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_prog_cc_stdc
=$ac_arg
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.
$ac_ext >&5
3479 rm -f conftest.err conftest.
$ac_objext
3481 rm -f conftest.
$ac_ext conftest.
$ac_objext
3486 case "x$ac_cv_prog_cc_stdc" in
3488 echo "$as_me:$LINENO: result: none needed" >&5
3489 echo "${ECHO_T}none needed" >&6 ;;
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3493 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3496 # Some people use a C++ compiler to compile C. Since we use `exit',
3497 # in C++ we need to declare it. In case someone uses the same compiler
3498 # for both compiling C and C++ we need to have the C++ compiler decide
3499 # the declaration of exit, since it's the most demanding environment.
3500 cat >conftest.
$ac_ext <<_ACEOF
3505 rm -f conftest.
$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1
>conftest.err
3511 cat conftest.err
>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try
='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 for ac_declaration
in \
3528 'extern "C" void std::exit (int) throw (); using std::exit;' \
3529 'extern "C" void std::exit (int); using std::exit;' \
3530 'extern "C" void exit (int) throw ();' \
3531 'extern "C" void exit (int);' \
3534 cat >conftest.
$ac_ext <<_ACEOF
3537 cat confdefs.h
>>conftest.
$ac_ext
3538 cat >>conftest.
$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3550 rm -f conftest.
$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1
>conftest.err
3556 cat conftest.err
>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try
='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.
$ac_ext >&5
3578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.
$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3598 grep -v '^ *+' conftest.er1
>conftest.err
3600 cat conftest.err
>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try
='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.
$ac_ext >&5
3621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3624 if test -n "$ac_declaration"; then
3625 echo '#ifdef __cplusplus' >>confdefs.h
3626 echo $ac_declaration >>confdefs.h
3627 echo '#endif' >>confdefs.h
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.
$ac_ext >&5
3635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3637 ac_cpp
='$CPP $CPPFLAGS'
3638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3643 # On Suns, sometimes $CPP names a directory.
3644 if test -n "$CPP" && test -d "$CPP"; then
3648 #### Some systems specify a CPP to use unless we are using GCC.
3649 #### Now that we know whether we are using GCC, we can decide whether
3650 #### to use that one.
3651 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3656 #### Some systems specify a CC to use unless we are using GCC.
3657 #### Now that we know whether we are using GCC, we can decide whether
3658 #### to use that one.
3659 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3660 test x
$cc_specified != xyes
3665 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3667 CC
="$CC $GCC_TEST_OPTIONS"
3670 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3672 CC
="$CC $NON_GCC_TEST_OPTIONS"
3677 ac_cpp
='$CPP $CPPFLAGS'
3678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3681 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3682 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3683 # On Suns, sometimes $CPP names a directory.
3684 if test -n "$CPP" && test -d "$CPP"; then
3687 if test -z "$CPP"; then
3688 if test "${ac_cv_prog_CPP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 # Double quotes because CPP needs to be expanded
3692 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3695 for ac_c_preproc_warn_flag
in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.
$ac_ext <<_ACEOF
3706 cat confdefs.h
>>conftest.
$ac_ext
3707 cat >>conftest.
$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3710 # include <limits.h>
3712 # include <assert.h>
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
3721 cat conftest.err
>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev
/null
; then
3724 if test -s conftest.err
; then
3725 ac_cpp_err
=$ac_c_preproc_warn_flag
3726 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3733 if test -z "$ac_cpp_err"; then
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.
$ac_ext >&5
3739 # Broken: fails on valid input.
3742 rm -f conftest.err conftest.
$ac_ext
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.
$ac_ext <<_ACEOF
3749 cat confdefs.h
>>conftest.
$ac_ext
3750 cat >>conftest.
$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev
/null
; then
3762 if test -s conftest.err
; then
3763 ac_cpp_err
=$ac_c_preproc_warn_flag
3764 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.
$ac_ext >&5
3778 # Passes both tests.
3782 rm -f conftest.err conftest.
$ac_ext
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.
$ac_ext
3787 if $ac_preproc_ok; then
3799 echo "$as_me:$LINENO: result: $CPP" >&5
3800 echo "${ECHO_T}$CPP" >&6
3802 for ac_c_preproc_warn_flag
in '' yes
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat >conftest.
$ac_ext <<_ACEOF
3813 cat confdefs.h
>>conftest.
$ac_ext
3814 cat >>conftest.
$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 # include <limits.h>
3819 # include <assert.h>
3823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3826 grep -v '^ *+' conftest.er1
>conftest.err
3828 cat conftest.err
>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev
/null
; then
3831 if test -s conftest.err
; then
3832 ac_cpp_err
=$ac_c_preproc_warn_flag
3833 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3840 if test -z "$ac_cpp_err"; then
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.
$ac_ext >&5
3846 # Broken: fails on valid input.
3849 rm -f conftest.err conftest.
$ac_ext
3851 # OK, works on sane cases. Now check whether non-existent headers
3852 # can be detected and how.
3853 cat >conftest.
$ac_ext <<_ACEOF
3856 cat confdefs.h
>>conftest.
$ac_ext
3857 cat >>conftest.
$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1
>conftest.err
3866 cat conftest.err
>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev
/null
; then
3869 if test -s conftest.err
; then
3870 ac_cpp_err
=$ac_c_preproc_warn_flag
3871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3878 if test -z "$ac_cpp_err"; then
3879 # Broken: success on invalid input.
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3885 # Passes both tests.
3889 rm -f conftest.err conftest.
$ac_ext
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.
$ac_ext
3894 if $ac_preproc_ok; then
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; }
3905 ac_cpp
='$CPP $CPPFLAGS'
3906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3917 then ac_cv_prog_egrep
='grep -E'
3918 else ac_cv_prog_egrep
='egrep'
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923 EGREP
=$ac_cv_prog_egrep
3927 echo "$as_me:$LINENO: checking for AIX" >&5
3928 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3929 cat >conftest.
$ac_ext <<_ACEOF
3932 cat confdefs.h
>>conftest.
$ac_ext
3933 cat >>conftest.
$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "yes" >/dev
/null
2>&1; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 cat >>confdefs.h
<<\_ACEOF
3945 #define _ALL_SOURCE 1
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3956 cat >>confdefs.h
<<\_ACEOF
3957 #define _GNU_SOURCE 1
3962 ### Use -Wno-pointer-sign if the compiler supports it
3963 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3964 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3965 SAVE_CFLAGS
="$CFLAGS"
3966 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3967 cat >conftest.
$ac_ext <<_ACEOF
3970 cat confdefs.h
>>conftest.
$ac_ext
3971 cat >>conftest.
$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3982 rm -f conftest.
$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3986 grep -v '^ *+' conftest.er1
>conftest.err
3988 cat conftest.err
>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try
='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.
$ac_ext >&5
4010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4011 if test $has_option = yes; then
4012 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4014 echo "$as_me:$LINENO: result: $has_option" >&5
4015 echo "${ECHO_T}$has_option" >&6
4016 CFLAGS
="$SAVE_CFLAGS"
4020 #### Some other nice autoconf tests.
4022 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4023 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4025 if test "$LN_S" = "ln -s"; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027 echo "${ECHO_T}yes" >&6
4029 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4030 echo "${ECHO_T}no, using $LN_S" >&6
4034 ac_cpp
='$CPP $CPPFLAGS'
4035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4038 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 # Double quotes because CPP needs to be expanded
4049 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4052 for ac_c_preproc_warn_flag
in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 # include <limits.h>
4069 # include <assert.h>
4073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4076 grep -v '^ *+' conftest.er1
>conftest.err
4078 cat conftest.err
>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } >/dev
/null
; then
4081 if test -s conftest.err
; then
4082 ac_cpp_err
=$ac_c_preproc_warn_flag
4083 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4090 if test -z "$ac_cpp_err"; then
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.
$ac_ext >&5
4096 # Broken: fails on valid input.
4099 rm -f conftest.err conftest.
$ac_ext
4101 # OK, works on sane cases. Now check whether non-existent headers
4102 # can be detected and how.
4103 cat >conftest.
$ac_ext <<_ACEOF
4106 cat confdefs.h
>>conftest.
$ac_ext
4107 cat >>conftest.
$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1
>conftest.err
4116 cat conftest.err
>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } >/dev
/null
; then
4119 if test -s conftest.err
; then
4120 ac_cpp_err
=$ac_c_preproc_warn_flag
4121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4128 if test -z "$ac_cpp_err"; then
4129 # Broken: success on invalid input.
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.
$ac_ext >&5
4135 # Passes both tests.
4139 rm -f conftest.err conftest.
$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.
$ac_ext
4144 if $ac_preproc_ok; then
4156 echo "$as_me:$LINENO: result: $CPP" >&5
4157 echo "${ECHO_T}$CPP" >&6
4159 for ac_c_preproc_warn_flag
in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.
$ac_ext <<_ACEOF
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1
>conftest.err
4185 cat conftest.err
>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev
/null
; then
4188 if test -s conftest.err
; then
4189 ac_cpp_err
=$ac_c_preproc_warn_flag
4190 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4197 if test -z "$ac_cpp_err"; then
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.
$ac_ext >&5
4203 # Broken: fails on valid input.
4206 rm -f conftest.err conftest.
$ac_ext
4208 # OK, works on sane cases. Now check whether non-existent headers
4209 # can be detected and how.
4210 cat >conftest.
$ac_ext <<_ACEOF
4213 cat confdefs.h
>>conftest.
$ac_ext
4214 cat >>conftest.
$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev
/null
; then
4226 if test -s conftest.err
; then
4227 ac_cpp_err
=$ac_c_preproc_warn_flag
4228 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4235 if test -z "$ac_cpp_err"; then
4236 # Broken: success on invalid input.
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.
$ac_ext >&5
4242 # Passes both tests.
4246 rm -f conftest.err conftest.
$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.
$ac_ext
4251 if $ac_preproc_ok; then
4254 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details." >&5
4256 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&2;}
4258 { (exit 1); exit 1; }; }
4262 ac_cpp
='$CPP $CPPFLAGS'
4263 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4267 # Find a good install program. We prefer a C program (faster),
4268 # so one script is as good as another. But avoid the broken or
4269 # incompatible versions:
4270 # SysV /etc/install, /usr/sbin/install
4271 # SunOS /usr/etc/install
4272 # IRIX /sbin/install
4274 # AmigaOS /C/install, which installs bootblocks on floppy discs
4275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4278 # OS/2's system install, which has a completely different semantic
4279 # ./install, which can be erroneously created by make from ./install.sh.
4280 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4281 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4282 if test -z "$INSTALL"; then
4283 if test "${ac_cv_path_install+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir
=.
4291 # Account for people who put trailing slashes in PATH elements.
4293 .
/ | .
// |
/cC
/* | \
4294 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4295 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4298 # OSF1 and SCO ODT 3.0 have their own names for install.
4299 # Don't use installbsd from OSF since it installs stuff as root
4301 for ac_prog
in ginstall scoinst
install; do
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4304 if test $ac_prog = install &&
4305 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4306 # AIX install. It has an incompatible calling convention.
4308 elif test $ac_prog = install &&
4309 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4310 # program-specific install script used by HP pwplus--don't use.
4313 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4325 if test "${ac_cv_path_install+set}" = set; then
4326 INSTALL
=$ac_cv_path_install
4328 # As a last resort, use the slow shell script. We don't cache a
4329 # path for INSTALL within a source directory, because that will
4330 # break other packages using the cache if that directory is
4331 # removed, or if the path is relative.
4332 INSTALL
=$ac_install_sh
4335 echo "$as_me:$LINENO: result: $INSTALL" >&5
4336 echo "${ECHO_T}$INSTALL" >&6
4338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4339 # It thinks the first close brace ends the variable substitution.
4340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4344 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4346 if test "x$RANLIB" = x
; then
4347 if test -n "$ac_tool_prefix"; then
4348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4349 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_RANLIB+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 if test -n "$RANLIB"; then
4356 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir
=.
4363 for ac_exec_ext
in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 RANLIB
=$ac_cv_prog_RANLIB
4375 if test -n "$RANLIB"; then
4376 echo "$as_me:$LINENO: result: $RANLIB" >&5
4377 echo "${ECHO_T}$RANLIB" >&6
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4384 if test -z "$ac_cv_prog_RANLIB"; then
4385 ac_ct_RANLIB
=$RANLIB
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib
; ac_word
=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$ac_ct_RANLIB"; then
4394 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir
=.
4401 for ac_exec_ext
in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4413 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4414 if test -n "$ac_ct_RANLIB"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4416 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4418 echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4422 RANLIB
=$ac_ct_RANLIB
4424 RANLIB
="$ac_cv_prog_RANLIB"
4428 # Extract the first word of "install-info", so it can be a program name with args.
4429 set dummy install-info
; ac_word
=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 case $INSTALL_INFO in
4437 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_exec_ext
in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4459 if test -n "$INSTALL_INFO"; then
4460 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4461 echo "${ECHO_T}$INSTALL_INFO" >&6
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 # Extract the first word of "install-info", so it can be a program name with args.
4468 set dummy install-info
; ac_word
=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 case $INSTALL_INFO in
4476 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4480 for as_dir
in /usr
/sbin
4483 test -z "$as_dir" && as_dir
=.
4484 for ac_exec_ext
in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4498 if test -n "$INSTALL_INFO"; then
4499 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4500 echo "${ECHO_T}$INSTALL_INFO" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 # Extract the first word of "install-info", so it can be a program name with args.
4507 set dummy install-info
; ac_word
=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 case $INSTALL_INFO in
4515 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir
=.
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4536 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4538 if test -n "$INSTALL_INFO"; then
4539 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4540 echo "${ECHO_T}$INSTALL_INFO" >&6
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4546 # Extract the first word of "gzip", so it can be a program name with args.
4547 set dummy
gzip; ac_word
=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir
=.
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4577 if test -n "$GZIP_PROG"; then
4578 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4579 echo "${ECHO_T}$GZIP_PROG" >&6
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4587 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4589 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4592 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4594 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4598 late_LDFLAGS
=$LDFLAGS
4599 if test "$GCC" = yes; then
4600 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4602 LDFLAGS
="$LDFLAGS -znocombreloc"
4605 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4606 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 rm -f conftest.
$ac_objext conftest
$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1
>conftest.err
4616 cat conftest.err
>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try
='test -s conftest$ac_exeext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.
$ac_ext >&5
4637 LDFLAGS
=$late_LDFLAGS
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4641 rm -f conftest.err conftest.
$ac_objext \
4642 conftest
$ac_exeext conftest.
$ac_ext
4644 #### Extract some information from the operating system and machine files.
4646 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4647 - which libraries the lib-src programs will want, and
4648 - whether the GNU malloc routines are usable..." >&5
4649 echo "$as_me: checking the machine- and system-dependent files to find out
4650 - which libraries the lib-src programs will want, and
4651 - whether the GNU malloc routines are usable..." >&6;}
4653 ### First figure out CFLAGS (which we use for running the compiler here)
4654 ### and REAL_CFLAGS (which we use for real compilation).
4655 ### The two are the same except on a few systems, where they are made
4656 ### different to work around various lossages. For example,
4657 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4658 ### as implying static linking.
4660 ### If the CFLAGS env var is specified, we use that value
4661 ### instead of the default.
4663 ### It's not important that this name contain the PID; you can't run
4664 ### two configures in the same directory and have anything work
4666 tempcname
="conftest.c"
4669 #include "'${srcdir}'/src/'${opsysfile}'"
4670 #include "'${srcdir}'/src/'${machfile}'"
4671 #ifndef LIBS_MACHINE
4672 #define LIBS_MACHINE
4677 #ifndef C_SWITCH_SYSTEM
4678 #define C_SWITCH_SYSTEM
4680 #ifndef C_SWITCH_MACHINE
4681 #define C_SWITCH_MACHINE
4683 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4684 configure___ c_switch_system=C_SWITCH_SYSTEM
4685 configure___ c_switch_machine=C_SWITCH_MACHINE
4688 #define LIB_X11_LIB -lX11
4691 #ifndef LIBX11_MACHINE
4692 #define LIBX11_MACHINE
4695 #ifndef LIBX11_SYSTEM
4696 #define LIBX11_SYSTEM
4698 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4701 configure___ unexec=UNEXEC
4703 configure___ unexec=unexec.o
4706 #ifdef SYSTEM_MALLOC
4707 configure___ system_malloc=yes
4709 configure___ system_malloc=no
4712 #ifdef USE_MMAP_FOR_BUFFERS
4713 configure___ use_mmap_for_buffers=yes
4715 configure___ use_mmap_for_buffers=no
4718 #ifndef C_DEBUG_SWITCH
4719 #define C_DEBUG_SWITCH -g
4722 #ifndef C_OPTIMIZE_SWITCH
4724 #define C_OPTIMIZE_SWITCH -O2
4726 #define C_OPTIMIZE_SWITCH -O
4730 #ifndef C_WARNINGS_SWITCH
4731 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4734 #ifndef LD_SWITCH_MACHINE
4735 #define LD_SWITCH_MACHINE
4738 #ifndef LD_SWITCH_SYSTEM
4739 #define LD_SWITCH_SYSTEM
4742 #ifndef LD_SWITCH_X_SITE_AUX
4743 #define LD_SWITCH_X_SITE_AUX
4746 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4747 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4749 #ifdef THIS_IS_CONFIGURE
4751 /* Get the CFLAGS for tests in configure. */
4753 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4755 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4758 #else /* not THIS_IS_CONFIGURE */
4760 /* Get the CFLAGS for real compilation. */
4762 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4764 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4767 #endif /* not THIS_IS_CONFIGURE */
4770 # The value of CPP is a quoted variable reference, so we need to do this
4771 # to get its actual value...
4772 CPP
=`eval "echo $CPP"`
4773 eval `${CPP} -Isrc ${tempcname} \
4774 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4775 if test "x$SPECIFIED_CFLAGS" = x
; then
4776 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4777 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4779 REAL_CFLAGS
="$CFLAGS"
4783 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4785 ### Make sure subsequent tests use flags consistent with the build flags.
4787 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4788 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4790 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4795 # Check whether --enable-largefile or --disable-largefile was given.
4796 if test "${enable_largefile+set}" = set; then
4797 enableval
="$enable_largefile"
4800 if test "$enable_largefile" != no
; then
4802 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4803 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4804 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 ac_cv_sys_largefile_CC
=no
4808 if test "$GCC" != yes; then
4811 # IRIX 6.2 and later do not support large files by default,
4812 # so use the C compiler's -n32 option if that helps.
4813 cat >conftest.
$ac_ext <<_ACEOF
4816 cat confdefs.h
>>conftest.
$ac_ext
4817 cat >>conftest.
$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 /* Check that off_t can represent 2**63 - 1 correctly.
4821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4822 since some C++ compilers masquerading as C compilers
4823 incorrectly reject 9223372036854775807. */
4824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4826 && LARGE_OFF_T % 2147483647 == 1)
4836 rm -f conftest.
$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4840 grep -v '^ *+' conftest.er1
>conftest.err
4842 cat conftest.err
>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try
='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4863 rm -f conftest.err conftest.
$ac_objext
4865 rm -f conftest.
$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sys_largefile_CC
=' -n32'; break
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4892 rm -f conftest.err conftest.
$ac_objext
4896 rm -f conftest.
$ac_ext
4899 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4900 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4901 if test "$ac_cv_sys_largefile_CC" != no
; then
4902 CC
=$CC$ac_cv_sys_largefile_CC
4905 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4906 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4907 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_cv_sys_file_offset_bits
=no
4912 cat >conftest.
$ac_ext <<_ACEOF
4915 cat confdefs.h
>>conftest.
$ac_ext
4916 cat >>conftest.
$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4935 rm -f conftest.
$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1
>conftest.err
4941 cat conftest.err
>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try
='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.
$ac_ext >&5
4962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 cat >conftest.
$ac_ext <<_ACEOF
4966 cat confdefs.h
>>conftest.
$ac_ext
4967 cat >>conftest.
$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #define _FILE_OFFSET_BITS 64
4970 #include <sys/types.h>
4971 /* Check that off_t can represent 2**63 - 1 correctly.
4972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4973 since some C++ compilers masquerading as C compilers
4974 incorrectly reject 9223372036854775807. */
4975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4977 && LARGE_OFF_T % 2147483647 == 1)
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1
>conftest.err
4993 cat conftest.err
>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try
='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_sys_file_offset_bits
=64; break
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.
$ac_ext >&5
5014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5019 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5020 if test "$ac_cv_sys_file_offset_bits" != no
; then
5022 cat >>confdefs.h
<<_ACEOF
5023 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5028 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5029 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5030 if test "${ac_cv_sys_large_files+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 ac_cv_sys_large_files
=no
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <sys/types.h>
5042 /* Check that off_t can represent 2**63 - 1 correctly.
5043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5044 since some C++ compilers masquerading as C compilers
5045 incorrectly reject 9223372036854775807. */
5046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5048 && LARGE_OFF_T % 2147483647 == 1)
5058 rm -f conftest.
$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>conftest.er1
5062 grep -v '^ *+' conftest.er1
>conftest.err
5064 cat conftest.err
>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try
='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.
$ac_ext >&5
5085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #define _LARGE_FILES 1
5093 #include <sys/types.h>
5094 /* Check that off_t can represent 2**63 - 1 correctly.
5095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5096 since some C++ compilers masquerading as C compilers
5097 incorrectly reject 9223372036854775807. */
5098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5100 && LARGE_OFF_T % 2147483647 == 1)
5110 rm -f conftest.
$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1
>conftest.err
5116 cat conftest.err
>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try
='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_sys_large_files
=1; break
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.
$ac_ext >&5
5137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5141 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5142 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5143 if test "$ac_cv_sys_large_files" != no
; then
5145 cat >>confdefs.h
<<_ACEOF
5146 #define _LARGE_FILES $ac_cv_sys_large_files
5158 if test "${with_sound}" != "no"; then
5159 # Sound support for GNU/Linux and the free BSDs.
5160 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5162 if test "${ac_cv_header_stdc+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 cat >conftest.
$ac_ext <<_ACEOF
5168 cat confdefs.h
>>conftest.
$ac_ext
5169 cat >>conftest.
$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5184 rm -f conftest.
$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5188 grep -v '^ *+' conftest.er1
>conftest.err
5190 cat conftest.err
>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try
='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_header_stdc
=yes
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.
$ac_ext >&5
5210 ac_cv_header_stdc
=no
5212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5214 if test $ac_cv_header_stdc = yes; then
5215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5216 cat >conftest.
$ac_ext <<_ACEOF
5219 cat confdefs.h
>>conftest.
$ac_ext
5220 cat >>conftest.
$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "memchr" >/dev
/null
2>&1; then
5229 ac_cv_header_stdc
=no
5235 if test $ac_cv_header_stdc = yes; then
5236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5237 cat >conftest.
$ac_ext <<_ACEOF
5240 cat confdefs.h
>>conftest.
$ac_ext
5241 cat >>conftest.
$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "free" >/dev
/null
2>&1; then
5250 ac_cv_header_stdc
=no
5256 if test $ac_cv_header_stdc = yes; then
5257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258 if test "$cross_compiling" = yes; then
5261 cat >conftest.
$ac_ext <<_ACEOF
5264 cat confdefs.h
>>conftest.
$ac_ext
5265 cat >>conftest.
$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5268 #if ((' ' & 0x0FF) == 0x020)
5269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5272 # define ISLOWER(c) \
5273 (('a' <= (c) && (c) <= 'i') \
5274 || ('j' <= (c) && (c) <= 'r') \
5275 || ('s' <= (c) && (c) <= 'z'))
5276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5284 for (i = 0; i < 256; i++)
5285 if (XOR (islower (i), ISLOWER (i))
5286 || toupper (i) != TOUPPER (i))
5291 rm -f conftest
$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5304 echo "$as_me: program exited with status $ac_status" >&5
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5309 ac_cv_header_stdc
=no
5311 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5317 if test $ac_cv_header_stdc = yes; then
5319 cat >>confdefs.h
<<\_ACEOF
5320 #define STDC_HEADERS 1
5325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5335 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5336 inttypes.h stdint.h unistd.h
5338 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 echo "$as_me:$LINENO: checking for $ac_header" >&5
5340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 cat >conftest.
$ac_ext <<_ACEOF
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 $ac_includes_default
5352 #include <$ac_header>
5354 rm -f conftest.
$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5358 grep -v '^ *+' conftest.er1
>conftest.err
5360 cat conftest.err
>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try
='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 eval "$as_ac_Header=yes"
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.
$ac_ext >&5
5380 eval "$as_ac_Header=no"
5382 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h
<<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5401 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5411 # Is the header compilable?
5412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5414 cat >conftest.
$ac_ext <<_ACEOF
5417 cat confdefs.h
>>conftest.
$ac_ext
5418 cat >>conftest.
$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5421 #include <$ac_header>
5423 rm -f conftest.
$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5427 grep -v '^ *+' conftest.er1
>conftest.err
5429 cat conftest.err
>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try
='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_header_compiler
=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.
$ac_ext >&5
5449 ac_header_compiler
=no
5451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5453 echo "${ECHO_T}$ac_header_compiler" >&6
5455 # Is the header present?
5456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5458 cat >conftest.
$ac_ext <<_ACEOF
5461 cat confdefs.h
>>conftest.
$ac_ext
5462 cat >>conftest.
$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <$ac_header>
5466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5469 grep -v '^ *+' conftest.er1
>conftest.err
5471 cat conftest.err
>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } >/dev
/null
; then
5474 if test -s conftest.err
; then
5475 ac_cpp_err
=$ac_c_preproc_warn_flag
5476 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5483 if test -z "$ac_cpp_err"; then
5484 ac_header_preproc
=yes
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5489 ac_header_preproc
=no
5491 rm -f conftest.err conftest.
$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5493 echo "${ECHO_T}$ac_header_preproc" >&6
5495 # So? What about this header?
5496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5502 ac_header_preproc
=yes
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5519 ## ------------------------------------------ ##
5520 ## Report this to the AC_PACKAGE_NAME lists. ##
5521 ## ------------------------------------------ ##
5524 sed "s/^/$as_me: WARNING: /" >&2
5527 echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 eval "$as_ac_Header=\$ac_header_preproc"
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5539 cat >>confdefs.h
<<_ACEOF
5540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5547 # Emulation library used on NetBSD.
5548 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5549 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5550 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_check_lib_save_LIBS
=$LIBS
5554 LIBS
="-lossaudio $LIBS"
5555 cat >conftest.
$ac_ext <<_ACEOF
5558 cat confdefs.h
>>conftest.
$ac_ext
5559 cat >>conftest.
$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5577 rm -f conftest.
$ac_objext conftest
$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>conftest.er1
5581 grep -v '^ *+' conftest.er1
>conftest.err
5583 cat conftest.err
>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try
='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_lib_ossaudio__oss_ioctl
=yes
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.
$ac_ext >&5
5603 ac_cv_lib_ossaudio__oss_ioctl
=no
5605 rm -f conftest.err conftest.
$ac_objext \
5606 conftest
$ac_exeext conftest.
$ac_ext
5607 LIBS
=$ac_check_lib_save_LIBS
5609 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5610 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5611 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5620 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5621 if test "X${with_pkg_config_prog}" != X
; then
5622 PKG_CONFIG
="${with_pkg_config_prog}"
5627 if test -z "$PKG_CONFIG"; then
5628 # Extract the first word of "pkg-config", so it can be a program name with args.
5629 set dummy pkg-config
; ac_word
=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir
=.
5645 for ac_exec_ext
in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5658 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5660 if test -n "$PKG_CONFIG"; then
5661 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5662 echo "${ECHO_T}$PKG_CONFIG" >&6
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5670 if test "$PKG_CONFIG" = "no" ; then
5673 PKG_CONFIG_MIN_VERSION
=0.9.0
5674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5675 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5676 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5678 if $PKG_CONFIG --exists "$ALSA_MODULES" ; then
5679 echo "$as_me:$LINENO: result: yes" >&5
5680 echo "${ECHO_T}yes" >&6
5683 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5684 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5685 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5686 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5687 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5689 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5690 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5691 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5692 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5693 echo "${ECHO_T}$ALSA_LIBS" >&6
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5699 ## If we have a custom action on failure, don't print errors, but
5700 ## do set a variable so people can do so.
5701 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5713 if test $succeeded = yes; then
5719 if test $HAVE_ALSA = yes; then
5720 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5721 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5723 cat >>confdefs.h
<<\_ACEOF
5756 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5757 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5758 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5759 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5762 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764 echo "$as_me:$LINENO: checking for $ac_header" >&5
5765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5772 # Is the header compilable?
5773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5775 cat >conftest.
$ac_ext <<_ACEOF
5778 cat confdefs.h
>>conftest.
$ac_ext
5779 cat >>conftest.
$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <$ac_header>
5784 rm -f conftest.
$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5788 grep -v '^ *+' conftest.er1
>conftest.err
5790 cat conftest.err
>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try
='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_header_compiler
=yes
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.
$ac_ext >&5
5810 ac_header_compiler
=no
5812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6
5816 # Is the header present?
5817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5819 cat >conftest.
$ac_ext <<_ACEOF
5822 cat confdefs.h
>>conftest.
$ac_ext
5823 cat >>conftest.
$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <$ac_header>
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1
>conftest.err
5832 cat conftest.err
>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev
/null
; then
5835 if test -s conftest.err
; then
5836 ac_cpp_err
=$ac_c_preproc_warn_flag
5837 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5844 if test -z "$ac_cpp_err"; then
5845 ac_header_preproc
=yes
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.
$ac_ext >&5
5850 ac_header_preproc
=no
5852 rm -f conftest.err conftest.
$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5854 echo "${ECHO_T}$ac_header_preproc" >&6
5856 # So? What about this header?
5857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5863 ac_header_preproc
=yes
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5880 ## ------------------------------------------ ##
5881 ## Report this to the AC_PACKAGE_NAME lists. ##
5882 ## ------------------------------------------ ##
5885 sed "s/^/$as_me: WARNING: /" >&2
5888 echo "$as_me:$LINENO: checking for $ac_header" >&5
5889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 eval "$as_ac_Header=\$ac_header_preproc"
5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5900 cat >>confdefs.h
<<_ACEOF
5901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5910 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #include <sys/personality.h>
5921 personality (PER_LINUX32)
5926 rm -f conftest.
$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1
>conftest.err
5932 cat conftest.err
>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try
='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 emacs_cv_personality_linux32
=yes
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 emacs_cv_personality_linux32
=no
5954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5955 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5956 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5958 if test $emacs_cv_personality_linux32 = yes; then
5960 cat >>confdefs.h
<<\_ACEOF
5961 #define HAVE_PERSONALITY_LINUX32 1
5967 for ac_header
in term.h
5969 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5970 echo "$as_me:$LINENO: checking for $ac_header" >&5
5971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.
$ac_ext <<_ACEOF
5978 cat confdefs.h
>>conftest.
$ac_ext
5979 cat >>conftest.
$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <$ac_header>
5983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5984 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev
/null
; then
5991 if test -s conftest.err
; then
5992 ac_cpp_err
=$ac_c_preproc_warn_flag
5993 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6000 if test -z "$ac_cpp_err"; then
6001 eval "$as_ac_Header=yes"
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.
$ac_ext >&5
6006 eval "$as_ac_Header=no"
6008 rm -f conftest.err conftest.
$ac_ext
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013 cat >>confdefs.h
<<_ACEOF
6014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6021 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6023 if test "${ac_cv_header_stdc+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.
$ac_ext <<_ACEOF
6029 cat confdefs.h
>>conftest.
$ac_ext
6030 cat >>conftest.
$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6045 rm -f conftest.
$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6049 grep -v '^ *+' conftest.er1
>conftest.err
6051 cat conftest.err
>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try
='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_header_stdc
=yes
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.
$ac_ext >&5
6071 ac_cv_header_stdc
=no
6073 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6075 if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6077 cat >conftest.
$ac_ext <<_ACEOF
6080 cat confdefs.h
>>conftest.
$ac_ext
6081 cat >>conftest.
$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "memchr" >/dev
/null
2>&1; then
6090 ac_cv_header_stdc
=no
6096 if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6098 cat >conftest.
$ac_ext <<_ACEOF
6101 cat confdefs.h
>>conftest.
$ac_ext
6102 cat >>conftest.
$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "free" >/dev
/null
2>&1; then
6111 ac_cv_header_stdc
=no
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6152 rm -f conftest
$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6170 ac_cv_header_stdc
=no
6172 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6176 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6178 if test $ac_cv_header_stdc = yes; then
6180 cat >>confdefs.h
<<\_ACEOF
6181 #define STDC_HEADERS 1
6186 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6187 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6188 if test "${ac_cv_header_time+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 cat >conftest.
$ac_ext <<_ACEOF
6194 cat confdefs.h
>>conftest.
$ac_ext
6195 cat >>conftest.
$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 #include <sys/time.h>
6204 if ((struct tm *) 0)
6210 rm -f conftest.
$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1
>conftest.err
6216 cat conftest.err
>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try
='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_header_time
=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.
$ac_ext >&5
6236 ac_cv_header_time
=no
6238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6240 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6241 echo "${ECHO_T}$ac_cv_header_time" >&6
6242 if test $ac_cv_header_time = yes; then
6244 cat >>confdefs.h
<<\_ACEOF
6245 #define TIME_WITH_SYS_TIME 1
6250 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6251 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6252 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 cat >conftest.
$ac_ext <<_ACEOF
6258 cat confdefs.h
>>conftest.
$ac_ext
6259 cat >>conftest.
$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6266 char *p = (char *) sys_siglist;
6273 rm -f conftest.
$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6277 grep -v '^ *+' conftest.er1
>conftest.err
6279 cat conftest.err
>&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try
='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_have_decl_sys_siglist
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_cv_have_decl_sys_siglist
=no
6301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6304 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6305 if test $ac_cv_have_decl_sys_siglist = yes; then
6307 cat >>confdefs.h
<<_ACEOF
6308 #define HAVE_DECL_SYS_SIGLIST 1
6313 cat >>confdefs.h
<<_ACEOF
6314 #define HAVE_DECL_SYS_SIGLIST 0
6321 if test $ac_cv_have_decl_sys_siglist != yes; then
6322 # For Tru64, at least:
6323 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6324 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6325 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.
$ac_ext <<_ACEOF
6331 cat confdefs.h
>>conftest.
$ac_ext
6332 cat >>conftest.
$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6338 #ifndef __sys_siglist
6339 char *p = (char *) __sys_siglist;
6346 rm -f conftest.
$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1
>conftest.err
6352 cat conftest.err
>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try
='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_have_decl___sys_siglist
=yes
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.
$ac_ext >&5
6372 ac_cv_have_decl___sys_siglist
=no
6374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6376 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6377 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6378 if test $ac_cv_have_decl___sys_siglist = yes; then
6380 cat >>confdefs.h
<<_ACEOF
6381 #define HAVE_DECL___SYS_SIGLIST 1
6386 cat >>confdefs.h
<<_ACEOF
6387 #define HAVE_DECL___SYS_SIGLIST 0
6394 if test $ac_cv_have_decl___sys_siglist = yes; then
6396 cat >>confdefs.h
<<\_ACEOF
6397 #define sys_siglist __sys_siglist
6402 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6405 echo $ECHO_N "(cached) $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 #include <sys/types.h>
6414 #include <sys/wait.h>
6416 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6432 rm -f conftest.
$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try
='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_header_sys_wait_h
=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.
$ac_ext >&5
6458 ac_cv_header_sys_wait_h
=no
6460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6463 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6464 if test $ac_cv_header_sys_wait_h = yes; then
6466 cat >>confdefs.h
<<\_ACEOF
6467 #define HAVE_SYS_WAIT_H 1
6473 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6474 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6475 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 cat >conftest.
$ac_ext <<_ACEOF
6481 cat confdefs.h
>>conftest.
$ac_ext
6482 cat >>conftest.
$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6500 static struct utimbuf x; x.actime = x.modtime;
6505 rm -f conftest.
$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1
>conftest.err
6511 cat conftest.err
>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try
='test -s conftest.$ac_objext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 emacs_cv_struct_utimbuf
=yes
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.
$ac_ext >&5
6531 emacs_cv_struct_utimbuf
=no
6533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6536 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6537 if test $emacs_cv_struct_utimbuf = yes; then
6539 cat >>confdefs.h
<<\_ACEOF
6540 #define HAVE_STRUCT_UTIMBUF 1
6545 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6546 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6547 if test "${ac_cv_type_signal+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 cat >conftest.
$ac_ext <<_ACEOF
6553 cat confdefs.h
>>conftest.
$ac_ext
6554 cat >>conftest.
$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6562 extern "C" void (*signal (int, void (*)(int)))(int);
6564 void (*signal ()) ();
6575 rm -f conftest.
$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>conftest.er1
6579 grep -v '^ *+' conftest.er1
>conftest.err
6581 cat conftest.err
>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try
='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_type_signal
=void
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.
$ac_ext >&5
6601 ac_cv_type_signal
=int
6603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6605 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6606 echo "${ECHO_T}$ac_cv_type_signal" >&6
6608 cat >>confdefs.h
<<_ACEOF
6609 #define RETSIGTYPE $ac_cv_type_signal
6614 echo "$as_me:$LINENO: checking for speed_t" >&5
6615 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6616 if test "${emacs_cv_speed_t+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 cat >conftest.
$ac_ext <<_ACEOF
6622 cat confdefs.h
>>conftest.
$ac_ext
6623 cat >>conftest.
$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <termios.h>
6634 rm -f conftest.
$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1
>conftest.err
6640 cat conftest.err
>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try
='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 emacs_cv_speed_t
=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.
$ac_ext >&5
6662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6664 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6665 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6666 if test $emacs_cv_speed_t = yes; then
6668 cat >>confdefs.h
<<\_ACEOF
6669 #define HAVE_SPEED_T 1
6674 echo "$as_me:$LINENO: checking for struct timeval" >&5
6675 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6676 if test "${emacs_cv_struct_timeval+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 cat >conftest.
$ac_ext <<_ACEOF
6682 cat confdefs.h
>>conftest.
$ac_ext
6683 cat >>conftest.
$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6685 #ifdef TIME_WITH_SYS_TIME
6686 #include <sys/time.h>
6689 #ifdef HAVE_SYS_TIME_H
6690 #include <sys/time.h>
6698 static struct timeval x; x.tv_sec = x.tv_usec;
6703 rm -f conftest.
$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6707 grep -v '^ *+' conftest.er1
>conftest.err
6709 cat conftest.err
>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try
='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 emacs_cv_struct_timeval
=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.
$ac_ext >&5
6729 emacs_cv_struct_timeval
=no
6731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6733 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6734 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6735 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6736 if test $emacs_cv_struct_timeval = yes; then
6738 cat >>confdefs.h
<<\_ACEOF
6739 #define HAVE_TIMEVAL 1
6744 echo "$as_me:$LINENO: checking for struct exception" >&5
6745 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6746 if test "${emacs_cv_struct_exception+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.
$ac_ext <<_ACEOF
6752 cat confdefs.h
>>conftest.
$ac_ext
6753 cat >>conftest.
$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6759 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6764 rm -f conftest.
$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1
>conftest.err
6770 cat conftest.err
>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try
='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 emacs_cv_struct_exception
=yes
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.
$ac_ext >&5
6790 emacs_cv_struct_exception
=no
6792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6794 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6795 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6796 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6797 if test $emacs_cv_struct_exception != yes; then
6799 cat >>confdefs.h
<<\_ACEOF
6800 #define NO_MATHERR 1
6806 for ac_header
in sys
/socket.h
6808 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810 echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818 # Is the header compilable?
6819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6821 cat >conftest.
$ac_ext <<_ACEOF
6824 cat confdefs.h
>>conftest.
$ac_ext
6825 cat >>conftest.
$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6828 #include <$ac_header>
6830 rm -f conftest.
$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1
>conftest.err
6836 cat conftest.err
>&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try
='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_header_compiler
=yes
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.
$ac_ext >&5
6856 ac_header_compiler
=no
6858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.
$ac_ext <<_ACEOF
6868 cat confdefs.h
>>conftest.
$ac_ext
6869 cat >>conftest.
$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <$ac_header>
6873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6874 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1
>conftest.err
6878 cat conftest.err
>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev
/null
; then
6881 if test -s conftest.err
; then
6882 ac_cpp_err
=$ac_c_preproc_warn_flag
6883 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6890 if test -z "$ac_cpp_err"; then
6891 ac_header_preproc
=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.
$ac_ext >&5
6896 ac_header_preproc
=no
6898 rm -f conftest.err conftest.
$ac_ext
6899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6900 echo "${ECHO_T}$ac_header_preproc" >&6
6902 # So? What about this header?
6903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6909 ac_header_preproc
=yes
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6926 ## ------------------------------------------ ##
6927 ## Report this to the AC_PACKAGE_NAME lists. ##
6928 ## ------------------------------------------ ##
6931 sed "s/^/$as_me: WARNING: /" >&2
6934 echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 eval "$as_ac_Header=\$ac_header_preproc"
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h
<<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955 for ac_header
in net
/if.h
6957 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 echo "$as_me:$LINENO: checking for $ac_header" >&5
6959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 cat >conftest.
$ac_ext <<_ACEOF
6966 cat confdefs.h
>>conftest.
$ac_ext
6967 cat >>conftest.
$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 $ac_includes_default
6970 #if HAVE_SYS_SOCKET_H
6971 #include <sys/socket.h>
6974 #include <$ac_header>
6976 rm -f conftest.
$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6980 grep -v '^ *+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try
='test -s conftest.$ac_objext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 eval "$as_ac_Header=yes"
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.
$ac_ext >&5
7002 eval "$as_ac_Header=no"
7004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7009 cat >>confdefs.h
<<_ACEOF
7010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7018 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7019 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7020 if test "${ac_cv_struct_tm+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 cat >conftest.
$ac_ext <<_ACEOF
7026 cat confdefs.h
>>conftest.
$ac_ext
7027 cat >>conftest.
$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <sys/types.h>
7035 struct tm *tp; tp->tm_sec;
7040 rm -f conftest.
$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7044 grep -v '^ *+' conftest.er1
>conftest.err
7046 cat conftest.err
>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try
='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_struct_tm
=time.h
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.
$ac_ext >&5
7066 ac_cv_struct_tm
=sys
/time.h
7068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7070 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7071 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7072 if test $ac_cv_struct_tm = sys
/time.h
; then
7074 cat >>confdefs.h
<<\_ACEOF
7075 #define TM_IN_SYS_TIME 1
7080 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7081 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7082 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 cat >conftest.
$ac_ext <<_ACEOF
7088 cat confdefs.h
>>conftest.
$ac_ext
7089 cat >>conftest.
$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <sys/types.h>
7092 #include <$ac_cv_struct_tm>
7098 static struct tm ac_aggr;
7099 if (ac_aggr.tm_zone)
7105 rm -f conftest.
$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1
>conftest.err
7111 cat conftest.err
>&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try
='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_member_struct_tm_tm_zone
=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.
$ac_ext >&5
7131 cat >conftest.
$ac_ext <<_ACEOF
7134 cat confdefs.h
>>conftest.
$ac_ext
7135 cat >>conftest.
$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7138 #include <$ac_cv_struct_tm>
7144 static struct tm ac_aggr;
7145 if (sizeof ac_aggr.tm_zone)
7151 rm -f conftest.
$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7155 grep -v '^ *+' conftest.er1
>conftest.err
7157 cat conftest.err
>&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try
='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_member_struct_tm_tm_zone
=yes
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.
$ac_ext >&5
7177 ac_cv_member_struct_tm_tm_zone
=no
7179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7184 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7185 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7187 cat >>confdefs.h
<<_ACEOF
7188 #define HAVE_STRUCT_TM_TM_ZONE 1
7194 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7196 cat >>confdefs.h
<<\_ACEOF
7197 #define HAVE_TM_ZONE 1
7201 echo "$as_me:$LINENO: checking for tzname" >&5
7202 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7203 if test "${ac_cv_var_tzname+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 cat >conftest.
$ac_ext <<_ACEOF
7209 cat confdefs.h
>>conftest.
$ac_ext
7210 cat >>conftest.
$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7213 #ifndef tzname /* For SGI. */
7214 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7225 rm -f conftest.
$ac_objext conftest
$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1
>conftest.err
7231 cat conftest.err
>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try
='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_var_tzname
=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7253 rm -f conftest.err conftest.
$ac_objext \
7254 conftest
$ac_exeext conftest.
$ac_ext
7256 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7257 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7258 if test $ac_cv_var_tzname = yes; then
7260 cat >>confdefs.h
<<\_ACEOF
7261 #define HAVE_TZNAME 1
7267 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7268 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 cat >conftest.
$ac_ext <<_ACEOF
7275 cat confdefs.h
>>conftest.
$ac_ext
7276 cat >>conftest.
$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7283 static struct tm ac_aggr;
7284 if (ac_aggr.tm_gmtoff)
7290 rm -f conftest.
$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>conftest.er1
7294 grep -v '^ *+' conftest.er1
>conftest.err
7296 cat conftest.err
>&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try
='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_member_struct_tm_tm_gmtoff
=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7316 cat >conftest.
$ac_ext <<_ACEOF
7319 cat confdefs.h
>>conftest.
$ac_ext
7320 cat >>conftest.
$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7327 static struct tm ac_aggr;
7328 if (sizeof ac_aggr.tm_gmtoff)
7334 rm -f conftest.
$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7338 grep -v '^ *+' conftest.er1
>conftest.err
7340 cat conftest.err
>&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try
='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_member_struct_tm_tm_gmtoff
=yes
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7360 ac_cv_member_struct_tm_tm_gmtoff
=no
7362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7367 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7368 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7370 cat >>confdefs.h
<<\_ACEOF
7371 #define HAVE_TM_GMTOFF 1
7376 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7377 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7378 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 cat >conftest.
$ac_ext <<_ACEOF
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 #if HAVE_SYS_SOCKET_H
7389 #include <sys/socket.h>
7398 static struct ifreq ac_aggr;
7399 if (ac_aggr.ifr_flags)
7405 rm -f conftest.
$ac_objext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7407 (eval $ac_compile) 2>conftest.er1
7409 grep -v '^ *+' conftest.er1
>conftest.err
7411 cat conftest.err
>&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try
='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_member_struct_ifreq_ifr_flags
=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.
$ac_ext >&5
7431 cat >conftest.
$ac_ext <<_ACEOF
7434 cat confdefs.h
>>conftest.
$ac_ext
7435 cat >>conftest.
$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7438 #if HAVE_SYS_SOCKET_H
7439 #include <sys/socket.h>
7448 static struct ifreq ac_aggr;
7449 if (sizeof ac_aggr.ifr_flags)
7455 rm -f conftest.
$ac_objext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
7459 grep -v '^ *+' conftest.er1
>conftest.err
7461 cat conftest.err
>&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try
='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_member_struct_ifreq_ifr_flags
=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.
$ac_ext >&5
7481 ac_cv_member_struct_ifreq_ifr_flags
=no
7483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7489 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7491 cat >>confdefs.h
<<_ACEOF
7492 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7497 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7498 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7499 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 cat >conftest.
$ac_ext <<_ACEOF
7505 cat confdefs.h
>>conftest.
$ac_ext
7506 cat >>conftest.
$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 #if HAVE_SYS_SOCKET_H
7510 #include <sys/socket.h>
7519 static struct ifreq ac_aggr;
7520 if (ac_aggr.ifr_hwaddr)
7526 rm -f conftest.
$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>conftest.er1
7530 grep -v '^ *+' conftest.er1
>conftest.err
7532 cat conftest.err
>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; } &&
7541 { ac_try
='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.
$ac_ext >&5
7552 cat >conftest.
$ac_ext <<_ACEOF
7555 cat confdefs.h
>>conftest.
$ac_ext
7556 cat >>conftest.
$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 $ac_includes_default
7559 #if HAVE_SYS_SOCKET_H
7560 #include <sys/socket.h>
7569 static struct ifreq ac_aggr;
7570 if (sizeof ac_aggr.ifr_hwaddr)
7576 rm -f conftest.
$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7580 grep -v '^ *+' conftest.er1
>conftest.err
7582 cat conftest.err
>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try
='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.
$ac_ext >&5
7602 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7609 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7610 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7612 cat >>confdefs.h
<<_ACEOF
7613 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7618 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7619 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7620 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7630 #if HAVE_SYS_SOCKET_H
7631 #include <sys/socket.h>
7640 static struct ifreq ac_aggr;
7641 if (ac_aggr.ifr_netmask)
7647 rm -f conftest.
$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7651 grep -v '^ *+' conftest.er1
>conftest.err
7653 cat conftest.err
>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try
='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.
$ac_ext >&5
7673 cat >conftest.
$ac_ext <<_ACEOF
7676 cat confdefs.h
>>conftest.
$ac_ext
7677 cat >>conftest.
$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #if HAVE_SYS_SOCKET_H
7681 #include <sys/socket.h>
7690 static struct ifreq ac_aggr;
7691 if (sizeof ac_aggr.ifr_netmask)
7697 rm -f conftest.
$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7701 grep -v '^ *+' conftest.er1
>conftest.err
7703 cat conftest.err
>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try
='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7723 ac_cv_member_struct_ifreq_ifr_netmask
=no
7725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7730 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7731 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7733 cat >>confdefs.h
<<_ACEOF
7734 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7739 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7740 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7741 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 cat >conftest.
$ac_ext <<_ACEOF
7747 cat confdefs.h
>>conftest.
$ac_ext
7748 cat >>conftest.
$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 $ac_includes_default
7751 #if HAVE_SYS_SOCKET_H
7752 #include <sys/socket.h>
7761 static struct ifreq ac_aggr;
7762 if (ac_aggr.ifr_broadaddr)
7768 rm -f conftest.
$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7772 grep -v '^ *+' conftest.er1
>conftest.err
7774 cat conftest.err
>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try
='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.
$ac_ext >&5
7794 cat >conftest.
$ac_ext <<_ACEOF
7797 cat confdefs.h
>>conftest.
$ac_ext
7798 cat >>conftest.
$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7801 #if HAVE_SYS_SOCKET_H
7802 #include <sys/socket.h>
7811 static struct ifreq ac_aggr;
7812 if (sizeof ac_aggr.ifr_broadaddr)
7818 rm -f conftest.
$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1
>conftest.err
7824 cat conftest.err
>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try
='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.
$ac_ext >&5
7844 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7851 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7852 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7854 cat >>confdefs.h
<<_ACEOF
7855 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7860 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7861 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7862 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 cat >conftest.
$ac_ext <<_ACEOF
7868 cat confdefs.h
>>conftest.
$ac_ext
7869 cat >>conftest.
$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 #if HAVE_SYS_SOCKET_H
7873 #include <sys/socket.h>
7882 static struct ifreq ac_aggr;
7883 if (ac_aggr.ifr_addr)
7889 rm -f conftest.
$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
7893 grep -v '^ *+' conftest.er1
>conftest.err
7895 cat conftest.err
>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try
='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_member_struct_ifreq_ifr_addr
=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.
$ac_ext >&5
7915 cat >conftest.
$ac_ext <<_ACEOF
7918 cat confdefs.h
>>conftest.
$ac_ext
7919 cat >>conftest.
$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 #if HAVE_SYS_SOCKET_H
7923 #include <sys/socket.h>
7932 static struct ifreq ac_aggr;
7933 if (sizeof ac_aggr.ifr_addr)
7939 rm -f conftest.
$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>conftest.er1
7943 grep -v '^ *+' conftest.er1
>conftest.err
7945 cat conftest.err
>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try
='test -s conftest.$ac_objext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_cv_member_struct_ifreq_ifr_addr
=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.
$ac_ext >&5
7965 ac_cv_member_struct_ifreq_ifr_addr
=no
7967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7972 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7973 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7975 cat >>confdefs.h
<<_ACEOF
7976 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7984 echo "$as_me:$LINENO: checking for function prototypes" >&5
7985 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7986 if test "$ac_cv_prog_cc_stdc" != no
; then
7987 echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7990 cat >>confdefs.h
<<\_ACEOF
7991 #define PROTOTYPES 1
7995 cat >>confdefs.h
<<\_ACEOF
7996 #define __PROTOTYPES 1
8000 echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8004 echo "$as_me:$LINENO: checking for working volatile" >&5
8005 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8006 if test "${ac_cv_c_volatile+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.
$ac_ext <<_ACEOF
8012 cat confdefs.h
>>conftest.
$ac_ext
8013 cat >>conftest.
$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8026 rm -f conftest.
$ac_objext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1
>conftest.err
8032 cat conftest.err
>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try
='test -s conftest.$ac_objext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_c_volatile
=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8056 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8057 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8058 if test $ac_cv_c_volatile = no
; then
8060 cat >>confdefs.h
<<\_ACEOF
8066 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8068 if test "${ac_cv_c_const+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8081 /* FIXME: Include the comments suggested by Paul. */
8083 /* Ultrix mips cc rejects this. */
8084 typedef int charset[2];
8086 /* SunOS 4.1.1 cc rejects this. */
8087 char const *const *ccp;
8089 /* NEC SVR4.0.2 mips cc rejects this. */
8090 struct point {int x, y;};
8091 static struct point const zero = {0,0};
8092 /* AIX XL C 1.02.0.0 rejects this.
8093 It does not let you subtract one const X* pointer from another in
8094 an arm of an if-expression whose if-part is not a constant
8096 const char *g = "string";
8097 ccp = &g + (g ? g-g : 0);
8098 /* HPUX 7.0 cc rejects these. */
8101 ccp = (char const *const *) p;
8102 { /* SCO 3.2v4 cc rejects this. */
8104 char const *s = 0 ? (char *) 0 : (char const *) 0;
8108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8110 const int *foo = &x[0];
8113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8114 typedef const int *iptr;
8118 { /* AIX XL C 1.02.0.0 rejects this saying
8119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8120 struct s { int j; const int *ap[3]; };
8121 struct s *b; b->j = 5;
8123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8132 rm -f conftest.
$ac_objext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134 (eval $ac_compile) 2>conftest.er1
8136 grep -v '^ *+' conftest.er1
>conftest.err
8138 cat conftest.err
>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try
='test -s conftest.$ac_objext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.
$ac_ext >&5
8160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8162 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8163 echo "${ECHO_T}$ac_cv_c_const" >&6
8164 if test $ac_cv_c_const = no
; then
8166 cat >>confdefs.h
<<\_ACEOF
8172 echo "$as_me:$LINENO: checking for void * support" >&5
8173 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8174 if test "${emacs_cv_void_star+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.
$ac_ext <<_ACEOF
8180 cat confdefs.h
>>conftest.
$ac_ext
8181 cat >>conftest.
$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8192 rm -f conftest.
$ac_objext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>conftest.er1
8196 grep -v '^ *+' conftest.er1
>conftest.err
8198 cat conftest.err
>&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try
='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 emacs_cv_void_star
=yes
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.
$ac_ext >&5
8218 emacs_cv_void_star
=no
8220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8223 echo "${ECHO_T}$emacs_cv_void_star" >&6
8224 if test $emacs_cv_void_star = yes; then
8225 cat >>confdefs.h
<<\_ACEOF
8226 #define POINTER_TYPE void
8230 cat >>confdefs.h
<<\_ACEOF
8231 #define POINTER_TYPE char
8240 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8242 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 cat >conftest.
make <<\_ACEOF
8248 @
echo 'ac_maketemp="$(MAKE)"'
8250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8251 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8252 if test -n "$ac_maketemp"; then
8253 eval ac_cv_prog_make_
${ac_make}_set
=yes
8255 eval ac_cv_prog_make_
${ac_make}_set
=no
8259 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8260 echo "$as_me:$LINENO: result: yes" >&5
8261 echo "${ECHO_T}yes" >&6
8264 echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8266 SET_MAKE
="MAKE=${MAKE-make}"
8270 echo "$as_me:$LINENO: checking for long file names" >&5
8271 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8272 if test "${ac_cv_sys_long_file_names+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 ac_cv_sys_long_file_names
=yes
8276 # Test for long file names in all the places we know might matter:
8277 # . the current directory, where building will happen
8278 # $prefix/lib where we will be installing things
8279 # $exec_prefix/lib likewise
8280 # eval it to expand exec_prefix.
8281 # $TMPDIR if set, where it might want to write temporary files
8282 # if $TMPDIR is not set:
8283 # /tmp where it might want to write temporary files
8286 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8289 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8291 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8292 test -d $ac_dir ||
continue
8293 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8294 ac_xdir
=$ac_dir/cf$$
8295 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8296 ac_tf1
=$ac_xdir/conftest9012345
8297 ac_tf2
=$ac_xdir/conftest9012346
8298 (echo 1 >$ac_tf1) 2>/dev
/null
8299 (echo 2 >$ac_tf2) 2>/dev
/null
8300 ac_val
=`cat $ac_tf1 2>/dev/null`
8301 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8302 ac_cv_sys_long_file_names
=no
8303 rm -rf $ac_xdir 2>/dev
/null
8306 rm -rf $ac_xdir 2>/dev
/null
8309 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8310 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8311 if test $ac_cv_sys_long_file_names = yes; then
8313 cat >>confdefs.h
<<\_ACEOF
8314 #define HAVE_LONG_FILE_NAMES 1
8320 #### Choose a window system.
8322 echo "$as_me:$LINENO: checking for X" >&5
8323 echo $ECHO_N "checking for X... $ECHO_C" >&6
8325 ac_path_x_has_been_run
=yes
8327 # Check whether --with-x or --without-x was given.
8328 if test "${with_x+set}" = set; then
8332 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8333 if test "x$with_x" = xno
; then
8334 # The user explicitly disabled X.
8337 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8338 # Both variables are already set.
8341 if test "${ac_cv_have_x+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 # One or both of the vars are not set, and there is no cached value.
8345 ac_x_includes
=no ac_x_libraries
=no
8347 if mkdir conftest.dir
; then
8349 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8350 cat >Imakefile
<<'_ACEOF'
8352 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8354 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8356 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8357 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8358 for ac_extension
in a so sl
; do
8359 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8360 test -f $ac_im_libdir/libX11.
$ac_extension; then
8361 ac_im_usrlibdir
=$ac_im_libdir; break
8364 # Screen out bogus values from the imake configuration. They are
8365 # bogus both because they are the default anyway, and because
8366 # using them would break gcc on systems where it needs fixed includes.
8367 case $ac_im_incroot in
8369 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8371 case $ac_im_usrlibdir in
8373 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8380 # Standard set of common directories for X headers.
8381 # Check X11 before X11Rn because it is often a symlink to the current release.
8393 /usr/local/X11/include
8394 /usr/local/X11R6/include
8395 /usr/local/X11R5/include
8396 /usr/local/X11R4/include
8398 /usr/local/include/X11
8399 /usr/local/include/X11R6
8400 /usr/local/include/X11R5
8401 /usr/local/include/X11R4
8405 /usr/XFree86/include/X11
8409 /usr/unsupported/include
8411 /usr/local/x11r5/include
8412 /usr/lpp/Xamples/include
8414 /usr/openwin/include
8415 /usr/openwin/share/include'
8417 if test "$ac_x_includes" = no
; then
8418 # Guess where to find include files, by looking for a specified header file.
8419 # First, try using that file with no special directory specified.
8420 cat >conftest.
$ac_ext <<_ACEOF
8423 cat confdefs.h
>>conftest.
$ac_ext
8424 cat >>conftest.
$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 #include <X11/Xlib.h>
8428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1
>conftest.err
8433 cat conftest.err
>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } >/dev
/null
; then
8436 if test -s conftest.err
; then
8437 ac_cpp_err
=$ac_c_preproc_warn_flag
8438 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8445 if test -z "$ac_cpp_err"; then
8446 # We can compile using X headers with no special include directory.
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8452 for ac_dir
in $ac_x_header_dirs; do
8453 if test -r "$ac_dir/X11/Xlib.h"; then
8454 ac_x_includes
=$ac_dir
8459 rm -f conftest.err conftest.
$ac_ext
8460 fi # $ac_x_includes = no
8462 if test "$ac_x_libraries" = no
; then
8463 # Check for the libraries.
8464 # See if we find them without any special options.
8465 # Don't add to $LIBS permanently.
8468 cat >conftest.
$ac_ext <<_ACEOF
8471 cat confdefs.h
>>conftest.
$ac_ext
8472 cat >>conftest.
$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <X11/Xlib.h>
8483 rm -f conftest.
$ac_objext conftest
$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8487 grep -v '^ *+' conftest.er1
>conftest.err
8489 cat conftest.err
>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try
='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8505 # We can link X programs with no special library path.
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.
$ac_ext >&5
8512 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8514 # Don't even attempt the hair of trying to link an X program!
8515 for ac_extension
in a so sl
; do
8516 if test -r $ac_dir/libX11.
$ac_extension; then
8517 ac_x_libraries
=$ac_dir
8523 rm -f conftest.err conftest.
$ac_objext \
8524 conftest
$ac_exeext conftest.
$ac_ext
8525 fi # $ac_x_libraries = no
8527 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8528 # Didn't find X anywhere. Cache the known absence of X.
8529 ac_cv_have_x
="have_x=no"
8531 # Record where we found X for the cache.
8532 ac_cv_have_x
="have_x=yes \
8533 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8538 eval "$ac_cv_have_x"
8541 if test "$have_x" != yes; then
8542 echo "$as_me:$LINENO: result: $have_x" >&5
8543 echo "${ECHO_T}$have_x" >&6
8546 # If each of the values was on the command line, it overrides each guess.
8547 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8548 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8549 # Update the cache value to reflect the command line values.
8550 ac_cv_have_x
="have_x=yes \
8551 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8552 # It might be that x_includes is empty (headers are found in the
8553 # standard search path. Then output the corresponding message
8554 ac_out_x_includes
=$x_includes
8555 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8556 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8557 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8560 if test "$no_x" = yes; then
8566 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8567 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8568 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8569 x_default_search_path
=""
8570 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8572 ${x_library}/X11/%L/%T/%N%C%S:\
8573 ${x_library}/X11/%l/%T/%N%C%S:\
8574 ${x_library}/X11/%T/%N%C%S:\
8575 ${x_library}/X11/%L/%T/%N%S:\
8576 ${x_library}/X11/%l/%T/%N%S:\
8577 ${x_library}/X11/%T/%N%S"
8578 if test x
"${x_default_search_path}" = x
; then
8579 x_default_search_path
=${x_search_path}
8581 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8585 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8586 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8589 if test x
"${x_includes}" = x
; then
8590 bitmapdir
=/usr
/include
/X11
/bitmaps
8592 # accumulate include directories that have X11 bitmap subdirectories
8594 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8595 if test -d "${bmd}/X11/bitmaps"; then
8596 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8598 if test -d "${bmd}/bitmaps"; then
8599 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8602 if test ${bmd_acc} != "dummyval"; then
8603 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8608 if test "${with_carbon}" != no
; then
8609 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8610 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8611 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8612 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8616 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8618 # Is the header compilable?
8619 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8620 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8621 cat >conftest.
$ac_ext <<_ACEOF
8624 cat confdefs.h
>>conftest.
$ac_ext
8625 cat >>conftest.
$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 $ac_includes_default
8628 #include <Carbon/Carbon.h>
8630 rm -f conftest.
$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1
>conftest.err
8636 cat conftest.err
>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try
='test -s conftest.$ac_objext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_header_compiler
=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.
$ac_ext >&5
8656 ac_header_compiler
=no
8658 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8660 echo "${ECHO_T}$ac_header_compiler" >&6
8662 # Is the header present?
8663 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8664 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8665 cat >conftest.
$ac_ext <<_ACEOF
8668 cat confdefs.h
>>conftest.
$ac_ext
8669 cat >>conftest.
$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 #include <Carbon/Carbon.h>
8673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8674 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8676 grep -v '^ *+' conftest.er1
>conftest.err
8678 cat conftest.err
>&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } >/dev
/null
; then
8681 if test -s conftest.err
; then
8682 ac_cpp_err
=$ac_c_preproc_warn_flag
8683 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8690 if test -z "$ac_cpp_err"; then
8691 ac_header_preproc
=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.
$ac_ext >&5
8696 ac_header_preproc
=no
8698 rm -f conftest.err conftest.
$ac_ext
8699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8700 echo "${ECHO_T}$ac_header_preproc" >&6
8702 # So? What about this header?
8703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8705 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8706 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8708 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8709 ac_header_preproc
=yes
8712 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8713 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8715 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8717 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8719 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8721 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8723 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8726 ## ------------------------------------------ ##
8727 ## Report this to the AC_PACKAGE_NAME lists. ##
8728 ## ------------------------------------------ ##
8731 sed "s/^/$as_me: WARNING: /" >&2
8734 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8735 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8736 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8741 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8742 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8745 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8751 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8752 if test "${with_carbon+set}" != set \
8753 && test "${carbon_appdir_x+set}" != set; then
8757 if test "${HAVE_CARBON}" = yes; then
8761 case "${window_system}" in
8765 case "${with_x_toolkit}" in
8766 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8767 motif
) USE_X_TOOLKIT
=MOTIF
;;
8769 USE_X_TOOLKIT
=none
;;
8770 no
) USE_X_TOOLKIT
=none
;;
8771 * ) USE_X_TOOLKIT
=maybe
;;
8781 ### If we're using X11, we should use the X menu package.
8784 yes ) HAVE_MENUS
=yes ;;
8787 if test "${opsys}" = "hpux9"; then
8788 case "${x_libraries}" in
8790 opsysfile
="s/hpux9-x11r4.h"
8795 if test "${opsys}" = "hpux9shr"; then
8796 case "${x_libraries}" in
8798 opsysfile
="s/hpux9shxr4.h"
8803 ### Compute the unexec source name from the object name.
8804 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8806 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8807 # Assume not, until told otherwise.
8810 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8811 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8812 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.
$ac_ext <<_ACEOF
8818 cat confdefs.h
>>conftest.
$ac_ext
8819 cat >>conftest.
$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8823 #define malloc_get_state innocuous_malloc_get_state
8825 /* System header to define __stub macros and hopefully few prototypes,
8826 which can conflict with char malloc_get_state (); below.
8827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8828 <limits.h> exists even on freestanding compilers. */
8831 # include <limits.h>
8833 # include <assert.h>
8836 #undef malloc_get_state
8838 /* Override any gcc2 internal prototype to avoid an error. */
8843 /* We use char because int might match the return type of a gcc2
8844 builtin and then its argument prototype would still apply. */
8845 char malloc_get_state ();
8846 /* The GNU C library defines this for functions which it implements
8847 to always fail with ENOSYS. Some functions are actually named
8848 something starting with __ and the normal name is an alias. */
8849 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8852 char (*f) () = malloc_get_state;
8861 return f != malloc_get_state;
8866 rm -f conftest.
$ac_objext conftest
$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; } &&
8881 { ac_try
='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_cv_func_malloc_get_state
=yes
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.
$ac_ext >&5
8892 ac_cv_func_malloc_get_state
=no
8894 rm -f conftest.err conftest.
$ac_objext \
8895 conftest
$ac_exeext conftest.
$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8898 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8899 if test $ac_cv_func_malloc_get_state = yes; then
8905 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8906 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8907 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 cat >conftest.
$ac_ext <<_ACEOF
8913 cat confdefs.h
>>conftest.
$ac_ext
8914 cat >>conftest.
$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8918 #define malloc_set_state innocuous_malloc_set_state
8920 /* System header to define __stub macros and hopefully few prototypes,
8921 which can conflict with char malloc_set_state (); below.
8922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8923 <limits.h> exists even on freestanding compilers. */
8926 # include <limits.h>
8928 # include <assert.h>
8931 #undef malloc_set_state
8933 /* Override any gcc2 internal prototype to avoid an error. */
8938 /* We use char because int might match the return type of a gcc2
8939 builtin and then its argument prototype would still apply. */
8940 char malloc_set_state ();
8941 /* The GNU C library defines this for functions which it implements
8942 to always fail with ENOSYS. Some functions are actually named
8943 something starting with __ and the normal name is an alias. */
8944 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8947 char (*f) () = malloc_set_state;
8956 return f != malloc_set_state;
8961 rm -f conftest.
$ac_objext conftest
$ac_exeext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963 (eval $ac_link) 2>conftest.er1
8965 grep -v '^ *+' conftest.er1
>conftest.err
8967 cat conftest.err
>&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try
='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_func_malloc_set_state
=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.
$ac_ext >&5
8987 ac_cv_func_malloc_set_state
=no
8989 rm -f conftest.err conftest.
$ac_objext \
8990 conftest
$ac_exeext conftest.
$ac_ext
8992 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8993 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8994 if test $ac_cv_func_malloc_set_state = yes; then
9000 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9001 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9002 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 cat >conftest.
$ac_ext <<_ACEOF
9008 cat confdefs.h
>>conftest.
$ac_ext
9009 cat >>conftest.
$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 extern void (* __after_morecore_hook)();
9015 __after_morecore_hook = 0
9020 rm -f conftest.
$ac_objext conftest
$ac_exeext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022 (eval $ac_link) 2>conftest.er1
9024 grep -v '^ *+' conftest.er1
>conftest.err
9026 cat conftest.err
>&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; } &&
9035 { ac_try
='test -s conftest$ac_exeext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 emacs_cv_var___after_morecore_hook
=yes
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.
$ac_ext >&5
9046 emacs_cv_var___after_morecore_hook
=no
9048 rm -f conftest.err conftest.
$ac_objext \
9049 conftest
$ac_exeext conftest.
$ac_ext
9051 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9052 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9053 if test $emacs_cv_var___after_morecore_hook = no
; then
9056 if test "${system_malloc}" = "yes"; then
9059 (The GNU allocators don't work with this system configuration.)"
9061 if test "$doug_lea_malloc" = "yes" ; then
9062 if test "$GNU_MALLOC" = yes ; then
9064 (Using Doug Lea's new malloc from the GNU C Library.)"
9067 cat >>confdefs.h
<<\_ACEOF
9068 #define DOUG_LEA_MALLOC 1
9073 if test x
"${REL_ALLOC}" = x
; then
9074 REL_ALLOC
=${GNU_MALLOC}
9080 for ac_header
in stdlib.h unistd.h
9082 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9084 echo "$as_me:$LINENO: checking for $ac_header" >&5
9085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9092 # Is the header compilable?
9093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9095 cat >conftest.
$ac_ext <<_ACEOF
9098 cat confdefs.h
>>conftest.
$ac_ext
9099 cat >>conftest.
$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101 $ac_includes_default
9102 #include <$ac_header>
9104 rm -f conftest.
$ac_objext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9106 (eval $ac_compile) 2>conftest.er1
9108 grep -v '^ *+' conftest.er1
>conftest.err
9110 cat conftest.err
>&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try
='test -s conftest.$ac_objext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_header_compiler
=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 ac_header_compiler
=no
9132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9134 echo "${ECHO_T}$ac_header_compiler" >&6
9136 # Is the header present?
9137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9139 cat >conftest.
$ac_ext <<_ACEOF
9142 cat confdefs.h
>>conftest.
$ac_ext
9143 cat >>conftest.
$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 #include <$ac_header>
9147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9148 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9150 grep -v '^ *+' conftest.er1
>conftest.err
9152 cat conftest.err
>&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } >/dev
/null
; then
9155 if test -s conftest.err
; then
9156 ac_cpp_err
=$ac_c_preproc_warn_flag
9157 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9164 if test -z "$ac_cpp_err"; then
9165 ac_header_preproc
=yes
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.
$ac_ext >&5
9170 ac_header_preproc
=no
9172 rm -f conftest.err conftest.
$ac_ext
9173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9174 echo "${ECHO_T}$ac_header_preproc" >&6
9176 # So? What about this header?
9177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9183 ac_header_preproc
=yes
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9200 ## ------------------------------------------ ##
9201 ## Report this to the AC_PACKAGE_NAME lists. ##
9202 ## ------------------------------------------ ##
9205 sed "s/^/$as_me: WARNING: /" >&2
9208 echo "$as_me:$LINENO: checking for $ac_header" >&5
9209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 eval "$as_ac_Header=\$ac_header_preproc"
9215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9220 cat >>confdefs.h
<<_ACEOF
9221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9229 for ac_func
in getpagesize
9231 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9232 echo "$as_me:$LINENO: checking for $ac_func" >&5
9233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9234 if eval "test \"\${$as_ac_var+set}\" = set"; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 cat >conftest.
$ac_ext <<_ACEOF
9240 cat confdefs.h
>>conftest.
$ac_ext
9241 cat >>conftest.
$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9245 #define $ac_func innocuous_$ac_func
9247 /* System header to define __stub macros and hopefully few prototypes,
9248 which can conflict with char $ac_func (); below.
9249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9250 <limits.h> exists even on freestanding compilers. */
9253 # include <limits.h>
9255 # include <assert.h>
9260 /* Override any gcc2 internal prototype to avoid an error. */
9265 /* We use char because int might match the return type of a gcc2
9266 builtin and then its argument prototype would still apply. */
9268 /* The GNU C library defines this for functions which it implements
9269 to always fail with ENOSYS. Some functions are actually named
9270 something starting with __ and the normal name is an alias. */
9271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9274 char (*f) () = $ac_func;
9283 return f != $ac_func;
9288 rm -f conftest.
$ac_objext conftest
$ac_exeext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290 (eval $ac_link) 2>conftest.er1
9292 grep -v '^ *+' conftest.er1
>conftest.err
9294 cat conftest.err
>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try
='test -s conftest$ac_exeext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 eval "$as_ac_var=yes"
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.
$ac_ext >&5
9314 eval "$as_ac_var=no"
9316 rm -f conftest.err conftest.
$ac_objext \
9317 conftest
$ac_exeext conftest.
$ac_ext
9319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9321 if test `eval echo '${'$as_ac_var'}'` = yes; then
9322 cat >>confdefs.h
<<_ACEOF
9323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9329 echo "$as_me:$LINENO: checking for working mmap" >&5
9330 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9331 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 if test "$cross_compiling" = yes; then
9335 ac_cv_func_mmap_fixed_mapped
=no
9337 cat >conftest.
$ac_ext <<_ACEOF
9340 cat confdefs.h
>>conftest.
$ac_ext
9341 cat >>conftest.
$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9344 /* malloc might have been renamed as rpl_malloc. */
9347 /* Thanks to Mike Haertel and Jim Avera for this test.
9348 Here is a matrix of mmap possibilities:
9349 mmap private not fixed
9350 mmap private fixed at somewhere currently unmapped
9351 mmap private fixed at somewhere already mapped
9352 mmap shared not fixed
9353 mmap shared fixed at somewhere currently unmapped
9354 mmap shared fixed at somewhere already mapped
9355 For private mappings, we should verify that changes cannot be read()
9356 back from the file, nor mmap's back from the file at a different
9357 address. (There have been systems where private was not correctly
9358 implemented like the infamous i386 svr4.0, and systems where the
9359 VM page cache was not coherent with the file system buffer cache
9360 like early versions of FreeBSD and possibly contemporary NetBSD.)
9361 For shared mappings, we should conversely verify that changes get
9362 propagated back to all the places they're supposed to be.
9364 Grep wants private fixed already mapped.
9365 The main things grep needs to know about mmap are:
9366 * does it exist and is it safe to write into the mmap'd area
9367 * how to use it (BSD variants) */
9370 #include <sys/mman.h>
9372 #if !STDC_HEADERS && !HAVE_STDLIB_H
9376 /* This mess was copied from the GNU getpagesize.h. */
9377 #if !HAVE_GETPAGESIZE
9378 /* Assume that all systems that can run configure have sys/param.h. */
9379 # if !HAVE_SYS_PARAM_H
9380 # define HAVE_SYS_PARAM_H 1
9383 # ifdef _SC_PAGESIZE
9384 # define getpagesize() sysconf(_SC_PAGESIZE)
9385 # else /* no _SC_PAGESIZE */
9386 # if HAVE_SYS_PARAM_H
9387 # include <sys/param.h>
9388 # ifdef EXEC_PAGESIZE
9389 # define getpagesize() EXEC_PAGESIZE
9390 # else /* no EXEC_PAGESIZE */
9392 # define getpagesize() NBPG * CLSIZE
9395 # endif /* no CLSIZE */
9396 # else /* no NBPG */
9398 # define getpagesize() NBPC
9399 # else /* no NBPC */
9401 # define getpagesize() PAGESIZE
9402 # endif /* PAGESIZE */
9403 # endif /* no NBPC */
9404 # endif /* no NBPG */
9405 # endif /* no EXEC_PAGESIZE */
9406 # else /* no HAVE_SYS_PARAM_H */
9407 # define getpagesize() 8192 /* punt totally */
9408 # endif /* no HAVE_SYS_PARAM_H */
9409 # endif /* no _SC_PAGESIZE */
9411 #endif /* no HAVE_GETPAGESIZE */
9416 char *data, *data2, *data3;
9420 pagesize = getpagesize ();
9422 /* First, make a file with some known garbage in it. */
9423 data = (char *) malloc (pagesize);
9426 for (i = 0; i < pagesize; ++i)
9427 *(data + i) = rand ();
9429 fd = creat ("conftest.mmap", 0600);
9432 if (write (fd, data, pagesize) != pagesize)
9436 /* Next, try to mmap the file at a fixed address which already has
9437 something else allocated at it. If we can, also make sure that
9438 we see the same garbage. */
9439 fd = open ("conftest.mmap", O_RDWR);
9442 data2 = (char *) malloc (2 * pagesize);
9445 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9449 for (i = 0; i < pagesize; ++i)
9450 if (*(data + i) != *(data2 + i))
9453 /* Finally, make sure that changes to the mapped area do not
9454 percolate back to the file as seen by read(). (This is a bug on
9455 some variants of i386 svr4.0.) */
9456 for (i = 0; i < pagesize; ++i)
9457 *(data2 + i) = *(data2 + i) + 1;
9458 data3 = (char *) malloc (pagesize);
9461 if (read (fd, data3, pagesize) != pagesize)
9463 for (i = 0; i < pagesize; ++i)
9464 if (*(data + i) != *(data3 + i))
9470 rm -f conftest
$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_func_mmap_fixed_mapped
=yes
9483 echo "$as_me: program exited with status $ac_status" >&5
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.
$ac_ext >&5
9488 ac_cv_func_mmap_fixed_mapped
=no
9490 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9494 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9497 cat >>confdefs.h
<<\_ACEOF
9504 if test $use_mmap_for_buffers = yes; then
9508 LIBS
="$libsrc_libs $LIBS"
9511 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9512 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9513 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 ac_check_lib_save_LIBS
=$LIBS
9518 cat >conftest.
$ac_ext <<_ACEOF
9521 cat confdefs.h
>>conftest.
$ac_ext
9522 cat >>conftest.
$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9525 /* Override any gcc2 internal prototype to avoid an error. */
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9540 rm -f conftest.
$ac_objext conftest
$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9544 grep -v '^ *+' conftest.er1
>conftest.err
9546 cat conftest.err
>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try
='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_lib_dnet_dnet_ntoa
=yes
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.
$ac_ext >&5
9566 ac_cv_lib_dnet_dnet_ntoa
=no
9568 rm -f conftest.err conftest.
$ac_objext \
9569 conftest
$ac_exeext conftest.
$ac_ext
9570 LIBS
=$ac_check_lib_save_LIBS
9572 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9573 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9575 cat >>confdefs.h
<<_ACEOF
9576 #define HAVE_LIBDNET 1
9584 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9585 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 ac_check_lib_save_LIBS
=$LIBS
9591 cat >conftest.
$ac_ext <<_ACEOF
9594 cat confdefs.h
>>conftest.
$ac_ext
9595 cat >>conftest.
$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9607 rm -f conftest.
$ac_objext conftest
$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>conftest.er1
9611 grep -v '^ *+' conftest.er1
>conftest.err
9613 cat conftest.err
>&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try
='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 ac_cv_lib_Xbsd_main
=yes
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.
$ac_ext >&5
9633 ac_cv_lib_Xbsd_main
=no
9635 rm -f conftest.err conftest.
$ac_objext \
9636 conftest
$ac_exeext conftest.
$ac_ext
9637 LIBS
=$ac_check_lib_save_LIBS
9639 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9640 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9641 if test $ac_cv_lib_Xbsd_main = yes; then
9642 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9647 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9648 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9649 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 ac_check_lib_save_LIBS
=$LIBS
9653 LIBS
="-lpthreads $LIBS"
9654 cat >conftest.
$ac_ext <<_ACEOF
9657 cat confdefs.h
>>conftest.
$ac_ext
9658 cat >>conftest.
$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 /* Override any gcc2 internal prototype to avoid an error. */
9665 /* We use char because int might match the return type of a gcc2
9666 builtin and then its argument prototype would still apply. */
9676 rm -f conftest.
$ac_objext conftest
$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>conftest.er1
9680 grep -v '^ *+' conftest.er1
>conftest.err
9682 cat conftest.err
>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try
='test -s conftest$ac_exeext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_cv_lib_pthreads_cma_open
=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.
$ac_ext >&5
9702 ac_cv_lib_pthreads_cma_open
=no
9704 rm -f conftest.err conftest.
$ac_objext \
9705 conftest
$ac_exeext conftest.
$ac_ext
9706 LIBS
=$ac_check_lib_save_LIBS
9708 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9709 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9710 if test $ac_cv_lib_pthreads_cma_open = yes; then
9711 cat >>confdefs.h
<<_ACEOF
9712 #define HAVE_LIBPTHREADS 1
9715 LIBS
="-lpthreads $LIBS"
9720 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9721 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9722 if test -d /usr
/X386
/include
; then
9724 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9728 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9729 echo "${ECHO_T}$HAVE_XFREE386" >&6
9734 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9735 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9736 if test "${gdb_cv_bigtoc+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9742 *) gdb_cv_bigtoc
=-bbigtoc ;;
9745 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9746 cat >conftest.
$ac_ext <<_ACEOF
9749 cat confdefs.h
>>conftest.
$ac_ext
9750 cat >>conftest.
$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9761 rm -f conftest.
$ac_objext conftest
$ac_exeext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9765 grep -v '^ *+' conftest.er1
>conftest.err
9767 cat conftest.err
>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try
='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.
$ac_ext >&5
9789 rm -f conftest.err conftest.
$ac_objext \
9790 conftest
$ac_exeext conftest.
$ac_ext
9793 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9794 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9798 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9799 # used for the tests that follow. We set them back to REAL_CFLAGS and
9800 # REAL_CPPFLAGS later on.
9802 REAL_CPPFLAGS
="$CPPFLAGS"
9804 if test "${HAVE_X11}" = "yes"; then
9805 DEFS
="$C_SWITCH_X_SITE $DEFS"
9806 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9808 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9809 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9811 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9812 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9813 # but it's more convenient here to set LD_RUN_PATH
9814 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9815 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9816 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9820 if test "${opsys}" = "gnu-linux"; then
9821 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9822 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9823 cat >conftest.
$ac_ext <<_ACEOF
9826 cat confdefs.h
>>conftest.
$ac_ext
9827 cat >>conftest.
$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9833 XOpenDisplay ("foo");
9838 rm -f conftest.
$ac_objext conftest
$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>conftest.er1
9842 grep -v '^ *+' conftest.er1
>conftest.err
9844 cat conftest.err
>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try
='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 xlinux_first_failure
=no
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.
$ac_ext >&5
9864 xlinux_first_failure
=yes
9866 rm -f conftest.err conftest.
$ac_objext \
9867 conftest
$ac_exeext conftest.
$ac_ext
9868 if test "${xlinux_first_failure}" = "yes"; then
9869 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9870 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9871 OLD_CPPFLAGS
="$CPPFLAGS"
9873 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9874 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9875 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9876 LIBS
="$LIBS -b i486-linuxaout"
9877 cat >conftest.
$ac_ext <<_ACEOF
9880 cat confdefs.h
>>conftest.
$ac_ext
9881 cat >>conftest.
$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9887 XOpenDisplay ("foo");
9892 rm -f conftest.
$ac_objext conftest
$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894 (eval $ac_link) 2>conftest.er1
9896 grep -v '^ *+' conftest.er1
>conftest.err
9898 cat conftest.err
>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try
='test -s conftest$ac_exeext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 xlinux_second_failure
=no
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.
$ac_ext >&5
9918 xlinux_second_failure
=yes
9920 rm -f conftest.err conftest.
$ac_objext \
9921 conftest
$ac_exeext conftest.
$ac_ext
9922 if test "${xlinux_second_failure}" = "yes"; then
9923 # If we get the same failure with -b, there is no use adding -b.
9924 # So take it out. This plays safe.
9925 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9926 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9927 CPPFLAGS
="$OLD_CPPFLAGS"
9929 echo "$as_me:$LINENO: result: no" >&5
9930 echo "${ECHO_T}no" >&6
9932 echo "$as_me:$LINENO: result: yes" >&5
9933 echo "${ECHO_T}yes" >&6
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9941 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9942 # header files included from there.
9943 echo "$as_me:$LINENO: checking for Xkb" >&5
9944 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9945 cat >conftest.
$ac_ext <<_ACEOF
9948 cat confdefs.h
>>conftest.
$ac_ext
9949 cat >>conftest.
$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 #include <X11/Xlib.h>
9952 #include <X11/XKBlib.h>
9956 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9961 rm -f conftest.
$ac_objext conftest
$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>conftest.er1
9965 grep -v '^ *+' conftest.er1
>conftest.err
9967 cat conftest.err
>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try
='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.
$ac_ext >&5
9989 rm -f conftest.err conftest.
$ac_objext \
9990 conftest
$ac_exeext conftest.
$ac_ext
9991 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9992 echo "${ECHO_T}$emacs_xkb" >&6
9993 if test $emacs_xkb = yes; then
9995 cat >>confdefs.h
<<\_ACEOF
9996 #define HAVE_XKBGETKEYBOARD 1
10005 for ac_func
in XrmSetDatabase XScreenResourceString \
10006 XScreenNumberOfScreen XSetWMProtocols
10008 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10009 echo "$as_me:$LINENO: checking for $ac_func" >&5
10010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10011 if eval "test \"\${$as_ac_var+set}\" = set"; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 cat >conftest.
$ac_ext <<_ACEOF
10017 cat confdefs.h
>>conftest.
$ac_ext
10018 cat >>conftest.
$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10022 #define $ac_func innocuous_$ac_func
10024 /* System header to define __stub macros and hopefully few prototypes,
10025 which can conflict with char $ac_func (); below.
10026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10027 <limits.h> exists even on freestanding compilers. */
10030 # include <limits.h>
10032 # include <assert.h>
10037 /* Override any gcc2 internal prototype to avoid an error. */
10042 /* We use char because int might match the return type of a gcc2
10043 builtin and then its argument prototype would still apply. */
10045 /* The GNU C library defines this for functions which it implements
10046 to always fail with ENOSYS. Some functions are actually named
10047 something starting with __ and the normal name is an alias. */
10048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10051 char (*f) () = $ac_func;
10060 return f != $ac_func;
10065 rm -f conftest.
$ac_objext conftest
$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10069 grep -v '^ *+' conftest.er1
>conftest.err
10071 cat conftest.err
>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try
='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 eval "$as_ac_var=yes"
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.
$ac_ext >&5
10091 eval "$as_ac_var=no"
10093 rm -f conftest.err conftest.
$ac_objext \
10094 conftest
$ac_exeext conftest.
$ac_ext
10096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10098 if test `eval echo '${'$as_ac_var'}'` = yes; then
10099 cat >>confdefs.h
<<_ACEOF
10100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10108 if test "${window_system}" = "x11"; then
10109 echo "$as_me:$LINENO: checking X11 version 6" >&5
10110 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10111 if test "${emacs_cv_x11_version_6+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 cat >conftest.
$ac_ext <<_ACEOF
10117 cat confdefs.h
>>conftest.
$ac_ext
10118 cat >>conftest.
$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <X11/Xlib.h>
10124 #if XlibSpecificationRelease < 6
10132 rm -f conftest.
$ac_objext conftest
$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1
>conftest.err
10138 cat conftest.err
>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try
='test -s conftest$ac_exeext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 emacs_cv_x11_version_6
=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.
$ac_ext >&5
10158 emacs_cv_x11_version_6
=no
10160 rm -f conftest.err conftest.
$ac_objext \
10161 conftest
$ac_exeext conftest.
$ac_ext
10164 if test $emacs_cv_x11_version_6 = yes; then
10165 echo "$as_me:$LINENO: result: 6 or newer" >&5
10166 echo "${ECHO_T}6 or newer" >&6
10168 cat >>confdefs.h
<<\_ACEOF
10169 #define HAVE_X11R6 1
10173 echo "$as_me:$LINENO: result: before 6" >&5
10174 echo "${ECHO_T}before 6" >&6
10178 if test "${window_system}" = "x11"; then
10179 echo "$as_me:$LINENO: checking X11 version 5" >&5
10180 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10181 if test "${emacs_cv_x11_version_5+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 cat >conftest.
$ac_ext <<_ACEOF
10187 cat confdefs.h
>>conftest.
$ac_ext
10188 cat >>conftest.
$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <X11/Xlib.h>
10194 #if XlibSpecificationRelease < 5
10202 rm -f conftest.
$ac_objext conftest
$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1
>conftest.err
10208 cat conftest.err
>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try
='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 emacs_cv_x11_version_5
=yes
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.
$ac_ext >&5
10228 emacs_cv_x11_version_5
=no
10230 rm -f conftest.err conftest.
$ac_objext \
10231 conftest
$ac_exeext conftest.
$ac_ext
10234 if test $emacs_cv_x11_version_5 = yes; then
10235 echo "$as_me:$LINENO: result: 5 or newer" >&5
10236 echo "${ECHO_T}5 or newer" >&6
10239 cat >>confdefs.h
<<\_ACEOF
10240 #define HAVE_X11R5 1
10245 echo "$as_me:$LINENO: result: before 5" >&5
10246 echo "${ECHO_T}before 5" >&6
10251 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10252 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10253 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10254 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10255 { (exit 1); exit 1; }; };
10259 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10261 if test "X${with_pkg_config_prog}" != X
; then
10262 PKG_CONFIG
="${with_pkg_config_prog}"
10267 if test -z "$PKG_CONFIG"; then
10268 # Extract the first word of "pkg-config", so it can be a program name with args.
10269 set dummy pkg-config
; ac_word
=$2
10270 echo "$as_me:$LINENO: checking for $ac_word" >&5
10271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10272 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 case $PKG_CONFIG in
10277 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10281 for as_dir
in $PATH
10284 test -z "$as_dir" && as_dir
=.
10285 for ac_exec_ext
in '' $ac_executable_extensions; do
10286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10298 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10300 if test -n "$PKG_CONFIG"; then
10301 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10302 echo "${ECHO_T}$PKG_CONFIG" >&6
10304 echo "$as_me:$LINENO: result: no" >&5
10305 echo "${ECHO_T}no" >&6
10310 if test "$PKG_CONFIG" = "no" ; then
10311 { { echo "$as_me:$LINENO: error:
10312 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10313 echo "$as_me: error:
10314 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10315 { (exit 1); exit 1; }; }
10317 PKG_CONFIG_MIN_VERSION
=0.9.0
10318 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10319 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10320 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10322 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10323 echo "$as_me:$LINENO: result: yes" >&5
10324 echo "${ECHO_T}yes" >&6
10327 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10328 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10329 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10330 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10331 echo "${ECHO_T}$GTK_CFLAGS" >&6
10333 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10334 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10335 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10336 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10337 echo "${ECHO_T}$GTK_LIBS" >&6
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10343 ## If we have a custom action on failure, don't print errors, but
10344 ## do set a variable so people can do so.
10345 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10346 echo $GTK_PKG_ERRORS
10352 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10353 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10357 if test $succeeded = yes; then
10360 { { 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
10361 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;}
10362 { (exit 1); exit 1; }; }
10367 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10368 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10369 LIBS
="$GTK_LIBS $LIBS"
10372 cat >>confdefs.h
<<\_ACEOF
10378 if test "$with_toolkit_scroll_bars" != no
; then
10379 with_toolkit_scroll_bars
=yes
10382 HAVE_GTK_MULTIDISPLAY
=no
10384 HAVE_GTK_FILE_SELECTION
=no
10386 for ac_func
in gtk_file_selection_new
10388 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10389 echo "$as_me:$LINENO: checking for $ac_func" >&5
10390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10391 if eval "test \"\${$as_ac_var+set}\" = set"; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 cat >conftest.
$ac_ext <<_ACEOF
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10402 #define $ac_func innocuous_$ac_func
10404 /* System header to define __stub macros and hopefully few prototypes,
10405 which can conflict with char $ac_func (); below.
10406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10407 <limits.h> exists even on freestanding compilers. */
10410 # include <limits.h>
10412 # include <assert.h>
10417 /* Override any gcc2 internal prototype to avoid an error. */
10422 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10425 /* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10431 char (*f) () = $ac_func;
10440 return f != $ac_func;
10445 rm -f conftest.
$ac_objext conftest
$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10449 grep -v '^ *+' conftest.er1
>conftest.err
10451 cat conftest.err
>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10460 { ac_try
='test -s conftest$ac_exeext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466 eval "$as_ac_var=yes"
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.
$ac_ext >&5
10471 eval "$as_ac_var=no"
10473 rm -f conftest.err conftest.
$ac_objext \
10474 conftest
$ac_exeext conftest.
$ac_ext
10476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10478 if test `eval echo '${'$as_ac_var'}'` = yes; then
10479 cat >>confdefs.h
<<_ACEOF
10480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10482 HAVE_GTK_FILE_SELECTION
=yes
10487 HAVE_GTK_FILE_CHOOSER
=no
10489 for ac_func
in gtk_file_chooser_dialog_new
10491 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10492 echo "$as_me:$LINENO: checking for $ac_func" >&5
10493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10494 if eval "test \"\${$as_ac_var+set}\" = set"; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.
$ac_ext <<_ACEOF
10500 cat confdefs.h
>>conftest.
$ac_ext
10501 cat >>conftest.
$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10505 #define $ac_func innocuous_$ac_func
10507 /* System header to define __stub macros and hopefully few prototypes,
10508 which can conflict with char $ac_func (); below.
10509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 <limits.h> exists even on freestanding compilers. */
10513 # include <limits.h>
10515 # include <assert.h>
10520 /* Override any gcc2 internal prototype to avoid an error. */
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10534 char (*f) () = $ac_func;
10543 return f != $ac_func;
10548 rm -f conftest.
$ac_objext conftest
$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>conftest.er1
10552 grep -v '^ *+' conftest.er1
>conftest.err
10554 cat conftest.err
>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try
='test -s conftest$ac_exeext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 eval "$as_ac_var=yes"
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.
$ac_ext >&5
10574 eval "$as_ac_var=no"
10576 rm -f conftest.err conftest.
$ac_objext \
10577 conftest
$ac_exeext conftest.
$ac_ext
10579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10581 if test `eval echo '${'$as_ac_var'}'` = yes; then
10582 cat >>confdefs.h
<<_ACEOF
10583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10585 HAVE_GTK_FILE_CHOOSER
=yes
10590 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10591 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10593 cat >>confdefs.h
<<\_ACEOF
10594 #define HAVE_GTK_FILE_BOTH 1
10599 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10600 HAVE_GTK_AND_PTHREAD
=no
10602 for ac_header
in pthread.h
10604 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10606 echo "$as_me:$LINENO: checking for $ac_header" >&5
10607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10614 # Is the header compilable?
10615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10617 cat >conftest.
$ac_ext <<_ACEOF
10620 cat confdefs.h
>>conftest.
$ac_ext
10621 cat >>conftest.
$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 $ac_includes_default
10624 #include <$ac_header>
10626 rm -f conftest.
$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>conftest.er1
10630 grep -v '^ *+' conftest.er1
>conftest.err
10632 cat conftest.err
>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; } &&
10641 { ac_try
='test -s conftest.$ac_objext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_header_compiler
=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.
$ac_ext >&5
10652 ac_header_compiler
=no
10654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10656 echo "${ECHO_T}$ac_header_compiler" >&6
10658 # Is the header present?
10659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10661 cat >conftest.
$ac_ext <<_ACEOF
10664 cat confdefs.h
>>conftest.
$ac_ext
10665 cat >>conftest.
$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <$ac_header>
10669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10670 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10672 grep -v '^ *+' conftest.er1
>conftest.err
10674 cat conftest.err
>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } >/dev
/null
; then
10677 if test -s conftest.err
; then
10678 ac_cpp_err
=$ac_c_preproc_warn_flag
10679 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10686 if test -z "$ac_cpp_err"; then
10687 ac_header_preproc
=yes
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.
$ac_ext >&5
10692 ac_header_preproc
=no
10694 rm -f conftest.err conftest.
$ac_ext
10695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10696 echo "${ECHO_T}$ac_header_preproc" >&6
10698 # So? What about this header?
10699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10705 ac_header_preproc
=yes
10708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10722 ## ------------------------------------------ ##
10723 ## Report this to the AC_PACKAGE_NAME lists. ##
10724 ## ------------------------------------------ ##
10727 sed "s/^/$as_me: WARNING: /" >&2
10730 echo "$as_me:$LINENO: checking for $ac_header" >&5
10731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 eval "$as_ac_Header=\$ac_header_preproc"
10737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10742 cat >>confdefs.h
<<_ACEOF
10743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10750 if test "$ac_cv_header_pthread_h"; then
10751 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10752 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10753 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 ac_check_lib_save_LIBS
=$LIBS
10757 LIBS
="-lpthread $LIBS"
10758 cat >conftest.
$ac_ext <<_ACEOF
10761 cat confdefs.h
>>conftest.
$ac_ext
10762 cat >>conftest.
$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10765 /* Override any gcc2 internal prototype to avoid an error. */
10769 /* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10771 char pthread_self ();
10780 rm -f conftest.
$ac_objext conftest
$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>conftest.er1
10784 grep -v '^ *+' conftest.er1
>conftest.err
10786 cat conftest.err
>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try
='test -s conftest$ac_exeext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_pthread_pthread_self
=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.
$ac_ext >&5
10806 ac_cv_lib_pthread_pthread_self
=no
10808 rm -f conftest.err conftest.
$ac_objext \
10809 conftest
$ac_exeext conftest.
$ac_ext
10810 LIBS
=$ac_check_lib_save_LIBS
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10813 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10814 if test $ac_cv_lib_pthread_pthread_self = yes; then
10815 HAVE_GTK_AND_PTHREAD
=yes
10819 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10820 GTK_LIBS
="$GTK_LIBS -lpthread"
10822 cat >>confdefs.h
<<\_ACEOF
10823 #define HAVE_GTK_AND_PTHREAD 1
10830 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10831 if test x
"${HAVE_X11R5}" = xyes
; then
10832 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10833 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10834 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 cat >conftest.
$ac_ext <<_ACEOF
10840 cat confdefs.h
>>conftest.
$ac_ext
10841 cat >>conftest.
$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10844 #include <X11/Intrinsic.h>
10845 #include <X11/Xaw/Simple.h>
10854 rm -f conftest.
$ac_objext conftest
$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>conftest.er1
10858 grep -v '^ *+' conftest.er1
>conftest.err
10860 cat conftest.err
>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try
='test -s conftest$ac_exeext'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 emacs_cv_x11_version_5_with_xaw
=yes
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.
$ac_ext >&5
10880 emacs_cv_x11_version_5_with_xaw
=no
10882 rm -f conftest.err conftest.
$ac_objext \
10883 conftest
$ac_exeext conftest.
$ac_ext
10886 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10887 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10888 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10889 USE_X_TOOLKIT
=LUCID
10891 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10892 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10900 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10902 if test "${USE_X_TOOLKIT}" != "none"; then
10903 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10904 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10905 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <X11/Intrinsic.h>
10918 #if XtSpecificationRelease < 6
10926 rm -f conftest.
$ac_objext conftest
$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>conftest.er1
10930 grep -v '^ *+' conftest.er1
>conftest.err
10932 cat conftest.err
>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try
='test -s conftest$ac_exeext'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 emacs_cv_x11_toolkit_version_6
=yes
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.
$ac_ext >&5
10952 emacs_cv_x11_toolkit_version_6
=no
10954 rm -f conftest.err conftest.
$ac_objext \
10955 conftest
$ac_exeext conftest.
$ac_ext
10958 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10959 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10960 echo "$as_me:$LINENO: result: 6 or newer" >&5
10961 echo "${ECHO_T}6 or newer" >&6
10963 cat >>confdefs.h
<<\_ACEOF
10964 #define HAVE_X11XTR6 1
10968 echo "$as_me:$LINENO: result: before 6" >&5
10969 echo "${ECHO_T}before 6" >&6
10973 if test x
$HAVE_X11XTR6 = xyes
; then
10974 LIBS
="-lXt -lSM -lICE $LIBS"
10979 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10980 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10981 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 ac_check_lib_save_LIBS
=$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 XmuConvertStandardSelection ();
11003 XmuConvertStandardSelection ();
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_Xmu_XmuConvertStandardSelection
=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.
$ac_ext >&5
11034 ac_cv_lib_Xmu_XmuConvertStandardSelection
=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_Xmu_XmuConvertStandardSelection" >&5
11041 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11042 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11043 cat >>confdefs.h
<<_ACEOF
11044 #define HAVE_LIBXMU 1
11051 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11054 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11055 if test "${HAVE_X11}" = "yes"; then
11056 if test "${USE_X_TOOLKIT}" != "none"; then
11058 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11059 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11060 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 ac_check_lib_save_LIBS
=$LIBS
11064 LIBS
="-lXext $LIBS"
11065 cat >conftest.
$ac_ext <<_ACEOF
11068 cat confdefs.h
>>conftest.
$ac_ext
11069 cat >>conftest.
$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11072 /* Override any gcc2 internal prototype to avoid an error. */
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11078 char XShapeQueryExtension ();
11082 XShapeQueryExtension ();
11087 rm -f conftest.
$ac_objext conftest
$ac_exeext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089 (eval $ac_link) 2>conftest.er1
11091 grep -v '^ *+' conftest.er1
>conftest.err
11093 cat conftest.err
>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try
='test -s conftest$ac_exeext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.
$ac_ext >&5
11113 ac_cv_lib_Xext_XShapeQueryExtension
=no
11115 rm -f conftest.err conftest.
$ac_objext \
11116 conftest
$ac_exeext conftest.
$ac_ext
11117 LIBS
=$ac_check_lib_save_LIBS
11119 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11120 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11121 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11122 cat >>confdefs.h
<<_ACEOF
11123 #define HAVE_LIBXEXT 1
11126 LIBS
="-lXext $LIBS"
11133 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11134 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11135 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11136 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.
$ac_ext <<_ACEOF
11142 cat confdefs.h
>>conftest.
$ac_ext
11143 cat >>conftest.
$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11149 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11152 Motif version prior to 2.1.
11158 rm -f conftest.
$ac_objext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160 (eval $ac_compile) 2>conftest.er1
11162 grep -v '^ *+' conftest.er1
>conftest.err
11164 cat conftest.err
>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try
='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 emacs_cv_motif_version_2_1
=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.
$ac_ext >&5
11184 emacs_cv_motif_version_2_1
=no
11186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11188 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11189 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11190 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11191 if test $emacs_cv_motif_version_2_1 = yes; then
11194 cat >>confdefs.h
<<\_ACEOF
11195 #define HAVE_MOTIF_2_1 1
11198 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11199 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11200 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 ac_check_lib_save_LIBS
=$LIBS
11205 cat >conftest.
$ac_ext <<_ACEOF
11208 cat confdefs.h
>>conftest.
$ac_ext
11209 cat >>conftest.
$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11212 /* Override any gcc2 internal prototype to avoid an error. */
11216 /* We use char because int might match the return type of a gcc2
11217 builtin and then its argument prototype would still apply. */
11218 char XpCreateContext ();
11222 XpCreateContext ();
11227 rm -f conftest.
$ac_objext conftest
$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>conftest.er1
11231 grep -v '^ *+' conftest.er1
>conftest.err
11233 cat conftest.err
>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try
='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_lib_Xp_XpCreateContext
=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.
$ac_ext >&5
11253 ac_cv_lib_Xp_XpCreateContext
=no
11255 rm -f conftest.err conftest.
$ac_objext \
11256 conftest
$ac_exeext conftest.
$ac_ext
11257 LIBS
=$ac_check_lib_save_LIBS
11259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11260 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11261 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11265 if test ${HAVE_LIBXP} = yes; then
11267 cat >>confdefs.h
<<\_ACEOF
11268 #define HAVE_LIBXP 1
11273 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11274 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11275 if test "${emacs_cv_lesstif+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 # We put this in CFLAGS temporarily to precede other -I options
11279 # that might be in CFLAGS temporarily.
11280 # We put this in CPPFLAGS where it precedes the other -I options.
11281 OLD_CPPFLAGS
=$CPPFLAGS
11283 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11284 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11285 cat >conftest.
$ac_ext <<_ACEOF
11288 cat confdefs.h
>>conftest.
$ac_ext
11289 cat >>conftest.
$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11300 rm -f conftest.
$ac_objext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302 (eval $ac_compile) 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); } &&
11309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try
='test -s conftest.$ac_objext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 emacs_cv_lesstif
=yes
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.
$ac_ext >&5
11326 emacs_cv_lesstif
=no
11328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11330 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11331 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11332 if test $emacs_cv_lesstif = yes; then
11333 # Make sure this -I option remains in CPPFLAGS after it is set
11334 # back to REAL_CPPFLAGS.
11335 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11336 # have those other -I options anyway. Ultimately, having this
11337 # directory ultimately in CPPFLAGS will be enough.
11338 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11339 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11342 CPPFLAGS
=$OLD_CPPFLAGS
11347 ### Is -lXaw3d available?
11349 if test "${HAVE_X11}" = "yes"; then
11350 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11351 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11352 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11353 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 cat >conftest.
$ac_ext <<_ACEOF
11359 cat confdefs.h
>>conftest.
$ac_ext
11360 cat >>conftest.
$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <X11/Xaw3d/Scrollbar.h>
11364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1
>conftest.err
11369 cat conftest.err
>&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } >/dev
/null
; then
11372 if test -s conftest.err
; then
11373 ac_cpp_err
=$ac_c_preproc_warn_flag
11374 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11381 if test -z "$ac_cpp_err"; then
11382 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.
$ac_ext >&5
11387 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11389 rm -f conftest.err conftest.
$ac_ext
11391 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11392 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11393 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11394 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11395 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11396 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 ac_check_lib_save_LIBS
=$LIBS
11400 LIBS
="-lXaw3d $LIBS"
11401 cat >conftest.
$ac_ext <<_ACEOF
11404 cat confdefs.h
>>conftest.
$ac_ext
11405 cat >>conftest.
$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11408 /* Override any gcc2 internal prototype to avoid an error. */
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11414 char XawScrollbarSetThumb ();
11418 XawScrollbarSetThumb ();
11423 rm -f conftest.
$ac_objext conftest
$ac_exeext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11425 (eval $ac_link) 2>conftest.er1
11427 grep -v '^ *+' conftest.er1
>conftest.err
11429 cat conftest.err
>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try
='test -s conftest$ac_exeext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.
$ac_ext >&5
11449 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11451 rm -f conftest.err conftest.
$ac_objext \
11452 conftest
$ac_exeext conftest.
$ac_ext
11453 LIBS
=$ac_check_lib_save_LIBS
11455 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11456 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11457 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11464 if test "${HAVE_XAW3D}" = "yes"; then
11466 cat >>confdefs.h
<<\_ACEOF
11467 #define HAVE_XAW3D 1
11476 USE_TOOLKIT_SCROLL_BARS
=no
11477 if test "${with_toolkit_scroll_bars}" != "no"; then
11478 if test "${USE_X_TOOLKIT}" != "none"; then
11479 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11480 cat >>confdefs.h
<<\_ACEOF
11481 #define USE_TOOLKIT_SCROLL_BARS 1
11485 USE_TOOLKIT_SCROLL_BARS
=yes
11486 elif test "${HAVE_XAW3D}" = "yes"; then
11487 cat >>confdefs.h
<<\_ACEOF
11488 #define USE_TOOLKIT_SCROLL_BARS 1
11491 USE_TOOLKIT_SCROLL_BARS
=yes
11493 elif test "${HAVE_GTK}" = "yes"; then
11494 cat >>confdefs.h
<<\_ACEOF
11495 #define USE_TOOLKIT_SCROLL_BARS 1
11498 USE_TOOLKIT_SCROLL_BARS
=yes
11499 elif test "${HAVE_CARBON}" = "yes"; then
11500 cat >>confdefs.h
<<\_ACEOF
11501 #define USE_TOOLKIT_SCROLL_BARS 1
11504 USE_TOOLKIT_SCROLL_BARS
=yes
11508 cat >conftest.
$ac_ext <<_ACEOF
11511 cat confdefs.h
>>conftest.
$ac_ext
11512 cat >>conftest.
$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11515 #include <X11/Xlib.h>
11516 #include <X11/Xresource.h>
11525 rm -f conftest.
$ac_objext
11526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11529 grep -v '^ *+' conftest.er1
>conftest.err
11531 cat conftest.err
>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try
='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11548 cat >>confdefs.h
<<\_ACEOF
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.
$ac_ext >&5
11558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11561 if test "${with_xim}" != "no"; then
11563 cat >>confdefs.h
<<\_ACEOF
11570 if test "${HAVE_XIM}" != "no"; then
11571 late_CFLAGS
=$CFLAGS
11572 if test "$GCC" = yes; then
11573 CFLAGS
="$CFLAGS --pedantic-errors"
11575 cat >conftest.
$ac_ext <<_ACEOF
11578 cat confdefs.h
>>conftest.
$ac_ext
11579 cat >>conftest.
$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11582 #include <X11/Xlib.h>
11583 #include <X11/Xresource.h>
11592 XPointer *client_data;
11594 /* If we're not using GCC, it's probably not XFree86, and this is
11595 probably right, but we can't use something like --pedantic-errors. */
11596 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11597 char*, XIMProc, XPointer*);
11599 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11605 rm -f conftest.
$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>conftest.er1
11609 grep -v '^ *+' conftest.er1
>conftest.err
11611 cat conftest.err
>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try
='test -s conftest.$ac_objext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 emacs_cv_arg6_star
=yes
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.
$ac_ext >&5
11632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11634 if test "$emacs_cv_arg6_star" = yes; then
11635 cat >>confdefs.h
<<\_ACEOF
11636 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11640 cat >>confdefs.h
<<\_ACEOF
11641 #define XRegisterIMInstantiateCallback_arg6 XPointer
11645 CFLAGS
=$late_CFLAGS
11648 ### Use -lXpm if available, unless `--with-xpm=no'.
11650 if test "${HAVE_X11}" = "yes"; then
11651 if test "${with_xpm}" != "no"; then
11652 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11653 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11654 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11655 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11659 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11661 # Is the header compilable?
11662 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11663 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11664 cat >conftest.
$ac_ext <<_ACEOF
11667 cat confdefs.h
>>conftest.
$ac_ext
11668 cat >>conftest.
$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 $ac_includes_default
11671 #include <X11/xpm.h>
11673 rm -f conftest.
$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11677 grep -v '^ *+' conftest.er1
>conftest.err
11679 cat conftest.err
>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try
='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_header_compiler
=yes
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.
$ac_ext >&5
11699 ac_header_compiler
=no
11701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6
11705 # Is the header present?
11706 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11707 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11708 cat >conftest.
$ac_ext <<_ACEOF
11711 cat confdefs.h
>>conftest.
$ac_ext
11712 cat >>conftest.
$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <X11/xpm.h>
11716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11719 grep -v '^ *+' conftest.er1
>conftest.err
11721 cat conftest.err
>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev
/null
; then
11724 if test -s conftest.err
; then
11725 ac_cpp_err
=$ac_c_preproc_warn_flag
11726 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11733 if test -z "$ac_cpp_err"; then
11734 ac_header_preproc
=yes
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.
$ac_ext >&5
11739 ac_header_preproc
=no
11741 rm -f conftest.err conftest.
$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc
=yes
11755 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11769 ## ------------------------------------------ ##
11770 ## Report this to the AC_PACKAGE_NAME lists. ##
11771 ## ------------------------------------------ ##
11774 sed "s/^/$as_me: WARNING: /" >&2
11777 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11778 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11779 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11784 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11785 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11788 if test $ac_cv_header_X11_xpm_h = yes; then
11789 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11790 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11791 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 ac_check_lib_save_LIBS
=$LIBS
11795 LIBS
="-lXpm -lX11 $LIBS"
11796 cat >conftest.
$ac_ext <<_ACEOF
11799 cat confdefs.h
>>conftest.
$ac_ext
11800 cat >>conftest.
$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 /* Override any gcc2 internal prototype to avoid an error. */
11807 /* We use char because int might match the return type of a gcc2
11808 builtin and then its argument prototype would still apply. */
11809 char XpmReadFileToPixmap ();
11813 XpmReadFileToPixmap ();
11818 rm -f conftest.
$ac_objext conftest
$ac_exeext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11820 (eval $ac_link) 2>conftest.er1
11822 grep -v '^ *+' conftest.er1
>conftest.err
11824 cat conftest.err
>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try
='test -s conftest$ac_exeext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.
$ac_ext >&5
11844 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11846 rm -f conftest.err conftest.
$ac_objext \
11847 conftest
$ac_exeext conftest.
$ac_ext
11848 LIBS
=$ac_check_lib_save_LIBS
11850 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11851 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11852 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11859 if test "${HAVE_XPM}" = "yes"; then
11860 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11861 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11862 cat >conftest.
$ac_ext <<_ACEOF
11865 cat confdefs.h
>>conftest.
$ac_ext
11866 cat >>conftest.
$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include "X11/xpm.h"
11869 #ifndef XpmReturnAllocPixels
11870 no_return_alloc_pixels
11874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11875 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11883 if test "${HAVE_XPM}" = "yes"; then
11884 echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6
11887 echo "$as_me:$LINENO: result: no" >&5
11888 echo "${ECHO_T}no" >&6
11893 if test "${HAVE_XPM}" = "yes"; then
11895 cat >>confdefs.h
<<\_ACEOF
11902 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11904 if test "${HAVE_X11}" = "yes"; then
11905 if test "${with_jpeg}" != "no"; then
11906 if test "${ac_cv_header_jerror_h+set}" = set; then
11907 echo "$as_me:$LINENO: checking for jerror.h" >&5
11908 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11909 if test "${ac_cv_header_jerror_h+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11913 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11915 # Is the header compilable?
11916 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11917 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11918 cat >conftest.
$ac_ext <<_ACEOF
11921 cat confdefs.h
>>conftest.
$ac_ext
11922 cat >>conftest.
$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11925 #include <jerror.h>
11927 rm -f conftest.
$ac_objext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>conftest.er1
11931 grep -v '^ *+' conftest.er1
>conftest.err
11933 cat conftest.err
>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try
='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_header_compiler
=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.
$ac_ext >&5
11953 ac_header_compiler
=no
11955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11957 echo "${ECHO_T}$ac_header_compiler" >&6
11959 # Is the header present?
11960 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11961 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11962 cat >conftest.
$ac_ext <<_ACEOF
11965 cat confdefs.h
>>conftest.
$ac_ext
11966 cat >>conftest.
$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 #include <jerror.h>
11970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11971 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11973 grep -v '^ *+' conftest.er1
>conftest.err
11975 cat conftest.err
>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } >/dev
/null
; then
11978 if test -s conftest.err
; then
11979 ac_cpp_err
=$ac_c_preproc_warn_flag
11980 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11987 if test -z "$ac_cpp_err"; then
11988 ac_header_preproc
=yes
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.
$ac_ext >&5
11993 ac_header_preproc
=no
11995 rm -f conftest.err conftest.
$ac_ext
11996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11997 echo "${ECHO_T}$ac_header_preproc" >&6
11999 # So? What about this header?
12000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12002 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12003 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12005 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12006 ac_header_preproc
=yes
12009 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12010 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12012 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12014 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12016 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12018 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12020 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12023 ## ------------------------------------------ ##
12024 ## Report this to the AC_PACKAGE_NAME lists. ##
12025 ## ------------------------------------------ ##
12028 sed "s/^/$as_me: WARNING: /" >&2
12031 echo "$as_me:$LINENO: checking for jerror.h" >&5
12032 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12033 if test "${ac_cv_header_jerror_h+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 ac_cv_header_jerror_h
=$ac_header_preproc
12038 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12039 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12042 if test $ac_cv_header_jerror_h = yes; then
12043 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12044 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12045 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 ac_check_lib_save_LIBS
=$LIBS
12049 LIBS
="-ljpeg $LIBS"
12050 cat >conftest.
$ac_ext <<_ACEOF
12053 cat confdefs.h
>>conftest.
$ac_ext
12054 cat >>conftest.
$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12057 /* Override any gcc2 internal prototype to avoid an error. */
12061 /* We use char because int might match the return type of a gcc2
12062 builtin and then its argument prototype would still apply. */
12063 char jpeg_destroy_compress ();
12067 jpeg_destroy_compress ();
12072 rm -f conftest.
$ac_objext conftest
$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>conftest.er1
12076 grep -v '^ *+' conftest.er1
>conftest.err
12078 cat conftest.err
>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try
='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.
$ac_ext >&5
12098 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12100 rm -f conftest.err conftest.
$ac_objext \
12101 conftest
$ac_exeext conftest.
$ac_ext
12102 LIBS
=$ac_check_lib_save_LIBS
12104 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12105 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12106 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12116 if test "${HAVE_JPEG}" = "yes"; then
12117 cat >>confdefs.h
<<\_ACEOF
12118 #define HAVE_JPEG 1
12121 cat >conftest.
$ac_ext <<_ACEOF
12124 cat confdefs.h
>>conftest.
$ac_ext
12125 cat >>conftest.
$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 #include <jpeglib.h>
12128 version=JPEG_LIB_VERSION
12131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12132 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12133 cat >>confdefs.h
<<\_ACEOF
12134 #define HAVE_JPEG 1
12138 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12139 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12147 ### Use -lpng if available, unless `--with-png=no'.
12149 if test "${HAVE_X11}" = "yes"; then
12150 if test "${with_png}" != "no"; then
12151 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12152 # in /usr/include/libpng.
12155 for ac_header
in png.h libpng
/png.h
12157 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12159 echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12167 # Is the header compilable?
12168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12170 cat >conftest.
$ac_ext <<_ACEOF
12173 cat confdefs.h
>>conftest.
$ac_ext
12174 cat >>conftest.
$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 $ac_includes_default
12177 #include <$ac_header>
12179 rm -f conftest.
$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181 (eval $ac_compile) 2>conftest.er1
12183 grep -v '^ *+' conftest.er1
>conftest.err
12185 cat conftest.err
>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try
='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_header_compiler
=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.
$ac_ext >&5
12205 ac_header_compiler
=no
12207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209 echo "${ECHO_T}$ac_header_compiler" >&6
12211 # Is the header present?
12212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12214 cat >conftest.
$ac_ext <<_ACEOF
12217 cat confdefs.h
>>conftest.
$ac_ext
12218 cat >>conftest.
$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <$ac_header>
12222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1
>conftest.err
12227 cat conftest.err
>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } >/dev
/null
; then
12230 if test -s conftest.err
; then
12231 ac_cpp_err
=$ac_c_preproc_warn_flag
12232 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12239 if test -z "$ac_cpp_err"; then
12240 ac_header_preproc
=yes
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.
$ac_ext >&5
12245 ac_header_preproc
=no
12247 rm -f conftest.err conftest.
$ac_ext
12248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 echo "${ECHO_T}$ac_header_preproc" >&6
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc
=yes
12261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12275 ## ------------------------------------------ ##
12276 ## Report this to the AC_PACKAGE_NAME lists. ##
12277 ## ------------------------------------------ ##
12280 sed "s/^/$as_me: WARNING: /" >&2
12283 echo "$as_me:$LINENO: checking for $ac_header" >&5
12284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 eval "$as_ac_Header=\$ac_header_preproc"
12290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12295 cat >>confdefs.h
<<_ACEOF
12296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12303 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12304 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12305 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12306 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 ac_check_lib_save_LIBS
=$LIBS
12310 LIBS
="-lpng -lz -lm $LIBS"
12311 cat >conftest.
$ac_ext <<_ACEOF
12314 cat confdefs.h
>>conftest.
$ac_ext
12315 cat >>conftest.
$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12318 /* Override any gcc2 internal prototype to avoid an error. */
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12324 char png_get_channels ();
12328 png_get_channels ();
12333 rm -f conftest.
$ac_objext conftest
$ac_exeext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335 (eval $ac_link) 2>conftest.er1
12337 grep -v '^ *+' conftest.er1
>conftest.err
12339 cat conftest.err
>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try
='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_lib_png_png_get_channels
=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.
$ac_ext >&5
12359 ac_cv_lib_png_png_get_channels
=no
12361 rm -f conftest.err conftest.
$ac_objext \
12362 conftest
$ac_exeext conftest.
$ac_ext
12363 LIBS
=$ac_check_lib_save_LIBS
12365 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12366 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12367 if test $ac_cv_lib_png_png_get_channels = yes; then
12374 if test "${HAVE_PNG}" = "yes"; then
12376 cat >>confdefs.h
<<\_ACEOF
12383 ### Use -ltiff if available, unless `--with-tiff=no'.
12385 if test "${HAVE_X11}" = "yes"; then
12386 if test "${with_tiff}" != "no"; then
12387 if test "${ac_cv_header_tiffio_h+set}" = set; then
12388 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12389 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12390 if test "${ac_cv_header_tiffio_h+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12394 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12396 # Is the header compilable?
12397 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12398 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12399 cat >conftest.
$ac_ext <<_ACEOF
12402 cat confdefs.h
>>conftest.
$ac_ext
12403 cat >>conftest.
$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 #include <tiffio.h>
12408 rm -f conftest.
$ac_objext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>conftest.er1
12412 grep -v '^ *+' conftest.er1
>conftest.err
12414 cat conftest.err
>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try
='test -s conftest.$ac_objext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_header_compiler
=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.
$ac_ext >&5
12434 ac_header_compiler
=no
12436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12438 echo "${ECHO_T}$ac_header_compiler" >&6
12440 # Is the header present?
12441 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12442 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12443 cat >conftest.
$ac_ext <<_ACEOF
12446 cat confdefs.h
>>conftest.
$ac_ext
12447 cat >>conftest.
$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <tiffio.h>
12451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12452 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12454 grep -v '^ *+' conftest.er1
>conftest.err
12456 cat conftest.err
>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } >/dev
/null
; then
12459 if test -s conftest.err
; then
12460 ac_cpp_err
=$ac_c_preproc_warn_flag
12461 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12468 if test -z "$ac_cpp_err"; then
12469 ac_header_preproc
=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.
$ac_ext >&5
12474 ac_header_preproc
=no
12476 rm -f conftest.err conftest.
$ac_ext
12477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478 echo "${ECHO_T}$ac_header_preproc" >&6
12480 # So? What about this header?
12481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12483 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12484 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12486 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc
=yes
12490 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12491 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12493 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12495 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12497 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12499 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12501 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12504 ## ------------------------------------------ ##
12505 ## Report this to the AC_PACKAGE_NAME lists. ##
12506 ## ------------------------------------------ ##
12509 sed "s/^/$as_me: WARNING: /" >&2
12512 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12513 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12514 if test "${ac_cv_header_tiffio_h+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 ac_cv_header_tiffio_h
=$ac_header_preproc
12519 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12520 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12523 if test $ac_cv_header_tiffio_h = yes; then
12525 # At least one tiff package requires the jpeg library.
12526 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12527 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12528 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12529 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 ac_check_lib_save_LIBS
=$LIBS
12533 LIBS
="-ltiff $tifflibs $LIBS"
12534 cat >conftest.
$ac_ext <<_ACEOF
12537 cat confdefs.h
>>conftest.
$ac_ext
12538 cat >>conftest.
$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 /* Override any gcc2 internal prototype to avoid an error. */
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12547 char TIFFGetVersion ();
12556 rm -f conftest.
$ac_objext conftest
$ac_exeext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12558 (eval $ac_link) 2>conftest.er1
12560 grep -v '^ *+' conftest.er1
>conftest.err
12562 cat conftest.err
>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try
='test -s conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_lib_tiff_TIFFGetVersion
=yes
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.
$ac_ext >&5
12582 ac_cv_lib_tiff_TIFFGetVersion
=no
12584 rm -f conftest.err conftest.
$ac_objext \
12585 conftest
$ac_exeext conftest.
$ac_ext
12586 LIBS
=$ac_check_lib_save_LIBS
12588 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12589 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12590 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12599 if test "${HAVE_TIFF}" = "yes"; then
12601 cat >>confdefs.h
<<\_ACEOF
12602 #define HAVE_TIFF 1
12608 ### Use -lgif if available, unless `--with-gif=no'.
12610 if test "${HAVE_X11}" = "yes"; then
12611 if test "${with_gif}" != "no"; then
12612 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12613 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12614 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12615 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12619 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12621 # Is the header compilable?
12622 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12623 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12624 cat >conftest.
$ac_ext <<_ACEOF
12627 cat confdefs.h
>>conftest.
$ac_ext
12628 cat >>conftest.
$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12631 #include <gif_lib.h>
12633 rm -f conftest.
$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12637 grep -v '^ *+' conftest.er1
>conftest.err
12639 cat conftest.err
>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
12654 ac_header_compiler
=yes
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12659 ac_header_compiler
=no
12661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12663 echo "${ECHO_T}$ac_header_compiler" >&6
12665 # Is the header present?
12666 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12667 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12668 cat >conftest.
$ac_ext <<_ACEOF
12671 cat confdefs.h
>>conftest.
$ac_ext
12672 cat >>conftest.
$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 #include <gif_lib.h>
12676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12677 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12679 grep -v '^ *+' conftest.er1
>conftest.err
12681 cat conftest.err
>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } >/dev
/null
; then
12684 if test -s conftest.err
; then
12685 ac_cpp_err
=$ac_c_preproc_warn_flag
12686 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12693 if test -z "$ac_cpp_err"; then
12694 ac_header_preproc
=yes
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.
$ac_ext >&5
12699 ac_header_preproc
=no
12701 rm -f conftest.err conftest.
$ac_ext
12702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12703 echo "${ECHO_T}$ac_header_preproc" >&6
12705 # So? What about this header?
12706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12708 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12709 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12711 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12712 ac_header_preproc
=yes
12715 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12716 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12718 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12720 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12722 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12724 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12726 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12729 ## ------------------------------------------ ##
12730 ## Report this to the AC_PACKAGE_NAME lists. ##
12731 ## ------------------------------------------ ##
12734 sed "s/^/$as_me: WARNING: /" >&2
12737 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12738 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12739 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 ac_cv_header_gif_lib_h
=$ac_header_preproc
12744 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12748 if test $ac_cv_header_gif_lib_h = yes; then
12749 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12750 # Earlier versions can crash Emacs.
12751 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12752 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12753 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 ac_check_lib_save_LIBS
=$LIBS
12757 LIBS
="-lungif $LIBS"
12758 cat >conftest.
$ac_ext <<_ACEOF
12761 cat confdefs.h
>>conftest.
$ac_ext
12762 cat >>conftest.
$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12771 char EGifPutExtensionLast ();
12775 EGifPutExtensionLast ();
12780 rm -f conftest.
$ac_objext conftest
$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12784 grep -v '^ *+' conftest.er1
>conftest.err
12786 cat conftest.err
>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try
='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.
$ac_ext >&5
12806 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12808 rm -f conftest.err conftest.
$ac_objext \
12809 conftest
$ac_exeext conftest.
$ac_ext
12810 LIBS
=$ac_check_lib_save_LIBS
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12813 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12814 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12823 if test "${HAVE_GIF}" = "yes"; then
12825 cat >>confdefs.h
<<\_ACEOF
12832 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12833 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12834 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12835 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12839 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12841 # Is the header compilable?
12842 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12843 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12844 cat >conftest.
$ac_ext <<_ACEOF
12847 cat confdefs.h
>>conftest.
$ac_ext
12848 cat >>conftest.
$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 $ac_includes_default
12851 #include <malloc/malloc.h>
12853 rm -f conftest.
$ac_objext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>conftest.er1
12857 grep -v '^ *+' conftest.er1
>conftest.err
12859 cat conftest.err
>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try
='test -s conftest.$ac_objext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12874 ac_header_compiler
=yes
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.
$ac_ext >&5
12879 ac_header_compiler
=no
12881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12883 echo "${ECHO_T}$ac_header_compiler" >&6
12885 # Is the header present?
12886 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12887 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12888 cat >conftest.
$ac_ext <<_ACEOF
12891 cat confdefs.h
>>conftest.
$ac_ext
12892 cat >>conftest.
$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 #include <malloc/malloc.h>
12896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12897 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12899 grep -v '^ *+' conftest.er1
>conftest.err
12901 cat conftest.err
>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } >/dev
/null
; then
12904 if test -s conftest.err
; then
12905 ac_cpp_err
=$ac_c_preproc_warn_flag
12906 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12913 if test -z "$ac_cpp_err"; then
12914 ac_header_preproc
=yes
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.
$ac_ext >&5
12919 ac_header_preproc
=no
12921 rm -f conftest.err conftest.
$ac_ext
12922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12923 echo "${ECHO_T}$ac_header_preproc" >&6
12925 # So? What about this header?
12926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12928 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12929 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12931 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12932 ac_header_preproc
=yes
12935 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12936 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12938 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12940 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12942 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12944 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12946 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12949 ## ------------------------------------------ ##
12950 ## Report this to the AC_PACKAGE_NAME lists. ##
12951 ## ------------------------------------------ ##
12954 sed "s/^/$as_me: WARNING: /" >&2
12957 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12958 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12959 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12964 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12965 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12968 if test $ac_cv_header_malloc_malloc_h = yes; then
12970 cat >>confdefs.h
<<\_ACEOF
12971 #define HAVE_MALLOC_MALLOC_H 1
12978 ### Use Mac OS X Carbon API to implement GUI.
12979 if test "${HAVE_CARBON}" = "yes"; then
12981 cat >>confdefs.h
<<\_ACEOF
12982 #define HAVE_CARBON 1
12985 ## Specify the install directory
12987 if test "${carbon_appdir_x}" != ""; then
12988 case ${carbon_appdir_x} in
12989 y | ye |
yes) carbon_appdir
=/Applications
;;
12990 * ) carbon_appdir
=${carbon_appdir_x} ;;
12993 # We also have mouse menus.
12996 tmp_CFLAGS
="$CFLAGS"
12997 CFLAGS
="$CFLAGS -framework Carbon"
12998 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12999 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13000 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 cat >conftest.
$ac_ext <<_ACEOF
13006 cat confdefs.h
>>conftest.
$ac_ext
13007 cat >>conftest.
$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011 #define CancelMenuTracking innocuous_CancelMenuTracking
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char CancelMenuTracking (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13019 # include <limits.h>
13021 # include <assert.h>
13024 #undef CancelMenuTracking
13026 /* Override any gcc2 internal prototype to avoid an error. */
13031 /* We use char because int might match the return type of a gcc2
13032 builtin and then its argument prototype would still apply. */
13033 char CancelMenuTracking ();
13034 /* The GNU C library defines this for functions which it implements
13035 to always fail with ENOSYS. Some functions are actually named
13036 something starting with __ and the normal name is an alias. */
13037 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13040 char (*f) () = CancelMenuTracking;
13049 return f != CancelMenuTracking;
13054 rm -f conftest.
$ac_objext conftest
$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>conftest.er1
13058 grep -v '^ *+' conftest.er1
>conftest.err
13060 cat conftest.err
>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try
='test -s conftest$ac_exeext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_func_CancelMenuTracking
=yes
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.
$ac_ext >&5
13080 ac_cv_func_CancelMenuTracking
=no
13082 rm -f conftest.err conftest.
$ac_objext \
13083 conftest
$ac_exeext conftest.
$ac_ext
13085 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13086 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13087 if test $ac_cv_func_CancelMenuTracking = yes; then
13093 if test "$have_cmt" = yes; then
13095 cat >>confdefs.h
<<\_ACEOF
13096 #define HAVE_CANCELMENUTRACKING 1
13100 CFLAGS
="$tmp_CFLAGS"
13103 ### Use session management (-lSM -lICE) if available
13105 if test "${HAVE_X11}" = "yes"; then
13106 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13107 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13108 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13109 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13113 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13115 # Is the header compilable?
13116 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13117 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13118 cat >conftest.
$ac_ext <<_ACEOF
13121 cat confdefs.h
>>conftest.
$ac_ext
13122 cat >>conftest.
$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 $ac_includes_default
13125 #include <X11/SM/SMlib.h>
13127 rm -f conftest.
$ac_objext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13129 (eval $ac_compile) 2>conftest.er1
13131 grep -v '^ *+' conftest.er1
>conftest.err
13133 cat conftest.err
>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try
='test -s conftest.$ac_objext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_header_compiler
=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.
$ac_ext >&5
13153 ac_header_compiler
=no
13155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157 echo "${ECHO_T}$ac_header_compiler" >&6
13159 # Is the header present?
13160 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13161 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13162 cat >conftest.
$ac_ext <<_ACEOF
13165 cat confdefs.h
>>conftest.
$ac_ext
13166 cat >>conftest.
$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #include <X11/SM/SMlib.h>
13170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13171 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13173 grep -v '^ *+' conftest.er1
>conftest.err
13175 cat conftest.err
>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } >/dev
/null
; then
13178 if test -s conftest.err
; then
13179 ac_cpp_err
=$ac_c_preproc_warn_flag
13180 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13187 if test -z "$ac_cpp_err"; then
13188 ac_header_preproc
=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.
$ac_ext >&5
13193 ac_header_preproc
=no
13195 rm -f conftest.err conftest.
$ac_ext
13196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197 echo "${ECHO_T}$ac_header_preproc" >&6
13199 # So? What about this header?
13200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13202 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13205 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13206 ac_header_preproc
=yes
13209 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13210 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13212 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13214 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13216 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13218 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13220 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13223 ## ------------------------------------------ ##
13224 ## Report this to the AC_PACKAGE_NAME lists. ##
13225 ## ------------------------------------------ ##
13228 sed "s/^/$as_me: WARNING: /" >&2
13231 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13232 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13233 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13238 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13239 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13242 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13243 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13244 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13245 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 ac_check_lib_save_LIBS
=$LIBS
13249 LIBS
="-lSM -lICE $LIBS"
13250 cat >conftest.
$ac_ext <<_ACEOF
13253 cat confdefs.h
>>conftest.
$ac_ext
13254 cat >>conftest.
$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13257 /* Override any gcc2 internal prototype to avoid an error. */
13261 /* We use char because int might match the return type of a gcc2
13262 builtin and then its argument prototype would still apply. */
13263 char SmcOpenConnection ();
13267 SmcOpenConnection ();
13272 rm -f conftest.
$ac_objext conftest
$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>conftest.er1
13276 grep -v '^ *+' conftest.er1
>conftest.err
13278 cat conftest.err
>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try
='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 ac_cv_lib_SM_SmcOpenConnection
=yes
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.
$ac_ext >&5
13298 ac_cv_lib_SM_SmcOpenConnection
=no
13300 rm -f conftest.err conftest.
$ac_objext \
13301 conftest
$ac_exeext conftest.
$ac_ext
13302 LIBS
=$ac_check_lib_save_LIBS
13304 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13305 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13306 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13314 if test "${HAVE_X_SM}" = "yes"; then
13316 cat >>confdefs.h
<<\_ACEOF
13317 #define HAVE_X_SM 1
13322 *) LIBS
="-lSM -lICE $LIBS" ;;
13327 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13328 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13329 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13330 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 cat >conftest.
$ac_ext <<_ACEOF
13336 cat confdefs.h
>>conftest.
$ac_ext
13337 cat >>conftest.
$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13348 rm -f conftest.
$ac_objext conftest
$ac_exeext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13350 (eval $ac_link) 2>conftest.er1
13352 grep -v '^ *+' conftest.er1
>conftest.err
13354 cat conftest.err
>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } &&
13363 { ac_try
='test -s conftest$ac_exeext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 emacs_cv_netdb_declares_h_errno
=yes
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.
$ac_ext >&5
13374 emacs_cv_netdb_declares_h_errno
=no
13376 rm -f conftest.err conftest.
$ac_objext \
13377 conftest
$ac_exeext conftest.
$ac_ext
13379 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13380 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13381 if test $emacs_cv_netdb_declares_h_errno = yes; then
13383 cat >>confdefs.h
<<\_ACEOF
13384 #define HAVE_H_ERRNO 1
13389 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13390 # for constant arguments. Useless!
13391 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13392 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13393 if test "${ac_cv_working_alloca_h+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 cat >conftest.
$ac_ext <<_ACEOF
13399 cat confdefs.h
>>conftest.
$ac_ext
13400 cat >>conftest.
$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 #include <alloca.h>
13406 char *p = (char *) alloca (2 * sizeof (int));
13411 rm -f conftest.
$ac_objext conftest
$ac_exeext
13412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13413 (eval $ac_link) 2>conftest.er1
13415 grep -v '^ *+' conftest.er1
>conftest.err
13417 cat conftest.err
>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try
='test -s conftest$ac_exeext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_working_alloca_h
=yes
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.
$ac_ext >&5
13437 ac_cv_working_alloca_h
=no
13439 rm -f conftest.err conftest.
$ac_objext \
13440 conftest
$ac_exeext conftest.
$ac_ext
13442 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13443 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13444 if test $ac_cv_working_alloca_h = yes; then
13446 cat >>confdefs.h
<<\_ACEOF
13447 #define HAVE_ALLOCA_H 1
13452 echo "$as_me:$LINENO: checking for alloca" >&5
13453 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13454 if test "${ac_cv_func_alloca_works+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 cat >conftest.
$ac_ext <<_ACEOF
13460 cat confdefs.h
>>conftest.
$ac_ext
13461 cat >>conftest.
$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13464 # define alloca __builtin_alloca
13467 # include <malloc.h>
13468 # define alloca _alloca
13471 # include <alloca.h>
13476 # ifndef alloca /* predefined by HP cc +Olibcalls */
13487 char *p = (char *) alloca (1);
13492 rm -f conftest.
$ac_objext conftest
$ac_exeext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13494 (eval $ac_link) 2>conftest.er1
13496 grep -v '^ *+' conftest.er1
>conftest.err
13498 cat conftest.err
>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } &&
13501 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try
='test -s conftest$ac_exeext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_cv_func_alloca_works
=yes
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.
$ac_ext >&5
13518 ac_cv_func_alloca_works
=no
13520 rm -f conftest.err conftest.
$ac_objext \
13521 conftest
$ac_exeext conftest.
$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13524 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13526 if test $ac_cv_func_alloca_works = yes; then
13528 cat >>confdefs.h
<<\_ACEOF
13529 #define HAVE_ALLOCA 1
13533 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13534 # that cause trouble. Some versions do not even contain alloca or
13535 # contain a buggy version. If you still want to use their alloca,
13536 # use ar to extract alloca.o from them instead of compiling alloca.c.
13538 ALLOCA
=alloca.
$ac_objext
13540 cat >>confdefs.h
<<\_ACEOF
13545 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13546 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13547 if test "${ac_cv_os_cray+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 cat >conftest.
$ac_ext <<_ACEOF
13553 cat confdefs.h
>>conftest.
$ac_ext
13554 cat >>conftest.
$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 #if defined(CRAY) && ! defined(CRAY2)
13563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13564 $EGREP "webecray" >/dev
/null
2>&1; then
13572 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13573 echo "${ECHO_T}$ac_cv_os_cray" >&6
13574 if test $ac_cv_os_cray = yes; then
13575 for ac_func
in _getb67 GETB67 getb67
; do
13576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13577 echo "$as_me:$LINENO: checking for $ac_func" >&5
13578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13579 if eval "test \"\${$as_ac_var+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 cat >conftest.
$ac_ext <<_ACEOF
13585 cat confdefs.h
>>conftest.
$ac_ext
13586 cat >>conftest.
$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13590 #define $ac_func innocuous_$ac_func
13592 /* System header to define __stub macros and hopefully few prototypes,
13593 which can conflict with char $ac_func (); below.
13594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13595 <limits.h> exists even on freestanding compilers. */
13598 # include <limits.h>
13600 # include <assert.h>
13605 /* Override any gcc2 internal prototype to avoid an error. */
13610 /* We use char because int might match the return type of a gcc2
13611 builtin and then its argument prototype would still apply. */
13613 /* The GNU C library defines this for functions which it implements
13614 to always fail with ENOSYS. Some functions are actually named
13615 something starting with __ and the normal name is an alias. */
13616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13619 char (*f) () = $ac_func;
13628 return f != $ac_func;
13633 rm -f conftest.
$ac_objext conftest
$ac_exeext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13635 (eval $ac_link) 2>conftest.er1
13637 grep -v '^ *+' conftest.er1
>conftest.err
13639 cat conftest.err
>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try
='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 eval "$as_ac_var=yes"
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.
$ac_ext >&5
13659 eval "$as_ac_var=no"
13661 rm -f conftest.err conftest.
$ac_objext \
13662 conftest
$ac_exeext conftest.
$ac_ext
13664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13666 if test `eval echo '${'$as_ac_var'}'` = yes; then
13668 cat >>confdefs.h
<<_ACEOF
13669 #define CRAY_STACKSEG_END $ac_func
13678 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13679 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13680 if test "${ac_cv_c_stack_direction+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 if test "$cross_compiling" = yes; then
13684 ac_cv_c_stack_direction
=0
13686 cat >conftest.
$ac_ext <<_ACEOF
13689 cat confdefs.h
>>conftest.
$ac_ext
13690 cat >>conftest.
$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13693 find_stack_direction ()
13695 static char *addr = 0;
13700 return find_stack_direction ();
13703 return (&dummy > addr) ? 1 : -1;
13709 exit (find_stack_direction () < 0);
13712 rm -f conftest
$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_c_stack_direction
=1
13725 echo "$as_me: program exited with status $ac_status" >&5
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.
$ac_ext >&5
13729 ( exit $ac_status )
13730 ac_cv_c_stack_direction
=-1
13732 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13735 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13736 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13738 cat >>confdefs.h
<<_ACEOF
13739 #define STACK_DIRECTION $ac_cv_c_stack_direction
13746 # fmod, logb, and frexp are found in -lm on most systems.
13747 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13749 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13750 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13751 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 ac_check_lib_save_LIBS
=$LIBS
13756 cat >conftest.
$ac_ext <<_ACEOF
13759 cat confdefs.h
>>conftest.
$ac_ext
13760 cat >>conftest.
$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any gcc2 internal prototype to avoid an error. */
13767 /* We use char because int might match the return type of a gcc2
13768 builtin and then its argument prototype would still apply. */
13778 rm -f conftest.
$ac_objext conftest
$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 (eval $ac_link) 2>conftest.er1
13782 grep -v '^ *+' conftest.er1
>conftest.err
13784 cat conftest.err
>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try
='test -s conftest$ac_exeext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_lib_m_sqrt
=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.
$ac_ext >&5
13804 ac_cv_lib_m_sqrt
=no
13806 rm -f conftest.err conftest.
$ac_objext \
13807 conftest
$ac_exeext conftest.
$ac_ext
13808 LIBS
=$ac_check_lib_save_LIBS
13810 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13811 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13812 if test $ac_cv_lib_m_sqrt = yes; then
13813 cat >>confdefs.h
<<_ACEOF
13814 #define HAVE_LIBM 1
13822 # Check for mail-locking functions in a "mail" library. Probably this should
13823 # have the same check as for liblockfile below.
13825 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13826 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13827 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 ac_check_lib_save_LIBS
=$LIBS
13831 LIBS
="-lmail $LIBS"
13832 cat >conftest.
$ac_ext <<_ACEOF
13835 cat confdefs.h
>>conftest.
$ac_ext
13836 cat >>conftest.
$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13839 /* Override any gcc2 internal prototype to avoid an error. */
13843 /* We use char because int might match the return type of a gcc2
13844 builtin and then its argument prototype would still apply. */
13854 rm -f conftest.
$ac_objext conftest
$ac_exeext
13855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13856 (eval $ac_link) 2>conftest.er1
13858 grep -v '^ *+' conftest.er1
>conftest.err
13860 cat conftest.err
>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
13863 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try
='test -s conftest$ac_exeext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_lib_mail_maillock
=yes
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.
$ac_ext >&5
13880 ac_cv_lib_mail_maillock
=no
13882 rm -f conftest.err conftest.
$ac_objext \
13883 conftest
$ac_exeext conftest.
$ac_ext
13884 LIBS
=$ac_check_lib_save_LIBS
13886 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13887 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13888 if test $ac_cv_lib_mail_maillock = yes; then
13889 cat >>confdefs.h
<<_ACEOF
13890 #define HAVE_LIBMAIL 1
13893 LIBS
="-lmail $LIBS"
13898 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13899 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13900 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 ac_check_lib_save_LIBS
=$LIBS
13904 LIBS
="-llockfile $LIBS"
13905 cat >conftest.
$ac_ext <<_ACEOF
13908 cat confdefs.h
>>conftest.
$ac_ext
13909 cat >>conftest.
$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any gcc2 internal prototype to avoid an error. */
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13927 rm -f conftest.
$ac_objext conftest
$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>conftest.er1
13931 grep -v '^ *+' conftest.er1
>conftest.err
13933 cat conftest.err
>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try
='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_lib_lockfile_maillock
=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.
$ac_ext >&5
13953 ac_cv_lib_lockfile_maillock
=no
13955 rm -f conftest.err conftest.
$ac_objext \
13956 conftest
$ac_exeext conftest.
$ac_ext
13957 LIBS
=$ac_check_lib_save_LIBS
13959 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13960 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13961 if test $ac_cv_lib_lockfile_maillock = yes; then
13962 cat >>confdefs.h
<<_ACEOF
13963 #define HAVE_LIBLOCKFILE 1
13966 LIBS
="-llockfile $LIBS"
13970 # If we have the shared liblockfile, assume we must use it for mail
13971 # locking (e.g. Debian). If we couldn't link against liblockfile
13972 # (no liblockfile.a installed), ensure that we don't need to.
13973 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13974 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13975 set dummy liblockfile.so
; ac_word
=$2
13976 echo "$as_me:$LINENO: checking for $ac_word" >&5
13977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13978 if test "${ac_cv_prog_liblockfile+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 if test -n "$liblockfile"; then
13982 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13985 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13986 for as_dir
in $as_dummy
13989 test -z "$as_dir" && as_dir
=.
13990 for ac_exec_ext
in '' $ac_executable_extensions; do
13991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_prog_liblockfile
="yes"
13993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14002 liblockfile
=$ac_cv_prog_liblockfile
14003 if test -n "$liblockfile"; then
14004 echo "$as_me:$LINENO: result: $liblockfile" >&5
14005 echo "${ECHO_T}$liblockfile" >&6
14007 echo "$as_me:$LINENO: result: no" >&5
14008 echo "${ECHO_T}no" >&6
14011 if test $ac_cv_prog_liblockfile = yes; then
14012 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14013 This probably means that movemail could lose mail.
14014 There may be a \`development' package to install containing liblockfile." >&5
14015 echo "$as_me: error: Shared liblockfile found but can't link against it.
14016 This probably means that movemail could lose mail.
14017 There may be a \`development' package to install containing liblockfile." >&2;}
14018 { (exit 1); exit 1; }; }
14023 for ac_func
in touchlock
14025 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14026 echo "$as_me:$LINENO: checking for $ac_func" >&5
14027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14028 if eval "test \"\${$as_ac_var+set}\" = set"; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 cat >conftest.
$ac_ext <<_ACEOF
14034 cat confdefs.h
>>conftest.
$ac_ext
14035 cat >>conftest.
$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14039 #define $ac_func innocuous_$ac_func
14041 /* System header to define __stub macros and hopefully few prototypes,
14042 which can conflict with char $ac_func (); below.
14043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14044 <limits.h> exists even on freestanding compilers. */
14047 # include <limits.h>
14049 # include <assert.h>
14054 /* Override any gcc2 internal prototype to avoid an error. */
14059 /* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14062 /* The GNU C library defines this for functions which it implements
14063 to always fail with ENOSYS. Some functions are actually named
14064 something starting with __ and the normal name is an alias. */
14065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14068 char (*f) () = $ac_func;
14077 return f != $ac_func;
14082 rm -f conftest.
$ac_objext conftest
$ac_exeext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084 (eval $ac_link) 2>conftest.er1
14086 grep -v '^ *+' conftest.er1
>conftest.err
14088 cat conftest.err
>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try
='test -s conftest$ac_exeext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 eval "$as_ac_var=yes"
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.
$ac_ext >&5
14108 eval "$as_ac_var=no"
14110 rm -f conftest.err conftest.
$ac_objext \
14111 conftest
$ac_exeext conftest.
$ac_ext
14113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14115 if test `eval echo '${'$as_ac_var'}'` = yes; then
14116 cat >>confdefs.h
<<_ACEOF
14117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14124 for ac_header
in maillock.h
14126 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14128 echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14136 # Is the header compilable?
14137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14139 cat >conftest.
$ac_ext <<_ACEOF
14142 cat confdefs.h
>>conftest.
$ac_ext
14143 cat >>conftest.
$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 $ac_includes_default
14146 #include <$ac_header>
14148 rm -f conftest.
$ac_objext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14150 (eval $ac_compile) 2>conftest.er1
14152 grep -v '^ *+' conftest.er1
>conftest.err
14154 cat conftest.err
>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; } &&
14163 { ac_try
='test -s conftest.$ac_objext'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_header_compiler
=yes
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.
$ac_ext >&5
14174 ac_header_compiler
=no
14176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14178 echo "${ECHO_T}$ac_header_compiler" >&6
14180 # Is the header present?
14181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14183 cat >conftest.
$ac_ext <<_ACEOF
14186 cat confdefs.h
>>conftest.
$ac_ext
14187 cat >>conftest.
$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 #include <$ac_header>
14191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14194 grep -v '^ *+' conftest.er1
>conftest.err
14196 cat conftest.err
>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } >/dev
/null
; then
14199 if test -s conftest.err
; then
14200 ac_cpp_err
=$ac_c_preproc_warn_flag
14201 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14208 if test -z "$ac_cpp_err"; then
14209 ac_header_preproc
=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.
$ac_ext >&5
14214 ac_header_preproc
=no
14216 rm -f conftest.err conftest.
$ac_ext
14217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14218 echo "${ECHO_T}$ac_header_preproc" >&6
14220 # So? What about this header?
14221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14227 ac_header_preproc
=yes
14230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14244 ## ------------------------------------------ ##
14245 ## Report this to the AC_PACKAGE_NAME lists. ##
14246 ## ------------------------------------------ ##
14249 sed "s/^/$as_me: WARNING: /" >&2
14252 echo "$as_me:$LINENO: checking for $ac_header" >&5
14253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 eval "$as_ac_Header=\$ac_header_preproc"
14259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14264 cat >>confdefs.h
<<_ACEOF
14265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 for ac_func
in gethostname getdomainname dup2 \
14342 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14343 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14344 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14345 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14346 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14347 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14348 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14349 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14351 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14352 echo "$as_me:$LINENO: checking for $ac_func" >&5
14353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14354 if eval "test \"\${$as_ac_var+set}\" = set"; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 cat >conftest.
$ac_ext <<_ACEOF
14360 cat confdefs.h
>>conftest.
$ac_ext
14361 cat >>conftest.
$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14365 #define $ac_func innocuous_$ac_func
14367 /* System header to define __stub macros and hopefully few prototypes,
14368 which can conflict with char $ac_func (); below.
14369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14370 <limits.h> exists even on freestanding compilers. */
14373 # include <limits.h>
14375 # include <assert.h>
14380 /* Override any gcc2 internal prototype to avoid an error. */
14385 /* We use char because int might match the return type of a gcc2
14386 builtin and then its argument prototype would still apply. */
14388 /* The GNU C library defines this for functions which it implements
14389 to always fail with ENOSYS. Some functions are actually named
14390 something starting with __ and the normal name is an alias. */
14391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14394 char (*f) () = $ac_func;
14403 return f != $ac_func;
14408 rm -f conftest.
$ac_objext conftest
$ac_exeext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410 (eval $ac_link) 2>conftest.er1
14412 grep -v '^ *+' conftest.er1
>conftest.err
14414 cat conftest.err
>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; } &&
14423 { ac_try
='test -s conftest$ac_exeext'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 eval "$as_ac_var=yes"
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.
$ac_ext >&5
14434 eval "$as_ac_var=no"
14436 rm -f conftest.err conftest.
$ac_objext \
14437 conftest
$ac_exeext conftest.
$ac_ext
14439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14441 if test `eval echo '${'$as_ac_var'}'` = yes; then
14442 cat >>confdefs.h
<<_ACEOF
14443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14451 for ac_header
in sys
/un.h
14453 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14455 echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14463 # Is the header compilable?
14464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14466 cat >conftest.
$ac_ext <<_ACEOF
14469 cat confdefs.h
>>conftest.
$ac_ext
14470 cat >>conftest.
$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 $ac_includes_default
14473 #include <$ac_header>
14475 rm -f conftest.
$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1
>conftest.err
14481 cat conftest.err
>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try
='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_header_compiler
=yes
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.
$ac_ext >&5
14501 ac_header_compiler
=no
14503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 echo "${ECHO_T}$ac_header_compiler" >&6
14507 # Is the header present?
14508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14510 cat >conftest.
$ac_ext <<_ACEOF
14513 cat confdefs.h
>>conftest.
$ac_ext
14514 cat >>conftest.
$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14521 grep -v '^ *+' conftest.er1
>conftest.err
14523 cat conftest.err
>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } >/dev
/null
; then
14526 if test -s conftest.err
; then
14527 ac_cpp_err
=$ac_c_preproc_warn_flag
14528 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14535 if test -z "$ac_cpp_err"; then
14536 ac_header_preproc
=yes
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.
$ac_ext >&5
14541 ac_header_preproc
=no
14543 rm -f conftest.err conftest.
$ac_ext
14544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14545 echo "${ECHO_T}$ac_header_preproc" >&6
14547 # So? What about this header?
14548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14554 ac_header_preproc
=yes
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14571 ## ------------------------------------------ ##
14572 ## Report this to the AC_PACKAGE_NAME lists. ##
14573 ## ------------------------------------------ ##
14576 sed "s/^/$as_me: WARNING: /" >&2
14579 echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 eval "$as_ac_Header=\$ac_header_preproc"
14586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14591 cat >>confdefs.h
<<_ACEOF
14592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14603 for ac_header
in stdlib.h sys
/time.h unistd.h
14605 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14607 echo "$as_me:$LINENO: checking for $ac_header" >&5
14608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14615 # Is the header compilable?
14616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14618 cat >conftest.
$ac_ext <<_ACEOF
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14625 #include <$ac_header>
14627 rm -f conftest.
$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14631 grep -v '^ *+' conftest.er1
>conftest.err
14633 cat conftest.err
>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try
='test -s conftest.$ac_objext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_header_compiler
=yes
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.
$ac_ext >&5
14653 ac_header_compiler
=no
14655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6
14659 # Is the header present?
14660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14662 cat >conftest.
$ac_ext <<_ACEOF
14665 cat confdefs.h
>>conftest.
$ac_ext
14666 cat >>conftest.
$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <$ac_header>
14670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14673 grep -v '^ *+' conftest.er1
>conftest.err
14675 cat conftest.err
>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } >/dev
/null
; then
14678 if test -s conftest.err
; then
14679 ac_cpp_err
=$ac_c_preproc_warn_flag
14680 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14687 if test -z "$ac_cpp_err"; then
14688 ac_header_preproc
=yes
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.
$ac_ext >&5
14693 ac_header_preproc
=no
14695 rm -f conftest.err conftest.
$ac_ext
14696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697 echo "${ECHO_T}$ac_header_preproc" >&6
14699 # So? What about this header?
14700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc
=yes
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14723 ## ------------------------------------------ ##
14724 ## Report this to the AC_PACKAGE_NAME lists. ##
14725 ## ------------------------------------------ ##
14728 sed "s/^/$as_me: WARNING: /" >&2
14731 echo "$as_me:$LINENO: checking for $ac_header" >&5
14732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 eval "$as_ac_Header=\$ac_header_preproc"
14738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14743 cat >>confdefs.h
<<_ACEOF
14744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14752 for ac_func
in alarm
14754 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14755 echo "$as_me:$LINENO: checking for $ac_func" >&5
14756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14757 if eval "test \"\${$as_ac_var+set}\" = set"; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 cat >conftest.
$ac_ext <<_ACEOF
14763 cat confdefs.h
>>conftest.
$ac_ext
14764 cat >>conftest.
$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14768 #define $ac_func innocuous_$ac_func
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func (); below.
14772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14773 <limits.h> exists even on freestanding compilers. */
14776 # include <limits.h>
14778 # include <assert.h>
14783 /* Override any gcc2 internal prototype to avoid an error. */
14788 /* We use char because int might match the return type of a gcc2
14789 builtin and then its argument prototype would still apply. */
14791 /* The GNU C library defines this for functions which it implements
14792 to always fail with ENOSYS. Some functions are actually named
14793 something starting with __ and the normal name is an alias. */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14797 char (*f) () = $ac_func;
14806 return f != $ac_func;
14811 rm -f conftest.
$ac_objext conftest
$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>conftest.er1
14815 grep -v '^ *+' conftest.er1
>conftest.err
14817 cat conftest.err
>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try
='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 eval "$as_ac_var=yes"
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.
$ac_ext >&5
14837 eval "$as_ac_var=no"
14839 rm -f conftest.err conftest.
$ac_objext \
14840 conftest
$ac_exeext conftest.
$ac_ext
14842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14844 if test `eval echo '${'$as_ac_var'}'` = yes; then
14845 cat >>confdefs.h
<<_ACEOF
14846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14852 echo "$as_me:$LINENO: checking for working mktime" >&5
14853 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14854 if test "${ac_cv_func_working_mktime+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 if test "$cross_compiling" = yes; then
14858 ac_cv_func_working_mktime
=no
14860 cat >conftest.
$ac_ext <<_ACEOF
14863 cat confdefs.h
>>conftest.
$ac_ext
14864 cat >>conftest.
$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 /* Test program from Paul Eggert and Tony Leneis. */
14867 #if TIME_WITH_SYS_TIME
14868 # include <sys/time.h>
14871 # if HAVE_SYS_TIME_H
14872 # include <sys/time.h>
14879 # include <stdlib.h>
14883 # include <unistd.h>
14887 # define alarm(X) /* empty */
14890 /* Work around redefinition to rpl_putenv by other config tests. */
14893 static time_t time_t_max;
14894 static time_t time_t_min;
14896 /* Values we'll use to set the TZ environment variable. */
14897 static char *tz_strings[] = {
14898 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14899 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14901 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14903 /* Fail if mktime fails to convert a date in the spring-forward gap.
14904 Based on a problem report from Andreas Jaeger. */
14906 spring_forward_gap ()
14908 /* glibc (up to about 1998-10-07) failed this test. */
14911 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14912 instead of "TZ=America/Vancouver" in order to detect the bug even
14913 on systems that don't support the Olson extension, or don't have the
14914 full zoneinfo tables installed. */
14915 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14924 if (mktime (&tm) == (time_t)-1)
14933 if ((lt = localtime (&now)) && mktime (lt) != now)
14941 mktime_test1 (now);
14942 mktime_test1 ((time_t) (time_t_max - now));
14943 mktime_test1 ((time_t) (time_t_min + now));
14949 /* Based on code from Ariel Faigon. */
14959 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14969 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14970 now = mktime (&tm);
14971 if (now != (time_t) -1)
14973 struct tm *lt = localtime (&now);
14975 && lt->tm_year == tm.tm_year
14976 && lt->tm_mon == tm.tm_mon
14977 && lt->tm_mday == tm.tm_mday
14978 && lt->tm_hour == tm.tm_hour
14979 && lt->tm_min == tm.tm_min
14980 && lt->tm_sec == tm.tm_sec
14981 && lt->tm_yday == tm.tm_yday
14982 && lt->tm_wday == tm.tm_wday
14983 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14984 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14995 /* This test makes some buggy mktime implementations loop.
14996 Give up after 60 seconds; a mktime slower than that
14997 isn't worth using anyway. */
15000 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15003 if ((time_t) -1 < 0)
15004 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15006 delta = time_t_max / 997; /* a suitable prime number */
15007 for (i = 0; i < N_STRINGS; i++)
15010 putenv (tz_strings[i]);
15012 for (t = 0; t <= time_t_max - delta; t += delta)
15014 mktime_test ((time_t) 1);
15015 mktime_test ((time_t) (60 * 60));
15016 mktime_test ((time_t) (60 * 60 * 24));
15018 for (j = 1; 0 < j; j *= 2)
15020 bigtime_test (j - 1);
15023 spring_forward_gap ();
15027 rm -f conftest
$ac_exeext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15029 (eval $ac_link) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_func_working_mktime
=yes
15040 echo "$as_me: program exited with status $ac_status" >&5
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.
$ac_ext >&5
15044 ( exit $ac_status )
15045 ac_cv_func_working_mktime
=no
15047 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15051 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15052 if test $ac_cv_func_working_mktime = no
; then
15054 "mktime.$ac_objext" | \
15055 *" mktime.$ac_objext" | \
15056 "mktime.$ac_objext "* | \
15057 *" mktime.$ac_objext "* ) ;;
15058 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15063 if test "$ac_cv_func_working_mktime" = no
; then
15065 cat >>confdefs.h
<<\_ACEOF
15066 #define BROKEN_MKTIME 1
15071 ac_have_func
=no
# yes means we've found a way to get the load average.
15073 # Make sure getloadavg.c is where it belongs, at configure-time.
15074 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15075 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15076 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15077 { (exit 1); exit 1; }; }
15081 # Check for getloadavg, but be sure not to touch the cache variable.
15082 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15083 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15084 if test "${ac_cv_func_getloadavg+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 cat >conftest.
$ac_ext <<_ACEOF
15090 cat confdefs.h
>>conftest.
$ac_ext
15091 cat >>conftest.
$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15095 #define getloadavg innocuous_getloadavg
15097 /* System header to define __stub macros and hopefully few prototypes,
15098 which can conflict with char getloadavg (); below.
15099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15100 <limits.h> exists even on freestanding compilers. */
15103 # include <limits.h>
15105 # include <assert.h>
15110 /* Override any gcc2 internal prototype to avoid an error. */
15115 /* We use char because int might match the return type of a gcc2
15116 builtin and then its argument prototype would still apply. */
15117 char getloadavg ();
15118 /* The GNU C library defines this for functions which it implements
15119 to always fail with ENOSYS. Some functions are actually named
15120 something starting with __ and the normal name is an alias. */
15121 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15124 char (*f) () = getloadavg;
15133 return f != getloadavg;
15138 rm -f conftest.
$ac_objext conftest
$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>conftest.er1
15142 grep -v '^ *+' conftest.er1
>conftest.err
15144 cat conftest.err
>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try
='test -s conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_func_getloadavg
=yes
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.
$ac_ext >&5
15164 ac_cv_func_getloadavg
=no
15166 rm -f conftest.err conftest.
$ac_objext \
15167 conftest
$ac_exeext conftest.
$ac_ext
15169 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15170 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15171 if test $ac_cv_func_getloadavg = yes; then
15176 ) && ac_have_func
=yes
15178 # On HPUX9, an unprivileged user can get load averages through this function.
15180 for ac_func
in pstat_getdynamic
15182 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 echo "$as_me:$LINENO: checking for $ac_func" >&5
15184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_var+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.
$ac_ext <<_ACEOF
15191 cat confdefs.h
>>conftest.
$ac_ext
15192 cat >>conftest.
$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15196 #define $ac_func innocuous_$ac_func
15198 /* System header to define __stub macros and hopefully few prototypes,
15199 which can conflict with char $ac_func (); below.
15200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15201 <limits.h> exists even on freestanding compilers. */
15204 # include <limits.h>
15206 # include <assert.h>
15211 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15219 /* The GNU C library defines this for functions which it implements
15220 to always fail with ENOSYS. Some functions are actually named
15221 something starting with __ and the normal name is an alias. */
15222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15225 char (*f) () = $ac_func;
15234 return f != $ac_func;
15239 rm -f conftest.
$ac_objext conftest
$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241 (eval $ac_link) 2>conftest.er1
15243 grep -v '^ *+' conftest.er1
>conftest.err
15245 cat conftest.err
>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try
='test -s conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 eval "$as_ac_var=yes"
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.
$ac_ext >&5
15265 eval "$as_ac_var=no"
15267 rm -f conftest.err conftest.
$ac_objext \
15268 conftest
$ac_exeext conftest.
$ac_ext
15270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15272 if test `eval echo '${'$as_ac_var'}'` = yes; then
15273 cat >>confdefs.h
<<_ACEOF
15274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15281 # Solaris has libkstat which does not require root.
15283 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15284 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15285 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 ac_check_lib_save_LIBS
=$LIBS
15289 LIBS
="-lkstat $LIBS"
15290 cat >conftest.
$ac_ext <<_ACEOF
15293 cat confdefs.h
>>conftest.
$ac_ext
15294 cat >>conftest.
$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15297 /* Override any gcc2 internal prototype to avoid an error. */
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15303 char kstat_open ();
15312 rm -f conftest.
$ac_objext conftest
$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15316 grep -v '^ *+' conftest.er1
>conftest.err
15318 cat conftest.err
>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try
='test -s conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_lib_kstat_kstat_open
=yes
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.
$ac_ext >&5
15338 ac_cv_lib_kstat_kstat_open
=no
15340 rm -f conftest.err conftest.
$ac_objext \
15341 conftest
$ac_exeext conftest.
$ac_ext
15342 LIBS
=$ac_check_lib_save_LIBS
15344 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15345 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15346 if test $ac_cv_lib_kstat_kstat_open = yes; then
15347 cat >>confdefs.h
<<_ACEOF
15348 #define HAVE_LIBKSTAT 1
15351 LIBS
="-lkstat $LIBS"
15355 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15357 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15358 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15359 # to get the right answer into the cache.
15360 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15361 if test $ac_have_func = no
; then
15362 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15363 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15364 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 ac_check_lib_save_LIBS
=$LIBS
15369 cat >conftest.
$ac_ext <<_ACEOF
15372 cat confdefs.h
>>conftest.
$ac_ext
15373 cat >>conftest.
$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15376 /* Override any gcc2 internal prototype to avoid an error. */
15380 /* We use char because int might match the return type of a gcc2
15381 builtin and then its argument prototype would still apply. */
15391 rm -f conftest.
$ac_objext conftest
$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>conftest.er1
15395 grep -v '^ *+' conftest.er1
>conftest.err
15397 cat conftest.err
>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; } &&
15406 { ac_try
='test -s conftest$ac_exeext'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_lib_elf_elf_begin
=yes
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.
$ac_ext >&5
15417 ac_cv_lib_elf_elf_begin
=no
15419 rm -f conftest.err conftest.
$ac_objext \
15420 conftest
$ac_exeext conftest.
$ac_ext
15421 LIBS
=$ac_check_lib_save_LIBS
15423 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15424 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15425 if test $ac_cv_lib_elf_elf_begin = yes; then
15430 if test $ac_have_func = no
; then
15431 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15432 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15433 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 ac_check_lib_save_LIBS
=$LIBS
15438 cat >conftest.
$ac_ext <<_ACEOF
15441 cat confdefs.h
>>conftest.
$ac_ext
15442 cat >>conftest.
$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15445 /* Override any gcc2 internal prototype to avoid an error. */
15449 /* We use char because int might match the return type of a gcc2
15450 builtin and then its argument prototype would still apply. */
15460 rm -f conftest.
$ac_objext conftest
$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462 (eval $ac_link) 2>conftest.er1
15464 grep -v '^ *+' conftest.er1
>conftest.err
15466 cat conftest.err
>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } &&
15469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try
='test -s conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_lib_kvm_kvm_open
=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.
$ac_ext >&5
15486 ac_cv_lib_kvm_kvm_open
=no
15488 rm -f conftest.err conftest.
$ac_objext \
15489 conftest
$ac_exeext conftest.
$ac_ext
15490 LIBS
=$ac_check_lib_save_LIBS
15492 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15493 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15494 if test $ac_cv_lib_kvm_kvm_open = yes; then
15498 # Check for the 4.4BSD definition of getloadavg.
15499 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15500 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15501 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 ac_check_lib_save_LIBS
=$LIBS
15505 LIBS
="-lutil $LIBS"
15506 cat >conftest.
$ac_ext <<_ACEOF
15509 cat confdefs.h
>>conftest.
$ac_ext
15510 cat >>conftest.
$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15513 /* Override any gcc2 internal prototype to avoid an error. */
15517 /* We use char because int might match the return type of a gcc2
15518 builtin and then its argument prototype would still apply. */
15519 char getloadavg ();
15528 rm -f conftest.
$ac_objext conftest
$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>conftest.er1
15532 grep -v '^ *+' conftest.er1
>conftest.err
15534 cat conftest.err
>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try
='test -s conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_cv_lib_util_getloadavg
=yes
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.
$ac_ext >&5
15554 ac_cv_lib_util_getloadavg
=no
15556 rm -f conftest.err conftest.
$ac_objext \
15557 conftest
$ac_exeext conftest.
$ac_ext
15558 LIBS
=$ac_check_lib_save_LIBS
15560 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15561 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15562 if test $ac_cv_lib_util_getloadavg = yes; then
15563 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15568 if test $ac_have_func = no
; then
15569 # There is a commonly available library for RS/6000 AIX.
15570 # Since it is not a standard part of AIX, it might be installed locally.
15571 ac_getloadavg_LIBS
=$LIBS
15572 LIBS
="-L/usr/local/lib $LIBS"
15573 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15574 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15575 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 ac_check_lib_save_LIBS
=$LIBS
15579 LIBS
="-lgetloadavg $LIBS"
15580 cat >conftest.
$ac_ext <<_ACEOF
15583 cat confdefs.h
>>conftest.
$ac_ext
15584 cat >>conftest.
$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15587 /* Override any gcc2 internal prototype to avoid an error. */
15591 /* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15593 char getloadavg ();
15602 rm -f conftest.
$ac_objext conftest
$ac_exeext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>conftest.er1
15606 grep -v '^ *+' conftest.er1
>conftest.err
15608 cat conftest.err
>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; } &&
15617 { ac_try
='test -s conftest$ac_exeext'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 ac_cv_lib_getloadavg_getloadavg
=yes
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.
$ac_ext >&5
15628 ac_cv_lib_getloadavg_getloadavg
=no
15630 rm -f conftest.err conftest.
$ac_objext \
15631 conftest
$ac_exeext conftest.
$ac_ext
15632 LIBS
=$ac_check_lib_save_LIBS
15634 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15635 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15636 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15637 LIBS
="-lgetloadavg $LIBS"
15639 LIBS
=$ac_getloadavg_LIBS
15644 # Make sure it is really in the library, if we think we found it,
15645 # otherwise set up the replacement function.
15647 for ac_func
in getloadavg
15649 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15650 echo "$as_me:$LINENO: checking for $ac_func" >&5
15651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15652 if eval "test \"\${$as_ac_var+set}\" = set"; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 cat >conftest.
$ac_ext <<_ACEOF
15658 cat confdefs.h
>>conftest.
$ac_ext
15659 cat >>conftest.
$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15663 #define $ac_func innocuous_$ac_func
15665 /* System header to define __stub macros and hopefully few prototypes,
15666 which can conflict with char $ac_func (); below.
15667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15668 <limits.h> exists even on freestanding compilers. */
15671 # include <limits.h>
15673 # include <assert.h>
15678 /* Override any gcc2 internal prototype to avoid an error. */
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15686 /* The GNU C library defines this for functions which it implements
15687 to always fail with ENOSYS. Some functions are actually named
15688 something starting with __ and the normal name is an alias. */
15689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15692 char (*f) () = $ac_func;
15701 return f != $ac_func;
15706 rm -f conftest.
$ac_objext conftest
$ac_exeext
15707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15708 (eval $ac_link) 2>conftest.er1
15710 grep -v '^ *+' conftest.er1
>conftest.err
15712 cat conftest.err
>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } &&
15715 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; } &&
15721 { ac_try
='test -s conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 eval "$as_ac_var=yes"
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.
$ac_ext >&5
15732 eval "$as_ac_var=no"
15734 rm -f conftest.err conftest.
$ac_objext \
15735 conftest
$ac_exeext conftest.
$ac_ext
15737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15739 if test `eval echo '${'$as_ac_var'}'` = yes; then
15740 cat >>confdefs.h
<<_ACEOF
15741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15746 "getloadavg.$ac_objext" | \
15747 *" getloadavg.$ac_objext" | \
15748 "getloadavg.$ac_objext "* | \
15749 *" getloadavg.$ac_objext "* ) ;;
15750 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15754 cat >>confdefs.h
<<\_ACEOF
15755 #define C_GETLOADAVG 1
15758 # Figure out what our getloadavg.c needs.
15760 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15761 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15762 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15763 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15767 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15769 # Is the header compilable?
15770 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15771 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15772 cat >conftest.
$ac_ext <<_ACEOF
15775 cat confdefs.h
>>conftest.
$ac_ext
15776 cat >>conftest.
$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 #include <sys/dg_sys_info.h>
15781 rm -f conftest.
$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>conftest.er1
15785 grep -v '^ *+' conftest.er1
>conftest.err
15787 cat conftest.err
>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try
='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_header_compiler
=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.
$ac_ext >&5
15807 ac_header_compiler
=no
15809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15811 echo "${ECHO_T}$ac_header_compiler" >&6
15813 # Is the header present?
15814 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15815 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15816 cat >conftest.
$ac_ext <<_ACEOF
15819 cat confdefs.h
>>conftest.
$ac_ext
15820 cat >>conftest.
$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #include <sys/dg_sys_info.h>
15824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15825 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15827 grep -v '^ *+' conftest.er1
>conftest.err
15829 cat conftest.err
>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } >/dev
/null
; then
15832 if test -s conftest.err
; then
15833 ac_cpp_err
=$ac_c_preproc_warn_flag
15834 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15841 if test -z "$ac_cpp_err"; then
15842 ac_header_preproc
=yes
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.
$ac_ext >&5
15847 ac_header_preproc
=no
15849 rm -f conftest.err conftest.
$ac_ext
15850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851 echo "${ECHO_T}$ac_header_preproc" >&6
15853 # So? What about this header?
15854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15856 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15857 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15859 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15860 ac_header_preproc
=yes
15863 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15864 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15866 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15868 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15870 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15872 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15874 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15877 ## ------------------------------------------ ##
15878 ## Report this to the AC_PACKAGE_NAME lists. ##
15879 ## ------------------------------------------ ##
15882 sed "s/^/$as_me: WARNING: /" >&2
15885 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15886 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15887 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15892 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15893 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15896 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15899 cat >>confdefs.h
<<\_ACEOF
15904 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15905 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15906 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 ac_check_lib_save_LIBS
=$LIBS
15911 cat >conftest.
$ac_ext <<_ACEOF
15914 cat confdefs.h
>>conftest.
$ac_ext
15915 cat >>conftest.
$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15918 /* Override any gcc2 internal prototype to avoid an error. */
15922 /* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15924 char dg_sys_info ();
15933 rm -f conftest.
$ac_objext conftest
$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15937 grep -v '^ *+' conftest.er1
>conftest.err
15939 cat conftest.err
>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try
='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_cv_lib_dgc_dg_sys_info
=yes
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.
$ac_ext >&5
15959 ac_cv_lib_dgc_dg_sys_info
=no
15961 rm -f conftest.err conftest.
$ac_objext \
15962 conftest
$ac_exeext conftest.
$ac_ext
15963 LIBS
=$ac_check_lib_save_LIBS
15965 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15966 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15967 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15968 cat >>confdefs.h
<<_ACEOF
15969 #define HAVE_LIBDGC 1
15980 if test "${ac_cv_header_locale_h+set}" = set; then
15981 echo "$as_me:$LINENO: checking for locale.h" >&5
15982 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15983 if test "${ac_cv_header_locale_h+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15987 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15989 # Is the header compilable?
15990 echo "$as_me:$LINENO: checking locale.h usability" >&5
15991 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15992 cat >conftest.
$ac_ext <<_ACEOF
15995 cat confdefs.h
>>conftest.
$ac_ext
15996 cat >>conftest.
$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <locale.h>
16001 rm -f conftest.
$ac_objext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16005 grep -v '^ *+' conftest.er1
>conftest.err
16007 cat conftest.err
>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try
='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_header_compiler
=yes
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.
$ac_ext >&5
16027 ac_header_compiler
=no
16029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031 echo "${ECHO_T}$ac_header_compiler" >&6
16033 # Is the header present?
16034 echo "$as_me:$LINENO: checking locale.h presence" >&5
16035 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16036 cat >conftest.
$ac_ext <<_ACEOF
16039 cat confdefs.h
>>conftest.
$ac_ext
16040 cat >>conftest.
$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #include <locale.h>
16044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1
>conftest.err
16049 cat conftest.err
>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } >/dev
/null
; then
16052 if test -s conftest.err
; then
16053 ac_cpp_err
=$ac_c_preproc_warn_flag
16054 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16061 if test -z "$ac_cpp_err"; then
16062 ac_header_preproc
=yes
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.
$ac_ext >&5
16067 ac_header_preproc
=no
16069 rm -f conftest.err conftest.
$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16071 echo "${ECHO_T}$ac_header_preproc" >&6
16073 # So? What about this header?
16074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16076 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16077 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16078 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16079 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16080 ac_header_preproc
=yes
16083 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16084 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16086 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16088 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16090 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16092 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16094 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16097 ## ------------------------------------------ ##
16098 ## Report this to the AC_PACKAGE_NAME lists. ##
16099 ## ------------------------------------------ ##
16102 sed "s/^/$as_me: WARNING: /" >&2
16105 echo "$as_me:$LINENO: checking for locale.h" >&5
16106 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16107 if test "${ac_cv_header_locale_h+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 ac_cv_header_locale_h
=$ac_header_preproc
16112 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16113 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16119 for ac_func
in setlocale
16121 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16122 echo "$as_me:$LINENO: checking for $ac_func" >&5
16123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16124 if eval "test \"\${$as_ac_var+set}\" = set"; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 cat >conftest.
$ac_ext <<_ACEOF
16130 cat confdefs.h
>>conftest.
$ac_ext
16131 cat >>conftest.
$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16135 #define $ac_func innocuous_$ac_func
16137 /* System header to define __stub macros and hopefully few prototypes,
16138 which can conflict with char $ac_func (); below.
16139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16140 <limits.h> exists even on freestanding compilers. */
16143 # include <limits.h>
16145 # include <assert.h>
16150 /* Override any gcc2 internal prototype to avoid an error. */
16155 /* We use char because int might match the return type of a gcc2
16156 builtin and then its argument prototype would still apply. */
16158 /* The GNU C library defines this for functions which it implements
16159 to always fail with ENOSYS. Some functions are actually named
16160 something starting with __ and the normal name is an alias. */
16161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16164 char (*f) () = $ac_func;
16173 return f != $ac_func;
16178 rm -f conftest.
$ac_objext conftest
$ac_exeext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180 (eval $ac_link) 2>conftest.er1
16182 grep -v '^ *+' conftest.er1
>conftest.err
16184 cat conftest.err
>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try
='test -s conftest$ac_exeext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 eval "$as_ac_var=yes"
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.
$ac_ext >&5
16204 eval "$as_ac_var=no"
16206 rm -f conftest.err conftest.
$ac_objext \
16207 conftest
$ac_exeext conftest.
$ac_ext
16209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16211 if test `eval echo '${'$as_ac_var'}'` = yes; then
16212 cat >>confdefs.h
<<_ACEOF
16213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16220 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16221 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16222 # Irix 4.0.5F has the header but not the library.
16223 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16226 cat >>confdefs.h
<<\_ACEOF
16232 if test $ac_have_func = no
; then
16233 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16234 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16235 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16240 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16242 # Is the header compilable?
16243 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16244 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16245 cat >conftest.
$ac_ext <<_ACEOF
16248 cat confdefs.h
>>conftest.
$ac_ext
16249 cat >>conftest.
$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16252 #include <inq_stats/cpustats.h>
16254 rm -f conftest.
$ac_objext
16255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16256 (eval $ac_compile) 2>conftest.er1
16258 grep -v '^ *+' conftest.er1
>conftest.err
16260 cat conftest.err
>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
16269 { ac_try
='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_header_compiler
=yes
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.
$ac_ext >&5
16280 ac_header_compiler
=no
16282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16284 echo "${ECHO_T}$ac_header_compiler" >&6
16286 # Is the header present?
16287 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16288 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16289 cat >conftest.
$ac_ext <<_ACEOF
16292 cat confdefs.h
>>conftest.
$ac_ext
16293 cat >>conftest.
$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 #include <inq_stats/cpustats.h>
16297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16298 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16300 grep -v '^ *+' conftest.er1
>conftest.err
16302 cat conftest.err
>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } >/dev
/null
; then
16305 if test -s conftest.err
; then
16306 ac_cpp_err
=$ac_c_preproc_warn_flag
16307 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16314 if test -z "$ac_cpp_err"; then
16315 ac_header_preproc
=yes
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.
$ac_ext >&5
16320 ac_header_preproc
=no
16322 rm -f conftest.err conftest.
$ac_ext
16323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16324 echo "${ECHO_T}$ac_header_preproc" >&6
16326 # So? What about this header?
16327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16329 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16330 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16332 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16333 ac_header_preproc
=yes
16336 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16337 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16339 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16340 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16341 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16343 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16345 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16347 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16350 ## ------------------------------------------ ##
16351 ## Report this to the AC_PACKAGE_NAME lists. ##
16352 ## ------------------------------------------ ##
16355 sed "s/^/$as_me: WARNING: /" >&2
16358 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16359 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16360 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16365 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16366 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16369 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16372 cat >>confdefs.h
<<\_ACEOF
16377 cat >>confdefs.h
<<\_ACEOF
16386 if test $ac_have_func = no
; then
16387 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16388 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16389 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16390 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16394 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16396 # Is the header compilable?
16397 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16398 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16399 cat >conftest.
$ac_ext <<_ACEOF
16402 cat confdefs.h
>>conftest.
$ac_ext
16403 cat >>conftest.
$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16405 $ac_includes_default
16406 #include <sys/cpustats.h>
16408 rm -f conftest.
$ac_objext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16410 (eval $ac_compile) 2>conftest.er1
16412 grep -v '^ *+' conftest.er1
>conftest.err
16414 cat conftest.err
>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } &&
16423 { ac_try
='test -s conftest.$ac_objext'
16424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_header_compiler
=yes
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.
$ac_ext >&5
16434 ac_header_compiler
=no
16436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16438 echo "${ECHO_T}$ac_header_compiler" >&6
16440 # Is the header present?
16441 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16442 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16443 cat >conftest.
$ac_ext <<_ACEOF
16446 cat confdefs.h
>>conftest.
$ac_ext
16447 cat >>conftest.
$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 #include <sys/cpustats.h>
16451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16452 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16454 grep -v '^ *+' conftest.er1
>conftest.err
16456 cat conftest.err
>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } >/dev
/null
; then
16459 if test -s conftest.err
; then
16460 ac_cpp_err
=$ac_c_preproc_warn_flag
16461 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16468 if test -z "$ac_cpp_err"; then
16469 ac_header_preproc
=yes
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.
$ac_ext >&5
16474 ac_header_preproc
=no
16476 rm -f conftest.err conftest.
$ac_ext
16477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16478 echo "${ECHO_T}$ac_header_preproc" >&6
16480 # So? What about this header?
16481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16483 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16484 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16486 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16487 ac_header_preproc
=yes
16490 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16491 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16493 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16495 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16497 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16499 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16501 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16504 ## ------------------------------------------ ##
16505 ## Report this to the AC_PACKAGE_NAME lists. ##
16506 ## ------------------------------------------ ##
16509 sed "s/^/$as_me: WARNING: /" >&2
16512 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16513 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16514 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16520 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16523 if test $ac_cv_header_sys_cpustats_h = yes; then
16524 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16533 if test $ac_have_func = no
; then
16535 for ac_header
in mach
/mach.h
16537 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16539 echo "$as_me:$LINENO: checking for $ac_header" >&5
16540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16547 # Is the header compilable?
16548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16550 cat >conftest.
$ac_ext <<_ACEOF
16553 cat confdefs.h
>>conftest.
$ac_ext
16554 cat >>conftest.
$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 $ac_includes_default
16557 #include <$ac_header>
16559 rm -f conftest.
$ac_objext
16560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16561 (eval $ac_compile) 2>conftest.er1
16563 grep -v '^ *+' conftest.er1
>conftest.err
16565 cat conftest.err
>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try
='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_header_compiler
=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.
$ac_ext >&5
16585 ac_header_compiler
=no
16587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16589 echo "${ECHO_T}$ac_header_compiler" >&6
16591 # Is the header present?
16592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16594 cat >conftest.
$ac_ext <<_ACEOF
16597 cat confdefs.h
>>conftest.
$ac_ext
16598 cat >>conftest.
$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <$ac_header>
16602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16605 grep -v '^ *+' conftest.er1
>conftest.err
16607 cat conftest.err
>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } >/dev
/null
; then
16610 if test -s conftest.err
; then
16611 ac_cpp_err
=$ac_c_preproc_warn_flag
16612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16619 if test -z "$ac_cpp_err"; then
16620 ac_header_preproc
=yes
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.
$ac_ext >&5
16625 ac_header_preproc
=no
16627 rm -f conftest.err conftest.
$ac_ext
16628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16629 echo "${ECHO_T}$ac_header_preproc" >&6
16631 # So? What about this header?
16632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16638 ac_header_preproc
=yes
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16655 ## ------------------------------------------ ##
16656 ## Report this to the AC_PACKAGE_NAME lists. ##
16657 ## ------------------------------------------ ##
16660 sed "s/^/$as_me: WARNING: /" >&2
16663 echo "$as_me:$LINENO: checking for $ac_header" >&5
16664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 eval "$as_ac_Header=\$ac_header_preproc"
16670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16675 cat >>confdefs.h
<<_ACEOF
16676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16686 for ac_header
in nlist.h
16688 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16690 echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16698 # Is the header compilable?
16699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16701 cat >conftest.
$ac_ext <<_ACEOF
16704 cat confdefs.h
>>conftest.
$ac_ext
16705 cat >>conftest.
$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 #include <$ac_header>
16710 rm -f conftest.
$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16714 grep -v '^ *+' conftest.er1
>conftest.err
16716 cat conftest.err
>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try
='test -s conftest.$ac_objext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_header_compiler
=yes
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.
$ac_ext >&5
16736 ac_header_compiler
=no
16738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16740 echo "${ECHO_T}$ac_header_compiler" >&6
16742 # Is the header present?
16743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16745 cat >conftest.
$ac_ext <<_ACEOF
16748 cat confdefs.h
>>conftest.
$ac_ext
16749 cat >>conftest.
$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <$ac_header>
16753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16756 grep -v '^ *+' conftest.er1
>conftest.err
16758 cat conftest.err
>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } >/dev
/null
; then
16761 if test -s conftest.err
; then
16762 ac_cpp_err
=$ac_c_preproc_warn_flag
16763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16770 if test -z "$ac_cpp_err"; then
16771 ac_header_preproc
=yes
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.
$ac_ext >&5
16776 ac_header_preproc
=no
16778 rm -f conftest.err conftest.
$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6
16782 # So? What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789 ac_header_preproc
=yes
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16806 ## ------------------------------------------ ##
16807 ## Report this to the AC_PACKAGE_NAME lists. ##
16808 ## ------------------------------------------ ##
16811 sed "s/^/$as_me: WARNING: /" >&2
16814 echo "$as_me:$LINENO: checking for $ac_header" >&5
16815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 eval "$as_ac_Header=\$ac_header_preproc"
16821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16826 cat >>confdefs.h
<<_ACEOF
16827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16830 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16831 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 cat >conftest.
$ac_ext <<_ACEOF
16837 cat confdefs.h
>>conftest.
$ac_ext
16838 cat >>conftest.
$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16845 static struct nlist ac_aggr;
16846 if (ac_aggr.n_un.n_name)
16852 rm -f conftest.
$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16856 grep -v '^ *+' conftest.er1
>conftest.err
16858 cat conftest.err
>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try
='test -s conftest.$ac_objext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_member_struct_nlist_n_un_n_name
=yes
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.
$ac_ext >&5
16878 cat >conftest.
$ac_ext <<_ACEOF
16881 cat confdefs.h
>>conftest.
$ac_ext
16882 cat >>conftest.
$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16889 static struct nlist ac_aggr;
16890 if (sizeof ac_aggr.n_un.n_name)
16896 rm -f conftest.
$ac_objext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16898 (eval $ac_compile) 2>conftest.er1
16900 grep -v '^ *+' conftest.er1
>conftest.err
16902 cat conftest.err
>&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try
='test -s conftest.$ac_objext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_member_struct_nlist_n_un_n_name
=yes
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.
$ac_ext >&5
16922 ac_cv_member_struct_nlist_n_un_n_name
=no
16924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16929 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16930 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16932 cat >>confdefs.h
<<_ACEOF
16933 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16937 cat >>confdefs.h
<<\_ACEOF
16938 #define NLIST_NAME_UNION 1
16952 # Some definitions of getloadavg require that the program be installed setgid.
16953 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16954 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16955 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 cat >conftest.
$ac_ext <<_ACEOF
16961 cat confdefs.h
>>conftest.
$ac_ext
16962 cat >>conftest.
$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16965 #ifdef LDAV_PRIVILEGED
16966 Yowza Am I SETGID yet
16969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16970 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16971 ac_cv_func_getloadavg_setgid
=yes
16973 ac_cv_func_getloadavg_setgid
=no
16978 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16979 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16980 if test $ac_cv_func_getloadavg_setgid = yes; then
16983 cat >>confdefs.h
<<\_ACEOF
16984 #define GETLOADAVG_PRIVILEGED 1
16991 if test $ac_cv_func_getloadavg_setgid = yes; then
16992 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16993 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16994 if test "${ac_cv_group_kmem+set}" = set; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16998 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16999 # If we got an error (system does not support symlinks), try without -L.
17000 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17001 ac_cv_group_kmem
=`echo $ac_ls_output \
17002 | sed -ne 's/[ ][ ]*/ /g;
17003 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17007 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17008 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17009 KMEM_GROUP
=$ac_cv_group_kmem
17011 if test "x$ac_save_LIBS" = x
; then
17012 GETLOADAVG_LIBS
=$LIBS
17014 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17020 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17021 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17022 if test "${ac_cv_sys_largefile_source+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 ac_cv_sys_largefile_source
=no
17027 cat >conftest.
$ac_ext <<_ACEOF
17030 cat confdefs.h
>>conftest.
$ac_ext
17031 cat >>conftest.
$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17042 rm -f conftest.
$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>conftest.er1
17046 grep -v '^ *+' conftest.er1
>conftest.err
17048 cat conftest.err
>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try
='test -s conftest.$ac_objext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.
$ac_ext >&5
17069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17070 cat >conftest.
$ac_ext <<_ACEOF
17073 cat confdefs.h
>>conftest.
$ac_ext
17074 cat >>conftest.
$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 #define _LARGEFILE_SOURCE 1
17086 rm -f conftest.
$ac_objext
17087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17088 (eval $ac_compile) 2>conftest.er1
17090 grep -v '^ *+' conftest.er1
>conftest.err
17092 cat conftest.err
>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try
='test -s conftest.$ac_objext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_cv_sys_largefile_source
=1; break
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.
$ac_ext >&5
17113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17117 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17118 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17119 if test "$ac_cv_sys_largefile_source" != no
; then
17121 cat >>confdefs.h
<<_ACEOF
17122 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17128 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17129 # in glibc 2.1.3, but that breaks too many other things.
17130 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17131 echo "$as_me:$LINENO: checking for fseeko" >&5
17132 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17133 if test "${ac_cv_func_fseeko+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 cat >conftest.
$ac_ext <<_ACEOF
17139 cat confdefs.h
>>conftest.
$ac_ext
17140 cat >>conftest.
$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17146 return fseeko && fseeko (stdin, 0, 0);
17151 rm -f conftest.
$ac_objext conftest
$ac_exeext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153 (eval $ac_link) 2>conftest.er1
17155 grep -v '^ *+' conftest.er1
>conftest.err
17157 cat conftest.err
>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try
='test -s conftest$ac_exeext'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_cv_func_fseeko
=yes
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.
$ac_ext >&5
17177 ac_cv_func_fseeko
=no
17179 rm -f conftest.err conftest.
$ac_objext \
17180 conftest
$ac_exeext conftest.
$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17183 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17184 if test $ac_cv_func_fseeko = yes; then
17186 cat >>confdefs.h
<<\_ACEOF
17187 #define HAVE_FSEEKO 1
17193 # Configure getopt.
17194 # getopt.m4 serial 10
17196 # The getopt module assume you want GNU getopt, with getopt_long etc,
17197 # rather than vanilla POSIX getopt. This means your your code should
17198 # always include <getopt.h> for the getopt prototypes.
17210 # Prerequisites of lib/getopt*.
17217 for ac_header
in getopt.h
17219 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17221 echo "$as_me:$LINENO: checking for $ac_header" >&5
17222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17229 # Is the header compilable?
17230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17232 cat >conftest.
$ac_ext <<_ACEOF
17235 cat confdefs.h
>>conftest.
$ac_ext
17236 cat >>conftest.
$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17239 #include <$ac_header>
17241 rm -f conftest.
$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17245 grep -v '^ *+' conftest.er1
>conftest.err
17247 cat conftest.err
>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try
='test -s conftest.$ac_objext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ac_header_compiler
=yes
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.
$ac_ext >&5
17267 ac_header_compiler
=no
17269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17271 echo "${ECHO_T}$ac_header_compiler" >&6
17273 # Is the header present?
17274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17276 cat >conftest.
$ac_ext <<_ACEOF
17279 cat confdefs.h
>>conftest.
$ac_ext
17280 cat >>conftest.
$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <$ac_header>
17284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17285 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17287 grep -v '^ *+' conftest.er1
>conftest.err
17289 cat conftest.err
>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } >/dev
/null
; then
17292 if test -s conftest.err
; then
17293 ac_cpp_err
=$ac_c_preproc_warn_flag
17294 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17301 if test -z "$ac_cpp_err"; then
17302 ac_header_preproc
=yes
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.
$ac_ext >&5
17307 ac_header_preproc
=no
17309 rm -f conftest.err conftest.
$ac_ext
17310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17311 echo "${ECHO_T}$ac_header_preproc" >&6
17313 # So? What about this header?
17314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17320 ac_header_preproc
=yes
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17337 ## ------------------------------------------ ##
17338 ## Report this to the AC_PACKAGE_NAME lists. ##
17339 ## ------------------------------------------ ##
17342 sed "s/^/$as_me: WARNING: /" >&2
17345 echo "$as_me:$LINENO: checking for $ac_header" >&5
17346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 eval "$as_ac_Header=\$ac_header_preproc"
17352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17357 cat >>confdefs.h
<<_ACEOF
17358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17367 if test -z "$GETOPT_H"; then
17369 for ac_func
in getopt_long_only
17371 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372 echo "$as_me:$LINENO: checking for $ac_func" >&5
17373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17374 if eval "test \"\${$as_ac_var+set}\" = set"; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 cat >conftest.
$ac_ext <<_ACEOF
17380 cat confdefs.h
>>conftest.
$ac_ext
17381 cat >>conftest.
$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17393 # include <limits.h>
17395 # include <assert.h>
17400 /* Override any gcc2 internal prototype to avoid an error. */
17405 /* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17414 char (*f) () = $ac_func;
17423 return f != $ac_func;
17428 rm -f conftest.
$ac_objext conftest
$ac_exeext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>conftest.er1
17432 grep -v '^ *+' conftest.er1
>conftest.err
17434 cat conftest.err
>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try
='test -s conftest$ac_exeext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 eval "$as_ac_var=yes"
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.
$ac_ext >&5
17454 eval "$as_ac_var=no"
17456 rm -f conftest.err conftest.
$ac_objext \
17457 conftest
$ac_exeext conftest.
$ac_ext
17459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17461 if test `eval echo '${'$as_ac_var'}'` = yes; then
17462 cat >>confdefs.h
<<_ACEOF
17463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17473 if test -z "$GETOPT_H"; then
17474 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17475 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17476 if test "${ac_cv_have_decl_optreset+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 cat >conftest.
$ac_ext <<_ACEOF
17482 cat confdefs.h
>>conftest.
$ac_ext
17483 cat >>conftest.
$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 #include <getopt.h>
17491 char *p = (char *) optreset;
17498 rm -f conftest.
$ac_objext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500 (eval $ac_compile) 2>conftest.er1
17502 grep -v '^ *+' conftest.er1
>conftest.err
17504 cat conftest.err
>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try
='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_have_decl_optreset
=yes
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.
$ac_ext >&5
17524 ac_cv_have_decl_optreset
=no
17526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17529 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17530 if test $ac_cv_have_decl_optreset = yes; then
17536 if test -z "$GETOPT_H"; then
17537 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17538 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17539 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17542 if test "$cross_compiling" = yes; then
17543 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17544 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17545 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 cat >conftest.
$ac_ext <<_ACEOF
17551 cat confdefs.h
>>conftest.
$ac_ext
17552 cat >>conftest.
$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 #include <getopt.h>
17559 #ifndef getopt_clip
17560 char *p = (char *) getopt_clip;
17567 rm -f conftest.
$ac_objext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17571 grep -v '^ *+' conftest.er1
>conftest.err
17573 cat conftest.err
>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try
='test -s conftest.$ac_objext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_have_decl_getopt_clip
=yes
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.
$ac_ext >&5
17593 ac_cv_have_decl_getopt_clip
=no
17595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17597 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17598 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17599 if test $ac_cv_have_decl_getopt_clip = yes; then
17600 gl_cv_func_gnu_getopt
=no
17602 gl_cv_func_gnu_getopt
=yes
17606 cat >conftest.
$ac_ext <<_ACEOF
17609 cat confdefs.h
>>conftest.
$ac_ext
17610 cat >>conftest.
$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 #include <getopt.h>
17618 myargv[0] = "conftest";
17621 return getopt (2, myargv, "+a") != '?';
17627 rm -f conftest
$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 gl_cv_func_gnu_getopt
=yes
17640 echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.
$ac_ext >&5
17644 ( exit $ac_status )
17645 gl_cv_func_gnu_getopt
=no
17647 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17650 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17651 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17652 if test "$gl_cv_func_gnu_getopt" = "no"; then
17659 if test -n "$GETOPT_H"; then
17664 cat >>confdefs.h
<<\_ACEOF
17665 #define __GETOPT_PREFIX rpl_
17671 GETOPTOBJS
='getopt.o getopt1.o'
17678 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17679 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17680 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 # Use it with a single arg.
17684 cat >conftest.
$ac_ext <<_ACEOF
17687 cat confdefs.h
>>conftest.
$ac_ext
17688 cat >>conftest.
$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 $ac_includes_default
17699 rm -f conftest.
$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>conftest.er1
17703 grep -v '^ *+' conftest.er1
>conftest.err
17705 cat conftest.err
>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
17708 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try
='test -s conftest.$ac_objext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_func_getpgrp_void
=no
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.
$ac_ext >&5
17725 ac_cv_func_getpgrp_void
=yes
17727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17730 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17731 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17732 if test $ac_cv_func_getpgrp_void = yes; then
17734 cat >>confdefs.h
<<\_ACEOF
17735 #define GETPGRP_VOID 1
17742 for ac_func
in strftime
17744 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17745 echo "$as_me:$LINENO: checking for $ac_func" >&5
17746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17747 if eval "test \"\${$as_ac_var+set}\" = set"; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 cat >conftest.
$ac_ext <<_ACEOF
17753 cat confdefs.h
>>conftest.
$ac_ext
17754 cat >>conftest.
$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17758 #define $ac_func innocuous_$ac_func
17760 /* System header to define __stub macros and hopefully few prototypes,
17761 which can conflict with char $ac_func (); below.
17762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17763 <limits.h> exists even on freestanding compilers. */
17766 # include <limits.h>
17768 # include <assert.h>
17773 /* Override any gcc2 internal prototype to avoid an error. */
17778 /* We use char because int might match the return type of a gcc2
17779 builtin and then its argument prototype would still apply. */
17781 /* The GNU C library defines this for functions which it implements
17782 to always fail with ENOSYS. Some functions are actually named
17783 something starting with __ and the normal name is an alias. */
17784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17787 char (*f) () = $ac_func;
17796 return f != $ac_func;
17801 rm -f conftest.
$ac_objext conftest
$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803 (eval $ac_link) 2>conftest.er1
17805 grep -v '^ *+' conftest.er1
>conftest.err
17807 cat conftest.err
>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try
='test -s conftest$ac_exeext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 eval "$as_ac_var=yes"
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.
$ac_ext >&5
17827 eval "$as_ac_var=no"
17829 rm -f conftest.err conftest.
$ac_objext \
17830 conftest
$ac_exeext conftest.
$ac_ext
17832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17834 if test `eval echo '${'$as_ac_var'}'` = yes; then
17835 cat >>confdefs.h
<<_ACEOF
17836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17840 # strftime is in -lintl on SCO UNIX.
17841 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17842 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17843 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 ac_check_lib_save_LIBS
=$LIBS
17847 LIBS
="-lintl $LIBS"
17848 cat >conftest.
$ac_ext <<_ACEOF
17851 cat confdefs.h
>>conftest.
$ac_ext
17852 cat >>conftest.
$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17855 /* Override any gcc2 internal prototype to avoid an error. */
17859 /* We use char because int might match the return type of a gcc2
17860 builtin and then its argument prototype would still apply. */
17870 rm -f conftest.
$ac_objext conftest
$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872 (eval $ac_link) 2>conftest.er1
17874 grep -v '^ *+' conftest.er1
>conftest.err
17876 cat conftest.err
>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try
='test -s conftest$ac_exeext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_cv_lib_intl_strftime
=yes
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.
$ac_ext >&5
17896 ac_cv_lib_intl_strftime
=no
17898 rm -f conftest.err conftest.
$ac_objext \
17899 conftest
$ac_exeext conftest.
$ac_ext
17900 LIBS
=$ac_check_lib_save_LIBS
17902 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17903 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17904 if test $ac_cv_lib_intl_strftime = yes; then
17905 cat >>confdefs.h
<<\_ACEOF
17906 #define HAVE_STRFTIME 1
17909 LIBS
="-lintl $LIBS"
17918 for ac_func
in grantpt
17920 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 echo "$as_me:$LINENO: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_var+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 cat >conftest.
$ac_ext <<_ACEOF
17929 cat confdefs.h
>>conftest.
$ac_ext
17930 cat >>conftest.
$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17934 #define $ac_func innocuous_$ac_func
17936 /* System header to define __stub macros and hopefully few prototypes,
17937 which can conflict with char $ac_func (); below.
17938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939 <limits.h> exists even on freestanding compilers. */
17942 # include <limits.h>
17944 # include <assert.h>
17949 /* Override any gcc2 internal prototype to avoid an error. */
17954 /* We use char because int might match the return type of a gcc2
17955 builtin and then its argument prototype would still apply. */
17957 /* The GNU C library defines this for functions which it implements
17958 to always fail with ENOSYS. Some functions are actually named
17959 something starting with __ and the normal name is an alias. */
17960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17963 char (*f) () = $ac_func;
17972 return f != $ac_func;
17977 rm -f conftest.
$ac_objext conftest
$ac_exeext
17978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17979 (eval $ac_link) 2>conftest.er1
17981 grep -v '^ *+' conftest.er1
>conftest.err
17983 cat conftest.err
>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try
='test -s conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 eval "$as_ac_var=yes"
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.
$ac_ext >&5
18003 eval "$as_ac_var=no"
18005 rm -f conftest.err conftest.
$ac_objext \
18006 conftest
$ac_exeext conftest.
$ac_ext
18008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18010 if test `eval echo '${'$as_ac_var'}'` = yes; then
18011 cat >>confdefs.h
<<_ACEOF
18012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18019 # PTY-related GNU extensions.
18021 for ac_func
in getpt
18023 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18024 echo "$as_me:$LINENO: checking for $ac_func" >&5
18025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18026 if eval "test \"\${$as_ac_var+set}\" = set"; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 cat >conftest.
$ac_ext <<_ACEOF
18032 cat confdefs.h
>>conftest.
$ac_ext
18033 cat >>conftest.
$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18037 #define $ac_func innocuous_$ac_func
18039 /* System header to define __stub macros and hopefully few prototypes,
18040 which can conflict with char $ac_func (); below.
18041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18042 <limits.h> exists even on freestanding compilers. */
18045 # include <limits.h>
18047 # include <assert.h>
18052 /* 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. */
18060 /* The GNU C library defines this for functions which it implements
18061 to always fail with ENOSYS. Some functions are actually named
18062 something starting with __ and the normal name is an alias. */
18063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18066 char (*f) () = $ac_func;
18075 return f != $ac_func;
18080 rm -f conftest.
$ac_objext conftest
$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>conftest.er1
18084 grep -v '^ *+' conftest.er1
>conftest.err
18086 cat conftest.err
>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try
='test -s conftest$ac_exeext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 eval "$as_ac_var=yes"
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.
$ac_ext >&5
18106 eval "$as_ac_var=no"
18108 rm -f conftest.err conftest.
$ac_objext \
18109 conftest
$ac_exeext conftest.
$ac_ext
18111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18113 if test `eval echo '${'$as_ac_var'}'` = yes; then
18114 cat >>confdefs.h
<<_ACEOF
18115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18122 # Check this now, so that we will NOT find the above functions in ncurses.
18123 # That is because we have not set up to link ncurses in lib-src.
18124 # It's better to believe a function is not available
18125 # than to expect to find it in ncurses.
18127 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18128 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18129 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 ac_check_lib_save_LIBS
=$LIBS
18133 LIBS
="-lncurses $LIBS"
18134 cat >conftest.
$ac_ext <<_ACEOF
18137 cat confdefs.h
>>conftest.
$ac_ext
18138 cat >>conftest.
$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18141 /* Override any gcc2 internal prototype to avoid an error. */
18145 /* We use char because int might match the return type of a gcc2
18146 builtin and then its argument prototype would still apply. */
18156 rm -f conftest.
$ac_objext conftest
$ac_exeext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158 (eval $ac_link) 2>conftest.er1
18160 grep -v '^ *+' conftest.er1
>conftest.err
18162 cat conftest.err
>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try
='test -s conftest$ac_exeext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_lib_ncurses_tparm
=yes
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.
$ac_ext >&5
18182 ac_cv_lib_ncurses_tparm
=no
18184 rm -f conftest.err conftest.
$ac_objext \
18185 conftest
$ac_exeext conftest.
$ac_ext
18186 LIBS
=$ac_check_lib_save_LIBS
18188 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18189 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18190 if test $ac_cv_lib_ncurses_tparm = yes; then
18191 cat >>confdefs.h
<<_ACEOF
18192 #define HAVE_LIBNCURSES 1
18195 LIBS
="-lncurses $LIBS"
18200 # Do we need the Hesiod library to provide the support routines?
18201 if test "$with_hesiod" = yes ; then
18202 # Don't set $LIBS here -- see comments above.
18204 echo "$as_me:$LINENO: checking for res_send" >&5
18205 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18206 if test "${ac_cv_func_res_send+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 cat >conftest.
$ac_ext <<_ACEOF
18212 cat confdefs.h
>>conftest.
$ac_ext
18213 cat >>conftest.
$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define res_send innocuous_res_send
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char res_send (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18225 # include <limits.h>
18227 # include <assert.h>
18232 /* Override any gcc2 internal prototype to avoid an error. */
18237 /* We use char because int might match the return type of a gcc2
18238 builtin and then its argument prototype would still apply. */
18240 /* The GNU C library defines this for functions which it implements
18241 to always fail with ENOSYS. Some functions are actually named
18242 something starting with __ and the normal name is an alias. */
18243 #if defined (__stub_res_send) || defined (__stub___res_send)
18246 char (*f) () = res_send;
18255 return f != res_send;
18260 rm -f conftest.
$ac_objext conftest
$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>conftest.er1
18264 grep -v '^ *+' conftest.er1
>conftest.err
18266 cat conftest.err
>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try
='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_func_res_send
=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.
$ac_ext >&5
18286 ac_cv_func_res_send
=no
18288 rm -f conftest.err conftest.
$ac_objext \
18289 conftest
$ac_exeext conftest.
$ac_ext
18291 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18292 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18293 if test $ac_cv_func_res_send = yes; then
18296 echo "$as_me:$LINENO: checking for __res_send" >&5
18297 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18298 if test "${ac_cv_func___res_send+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 cat >conftest.
$ac_ext <<_ACEOF
18304 cat confdefs.h
>>conftest.
$ac_ext
18305 cat >>conftest.
$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18309 #define __res_send innocuous___res_send
18311 /* System header to define __stub macros and hopefully few prototypes,
18312 which can conflict with char __res_send (); below.
18313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18314 <limits.h> exists even on freestanding compilers. */
18317 # include <limits.h>
18319 # include <assert.h>
18324 /* Override any gcc2 internal prototype to avoid an error. */
18329 /* We use char because int might match the return type of a gcc2
18330 builtin and then its argument prototype would still apply. */
18331 char __res_send ();
18332 /* The GNU C library defines this for functions which it implements
18333 to always fail with ENOSYS. Some functions are actually named
18334 something starting with __ and the normal name is an alias. */
18335 #if defined (__stub___res_send) || defined (__stub_____res_send)
18338 char (*f) () = __res_send;
18347 return f != __res_send;
18352 rm -f conftest.
$ac_objext conftest
$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>conftest.er1
18356 grep -v '^ *+' conftest.er1
>conftest.err
18358 cat conftest.err
>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try
='test -s conftest$ac_exeext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_cv_func___res_send
=yes
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.
$ac_ext >&5
18378 ac_cv_func___res_send
=no
18380 rm -f conftest.err conftest.
$ac_objext \
18381 conftest
$ac_exeext conftest.
$ac_ext
18383 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18384 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18385 if test $ac_cv_func___res_send = yes; then
18388 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18389 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18390 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_check_lib_save_LIBS
=$LIBS
18394 LIBS
="-lresolv $LIBS"
18395 cat >conftest.
$ac_ext <<_ACEOF
18398 cat confdefs.h
>>conftest.
$ac_ext
18399 cat >>conftest.
$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any gcc2 internal prototype to avoid an error. */
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18417 rm -f conftest.
$ac_objext conftest
$ac_exeext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>conftest.er1
18421 grep -v '^ *+' conftest.er1
>conftest.err
18423 cat conftest.err
>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try
='test -s conftest$ac_exeext'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_resolv_res_send
=yes
18440 echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.
$ac_ext >&5
18443 ac_cv_lib_resolv_res_send
=no
18445 rm -f conftest.err conftest.
$ac_objext \
18446 conftest
$ac_exeext conftest.
$ac_ext
18447 LIBS
=$ac_check_lib_save_LIBS
18449 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18450 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18451 if test $ac_cv_lib_resolv_res_send = yes; then
18454 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18455 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18456 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18459 ac_check_lib_save_LIBS
=$LIBS
18460 LIBS
="-lresolv $LIBS"
18461 cat >conftest.
$ac_ext <<_ACEOF
18464 cat confdefs.h
>>conftest.
$ac_ext
18465 cat >>conftest.
$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18468 /* Override any gcc2 internal prototype to avoid an error. */
18472 /* We use char because int might match the return type of a gcc2
18473 builtin and then its argument prototype would still apply. */
18474 char __res_send ();
18483 rm -f conftest.
$ac_objext conftest
$ac_exeext
18484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18485 (eval $ac_link) 2>conftest.er1
18487 grep -v '^ *+' conftest.er1
>conftest.err
18489 cat conftest.err
>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try
='test -s conftest$ac_exeext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_lib_resolv___res_send
=yes
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.
$ac_ext >&5
18509 ac_cv_lib_resolv___res_send
=no
18511 rm -f conftest.err conftest.
$ac_objext \
18512 conftest
$ac_exeext conftest.
$ac_ext
18513 LIBS
=$ac_check_lib_save_LIBS
18515 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18516 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18517 if test $ac_cv_lib_resolv___res_send = yes; then
18527 if test "$resolv" = yes ; then
18530 cat >>confdefs.h
<<\_ACEOF
18531 #define HAVE_LIBRESOLV 1
18537 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18538 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18539 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18542 cat >conftest.
$ac_ext <<_ACEOF
18545 cat confdefs.h
>>conftest.
$ac_ext
18546 cat >>conftest.
$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18550 #define hes_getmailhost innocuous_hes_getmailhost
18552 /* System header to define __stub macros and hopefully few prototypes,
18553 which can conflict with char hes_getmailhost (); below.
18554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18555 <limits.h> exists even on freestanding compilers. */
18558 # include <limits.h>
18560 # include <assert.h>
18563 #undef hes_getmailhost
18565 /* Override any gcc2 internal prototype to avoid an error. */
18570 /* We use char because int might match the return type of a gcc2
18571 builtin and then its argument prototype would still apply. */
18572 char hes_getmailhost ();
18573 /* The GNU C library defines this for functions which it implements
18574 to always fail with ENOSYS. Some functions are actually named
18575 something starting with __ and the normal name is an alias. */
18576 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18579 char (*f) () = hes_getmailhost;
18588 return f != hes_getmailhost;
18593 rm -f conftest.
$ac_objext conftest
$ac_exeext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18595 (eval $ac_link) 2>conftest.er1
18597 grep -v '^ *+' conftest.er1
>conftest.err
18599 cat conftest.err
>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try
='test -s conftest$ac_exeext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_func_hes_getmailhost
=yes
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.
$ac_ext >&5
18619 ac_cv_func_hes_getmailhost
=no
18621 rm -f conftest.err conftest.
$ac_objext \
18622 conftest
$ac_exeext conftest.
$ac_ext
18624 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18625 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18626 if test $ac_cv_func_hes_getmailhost = yes; then
18629 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18630 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18631 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 ac_check_lib_save_LIBS
=$LIBS
18635 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18636 cat >conftest.
$ac_ext <<_ACEOF
18639 cat confdefs.h
>>conftest.
$ac_ext
18640 cat >>conftest.
$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18643 /* Override any gcc2 internal prototype to avoid an error. */
18647 /* We use char because int might match the return type of a gcc2
18648 builtin and then its argument prototype would still apply. */
18649 char hes_getmailhost ();
18653 hes_getmailhost ();
18658 rm -f conftest.
$ac_objext conftest
$ac_exeext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660 (eval $ac_link) 2>conftest.er1
18662 grep -v '^ *+' conftest.er1
>conftest.err
18664 cat conftest.err
>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try
='test -s conftest$ac_exeext'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_cv_lib_hesiod_hes_getmailhost
=yes
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.
$ac_ext >&5
18684 ac_cv_lib_hesiod_hes_getmailhost
=no
18686 rm -f conftest.err conftest.
$ac_objext \
18687 conftest
$ac_exeext conftest.
$ac_ext
18688 LIBS
=$ac_check_lib_save_LIBS
18690 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18691 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18692 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18694 cat >>confdefs.h
<<\_ACEOF
18695 #define HAVE_LIBHESIOD 1
18706 # These tell us which Kerberos-related libraries to use.
18707 if test "${with_kerberos+set}" = set; then
18709 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18710 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18711 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 ac_check_lib_save_LIBS
=$LIBS
18715 LIBS
="-lcom_err $LIBS"
18716 cat >conftest.
$ac_ext <<_ACEOF
18719 cat confdefs.h
>>conftest.
$ac_ext
18720 cat >>conftest.
$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 /* Override any gcc2 internal prototype to avoid an error. */
18727 /* We use char because int might match the return type of a gcc2
18728 builtin and then its argument prototype would still apply. */
18738 rm -f conftest.
$ac_objext conftest
$ac_exeext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740 (eval $ac_link) 2>conftest.er1
18742 grep -v '^ *+' conftest.er1
>conftest.err
18744 cat conftest.err
>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; } &&
18753 { ac_try
='test -s conftest$ac_exeext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_lib_com_err_com_err
=yes
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.
$ac_ext >&5
18764 ac_cv_lib_com_err_com_err
=no
18766 rm -f conftest.err conftest.
$ac_objext \
18767 conftest
$ac_exeext conftest.
$ac_ext
18768 LIBS
=$ac_check_lib_save_LIBS
18770 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18771 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18772 if test $ac_cv_lib_com_err_com_err = yes; then
18773 cat >>confdefs.h
<<_ACEOF
18774 #define HAVE_LIBCOM_ERR 1
18777 LIBS
="-lcom_err $LIBS"
18782 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18783 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18784 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 ac_check_lib_save_LIBS
=$LIBS
18788 LIBS
="-lk5crypto $LIBS"
18789 cat >conftest.
$ac_ext <<_ACEOF
18792 cat confdefs.h
>>conftest.
$ac_ext
18793 cat >>conftest.
$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18796 /* Override any gcc2 internal prototype to avoid an error. */
18800 /* We use char because int might match the return type of a gcc2
18801 builtin and then its argument prototype would still apply. */
18802 char mit_des_cbc_encrypt ();
18806 mit_des_cbc_encrypt ();
18811 rm -f conftest.
$ac_objext conftest
$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>conftest.er1
18815 grep -v '^ *+' conftest.er1
>conftest.err
18817 cat conftest.err
>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try
='test -s conftest$ac_exeext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.
$ac_ext >&5
18837 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18839 rm -f conftest.err conftest.
$ac_objext \
18840 conftest
$ac_exeext conftest.
$ac_ext
18841 LIBS
=$ac_check_lib_save_LIBS
18843 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18844 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18845 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18846 cat >>confdefs.h
<<_ACEOF
18847 #define HAVE_LIBK5CRYPTO 1
18850 LIBS
="-lk5crypto $LIBS"
18855 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18856 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18857 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 ac_check_lib_save_LIBS
=$LIBS
18861 LIBS
="-lcrypto $LIBS"
18862 cat >conftest.
$ac_ext <<_ACEOF
18865 cat confdefs.h
>>conftest.
$ac_ext
18866 cat >>conftest.
$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18869 /* Override any gcc2 internal prototype to avoid an error. */
18873 /* We use char because int might match the return type of a gcc2
18874 builtin and then its argument prototype would still apply. */
18875 char mit_des_cbc_encrypt ();
18879 mit_des_cbc_encrypt ();
18884 rm -f conftest.
$ac_objext conftest
$ac_exeext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18886 (eval $ac_link) 2>conftest.er1
18888 grep -v '^ *+' conftest.er1
>conftest.err
18890 cat conftest.err
>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try
='test -s conftest$ac_exeext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.
$ac_ext >&5
18910 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18912 rm -f conftest.err conftest.
$ac_objext \
18913 conftest
$ac_exeext conftest.
$ac_ext
18914 LIBS
=$ac_check_lib_save_LIBS
18916 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18917 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18918 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18919 cat >>confdefs.h
<<_ACEOF
18920 #define HAVE_LIBCRYPTO 1
18923 LIBS
="-lcrypto $LIBS"
18928 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18929 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18930 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 ac_check_lib_save_LIBS
=$LIBS
18934 LIBS
="-lkrb5 $LIBS"
18935 cat >conftest.
$ac_ext <<_ACEOF
18938 cat confdefs.h
>>conftest.
$ac_ext
18939 cat >>conftest.
$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18942 /* Override any gcc2 internal prototype to avoid an error. */
18946 /* We use char because int might match the return type of a gcc2
18947 builtin and then its argument prototype would still apply. */
18948 char krb5_init_context ();
18952 krb5_init_context ();
18957 rm -f conftest.
$ac_objext conftest
$ac_exeext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18959 (eval $ac_link) 2>conftest.er1
18961 grep -v '^ *+' conftest.er1
>conftest.err
18963 cat conftest.err
>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try
='test -s conftest$ac_exeext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_lib_krb5_krb5_init_context
=yes
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.
$ac_ext >&5
18983 ac_cv_lib_krb5_krb5_init_context
=no
18985 rm -f conftest.err conftest.
$ac_objext \
18986 conftest
$ac_exeext conftest.
$ac_ext
18987 LIBS
=$ac_check_lib_save_LIBS
18989 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18990 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18991 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18992 cat >>confdefs.h
<<_ACEOF
18993 #define HAVE_LIBKRB5 1
18996 LIBS
="-lkrb5 $LIBS"
19000 if test "${with_kerberos5+set}" != set; then
19002 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19003 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19004 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 ac_check_lib_save_LIBS
=$LIBS
19008 LIBS
="-ldes425 $LIBS"
19009 cat >conftest.
$ac_ext <<_ACEOF
19012 cat confdefs.h
>>conftest.
$ac_ext
19013 cat >>conftest.
$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19016 /* Override any gcc2 internal prototype to avoid an error. */
19020 /* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19022 char des_cbc_encrypt ();
19026 des_cbc_encrypt ();
19031 rm -f conftest.
$ac_objext conftest
$ac_exeext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19033 (eval $ac_link) 2>conftest.er1
19035 grep -v '^ *+' conftest.er1
>conftest.err
19037 cat conftest.err
>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try
='test -s conftest$ac_exeext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_lib_des425_des_cbc_encrypt
=yes
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.
$ac_ext >&5
19057 ac_cv_lib_des425_des_cbc_encrypt
=no
19059 rm -f conftest.err conftest.
$ac_objext \
19060 conftest
$ac_exeext conftest.
$ac_ext
19061 LIBS
=$ac_check_lib_save_LIBS
19063 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19064 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19065 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19066 cat >>confdefs.h
<<_ACEOF
19067 #define HAVE_LIBDES425 1
19070 LIBS
="-ldes425 $LIBS"
19074 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19075 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19076 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 ac_check_lib_save_LIBS
=$LIBS
19081 cat >conftest.
$ac_ext <<_ACEOF
19084 cat confdefs.h
>>conftest.
$ac_ext
19085 cat >>conftest.
$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* Override any gcc2 internal prototype to avoid an error. */
19092 /* We use char because int might match the return type of a gcc2
19093 builtin and then its argument prototype would still apply. */
19094 char des_cbc_encrypt ();
19098 des_cbc_encrypt ();
19103 rm -f conftest.
$ac_objext conftest
$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>conftest.er1
19107 grep -v '^ *+' conftest.er1
>conftest.err
19109 cat conftest.err
>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try
='test -s conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_lib_des_des_cbc_encrypt
=yes
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.
$ac_ext >&5
19129 ac_cv_lib_des_des_cbc_encrypt
=no
19131 rm -f conftest.err conftest.
$ac_objext \
19132 conftest
$ac_exeext conftest.
$ac_ext
19133 LIBS
=$ac_check_lib_save_LIBS
19135 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19136 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19137 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19138 cat >>confdefs.h
<<_ACEOF
19139 #define HAVE_LIBDES 1
19149 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19150 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19151 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 ac_check_lib_save_LIBS
=$LIBS
19155 LIBS
="-lkrb4 $LIBS"
19156 cat >conftest.
$ac_ext <<_ACEOF
19159 cat confdefs.h
>>conftest.
$ac_ext
19160 cat >>conftest.
$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19163 /* Override any gcc2 internal prototype to avoid an error. */
19167 /* We use char because int might match the return type of a gcc2
19168 builtin and then its argument prototype would still apply. */
19169 char krb_get_cred ();
19178 rm -f conftest.
$ac_objext conftest
$ac_exeext
19179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19180 (eval $ac_link) 2>conftest.er1
19182 grep -v '^ *+' conftest.er1
>conftest.err
19184 cat conftest.err
>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
19187 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try
='test -s conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_lib_krb4_krb_get_cred
=yes
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.
$ac_ext >&5
19204 ac_cv_lib_krb4_krb_get_cred
=no
19206 rm -f conftest.err conftest.
$ac_objext \
19207 conftest
$ac_exeext conftest.
$ac_ext
19208 LIBS
=$ac_check_lib_save_LIBS
19210 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19211 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19212 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19213 cat >>confdefs.h
<<_ACEOF
19214 #define HAVE_LIBKRB4 1
19217 LIBS
="-lkrb4 $LIBS"
19221 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19222 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19223 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 ac_check_lib_save_LIBS
=$LIBS
19228 cat >conftest.
$ac_ext <<_ACEOF
19231 cat confdefs.h
>>conftest.
$ac_ext
19232 cat >>conftest.
$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19235 /* Override any gcc2 internal prototype to avoid an error. */
19239 /* We use char because int might match the return type of a gcc2
19240 builtin and then its argument prototype would still apply. */
19241 char krb_get_cred ();
19250 rm -f conftest.
$ac_objext conftest
$ac_exeext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252 (eval $ac_link) 2>conftest.er1
19254 grep -v '^ *+' conftest.er1
>conftest.err
19256 cat conftest.err
>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
19259 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try
='test -s conftest$ac_exeext'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_lib_krb_krb_get_cred
=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.
$ac_ext >&5
19276 ac_cv_lib_krb_krb_get_cred
=no
19278 rm -f conftest.err conftest.
$ac_objext \
19279 conftest
$ac_exeext conftest.
$ac_ext
19280 LIBS
=$ac_check_lib_save_LIBS
19282 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19283 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19284 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19285 cat >>confdefs.h
<<_ACEOF
19286 #define HAVE_LIBKRB 1
19297 if test "${with_kerberos5+set}" = set; then
19299 for ac_header
in krb5.h
19301 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19303 echo "$as_me:$LINENO: checking for $ac_header" >&5
19304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19311 # Is the header compilable?
19312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19314 cat >conftest.
$ac_ext <<_ACEOF
19317 cat confdefs.h
>>conftest.
$ac_ext
19318 cat >>conftest.
$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19320 $ac_includes_default
19321 #include <$ac_header>
19323 rm -f conftest.
$ac_objext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19327 grep -v '^ *+' conftest.er1
>conftest.err
19329 cat conftest.err
>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try
='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_header_compiler
=yes
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.
$ac_ext >&5
19349 ac_header_compiler
=no
19351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19353 echo "${ECHO_T}$ac_header_compiler" >&6
19355 # Is the header present?
19356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19358 cat >conftest.
$ac_ext <<_ACEOF
19361 cat confdefs.h
>>conftest.
$ac_ext
19362 cat >>conftest.
$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 #include <$ac_header>
19366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19367 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19369 grep -v '^ *+' conftest.er1
>conftest.err
19371 cat conftest.err
>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } >/dev
/null
; then
19374 if test -s conftest.err
; then
19375 ac_cpp_err
=$ac_c_preproc_warn_flag
19376 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19383 if test -z "$ac_cpp_err"; then
19384 ac_header_preproc
=yes
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.
$ac_ext >&5
19389 ac_header_preproc
=no
19391 rm -f conftest.err conftest.
$ac_ext
19392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19393 echo "${ECHO_T}$ac_header_preproc" >&6
19395 # So? What about this header?
19396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19402 ac_header_preproc
=yes
19405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19419 ## ------------------------------------------ ##
19420 ## Report this to the AC_PACKAGE_NAME lists. ##
19421 ## ------------------------------------------ ##
19424 sed "s/^/$as_me: WARNING: /" >&2
19427 echo "$as_me:$LINENO: checking for $ac_header" >&5
19428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 eval "$as_ac_Header=\$ac_header_preproc"
19434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19439 cat >>confdefs.h
<<_ACEOF
19440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19449 for ac_header
in des.h
19451 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19453 echo "$as_me:$LINENO: checking for $ac_header" >&5
19454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19461 # Is the header compilable?
19462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19464 cat >conftest.
$ac_ext <<_ACEOF
19467 cat confdefs.h
>>conftest.
$ac_ext
19468 cat >>conftest.
$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 $ac_includes_default
19471 #include <$ac_header>
19473 rm -f conftest.
$ac_objext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475 (eval $ac_compile) 2>conftest.er1
19477 grep -v '^ *+' conftest.er1
>conftest.err
19479 cat conftest.err
>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try
='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_header_compiler
=yes
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.
$ac_ext >&5
19499 ac_header_compiler
=no
19501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6
19505 # Is the header present?
19506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19508 cat >conftest.
$ac_ext <<_ACEOF
19511 cat confdefs.h
>>conftest.
$ac_ext
19512 cat >>conftest.
$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <$ac_header>
19516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19519 grep -v '^ *+' conftest.er1
>conftest.err
19521 cat conftest.err
>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } >/dev
/null
; then
19524 if test -s conftest.err
; then
19525 ac_cpp_err
=$ac_c_preproc_warn_flag
19526 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19533 if test -z "$ac_cpp_err"; then
19534 ac_header_preproc
=yes
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.
$ac_ext >&5
19539 ac_header_preproc
=no
19541 rm -f conftest.err conftest.
$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19543 echo "${ECHO_T}$ac_header_preproc" >&6
19545 # So? What about this header?
19546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19552 ac_header_preproc
=yes
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19569 ## ------------------------------------------ ##
19570 ## Report this to the AC_PACKAGE_NAME lists. ##
19571 ## ------------------------------------------ ##
19574 sed "s/^/$as_me: WARNING: /" >&2
19577 echo "$as_me:$LINENO: checking for $ac_header" >&5
19578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 eval "$as_ac_Header=\$ac_header_preproc"
19584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19589 cat >>confdefs.h
<<_ACEOF
19590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19595 for ac_header
in kerberosIV
/des.h
19597 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19599 echo "$as_me:$LINENO: checking for $ac_header" >&5
19600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19607 # Is the header compilable?
19608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19610 cat >conftest.
$ac_ext <<_ACEOF
19613 cat confdefs.h
>>conftest.
$ac_ext
19614 cat >>conftest.
$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 $ac_includes_default
19617 #include <$ac_header>
19619 rm -f conftest.
$ac_objext
19620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19621 (eval $ac_compile) 2>conftest.er1
19623 grep -v '^ *+' conftest.er1
>conftest.err
19625 cat conftest.err
>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try
='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_header_compiler
=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.
$ac_ext >&5
19645 ac_header_compiler
=no
19647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19649 echo "${ECHO_T}$ac_header_compiler" >&6
19651 # Is the header present?
19652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19654 cat >conftest.
$ac_ext <<_ACEOF
19657 cat confdefs.h
>>conftest.
$ac_ext
19658 cat >>conftest.
$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <$ac_header>
19662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19665 grep -v '^ *+' conftest.er1
>conftest.err
19667 cat conftest.err
>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } >/dev
/null
; then
19670 if test -s conftest.err
; then
19671 ac_cpp_err
=$ac_c_preproc_warn_flag
19672 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19679 if test -z "$ac_cpp_err"; then
19680 ac_header_preproc
=yes
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.
$ac_ext >&5
19685 ac_header_preproc
=no
19687 rm -f conftest.err conftest.
$ac_ext
19688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19689 echo "${ECHO_T}$ac_header_preproc" >&6
19691 # So? What about this header?
19692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19698 ac_header_preproc
=yes
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19715 ## ------------------------------------------ ##
19716 ## Report this to the AC_PACKAGE_NAME lists. ##
19717 ## ------------------------------------------ ##
19720 sed "s/^/$as_me: WARNING: /" >&2
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 eval "$as_ac_Header=\$ac_header_preproc"
19730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19735 cat >>confdefs.h
<<_ACEOF
19736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19741 for ac_header
in kerberos
/des.h
19743 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19745 echo "$as_me:$LINENO: checking for $ac_header" >&5
19746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19753 # Is the header compilable?
19754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19756 cat >conftest.
$ac_ext <<_ACEOF
19759 cat confdefs.h
>>conftest.
$ac_ext
19760 cat >>conftest.
$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 $ac_includes_default
19763 #include <$ac_header>
19765 rm -f conftest.
$ac_objext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19767 (eval $ac_compile) 2>conftest.er1
19769 grep -v '^ *+' conftest.er1
>conftest.err
19771 cat conftest.err
>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try
='test -s conftest.$ac_objext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_header_compiler
=yes
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.
$ac_ext >&5
19791 ac_header_compiler
=no
19793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19795 echo "${ECHO_T}$ac_header_compiler" >&6
19797 # Is the header present?
19798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19800 cat >conftest.
$ac_ext <<_ACEOF
19803 cat confdefs.h
>>conftest.
$ac_ext
19804 cat >>conftest.
$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19806 #include <$ac_header>
19808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19811 grep -v '^ *+' conftest.er1
>conftest.err
19813 cat conftest.err
>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } >/dev
/null
; then
19816 if test -s conftest.err
; then
19817 ac_cpp_err
=$ac_c_preproc_warn_flag
19818 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19825 if test -z "$ac_cpp_err"; then
19826 ac_header_preproc
=yes
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.
$ac_ext >&5
19831 ac_header_preproc
=no
19833 rm -f conftest.err conftest.
$ac_ext
19834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19835 echo "${ECHO_T}$ac_header_preproc" >&6
19837 # So? What about this header?
19838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19844 ac_header_preproc
=yes
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19861 ## ------------------------------------------ ##
19862 ## Report this to the AC_PACKAGE_NAME lists. ##
19863 ## ------------------------------------------ ##
19866 sed "s/^/$as_me: WARNING: /" >&2
19869 echo "$as_me:$LINENO: checking for $ac_header" >&5
19870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 eval "$as_ac_Header=\$ac_header_preproc"
19876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19881 cat >>confdefs.h
<<_ACEOF
19882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19898 for ac_header
in krb.h
19900 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19902 echo "$as_me:$LINENO: checking for $ac_header" >&5
19903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19910 # Is the header compilable?
19911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19913 cat >conftest.
$ac_ext <<_ACEOF
19916 cat confdefs.h
>>conftest.
$ac_ext
19917 cat >>conftest.
$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 $ac_includes_default
19920 #include <$ac_header>
19922 rm -f conftest.
$ac_objext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924 (eval $ac_compile) 2>conftest.er1
19926 grep -v '^ *+' conftest.er1
>conftest.err
19928 cat conftest.err
>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
19931 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try
='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_header_compiler
=yes
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.
$ac_ext >&5
19948 ac_header_compiler
=no
19950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6
19954 # Is the header present?
19955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19957 cat >conftest.
$ac_ext <<_ACEOF
19960 cat confdefs.h
>>conftest.
$ac_ext
19961 cat >>conftest.
$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <$ac_header>
19965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19966 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19968 grep -v '^ *+' conftest.er1
>conftest.err
19970 cat conftest.err
>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } >/dev
/null
; then
19973 if test -s conftest.err
; then
19974 ac_cpp_err
=$ac_c_preproc_warn_flag
19975 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19982 if test -z "$ac_cpp_err"; then
19983 ac_header_preproc
=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.
$ac_ext >&5
19988 ac_header_preproc
=no
19990 rm -f conftest.err conftest.
$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6
19994 # So? What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20001 ac_header_preproc
=yes
20004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20018 ## ------------------------------------------ ##
20019 ## Report this to the AC_PACKAGE_NAME lists. ##
20020 ## ------------------------------------------ ##
20023 sed "s/^/$as_me: WARNING: /" >&2
20026 echo "$as_me:$LINENO: checking for $ac_header" >&5
20027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 eval "$as_ac_Header=\$ac_header_preproc"
20033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20038 cat >>confdefs.h
<<_ACEOF
20039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20044 for ac_header
in kerberosIV
/krb.h
20046 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20048 echo "$as_me:$LINENO: checking for $ac_header" >&5
20049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20056 # Is the header compilable?
20057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20059 cat >conftest.
$ac_ext <<_ACEOF
20062 cat confdefs.h
>>conftest.
$ac_ext
20063 cat >>conftest.
$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 $ac_includes_default
20066 #include <$ac_header>
20068 rm -f conftest.
$ac_objext
20069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20070 (eval $ac_compile) 2>conftest.er1
20072 grep -v '^ *+' conftest.er1
>conftest.err
20074 cat conftest.err
>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try
='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_header_compiler
=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.
$ac_ext >&5
20094 ac_header_compiler
=no
20096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6
20100 # Is the header present?
20101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20103 cat >conftest.
$ac_ext <<_ACEOF
20106 cat confdefs.h
>>conftest.
$ac_ext
20107 cat >>conftest.
$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <$ac_header>
20111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20114 grep -v '^ *+' conftest.er1
>conftest.err
20116 cat conftest.err
>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev
/null
; then
20119 if test -s conftest.err
; then
20120 ac_cpp_err
=$ac_c_preproc_warn_flag
20121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20128 if test -z "$ac_cpp_err"; then
20129 ac_header_preproc
=yes
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.
$ac_ext >&5
20134 ac_header_preproc
=no
20136 rm -f conftest.err conftest.
$ac_ext
20137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138 echo "${ECHO_T}$ac_header_preproc" >&6
20140 # So? What about this header?
20141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc
=yes
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20164 ## ------------------------------------------ ##
20165 ## Report this to the AC_PACKAGE_NAME lists. ##
20166 ## ------------------------------------------ ##
20169 sed "s/^/$as_me: WARNING: /" >&2
20172 echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 eval "$as_ac_Header=\$ac_header_preproc"
20179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20184 cat >>confdefs.h
<<_ACEOF
20185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20190 for ac_header
in kerberos
/krb.h
20192 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20194 echo "$as_me:$LINENO: checking for $ac_header" >&5
20195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20202 # Is the header compilable?
20203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20205 cat >conftest.
$ac_ext <<_ACEOF
20208 cat confdefs.h
>>conftest.
$ac_ext
20209 cat >>conftest.
$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 $ac_includes_default
20212 #include <$ac_header>
20214 rm -f conftest.
$ac_objext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20216 (eval $ac_compile) 2>conftest.er1
20218 grep -v '^ *+' conftest.er1
>conftest.err
20220 cat conftest.err
>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try
='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_header_compiler
=yes
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.
$ac_ext >&5
20240 ac_header_compiler
=no
20242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6
20246 # Is the header present?
20247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20249 cat >conftest.
$ac_ext <<_ACEOF
20252 cat confdefs.h
>>conftest.
$ac_ext
20253 cat >>conftest.
$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <$ac_header>
20257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20258 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20260 grep -v '^ *+' conftest.er1
>conftest.err
20262 cat conftest.err
>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } >/dev
/null
; then
20265 if test -s conftest.err
; then
20266 ac_cpp_err
=$ac_c_preproc_warn_flag
20267 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20274 if test -z "$ac_cpp_err"; then
20275 ac_header_preproc
=yes
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.
$ac_ext >&5
20280 ac_header_preproc
=no
20282 rm -f conftest.err conftest.
$ac_ext
20283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20284 echo "${ECHO_T}$ac_header_preproc" >&6
20286 # So? What about this header?
20287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20293 ac_header_preproc
=yes
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20310 ## ------------------------------------------ ##
20311 ## Report this to the AC_PACKAGE_NAME lists. ##
20312 ## ------------------------------------------ ##
20315 sed "s/^/$as_me: WARNING: /" >&2
20318 echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 eval "$as_ac_Header=\$ac_header_preproc"
20325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20330 cat >>confdefs.h
<<_ACEOF
20331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20348 for ac_header
in com_err.h
20350 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20352 echo "$as_me:$LINENO: checking for $ac_header" >&5
20353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20360 # Is the header compilable?
20361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20363 cat >conftest.
$ac_ext <<_ACEOF
20366 cat confdefs.h
>>conftest.
$ac_ext
20367 cat >>conftest.
$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 $ac_includes_default
20370 #include <$ac_header>
20372 rm -f conftest.
$ac_objext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374 (eval $ac_compile) 2>conftest.er1
20376 grep -v '^ *+' conftest.er1
>conftest.err
20378 cat conftest.err
>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try
='test -s conftest.$ac_objext'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 ac_header_compiler
=yes
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.
$ac_ext >&5
20398 ac_header_compiler
=no
20400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20402 echo "${ECHO_T}$ac_header_compiler" >&6
20404 # Is the header present?
20405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20407 cat >conftest.
$ac_ext <<_ACEOF
20410 cat confdefs.h
>>conftest.
$ac_ext
20411 cat >>conftest.
$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <$ac_header>
20415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20416 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20418 grep -v '^ *+' conftest.er1
>conftest.err
20420 cat conftest.err
>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } >/dev
/null
; then
20423 if test -s conftest.err
; then
20424 ac_cpp_err
=$ac_c_preproc_warn_flag
20425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20432 if test -z "$ac_cpp_err"; then
20433 ac_header_preproc
=yes
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.
$ac_ext >&5
20438 ac_header_preproc
=no
20440 rm -f conftest.err conftest.
$ac_ext
20441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20442 echo "${ECHO_T}$ac_header_preproc" >&6
20444 # So? What about this header?
20445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20451 ac_header_preproc
=yes
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20468 ## ------------------------------------------ ##
20469 ## Report this to the AC_PACKAGE_NAME lists. ##
20470 ## ------------------------------------------ ##
20473 sed "s/^/$as_me: WARNING: /" >&2
20476 echo "$as_me:$LINENO: checking for $ac_header" >&5
20477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 eval "$as_ac_Header=\$ac_header_preproc"
20483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20488 cat >>confdefs.h
<<_ACEOF
20489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20498 # Solaris requires -lintl if you want strerror (which calls dgettext)
20499 # to return localized messages.
20501 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20502 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20503 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 ac_check_lib_save_LIBS
=$LIBS
20507 LIBS
="-lintl $LIBS"
20508 cat >conftest.
$ac_ext <<_ACEOF
20511 cat confdefs.h
>>conftest.
$ac_ext
20512 cat >>conftest.
$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any gcc2 internal prototype to avoid an error. */
20519 /* We use char because int might match the return type of a gcc2
20520 builtin and then its argument prototype would still apply. */
20530 rm -f conftest.
$ac_objext conftest
$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20534 grep -v '^ *+' conftest.er1
>conftest.err
20536 cat conftest.err
>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try
='test -s conftest$ac_exeext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_cv_lib_intl_dgettext
=yes
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.
$ac_ext >&5
20556 ac_cv_lib_intl_dgettext
=no
20558 rm -f conftest.err conftest.
$ac_objext \
20559 conftest
$ac_exeext conftest.
$ac_ext
20560 LIBS
=$ac_check_lib_save_LIBS
20562 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20563 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20564 if test $ac_cv_lib_intl_dgettext = yes; then
20565 cat >>confdefs.h
<<_ACEOF
20566 #define HAVE_LIBINTL 1
20569 LIBS
="-lintl $LIBS"
20574 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20575 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20576 if test "${emacs_cv_localtime_cache+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 if test x
$ac_cv_func_tzset = xyes
; then
20580 if test "$cross_compiling" = yes; then
20581 # If we have tzset, assume the worst when cross-compiling.
20582 emacs_cv_localtime_cache
=yes
20584 cat >conftest.
$ac_ext <<_ACEOF
20587 cat confdefs.h
>>conftest.
$ac_ext
20588 cat >>conftest.
$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20591 extern char **environ;
20595 for (to = from = environ; (*to = *from); from++)
20596 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20599 char TZ_GMT0[] = "TZ=GMT0";
20600 char TZ_PST8[] = "TZ=PST8";
20603 time_t now = time ((time_t *) 0);
20604 int hour_GMT0, hour_unset;
20605 if (putenv (TZ_GMT0) != 0)
20607 hour_GMT0 = localtime (&now)->tm_hour;
20609 hour_unset = localtime (&now)->tm_hour;
20610 if (putenv (TZ_PST8) != 0)
20612 if (localtime (&now)->tm_hour == hour_GMT0)
20615 if (localtime (&now)->tm_hour != hour_unset)
20620 rm -f conftest
$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622 (eval $ac_link) 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 emacs_cv_localtime_cache
=no
20633 echo "$as_me: program exited with status $ac_status" >&5
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.
$ac_ext >&5
20637 ( exit $ac_status )
20638 emacs_cv_localtime_cache
=yes
20640 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20643 # If we lack tzset, report that localtime does not cache TZ,
20644 # since we can't invalidate the cache if we don't have tzset.
20645 emacs_cv_localtime_cache
=no
20648 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20649 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20650 if test $emacs_cv_localtime_cache = yes; then
20652 cat >>confdefs.h
<<\_ACEOF
20653 #define LOCALTIME_CACHE 1
20658 if test "x$HAVE_TIMEVAL" = xyes
; then
20660 for ac_func
in gettimeofday
20662 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20663 echo "$as_me:$LINENO: checking for $ac_func" >&5
20664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20665 if eval "test \"\${$as_ac_var+set}\" = set"; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 cat >conftest.
$ac_ext <<_ACEOF
20671 cat confdefs.h
>>conftest.
$ac_ext
20672 cat >>conftest.
$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20676 #define $ac_func innocuous_$ac_func
20678 /* System header to define __stub macros and hopefully few prototypes,
20679 which can conflict with char $ac_func (); below.
20680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20681 <limits.h> exists even on freestanding compilers. */
20684 # include <limits.h>
20686 # include <assert.h>
20691 /* Override any gcc2 internal prototype to avoid an error. */
20696 /* We use char because int might match the return type of a gcc2
20697 builtin and then its argument prototype would still apply. */
20699 /* The GNU C library defines this for functions which it implements
20700 to always fail with ENOSYS. Some functions are actually named
20701 something starting with __ and the normal name is an alias. */
20702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20705 char (*f) () = $ac_func;
20714 return f != $ac_func;
20719 rm -f conftest.
$ac_objext conftest
$ac_exeext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20721 (eval $ac_link) 2>conftest.er1
20723 grep -v '^ *+' conftest.er1
>conftest.err
20725 cat conftest.err
>&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } &&
20734 { ac_try
='test -s conftest$ac_exeext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 eval "$as_ac_var=yes"
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.
$ac_ext >&5
20745 eval "$as_ac_var=no"
20747 rm -f conftest.err conftest.
$ac_objext \
20748 conftest
$ac_exeext conftest.
$ac_ext
20750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20752 if test `eval echo '${'$as_ac_var'}'` = yes; then
20753 cat >>confdefs.h
<<_ACEOF
20754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20760 if test $ac_cv_func_gettimeofday = yes; then
20761 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20762 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20763 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 cat >conftest.
$ac_ext <<_ACEOF
20769 cat confdefs.h
>>conftest.
$ac_ext
20770 cat >>conftest.
$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 #ifdef TIME_WITH_SYS_TIME
20774 #include <sys/time.h>
20777 #ifdef HAVE_SYS_TIME_H
20778 #include <sys/time.h>
20786 struct timeval time;
20787 gettimeofday (&time, 0);
20792 rm -f conftest.
$ac_objext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20794 (eval $ac_compile) 2>conftest.er1
20796 grep -v '^ *+' conftest.er1
>conftest.err
20798 cat conftest.err
>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; } &&
20807 { ac_try
='test -s conftest.$ac_objext'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 emacs_cv_gettimeofday_two_arguments
=yes
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.
$ac_ext >&5
20818 emacs_cv_gettimeofday_two_arguments
=no
20820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20822 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20823 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20824 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20826 cat >>confdefs.h
<<\_ACEOF
20827 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20834 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20835 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20836 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20837 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 cat >conftest.
$ac_ext <<_ACEOF
20843 cat confdefs.h
>>conftest.
$ac_ext
20844 cat >>conftest.
$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 #include <sys/types.h>
20847 #include <$ac_cv_struct_tm>
20853 static struct tm ac_aggr;
20854 if (ac_aggr.tm_zone)
20860 rm -f conftest.
$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20864 grep -v '^ *+' conftest.er1
>conftest.err
20866 cat conftest.err
>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; } &&
20875 { ac_try
='test -s conftest.$ac_objext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 ac_cv_member_struct_tm_tm_zone
=yes
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.
$ac_ext >&5
20886 cat >conftest.
$ac_ext <<_ACEOF
20889 cat confdefs.h
>>conftest.
$ac_ext
20890 cat >>conftest.
$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <sys/types.h>
20893 #include <$ac_cv_struct_tm>
20899 static struct tm ac_aggr;
20900 if (sizeof ac_aggr.tm_zone)
20906 rm -f conftest.
$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20910 grep -v '^ *+' conftest.er1
>conftest.err
20912 cat conftest.err
>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try
='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 ac_cv_member_struct_tm_tm_zone
=yes
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.
$ac_ext >&5
20932 ac_cv_member_struct_tm_tm_zone
=no
20934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20938 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20939 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20940 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20942 cat >>confdefs.h
<<_ACEOF
20943 #define HAVE_STRUCT_TM_TM_ZONE 1
20949 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20951 cat >>confdefs.h
<<\_ACEOF
20952 #define HAVE_TM_ZONE 1
20956 echo "$as_me:$LINENO: checking for tzname" >&5
20957 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20958 if test "${ac_cv_var_tzname+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 cat >conftest.
$ac_ext <<_ACEOF
20964 cat confdefs.h
>>conftest.
$ac_ext
20965 cat >>conftest.
$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20968 #ifndef tzname /* For SGI. */
20969 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20980 rm -f conftest.
$ac_objext conftest
$ac_exeext
20981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20982 (eval $ac_link) 2>conftest.er1
20984 grep -v '^ *+' conftest.er1
>conftest.err
20986 cat conftest.err
>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; } &&
20995 { ac_try
='test -s conftest$ac_exeext'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001 ac_cv_var_tzname
=yes
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.
$ac_ext >&5
21006 ac_cv_var_tzname
=no
21008 rm -f conftest.err conftest.
$ac_objext \
21009 conftest
$ac_exeext conftest.
$ac_ext
21011 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21012 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21013 if test $ac_cv_var_tzname = yes; then
21015 cat >>confdefs.h
<<\_ACEOF
21016 #define HAVE_TZNAME 1
21023 if test "$ac_cv_func_gettimeofday" = yes; then
21024 echo "$as_me:$LINENO: checking for struct timezone" >&5
21025 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21026 if test "${emacs_cv_struct_timezone+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 cat >conftest.
$ac_ext <<_ACEOF
21032 cat confdefs.h
>>conftest.
$ac_ext
21033 cat >>conftest.
$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 #include <sys/time.h>
21039 struct timezone tz;
21044 rm -f conftest.
$ac_objext
21045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21046 (eval $ac_compile) 2>conftest.er1
21048 grep -v '^ *+' conftest.er1
>conftest.err
21050 cat conftest.err
>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; } &&
21059 { ac_try
='test -s conftest.$ac_objext'
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; }; then
21065 if test "$cross_compiling" = yes; then
21066 emacs_cv_struct_timezone
=yes
21068 cat >conftest.
$ac_ext <<_ACEOF
21071 cat confdefs.h
>>conftest.
$ac_ext
21072 cat >>conftest.
$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21075 #ifdef TIME_WITH_SYS_TIME
21076 #include <sys/time.h>
21079 #ifdef HAVE_SYS_TIME_H
21080 #include <sys/time.h>
21086 struct timeval time;
21087 struct timezone dummy;
21088 exit (gettimeofday (&time, &dummy));
21091 rm -f conftest
$ac_exeext
21092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21093 (eval $ac_link) 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; }; then
21102 emacs_cv_struct_timezone
=yes
21104 echo "$as_me: program exited with status $ac_status" >&5
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.
$ac_ext >&5
21108 ( exit $ac_status )
21109 emacs_cv_struct_timezone
=no
21111 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.
$ac_ext >&5
21117 emacs_cv_struct_timezone
=no
21119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21121 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21122 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21126 echo "$as_me:$LINENO: checking for socket" >&5
21127 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21128 if test "${ac_cv_func_socket+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 cat >conftest.
$ac_ext <<_ACEOF
21134 cat confdefs.h
>>conftest.
$ac_ext
21135 cat >>conftest.
$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21139 #define socket innocuous_socket
21141 /* System header to define __stub macros and hopefully few prototypes,
21142 which can conflict with char socket (); below.
21143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21144 <limits.h> exists even on freestanding compilers. */
21147 # include <limits.h>
21149 # include <assert.h>
21154 /* Override any gcc2 internal prototype to avoid an error. */
21159 /* We use char because int might match the return type of a gcc2
21160 builtin and then its argument prototype would still apply. */
21162 /* The GNU C library defines this for functions which it implements
21163 to always fail with ENOSYS. Some functions are actually named
21164 something starting with __ and the normal name is an alias. */
21165 #if defined (__stub_socket) || defined (__stub___socket)
21168 char (*f) () = socket;
21177 return f != socket;
21182 rm -f conftest.
$ac_objext conftest
$ac_exeext
21183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21184 (eval $ac_link) 2>conftest.er1
21186 grep -v '^ *+' conftest.er1
>conftest.err
21188 cat conftest.err
>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try
='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_func_socket
=yes
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.
$ac_ext >&5
21208 ac_cv_func_socket
=no
21210 rm -f conftest.err conftest.
$ac_objext \
21211 conftest
$ac_exeext conftest.
$ac_ext
21213 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21214 echo "${ECHO_T}$ac_cv_func_socket" >&6
21215 if test $ac_cv_func_socket = yes; then
21221 if test $ok_so_far = yes; then
21222 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21223 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21224 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21225 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21229 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21231 # Is the header compilable?
21232 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21233 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21234 cat >conftest.
$ac_ext <<_ACEOF
21237 cat confdefs.h
>>conftest.
$ac_ext
21238 cat >>conftest.
$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 $ac_includes_default
21241 #include <netinet/in.h>
21243 rm -f conftest.
$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>conftest.er1
21247 grep -v '^ *+' conftest.er1
>conftest.err
21249 cat conftest.err
>&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
21252 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; } &&
21258 { ac_try
='test -s conftest.$ac_objext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ac_header_compiler
=yes
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.
$ac_ext >&5
21269 ac_header_compiler
=no
21271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21273 echo "${ECHO_T}$ac_header_compiler" >&6
21275 # Is the header present?
21276 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21277 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21278 cat >conftest.
$ac_ext <<_ACEOF
21281 cat confdefs.h
>>conftest.
$ac_ext
21282 cat >>conftest.
$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 #include <netinet/in.h>
21286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21287 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21289 grep -v '^ *+' conftest.er1
>conftest.err
21291 cat conftest.err
>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } >/dev
/null
; then
21294 if test -s conftest.err
; then
21295 ac_cpp_err
=$ac_c_preproc_warn_flag
21296 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21303 if test -z "$ac_cpp_err"; then
21304 ac_header_preproc
=yes
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.
$ac_ext >&5
21309 ac_header_preproc
=no
21311 rm -f conftest.err conftest.
$ac_ext
21312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21313 echo "${ECHO_T}$ac_header_preproc" >&6
21315 # So? What about this header?
21316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21318 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21319 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21321 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21322 ac_header_preproc
=yes
21325 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21326 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21328 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21330 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21332 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21334 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21336 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21339 ## ------------------------------------------ ##
21340 ## Report this to the AC_PACKAGE_NAME lists. ##
21341 ## ------------------------------------------ ##
21344 sed "s/^/$as_me: WARNING: /" >&2
21347 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21348 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21349 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21352 ac_cv_header_netinet_in_h
=$ac_header_preproc
21354 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21355 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21358 if test $ac_cv_header_netinet_in_h = yes; then
21366 if test $ok_so_far = yes; then
21367 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21368 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21369 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21370 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21374 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21376 # Is the header compilable?
21377 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21378 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21379 cat >conftest.
$ac_ext <<_ACEOF
21382 cat confdefs.h
>>conftest.
$ac_ext
21383 cat >>conftest.
$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 $ac_includes_default
21386 #include <arpa/inet.h>
21388 rm -f conftest.
$ac_objext
21389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21390 (eval $ac_compile) 2>conftest.er1
21392 grep -v '^ *+' conftest.er1
>conftest.err
21394 cat conftest.err
>&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } &&
21397 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; } &&
21403 { ac_try
='test -s conftest.$ac_objext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 ac_header_compiler
=yes
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.
$ac_ext >&5
21414 ac_header_compiler
=no
21416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21418 echo "${ECHO_T}$ac_header_compiler" >&6
21420 # Is the header present?
21421 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21422 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21423 cat >conftest.
$ac_ext <<_ACEOF
21426 cat confdefs.h
>>conftest.
$ac_ext
21427 cat >>conftest.
$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 #include <arpa/inet.h>
21431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21434 grep -v '^ *+' conftest.er1
>conftest.err
21436 cat conftest.err
>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } >/dev
/null
; then
21439 if test -s conftest.err
; then
21440 ac_cpp_err
=$ac_c_preproc_warn_flag
21441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21448 if test -z "$ac_cpp_err"; then
21449 ac_header_preproc
=yes
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.
$ac_ext >&5
21454 ac_header_preproc
=no
21456 rm -f conftest.err conftest.
$ac_ext
21457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21458 echo "${ECHO_T}$ac_header_preproc" >&6
21460 # So? What about this header?
21461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21463 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21464 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21466 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21467 ac_header_preproc
=yes
21470 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21471 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21473 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21475 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21476 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21477 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21479 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21481 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21484 ## ------------------------------------------ ##
21485 ## Report this to the AC_PACKAGE_NAME lists. ##
21486 ## ------------------------------------------ ##
21489 sed "s/^/$as_me: WARNING: /" >&2
21492 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21493 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21494 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21495 echo $ECHO_N "(cached) $ECHO_C" >&6
21497 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21499 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21500 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21503 if test $ac_cv_header_arpa_inet_h = yes; then
21511 if test $ok_so_far = yes; then
21513 cat >>confdefs.h
<<\_ACEOF
21514 #define HAVE_INET_SOCKETS 1
21520 for ac_header
in sys
/ioctl.h
21522 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21524 echo "$as_me:$LINENO: checking for $ac_header" >&5
21525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21532 # Is the header compilable?
21533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21535 cat >conftest.
$ac_ext <<_ACEOF
21538 cat confdefs.h
>>conftest.
$ac_ext
21539 cat >>conftest.
$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21541 $ac_includes_default
21542 #include <$ac_header>
21544 rm -f conftest.
$ac_objext
21545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21546 (eval $ac_compile) 2>conftest.er1
21548 grep -v '^ *+' conftest.er1
>conftest.err
21550 cat conftest.err
>&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } &&
21553 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try
='test -s conftest.$ac_objext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_header_compiler
=yes
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.
$ac_ext >&5
21570 ac_header_compiler
=no
21572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6
21576 # Is the header present?
21577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21579 cat >conftest.
$ac_ext <<_ACEOF
21582 cat confdefs.h
>>conftest.
$ac_ext
21583 cat >>conftest.
$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <$ac_header>
21587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21590 grep -v '^ *+' conftest.er1
>conftest.err
21592 cat conftest.err
>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev
/null
; then
21595 if test -s conftest.err
; then
21596 ac_cpp_err
=$ac_c_preproc_warn_flag
21597 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21604 if test -z "$ac_cpp_err"; then
21605 ac_header_preproc
=yes
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.
$ac_ext >&5
21610 ac_header_preproc
=no
21612 rm -f conftest.err conftest.
$ac_ext
21613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21614 echo "${ECHO_T}$ac_header_preproc" >&6
21616 # So? What about this header?
21617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21623 ac_header_preproc
=yes
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21640 ## ------------------------------------------ ##
21641 ## Report this to the AC_PACKAGE_NAME lists. ##
21642 ## ------------------------------------------ ##
21645 sed "s/^/$as_me: WARNING: /" >&2
21648 echo "$as_me:$LINENO: checking for $ac_header" >&5
21649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21653 eval "$as_ac_Header=\$ac_header_preproc"
21655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21660 cat >>confdefs.h
<<_ACEOF
21661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21669 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21671 cat >>confdefs.h
<<\_ACEOF
21672 #define HAVE_AIX_SMT_EXP 1
21677 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21678 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21679 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21680 echo "$as_me:$LINENO: result: yes" >&5
21681 echo "${ECHO_T}yes" >&6
21683 cat >>confdefs.h
<<\_ACEOF
21684 #define HAVE_DEV_PTMX 1
21688 echo "$as_me:$LINENO: result: no" >&5
21689 echo "${ECHO_T}no" >&6
21692 echo "$as_me:$LINENO: checking for pid_t" >&5
21693 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21694 if test "${ac_cv_type_pid_t+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 cat >conftest.
$ac_ext <<_ACEOF
21700 cat confdefs.h
>>conftest.
$ac_ext
21701 cat >>conftest.
$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21709 if (sizeof (pid_t))
21715 rm -f conftest.
$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>conftest.er1
21719 grep -v '^ *+' conftest.er1
>conftest.err
21721 cat conftest.err
>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
21724 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try
='test -s conftest.$ac_objext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_type_pid_t
=yes
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.
$ac_ext >&5
21741 ac_cv_type_pid_t
=no
21743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21745 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21746 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21747 if test $ac_cv_type_pid_t = yes; then
21751 cat >>confdefs.h
<<_ACEOF
21759 for ac_header
in unistd.h vfork.h
21761 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21763 echo "$as_me:$LINENO: checking for $ac_header" >&5
21764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21771 # Is the header compilable?
21772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21774 cat >conftest.
$ac_ext <<_ACEOF
21777 cat confdefs.h
>>conftest.
$ac_ext
21778 cat >>conftest.
$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 $ac_includes_default
21781 #include <$ac_header>
21783 rm -f conftest.
$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>conftest.er1
21787 grep -v '^ *+' conftest.er1
>conftest.err
21789 cat conftest.err
>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try
='test -s conftest.$ac_objext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 ac_header_compiler
=yes
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.
$ac_ext >&5
21809 ac_header_compiler
=no
21811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813 echo "${ECHO_T}$ac_header_compiler" >&6
21815 # Is the header present?
21816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21818 cat >conftest.
$ac_ext <<_ACEOF
21821 cat confdefs.h
>>conftest.
$ac_ext
21822 cat >>conftest.
$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 #include <$ac_header>
21826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21827 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21829 grep -v '^ *+' conftest.er1
>conftest.err
21831 cat conftest.err
>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } >/dev
/null
; then
21834 if test -s conftest.err
; then
21835 ac_cpp_err
=$ac_c_preproc_warn_flag
21836 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21843 if test -z "$ac_cpp_err"; then
21844 ac_header_preproc
=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.
$ac_ext >&5
21849 ac_header_preproc
=no
21851 rm -f conftest.err conftest.
$ac_ext
21852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21853 echo "${ECHO_T}$ac_header_preproc" >&6
21855 # So? What about this header?
21856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21862 ac_header_preproc
=yes
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21879 ## ------------------------------------------ ##
21880 ## Report this to the AC_PACKAGE_NAME lists. ##
21881 ## ------------------------------------------ ##
21884 sed "s/^/$as_me: WARNING: /" >&2
21887 echo "$as_me:$LINENO: checking for $ac_header" >&5
21888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21892 eval "$as_ac_Header=\$ac_header_preproc"
21894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21899 cat >>confdefs.h
<<_ACEOF
21900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21909 for ac_func
in fork vfork
21911 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21912 echo "$as_me:$LINENO: checking for $ac_func" >&5
21913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21914 if eval "test \"\${$as_ac_var+set}\" = set"; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 cat >conftest.
$ac_ext <<_ACEOF
21920 cat confdefs.h
>>conftest.
$ac_ext
21921 cat >>conftest.
$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21925 #define $ac_func innocuous_$ac_func
21927 /* System header to define __stub macros and hopefully few prototypes,
21928 which can conflict with char $ac_func (); below.
21929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21930 <limits.h> exists even on freestanding compilers. */
21933 # include <limits.h>
21935 # include <assert.h>
21940 /* Override any gcc2 internal prototype to avoid an error. */
21945 /* We use char because int might match the return type of a gcc2
21946 builtin and then its argument prototype would still apply. */
21948 /* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21954 char (*f) () = $ac_func;
21963 return f != $ac_func;
21968 rm -f conftest.
$ac_objext conftest
$ac_exeext
21969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21970 (eval $ac_link) 2>conftest.er1
21972 grep -v '^ *+' conftest.er1
>conftest.err
21974 cat conftest.err
>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } &&
21977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; } &&
21983 { ac_try
='test -s conftest$ac_exeext'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
21989 eval "$as_ac_var=yes"
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.
$ac_ext >&5
21994 eval "$as_ac_var=no"
21996 rm -f conftest.err conftest.
$ac_objext \
21997 conftest
$ac_exeext conftest.
$ac_ext
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002 cat >>confdefs.h
<<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22009 if test "x$ac_cv_func_fork" = xyes
; then
22010 echo "$as_me:$LINENO: checking for working fork" >&5
22011 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22012 if test "${ac_cv_func_fork_works+set}" = set; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22015 if test "$cross_compiling" = yes; then
22016 ac_cv_func_fork_works
=cross
22018 cat >conftest.
$ac_ext <<_ACEOF
22021 cat confdefs.h
>>conftest.
$ac_ext
22022 cat >>conftest.
$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 $ac_includes_default
22029 /* By Ruediger Kuhlmann. */
22038 rm -f conftest
$ac_exeext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040 (eval $ac_link) 2>&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; }; then
22049 ac_cv_func_fork_works
=yes
22051 echo "$as_me: program exited with status $ac_status" >&5
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.
$ac_ext >&5
22055 ( exit $ac_status )
22056 ac_cv_func_fork_works
=no
22058 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22061 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22062 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22065 ac_cv_func_fork_works
=$ac_cv_func_fork
22067 if test "x$ac_cv_func_fork_works" = xcross
; then
22069 *-*-amigaos* |
*-*-msdosdjgpp*)
22070 # Override, as these systems have only a dummy fork() stub
22071 ac_cv_func_fork_works
=no
22074 ac_cv_func_fork_works
=yes
22077 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22078 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22080 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22081 if test "x$ac_cv_func_vfork" = xyes
; then
22082 echo "$as_me:$LINENO: checking for working vfork" >&5
22083 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22084 if test "${ac_cv_func_vfork_works+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 if test "$cross_compiling" = yes; then
22088 ac_cv_func_vfork_works
=cross
22090 cat >conftest.
$ac_ext <<_ACEOF
22093 cat confdefs.h
>>conftest.
$ac_ext
22094 cat >>conftest.
$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 /* Thanks to Paul Eggert for this test. */
22098 #include <stdlib.h>
22099 #include <sys/types.h>
22100 #include <sys/stat.h>
22101 #include <sys/wait.h>
22103 # include <unistd.h>
22106 # include <vfork.h>
22108 /* On some sparc systems, changes by the child to local and incoming
22109 argument registers are propagated back to the parent. The compiler
22110 is told about this with #include <vfork.h>, but some compilers
22111 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22112 static variable whose address is put into a register that is
22113 clobbered by the vfork. */
22116 sparc_address_test (int arg)
22118 sparc_address_test (arg) int arg;
22121 static pid_t child;
22139 pid_t parent = getpid ();
22142 sparc_address_test (0);
22147 /* Here is another test for sparc vfork register problems. This
22148 test uses lots of local variables, at least as many local
22149 variables as main has allocated so far including compiler
22150 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22151 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22152 reuse the register of parent for one of the local variables,
22153 since it will think that parent can't possibly be used any more
22154 in this routine. Assigning to the local variable will thus
22155 munge parent in the parent process. */
22157 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22158 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22159 /* Convince the compiler that p..p7 are live; otherwise, it might
22160 use the same hardware register for all 8 local variables. */
22161 if (p != p1 || p != p2 || p != p3 || p != p4
22162 || p != p5 || p != p6 || p != p7)
22165 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22166 from child file descriptors. If the child closes a descriptor
22167 before it execs or exits, this munges the parent's descriptor
22168 as well. Test for this by closing stdout in the child. */
22169 _exit(close(fileno(stdout)) != 0);
22174 while (wait(&status) != child)
22177 /* Was there some problem with vforking? */
22180 /* Did the child fail? (This shouldn't happen.) */
22183 /* Did the vfork/compiler bug occur? */
22184 || parent != getpid()
22186 /* Did the file descriptor bug occur? */
22187 || fstat(fileno(stdout), &st) != 0
22192 rm -f conftest
$ac_exeext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22194 (eval $ac_link) 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199 (eval $ac_try) 2>&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; }; then
22203 ac_cv_func_vfork_works
=yes
22205 echo "$as_me: program exited with status $ac_status" >&5
22206 echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.
$ac_ext >&5
22209 ( exit $ac_status )
22210 ac_cv_func_vfork_works
=no
22212 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22216 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22219 if test "x$ac_cv_func_fork_works" = xcross
; then
22220 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22221 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22222 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22225 if test "x$ac_cv_func_vfork_works" = xyes
; then
22227 cat >>confdefs.h
<<\_ACEOF
22228 #define HAVE_WORKING_VFORK 1
22233 cat >>confdefs.h
<<\_ACEOF
22238 if test "x$ac_cv_func_fork_works" = xyes
; then
22240 cat >>confdefs.h
<<\_ACEOF
22241 #define HAVE_WORKING_FORK 1
22247 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22248 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22249 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 cat >conftest.
$ac_ext <<_ACEOF
22255 cat confdefs.h
>>conftest.
$ac_ext
22256 cat >>conftest.
$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <langinfo.h>
22262 char* cs = nl_langinfo(CODESET);
22267 rm -f conftest.
$ac_objext conftest
$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269 (eval $ac_link) 2>conftest.er1
22271 grep -v '^ *+' conftest.er1
>conftest.err
22273 cat conftest.err
>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; } &&
22282 { ac_try
='test -s conftest$ac_exeext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 emacs_cv_langinfo_codeset
=yes
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.
$ac_ext >&5
22293 emacs_cv_langinfo_codeset
=no
22295 rm -f conftest.err conftest.
$ac_objext \
22296 conftest
$ac_exeext conftest.
$ac_ext
22299 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22300 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22301 if test $emacs_cv_langinfo_codeset = yes; then
22303 cat >>confdefs.h
<<\_ACEOF
22304 #define HAVE_LANGINFO_CODESET 1
22309 echo "$as_me:$LINENO: checking for size_t" >&5
22310 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22311 if test "${ac_cv_type_size_t+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 cat >conftest.
$ac_ext <<_ACEOF
22317 cat confdefs.h
>>conftest.
$ac_ext
22318 cat >>conftest.
$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22326 if (sizeof (size_t))
22332 rm -f conftest.
$ac_objext
22333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22334 (eval $ac_compile) 2>conftest.er1
22336 grep -v '^ *+' conftest.er1
>conftest.err
22338 cat conftest.err
>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
22341 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; } &&
22347 { ac_try
='test -s conftest.$ac_objext'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 ac_cv_type_size_t
=yes
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.
$ac_ext >&5
22358 ac_cv_type_size_t
=no
22360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22362 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22363 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22364 if test $ac_cv_type_size_t = yes; then
22366 cat >>confdefs.h
<<_ACEOF
22367 #define HAVE_SIZE_T 1
22374 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22375 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22376 if test "${ac_cv_type_mbstate_t+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22379 cat >conftest.
$ac_ext <<_ACEOF
22382 cat confdefs.h
>>conftest.
$ac_ext
22383 cat >>conftest.
$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385 $ac_includes_default
22386 # include <wchar.h>
22390 mbstate_t x; return sizeof x;
22395 rm -f conftest.
$ac_objext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397 (eval $ac_compile) 2>conftest.er1
22399 grep -v '^ *+' conftest.er1
>conftest.err
22401 cat conftest.err
>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
22404 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try
='test -s conftest.$ac_objext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 ac_cv_type_mbstate_t
=yes
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.
$ac_ext >&5
22421 ac_cv_type_mbstate_t
=no
22423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22425 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22426 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22427 if test $ac_cv_type_mbstate_t = yes; then
22429 cat >>confdefs.h
<<\_ACEOF
22430 #define HAVE_MBSTATE_T 1
22435 cat >>confdefs.h
<<\_ACEOF
22436 #define mbstate_t int
22441 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22442 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22443 if test "${emacs_cv_c_restrict+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 cat >conftest.
$ac_ext <<_ACEOF
22449 cat confdefs.h
>>conftest.
$ac_ext
22450 cat >>conftest.
$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 void fred (int *restrict x);
22461 rm -f conftest.
$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463 (eval $ac_compile) 2>conftest.er1
22465 grep -v '^ *+' conftest.er1
>conftest.err
22467 cat conftest.err
>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; } &&
22476 { ac_try
='test -s conftest.$ac_objext'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 emacs_cv_c_restrict
=yes
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.
$ac_ext >&5
22487 cat >conftest.
$ac_ext <<_ACEOF
22490 cat confdefs.h
>>conftest.
$ac_ext
22491 cat >>conftest.
$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 void fred (int *__restrict x);
22502 rm -f conftest.
$ac_objext
22503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22504 (eval $ac_compile) 2>conftest.er1
22506 grep -v '^ *+' conftest.er1
>conftest.err
22508 cat conftest.err
>&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } &&
22511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513 (eval $ac_try) 2>&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; } &&
22517 { ac_try
='test -s conftest.$ac_objext'
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; }; then
22523 emacs_cv_c_restrict
=__restrict
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.
$ac_ext >&5
22528 emacs_cv_c_restrict
=no
22530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22534 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22535 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22536 case "$emacs_cv_c_restrict" in
22537 yes) emacs_restrict
=restrict
;;
22538 no
) emacs_restrict
="";;
22539 *) emacs_restrict
="$emacs_cv_c_restrict";;
22541 if test "$emacs_restrict" != __restrict
; then
22543 cat >>confdefs.h
<<_ACEOF
22544 #define __restrict $emacs_restrict
22549 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22550 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22551 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 cat >conftest.
$ac_ext <<_ACEOF
22557 cat confdefs.h
>>conftest.
$ac_ext
22558 cat >>conftest.
$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 void fred (int x[__restrict]);
22569 rm -f conftest.
$ac_objext
22570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22571 (eval $ac_compile) 2>conftest.er1
22573 grep -v '^ *+' conftest.er1
>conftest.err
22575 cat conftest.err
>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } &&
22578 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
22584 { ac_try
='test -s conftest.$ac_objext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 emacs_cv_c_restrict_arr
=yes
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.
$ac_ext >&5
22595 emacs_cv_c_restrict_arr
=no
22597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22599 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22600 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22601 if test "$emacs_cv_c_restrict_arr" = yes; then
22603 cat >>confdefs.h
<<\_ACEOF
22604 #define __restrict_arr __restrict
22611 # Set up the CFLAGS for real compilation, so we can substitute it.
22612 CFLAGS
="$REAL_CFLAGS"
22613 CPPFLAGS
="$REAL_CPPFLAGS"
22615 #### Find out which version of Emacs this is.
22616 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22617 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22618 if test x
"${version}" = x
; then
22619 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22620 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22621 { (exit 1); exit 1; }; }
22624 ### Specify what sort of things we'll be editing into Makefile and config.h.
22625 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22661 cat >>confdefs.h
<<_ACEOF
22662 #define EMACS_CONFIGURATION "${canonical}"
22666 cat >>confdefs.h
<<_ACEOF
22667 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22671 cat >>confdefs.h
<<_ACEOF
22672 #define config_machfile "${machfile}"
22676 cat >>confdefs.h
<<_ACEOF
22677 #define config_opsysfile "${opsysfile}"
22681 cat >>confdefs.h
<<_ACEOF
22682 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22686 cat >>confdefs.h
<<_ACEOF
22687 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22691 cat >>confdefs.h
<<_ACEOF
22692 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22696 cat >>confdefs.h
<<_ACEOF
22697 #define UNEXEC_SRC ${UNEXEC_SRC}
22701 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22703 cat >>confdefs.h
<<\_ACEOF
22704 #define HAVE_X_WINDOWS 1
22708 if test "${USE_X_TOOLKIT}" != "none" ; then
22710 cat >>confdefs.h
<<\_ACEOF
22711 #define USE_X_TOOLKIT 1
22715 if test "${HAVE_X11}" = "yes" ; then
22717 cat >>confdefs.h
<<\_ACEOF
22722 if test "${HAVE_XFREE386}" = "yes" ; then
22724 cat >>confdefs.h
<<\_ACEOF
22725 #define HAVE_XFREE386 1
22729 if test "${HAVE_MENUS}" = "yes" ; then
22731 cat >>confdefs.h
<<\_ACEOF
22732 #define HAVE_MENUS 1
22736 if test "${GNU_MALLOC}" = "yes" ; then
22738 cat >>confdefs.h
<<\_ACEOF
22739 #define GNU_MALLOC 1
22743 if test "${REL_ALLOC}" = "yes" ; then
22745 cat >>confdefs.h
<<\_ACEOF
22746 #define REL_ALLOC 1
22755 #### Report on what we decided to do.
22756 #### Report GTK as a toolkit, even if it doesn't use Xt.
22757 #### It makes printing result more understandable as using GTK sets
22758 #### toolkit_scroll_bars to yes by default.
22759 if test "${HAVE_GTK}" = "yes"; then
22764 Configured for \`${canonical}'.
22766 Where should the build process find the source code? ${srcdir}
22767 What operating system and machine description files should Emacs use?
22768 \`${opsysfile}' and \`${machfile}'
22769 What compiler should emacs be built with? ${CC} ${CFLAGS}
22770 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22771 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22772 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22773 What window system should Emacs use? ${window_system}
22774 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22776 if test -n "${x_includes}"; then
22777 echo " Where do we find X Windows header files? ${x_includes}"
22779 echo " Where do we find X Windows header files? Standard dirs"
22781 if test -n "${x_libraries}"; then
22782 echo " Where do we find X Windows libraries? ${x_libraries}"
22784 echo " Where do we find X Windows libraries? Standard dirs"
22787 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22788 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22789 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22790 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22791 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22792 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22793 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22796 if test $USE_XASSERTS = yes; then
22797 echo " Compiling with asserts turned on."
22798 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22804 # Remove any trailing slashes in these variables.
22805 test "${prefix}" != NONE
&&
22806 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22807 test "${exec_prefix}" != NONE
&&
22808 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22810 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22811 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22812 ## from Makefile.c can correctly provide the arg `-traditional' to the
22815 cat >conftest.
$ac_ext <<_ACEOF
22818 cat confdefs.h
>>conftest.
$ac_ext
22819 cat >>conftest.
$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22824 $EGREP "yes..yes" >/dev
/null
2>&1; then
22825 CPP_NEED_TRADITIONAL
=no
22827 CPP_NEED_TRADITIONAL
=yes
22832 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"
22833 ac_config_commands
="$ac_config_commands default"
22834 cat >confcache
<<\_ACEOF
22835 # This file is a shell script that caches the results of configure
22836 # tests run on this system so they can be shared between configure
22837 # scripts and configure runs, see configure's option --config-cache.
22838 # It is not useful on other systems. If it contains results you don't
22839 # want to keep, you may remove or edit it.
22841 # config.status only pays attention to the cache file if you give it
22842 # the --recheck option to rerun configure.
22844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22846 # following values.
22850 # The following way of writing the cache mishandles newlines in values,
22851 # but we know of no workaround that is simple, portable, and efficient.
22852 # So, don't put newlines in cache variables' values.
22853 # Ultrix sh set writes to stderr and can't be redirected directly,
22854 # and sets the high bit in the cache file unless we assign to the vars.
22857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22859 # `set' does not quote correctly, so add quotes (double-quote
22860 # substitution turns \\\\ into \\, and sed turns \\ into \).
22863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22866 # `set' quotes correctly as required by POSIX, so do not add quotes.
22868 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22877 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22879 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22880 if test -w $cache_file; then
22881 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22882 cat confcache
>$cache_file
22884 echo "not updating unwritable cache $cache_file"
22889 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22890 # Let make expand exec_prefix.
22891 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22895 # trailing colons and then remove the whole line if VPATH becomes empty
22896 # (actually we leave an empty line to preserve line numbers).
22897 if test "x$srcdir" = x.
; then
22898 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22899 s/:*\$(srcdir):*/:/;
22900 s/:*\${srcdir}:*/:/;
22902 s/^\([^=]*=[ ]*\):*/\1/;
22908 DEFS
=-DHAVE_CONFIG_H
22912 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22913 # 1. Remove the extension, and $U if already installed.
22914 ac_i
=`echo "$ac_i" |
22915 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22917 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22918 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22920 LIBOBJS
=$ac_libobjs
22922 LTLIBOBJS
=$ac_ltlibobjs
22926 : ${CONFIG_STATUS=./config.status}
22927 ac_clean_files_save
=$ac_clean_files
22928 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22929 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22930 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22931 cat >$CONFIG_STATUS <<_ACEOF
22933 # Generated by $as_me.
22934 # Run this file to recreate the current configuration.
22935 # Compiler output produced by configure, useful for debugging
22936 # configure, is in config.log if it exists.
22939 ac_cs_recheck=false
22941 SHELL=\${CONFIG_SHELL-$SHELL}
22944 cat >>$CONFIG_STATUS <<\_ACEOF
22945 ## --------------------- ##
22946 ## M4sh Initialization. ##
22947 ## --------------------- ##
22949 # Be Bourne compatible
22950 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22954 # is contrary to our usage. Disable this feature.
22955 alias -g '${1+"$@"}'='"$@"'
22956 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22959 DUALCASE
=1; export DUALCASE
# for MKS sh
22961 # Support unset when possible.
22962 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22969 # Work around bugs in pre-3.0 UWIN ksh.
22970 $as_unset ENV MAIL MAILPATH
22977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22979 LC_TELEPHONE LC_TIME
22981 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22982 eval $as_var=C
; export $as_var
22988 # Required to use basename.
22989 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22995 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22996 as_basename
=basename
23002 # Name of the executable.
23003 as_me
=`$as_basename "$0" ||
23004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23005 X"$0" : 'X\(//\)$' \| \
23006 X"$0" : 'X\(/\)$' \| \
23007 . : '\(.\)' 2>/dev/null ||
23009 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23010 /^X\/\(\/\/\)$/{ s//\1/; q; }
23011 /^X\/\(\/\).*/{ s//\1/; q; }
23015 # PATH needs CR, and LINENO needs CR and PATH.
23016 # Avoid depending upon Character Ranges.
23017 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23018 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23019 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23020 as_cr_digits
='0123456789'
23021 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23023 # The user is always right.
23024 if test "${PATH_SEPARATOR+set}" != set; then
23025 echo "#! /bin/sh" >conf$$.sh
23026 echo "exit 0" >>conf$$.sh
23028 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23037 as_lineno_1
=$LINENO
23038 as_lineno_2
=$LINENO
23039 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23040 test "x$as_lineno_1" != "x$as_lineno_2" &&
23041 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23042 # Find who we are. Look in the path if we contain no path at all
23045 *[\\/]* ) as_myself
=$0 ;;
23046 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23047 for as_dir
in $PATH
23050 test -z "$as_dir" && as_dir
=.
23051 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23056 # We did not find ourselves, most probably we were run as `sh COMMAND'
23057 # in which case we are not to be found in the path.
23058 if test "x$as_myself" = x
; then
23061 if test ! -f "$as_myself"; then
23062 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23063 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23064 { (exit 1); exit 1; }; }
23066 case $CONFIG_SHELL in
23068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23069 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23072 test -z "$as_dir" && as_dir
=.
23073 for as_base
in sh bash ksh sh5
; do
23076 if ("$as_dir/$as_base" -c '
23077 as_lineno_1=$LINENO
23078 as_lineno_2=$LINENO
23079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23080 test "x$as_lineno_1" != "x$as_lineno_2" &&
23081 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23082 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23083 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23084 CONFIG_SHELL
=$as_dir/$as_base
23085 export CONFIG_SHELL
23086 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23095 # uniformly replaced by the line number. The first 'sed' inserts a
23096 # line-number line before each line; the second 'sed' does the real
23097 # work. The second script uses 'N' to pair each line-number line
23098 # with the numbered line, and appends trailing '-' during
23099 # substitution so that $LINENO is not a special case at line end.
23100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23101 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23102 sed '=' <$as_myself |
23107 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23110 s,^['$as_cr_digits']*\n,,
23111 ' >$as_me.lineno
&&
23112 chmod +x
$as_me.lineno ||
23113 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23114 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23115 { (exit 1); exit 1; }; }
23117 # Don't try to exec as it changes $[0], causing all sort of problems
23118 # (the dirname of $[0] is not the place where we might find the
23119 # original and so on. Autoconf is especially sensible to this).
23121 # Exit status is that of the last command.
23126 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23127 *c
*,-n*) ECHO_N
= ECHO_C
='
23129 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23130 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23133 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23139 rm -f conf$$ conf$$.exe conf$$.
file
23141 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23142 # We could just check for DJGPP; but this test a) works b) is more generic
23143 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23144 if test -f conf$$.exe
; then
23145 # Don't use ln at all; we don't have any links
23150 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23155 rm -f conf$$ conf$$.exe conf$$.
file
23157 if mkdir
-p .
2>/dev
/null
; then
23160 test -d .
/-p && rmdir .
/-p
23164 as_executable_p
="test -f"
23166 # Sed expression to map a string onto a valid CPP name.
23167 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23169 # Sed expression to map a string onto a valid variable name.
23170 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23174 # We need space, tab and new line, in precisely that order.
23184 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23185 # report actual input values of CONFIG_FILES etc. instead of their
23186 # values after options handling. Logging --version etc. is OK.
23190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23191 ## Running $as_me. ##
23196 This file was extended by $as_me, which was
23197 generated by GNU Autoconf 2.59. Invocation command line was
23199 CONFIG_FILES = $CONFIG_FILES
23200 CONFIG_HEADERS = $CONFIG_HEADERS
23201 CONFIG_LINKS = $CONFIG_LINKS
23202 CONFIG_COMMANDS = $CONFIG_COMMANDS
23206 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23210 # Files that config.status was made for.
23211 if test -n "$ac_config_files"; then
23212 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23215 if test -n "$ac_config_headers"; then
23216 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23219 if test -n "$ac_config_links"; then
23220 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23223 if test -n "$ac_config_commands"; then
23224 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23227 cat >>$CONFIG_STATUS <<\_ACEOF
23230 \`$as_me' instantiates files from templates according to the
23231 current configuration.
23233 Usage: $0 [OPTIONS] [FILE]...
23235 -h, --help print this help, then exit
23236 -V, --version print version number, then exit
23237 -q, --quiet do not print progress messages
23238 -d, --debug don't remove temporary files
23239 --recheck update $as_me by reconfiguring in the same conditions
23240 --file=FILE[:TEMPLATE]
23241 instantiate the configuration file FILE
23242 --header=FILE[:TEMPLATE]
23243 instantiate the configuration header FILE
23245 Configuration files:
23248 Configuration headers:
23251 Configuration commands:
23254 Report bugs to <bug-autoconf@gnu.org>."
23257 cat >>$CONFIG_STATUS <<_ACEOF
23260 configured by $0, generated by GNU Autoconf 2.59,
23261 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23263 Copyright (C) 2003 Free Software Foundation, Inc.
23264 This config.status script is free software; the Free Software Foundation
23265 gives unlimited permission to copy, distribute and modify it."
23270 cat >>$CONFIG_STATUS <<\_ACEOF
23271 # If no file are specified by the user, then we need to provide default
23272 # value. By we need to know if files were specified by the user.
23278 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23279 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23287 *) # This is not an option, so the user has probably given explicit
23290 ac_need_defaults
=false
;;
23294 # Handling of the options.
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23299 --version |
--vers* |
-V )
23300 echo "$ac_cs_version"; exit 0 ;;
23302 # Conflict between --help and --header
23303 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23304 Try \`$0 --help' for more information." >&5
23305 echo "$as_me: error: ambiguous option: $1
23306 Try \`$0 --help' for more information." >&2;}
23307 { (exit 1); exit 1; }; };;
23308 --help |
--hel |
-h )
23309 echo "$ac_cs_usage"; exit 0 ;;
23310 --debug |
--d* |
-d )
23312 --file |
--fil |
--fi |
--f )
23314 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23315 ac_need_defaults
=false
;;
23316 --header |
--heade |
--head |
--hea )
23318 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23319 ac_need_defaults
=false
;;
23320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23321 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23324 # This is an error.
23325 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23326 Try \`$0 --help' for more information." >&5
23327 echo "$as_me: error: unrecognized option: $1
23328 Try \`$0 --help' for more information." >&2;}
23329 { (exit 1); exit 1; }; } ;;
23331 *) ac_config_targets
="$ac_config_targets $1" ;;
23337 ac_configure_extra_args
=
23339 if $ac_cs_silent; then
23341 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23345 cat >>$CONFIG_STATUS <<_ACEOF
23346 if \$ac_cs_recheck; then
23347 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23348 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23353 cat >>$CONFIG_STATUS <<_ACEOF
23355 # INIT-COMMANDS section.
23358 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23364 cat >>$CONFIG_STATUS <<\_ACEOF
23365 for ac_config_target
in $ac_config_targets
23367 case "$ac_config_target" in
23368 # Handling of arguments.
23369 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23370 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23371 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23372 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23373 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23374 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23375 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23376 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23377 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23378 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23379 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23380 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23381 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23383 { (exit 1); exit 1; }; };;
23387 # If the user did not use the arguments to specify the items to instantiate,
23388 # then the envvar interface is used. Set only those that are not.
23389 # We use the long form for the default assignment because of an extremely
23390 # bizarre bug on SunOS 4.1.3.
23391 if $ac_need_defaults; then
23392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23397 # Have a temporary directory for convenience. Make it in the build tree
23398 # simply because there is no reason to put it here, and in addition,
23399 # creating and moving files from /tmp can sometimes cause problems.
23400 # Create a temporary directory, and hook for its removal unless debugging.
23403 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23404 trap '{ (exit 1); exit 1; }' 1 2 13 15
23407 # Create a (secure) tmp directory for tmp files.
23410 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23411 test -n "$tmp" && test -d "$tmp"
23414 tmp
=.
/confstat$$
-$RANDOM
23415 (umask 077 && mkdir
$tmp)
23418 echo "$me: cannot create a temporary directory in ." >&2
23419 { (exit 1); exit 1; }
23424 cat >>$CONFIG_STATUS <<_ACEOF
23427 # CONFIG_FILES section.
23430 # No need to generate the scripts if there are no CONFIG_FILES.
23431 # This happens for instance when ./config.status config.h
23432 if test -n "\$CONFIG_FILES"; then
23433 # Protect against being on the right side of a sed subst in config.status.
23434 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23435 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23436 s,@SHELL@,$SHELL,;t t
23437 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23438 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23439 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23440 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23441 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23442 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23443 s,@exec_prefix@,$exec_prefix,;t t
23444 s,@prefix@,$prefix,;t t
23445 s,@program_transform_name@,$program_transform_name,;t t
23446 s,@bindir@,$bindir,;t t
23447 s,@sbindir@,$sbindir,;t t
23448 s,@libexecdir@,$libexecdir,;t t
23449 s,@datadir@,$datadir,;t t
23450 s,@sysconfdir@,$sysconfdir,;t t
23451 s,@sharedstatedir@,$sharedstatedir,;t t
23452 s,@localstatedir@,$localstatedir,;t t
23453 s,@libdir@,$libdir,;t t
23454 s,@includedir@,$includedir,;t t
23455 s,@oldincludedir@,$oldincludedir,;t t
23456 s,@infodir@,$infodir,;t t
23457 s,@mandir@,$mandir,;t t
23458 s,@build_alias@,$build_alias,;t t
23459 s,@host_alias@,$host_alias,;t t
23460 s,@target_alias@,$target_alias,;t t
23461 s,@DEFS@,$DEFS,;t t
23462 s,@ECHO_C@,$ECHO_C,;t t
23463 s,@ECHO_N@,$ECHO_N,;t t
23464 s,@ECHO_T@,$ECHO_T,;t t
23465 s,@LIBS@,$LIBS,;t t
23466 s,@MAINT@,$MAINT,;t t
23467 s,@build@,$build,;t t
23468 s,@build_cpu@,$build_cpu,;t t
23469 s,@build_vendor@,$build_vendor,;t t
23470 s,@build_os@,$build_os,;t t
23471 s,@host@,$host,;t t
23472 s,@host_cpu@,$host_cpu,;t t
23473 s,@host_vendor@,$host_vendor,;t t
23474 s,@host_os@,$host_os,;t t
23476 s,@CFLAGS@,$CFLAGS,;t t
23477 s,@LDFLAGS@,$LDFLAGS,;t t
23478 s,@CPPFLAGS@,$CPPFLAGS,;t t
23479 s,@ac_ct_CC@,$ac_ct_CC,;t t
23480 s,@EXEEXT@,$EXEEXT,;t t
23481 s,@OBJEXT@,$OBJEXT,;t t
23483 s,@EGREP@,$EGREP,;t t
23484 s,@LN_S@,$LN_S,;t t
23485 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23486 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23487 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23488 s,@RANLIB@,$RANLIB,;t t
23489 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23490 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23491 s,@GZIP_PROG@,$GZIP_PROG,;t t
23492 s,@LIBSOUND@,$LIBSOUND,;t t
23493 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23494 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23495 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23496 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23497 s,@SET_MAKE@,$SET_MAKE,;t t
23498 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23499 s,@GTK_LIBS@,$GTK_LIBS,;t t
23500 s,@ALLOCA@,$ALLOCA,;t t
23501 s,@liblockfile@,$liblockfile,;t t
23502 s,@LIBOBJS@,$LIBOBJS,;t t
23503 s,@NEED_SETGID@,$NEED_SETGID,;t t
23504 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23505 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23506 s,@GETOPT_H@,$GETOPT_H,;t t
23507 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23508 s,@version@,$version,;t t
23509 s,@configuration@,$configuration,;t t
23510 s,@canonical@,$canonical,;t t
23511 s,@srcdir@,$srcdir,;t t
23512 s,@lispdir@,$lispdir,;t t
23513 s,@locallisppath@,$locallisppath,;t t
23514 s,@lisppath@,$lisppath,;t t
23515 s,@x_default_search_path@,$x_default_search_path,;t t
23516 s,@etcdir@,$etcdir,;t t
23517 s,@archlibdir@,$archlibdir,;t t
23518 s,@docdir@,$docdir,;t t
23519 s,@bitmapdir@,$bitmapdir,;t t
23520 s,@gamedir@,$gamedir,;t t
23521 s,@gameuser@,$gameuser,;t t
23522 s,@c_switch_system@,$c_switch_system,;t t
23523 s,@c_switch_machine@,$c_switch_machine,;t t
23524 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23525 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23526 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23527 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23528 s,@machfile@,$machfile,;t t
23529 s,@opsysfile@,$opsysfile,;t t
23530 s,@carbon_appdir@,$carbon_appdir,;t t
23531 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23536 cat >>$CONFIG_STATUS <<\_ACEOF
23537 # Split the substitutions into bite-sized pieces for seds with
23538 # small command number limits, like on Digital OSF/1 and HP-UX.
23539 ac_max_sed_lines
=48
23540 ac_sed_frag
=1 # Number of current file.
23541 ac_beg
=1 # First line for current file.
23542 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23545 while $ac_more_lines; do
23546 if test $ac_beg -gt 1; then
23547 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23549 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23551 if test ! -s $tmp/subs.frag
; then
23552 ac_more_lines
=false
23554 # The purpose of the label and of the branching condition is to
23555 # speed up the sed processing (if there are no `@' at all, there
23556 # is no need to browse any of the substitutions).
23557 # These are the two extra sed commands mentioned above.
23559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23560 if test -z "$ac_sed_cmds"; then
23561 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23563 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23565 ac_sed_frag
=`expr $ac_sed_frag + 1`
23567 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23570 if test -z "$ac_sed_cmds"; then
23573 fi # test -n "$CONFIG_FILES"
23576 cat >>$CONFIG_STATUS <<\_ACEOF
23577 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23580 - |
*:- |
*:-:* ) # input from stdin
23582 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23583 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23584 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23585 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23586 * ) ac_file_in
=$ac_file.
in ;;
23589 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23590 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23592 X"$ac_file" : 'X\(//\)[^/]' \| \
23593 X"$ac_file" : 'X\(//\)$' \| \
23594 X"$ac_file" : 'X\(/\)' \| \
23595 . : '\(.\)' 2>/dev/null ||
23597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23599 /^X\(\/\/\)$/{ s//\1/; q; }
23600 /^X\(\/\).*/{ s//\1/; q; }
23602 { if $as_mkdir_p; then
23607 while test ! -d "$as_dir"; do
23608 as_dirs
="$as_dir $as_dirs"
23609 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23611 X"$as_dir" : 'X\(//\)[^/]' \| \
23612 X"$as_dir" : 'X\(//\)$' \| \
23613 X"$as_dir" : 'X\(/\)' \| \
23614 . : '\(.\)' 2>/dev/null ||
23616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23618 /^X\(\/\/\)$/{ s//\1/; q; }
23619 /^X\(\/\).*/{ s//\1/; q; }
23622 test ! -n "$as_dirs" || mkdir
$as_dirs
23623 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23625 { (exit 1); exit 1; }; }; }
23629 if test "$ac_dir" != .
; then
23630 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23631 # A "../" for each directory in $ac_dir_suffix.
23632 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23634 ac_dir_suffix
= ac_top_builddir
=
23638 .
) # No --srcdir option. We are building in place.
23640 if test -z "$ac_top_builddir"; then
23643 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23645 [\\/]* | ?
:[\\/]* ) # Absolute path.
23646 ac_srcdir
=$srcdir$ac_dir_suffix;
23647 ac_top_srcdir
=$srcdir ;;
23648 *) # Relative path.
23649 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23650 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23653 # Do not use `cd foo && pwd` to compute absolute paths, because
23654 # the directories may not exist.
23656 .
) ac_abs_builddir
="$ac_dir";;
23659 .
) ac_abs_builddir
=`pwd`;;
23660 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23661 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23664 case $ac_abs_builddir in
23665 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23667 case ${ac_top_builddir}.
in
23668 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23669 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23670 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23673 case $ac_abs_builddir in
23674 .
) ac_abs_srcdir
=$ac_srcdir;;
23677 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23678 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23679 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23682 case $ac_abs_builddir in
23683 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23685 case $ac_top_srcdir in
23686 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23687 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23688 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23694 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23695 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23698 # Let's still pretend it is `configure' which instantiates (i.e., don't
23699 # use $as_me), people would be surprised to read:
23700 # /* config.h. Generated by config.status. */
23701 if test x
"$ac_file" = x-
; then
23704 configure_input
="$ac_file. "
23706 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23707 sed 's,.*/,,'` by configure."
23709 # First look for the input files in the build tree, otherwise in the
23711 ac_file_inputs
=`IFS=:
23712 for f in $ac_file_in; do
23714 -) echo $tmp/stdin ;;
23716 # Absolute (can't be DOS-style, as IFS=:)
23717 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23718 echo "$as_me: error: cannot find input file: $f" >&2;}
23719 { (exit 1); exit 1; }; }
23722 if test -f "$f"; then
23725 elif test -f "$srcdir/$f"; then
23730 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23731 echo "$as_me: error: cannot find input file: $f" >&2;}
23732 { (exit 1); exit 1; }; }
23735 done` ||
{ (exit 1); exit 1; }
23737 if test x
"$ac_file" != x-
; then
23738 { echo "$as_me:$LINENO: creating $ac_file" >&5
23739 echo "$as_me: creating $ac_file" >&6;}
23743 cat >>$CONFIG_STATUS <<_ACEOF
23747 cat >>$CONFIG_STATUS <<\_ACEOF
23749 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23750 s
,@configure_input@
,$configure_input,;t t
23751 s
,@srcdir@
,$ac_srcdir,;t t
23752 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23753 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23754 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23755 s
,@builddir@
,$ac_builddir,;t t
23756 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23757 s
,@top_builddir@
,$ac_top_builddir,;t t
23758 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23759 s
,@INSTALL@
,$ac_INSTALL,;t t
23760 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23762 if test x"$ac_file" != x-; then
23763 mv $tmp/out $ac_file
23771 cat >>$CONFIG_STATUS <<\_ACEOF
23774 # CONFIG_HEADER section.
23777 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23778 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23780 # ac_d sets the value in "#define NAME VALUE" lines.
23781 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23782 ac_dB
='[ ].*$,\1#\2'
23785 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23786 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23787 ac_uB
='$,\1#\2define\3'
23791 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23794 - |
*:- |
*:-:* ) # input from stdin
23796 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23797 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23798 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23799 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23800 * ) ac_file_in
=$ac_file.
in ;;
23803 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23804 echo "$as_me: creating $ac_file" >&6;}
23806 # First look for the input files in the build tree, otherwise in the
23808 ac_file_inputs
=`IFS=:
23809 for f in $ac_file_in; do
23811 -) echo $tmp/stdin ;;
23813 # Absolute (can't be DOS-style, as IFS=:)
23814 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23815 echo "$as_me: error: cannot find input file: $f" >&2;}
23816 { (exit 1); exit 1; }; }
23817 # Do quote $f, to prevent DOS paths from being IFS'd.
23820 if test -f "$f"; then
23823 elif test -f "$srcdir/$f"; then
23828 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23829 echo "$as_me: error: cannot find input file: $f" >&2;}
23830 { (exit 1); exit 1; }; }
23833 done` ||
{ (exit 1); exit 1; }
23834 # Remove the trailing spaces.
23835 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23839 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23840 # `conftest.undefs', that substitutes the proper values into
23841 # config.h.in to produce config.h. The first handles `#define'
23842 # templates, and the second `#undef' templates.
23843 # And first: Protect against being on the right side of a sed subst in
23844 # config.status. Protect against being in an unquoted here document
23845 # in config.status.
23846 rm -f conftest.defines conftest.undefs
23847 # Using a here document instead of a string reduces the quoting nightmare.
23848 # Putting comments in sed scripts is not portable.
23850 # `end' is used to avoid that the second main sed command (meant for
23851 # 0-ary CPP macros) applies to n-ary macro definitions.
23852 # See the Autoconf documentation for `clear'.
23853 cat >confdef2sed.
sed <<\_ACEOF
23858 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23860 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23863 # If some macros were called several times there might be several times
23864 # the same #defines, which is useless. Nevertheless, we may not want to
23865 # sort them, since we want the *last* AC-DEFINE to be honored.
23866 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23867 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23868 rm -f confdef2sed.sed
23870 # This sed command replaces #undef with comments. This is necessary, for
23871 # example, in the case of _POSIX_SOURCE, which is predefined and required
23872 # on some systems where configure will not decide to define it.
23873 cat >>conftest.undefs <<\_ACEOF
23874 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23877 # Break up conftest.defines because some shells have a limit on the size
23878 # of here documents, and old seds have small limits too (100 cmds).
23879 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23880 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23881 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23882 echo ' :' >>$CONFIG_STATUS
23883 rm -f conftest.tail
23884 while grep . conftest.defines >/dev/null
23886 # Write a limited-size here document to $tmp/defines.sed.
23887 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23888 # Speed up: don't consider the non `#define' lines.
23889 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23890 # Work around the forget-to-reset-the-flag bug.
23891 echo 't clr' >>$CONFIG_STATUS
23892 echo ': clr' >>$CONFIG_STATUS
23893 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23895 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23897 mv $tmp/out $tmp/in
23899 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23900 rm -f conftest.defines
23901 mv conftest.
tail conftest.defines
23903 rm -f conftest.defines
23904 echo ' fi # grep' >>$CONFIG_STATUS
23905 echo >>$CONFIG_STATUS
23907 # Break up conftest.undefs because some shells have a limit on the size
23908 # of here documents, and old seds have small limits too (100 cmds).
23909 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23910 rm -f conftest.
tail
23911 while grep . conftest.undefs
>/dev
/null
23913 # Write a limited-size here document to $tmp/undefs.sed.
23914 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23915 # Speed up: don't consider the non
`#undef'
23916 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23917 # Work around the forget-to-reset-the-flag bug.
23918 echo 't clr' >>$CONFIG_STATUS
23919 echo ': clr' >>$CONFIG_STATUS
23920 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23922 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23924 mv $tmp/out $tmp/in
23926 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23927 rm -f conftest.undefs
23928 mv conftest.tail conftest.undefs
23930 rm -f conftest.undefs
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23934 # use $as_me), people would be surprised to read:
23935 # /* config.h. Generated by config.status. */
23936 if test x
"$ac_file" = x-
; then
23937 echo "/* Generated by configure. */" >$tmp/config.h
23939 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23941 cat $tmp/in >>$tmp/config.h
23943 if test x
"$ac_file" != x-
; then
23944 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23945 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23946 echo "$as_me: $ac_file is unchanged" >&6;}
23948 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23950 X"$ac_file" : 'X\(//\)[^/]' \| \
23951 X"$ac_file" : 'X\(//\)$' \| \
23952 X"$ac_file" : 'X\(/\)' \| \
23953 . : '\(.\)' 2>/dev/null ||
23955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23957 /^X\(\/\/\)$/{ s//\1/; q; }
23958 /^X\(\/\).*/{ s//\1/; q; }
23960 { if $as_mkdir_p; then
23965 while test ! -d "$as_dir"; do
23966 as_dirs
="$as_dir $as_dirs"
23967 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23969 X"$as_dir" : 'X\(//\)[^/]' \| \
23970 X"$as_dir" : 'X\(//\)$' \| \
23971 X"$as_dir" : 'X\(/\)' \| \
23972 . : '\(.\)' 2>/dev/null ||
23974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23976 /^X\(\/\/\)$/{ s//\1/; q; }
23977 /^X\(\/\).*/{ s//\1/; q; }
23980 test ! -n "$as_dirs" || mkdir
$as_dirs
23981 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23982 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23983 { (exit 1); exit 1; }; }; }
23986 mv $tmp/config.h
$ac_file
23990 rm -f $tmp/config.h
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23997 # CONFIG_COMMANDS section.
23999 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24000 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24001 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24002 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24003 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24004 X"$ac_dest" : 'X\(//\)[^/]' \| \
24005 X"$ac_dest" : 'X\(//\)$' \| \
24006 X"$ac_dest" : 'X\(/\)' \| \
24007 . : '\(.\)' 2>/dev/null ||
24009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24011 /^X\(\/\/\)$/{ s//\1/; q; }
24012 /^X\(\/\).*/{ s//\1/; q; }
24014 { if $as_mkdir_p; then
24019 while test ! -d "$as_dir"; do
24020 as_dirs
="$as_dir $as_dirs"
24021 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24023 X"$as_dir" : 'X\(//\)[^/]' \| \
24024 X"$as_dir" : 'X\(//\)$' \| \
24025 X"$as_dir" : 'X\(/\)' \| \
24026 . : '\(.\)' 2>/dev/null ||
24028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24030 /^X\(\/\/\)$/{ s//\1/; q; }
24031 /^X\(\/\).*/{ s//\1/; q; }
24034 test ! -n "$as_dirs" || mkdir
$as_dirs
24035 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24036 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24037 { (exit 1); exit 1; }; }; }
24041 if test "$ac_dir" != .
; then
24042 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24043 # A "../" for each directory in $ac_dir_suffix.
24044 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24046 ac_dir_suffix
= ac_top_builddir
=
24050 .
) # No --srcdir option. We are building in place.
24052 if test -z "$ac_top_builddir"; then
24055 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24057 [\\/]* | ?
:[\\/]* ) # Absolute path.
24058 ac_srcdir
=$srcdir$ac_dir_suffix;
24059 ac_top_srcdir
=$srcdir ;;
24060 *) # Relative path.
24061 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24062 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24065 # Do not use `cd foo && pwd` to compute absolute paths, because
24066 # the directories may not exist.
24068 .
) ac_abs_builddir
="$ac_dir";;
24071 .
) ac_abs_builddir
=`pwd`;;
24072 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24073 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24076 case $ac_abs_builddir in
24077 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24079 case ${ac_top_builddir}.
in
24080 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24081 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24082 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24085 case $ac_abs_builddir in
24086 .
) ac_abs_srcdir
=$ac_srcdir;;
24089 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24090 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24091 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24094 case $ac_abs_builddir in
24095 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24097 case $ac_top_srcdir in
24098 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24099 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24100 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24105 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24106 echo "$as_me: executing $ac_dest commands" >&6;}
24110 ### Make the necessary directories, if they don't exist.
24111 for dir
in etc lisp
; do
24112 test -d ${dir} || mkdir
${dir}
24115 # Build src/Makefile from ${srcdir}/src/Makefile.c
24116 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24117 # This must be done after src/config.h is built, since we rely on that file.
24119 # Now get this: Some word that is part of the ${srcdir} directory name
24120 # or the ${configuration} value might, just might, happen to be an
24121 # identifier like `sun4' or `i386' or something, and be predefined by
24122 # the C preprocessor to some helpful value like 1, or maybe the empty
24123 # string. Needless to say consequent macro substitutions are less
24124 # than conducive to the makefile finding the correct directory.
24125 undefs
="`echo $top_srcdir $configuration $canonical |
24126 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24127 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24130 echo creating src
/epaths.h
24131 ${MAKE-make} epaths-force
24133 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24134 # `..' to `. .' unless invoked with -traditional
24136 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24137 CPPFLAGS
="$CPPFLAGS -traditional"
24140 echo creating lib-src
/Makefile
24142 rm -f junk.c junk1.c junk2.c
24143 sed -e '/start of cpp stuff/q' \
24144 < Makefile.c
> junk1.c
24145 sed -e '1,/start of cpp stuff/d'\
24146 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24147 < Makefile.c
> junk.c
24148 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24149 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24150 cat junk1.c junk2.c
> Makefile.new
24151 rm -f junk.c junk1.c junk2.c
24152 chmod 444 Makefile.new
24153 mv -f Makefile.new Makefile
24156 echo creating src
/Makefile
24158 rm -f junk.c junk1.c junk2.c
24159 sed -e '/start of cpp stuff/q' \
24160 < Makefile.c
> junk1.c
24161 sed -e '1,/start of cpp stuff/d'\
24162 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24163 < Makefile.c
> junk.c
24164 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24165 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24166 cat junk1.c junk2.c
> Makefile.new
24167 rm -f junk.c junk1.c junk2.c
24168 chmod 444 Makefile.new
24169 mv -f Makefile.new Makefile
24172 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24173 echo creating src
/.gdbinit
24174 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24177 # This is how we know whether to re-run configure in certain cases.
24178 touch src
/config.stamp
24185 cat >>$CONFIG_STATUS <<\_ACEOF
24187 { (exit 0); exit 0; }
24189 chmod +x
$CONFIG_STATUS
24190 ac_clean_files
=$ac_clean_files_save
24193 # configure is writing to config.log, and then calls config.status.
24194 # config.status does its own redirection, appending to config.log.
24195 # Unfortunately, on DOS this fails, as config.log is still kept open
24196 # by configure, so config.status won't be able to write to it; its
24197 # output is simply discarded. So we exec the FD to /dev/null,
24198 # effectively closing config.log, so it can be properly (re)opened and
24199 # appended to by config.status. When coming back to configure, we
24200 # need to make the FD available again.
24201 if test "$no_create" != yes; then
24203 ac_config_status_args
=
24204 test "$silent" = yes &&
24205 ac_config_status_args
="$ac_config_status_args --quiet"
24207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24210 # would make configure fail if this is the last instruction.
24211 $ac_cs_success ||
{ (exit 1); exit 1; }