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'
1358 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
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 ia64-
*-freebsd*) machine
=ia64
;;
1721 sparc64-
*-freebsd*) machine
=sparc
;;
1722 powerpc-
*-freebsd*) machine
=macppc
;;
1723 i
[3456]86-*-freebsd*) machine
=intel386
;;
1724 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1731 if test -f /usr
/lib
/crti.o
; then
1733 cat >>confdefs.h
<<\_ACEOF
1739 case "${canonical}" in
1740 alpha
*-*-netbsd*) machine
=alpha
;;
1741 i
[3456]86-*-netbsd*) machine
=intel386
;;
1743 # This is somewhat bogus.
1744 machine
=hp9000s300
;;
1745 powerpc-apple-netbsd
*) machine
=macppc
;;
1746 mips-
*-netbsd*) machine
=pmax
;;
1747 mipsel-
*-netbsd*) machine
=pmax
;;
1748 mipseb-
*-netbsd*) machine
=pmax
;;
1749 ns32k-
*-netbsd*) machine
=ns32000
;;
1750 powerpc-
*-netbsd*) machine
=macppc
;;
1751 sparc
*-*-netbsd*) machine
=sparc
;;
1752 vax-
*-netbsd*) machine
=vax
;;
1753 arm-
*-netbsd*) machine
=arm
;;
1760 case "${canonical}" in
1761 alpha
*-*-openbsd*) machine
=alpha
;;
1762 i386-
*-openbsd*) machine
=intel386
;;
1763 x86_64-
*-openbsd*) machine
=amdx86-64
;;
1764 m68k-
*-openbsd*) machine
=hp9000s300
;;
1765 mipsel-
*-openbsd*) machine
=pmax
;;
1766 ns32k-
*-openbsd*) machine
=ns32000
;;
1767 sparc-
*-openbsd*) machine
=sparc
;;
1768 vax-
*-openbsd*) machine
=vax
;;
1775 case "${canonical}" in
1776 i
[3456]86-*-lynxos*) machine
=intel386
;;
1777 powerpc-
*-lynxos*) machine
=powerpc
;;
1782 arm-acorn-riscix1.1
* )
1783 machine
=acorn opsys
=riscix1-1
1785 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine
=acorn opsys
=riscix12
1794 case "${canonical}" in
1795 i
[345]86-*-bsdi*) machine
=intel386
;;
1796 sparc-
*-bsdi*) machine
=sparc
;;
1797 powerpc-
*-bsdi*) machine
=macppc
;;
1799 case "${canonical}" in
1800 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1801 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1802 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1803 *-*-bsdi3* ) opsys
=bsdos3
;;
1804 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1815 machine
=alliant4 opsys
=bsd4-2
1818 machine
=alliant-2800 opsys
=bsd4-3
1821 ## Alpha (DEC) machines.
1823 machine
=alpha opsys
=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1826 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP
=/usr
/bin
/cpp
1832 case "${canonical}" in
1833 alpha
*-dec-osf[5-9]*)
1838 alpha
*-*-linux-gnu* )
1839 machine
=alpha opsys
=gnu-linux
1843 machine
=arm opsys
=gnu-linux
1848 machine
=altos opsys
=usg5-2
1853 machine
=amdahl opsys
=usg5-2-2
1856 ## Apollo, Domain/OS
1858 machine
=apollo opsys
=bsd4-3
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1863 machine
=att3b opsys
=usg5-2-2
1866 ## AT&T 3b1 - The Mighty Unix PC!
1868 machine
=7300 opsys
=usg5-2-2
1873 machine
=ibmrs6000 opsys
=aix3-2
1878 machine
=dpx2 opsys
=usg5-3
1883 machine
=sps7 opsys
=usg5-2
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd
* )
1893 machine
=celerity opsys
=bsd4-2
1897 ## What operating systems does this chip run that Emacs has been
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1906 mips-compaq-nonstopux
* )
1907 machine
=nonstopux opsys
=nonstopux
1911 *-convex-bsd* |
*-convex-convexos* )
1912 machine
=convex opsys
=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP
="cc -E -P"
1918 i
[3456]86-cubix-sysv* )
1919 machine
=intel386 opsys
=usg5-3
1923 cydra
*-cydrome-sysv* )
1924 machine
=cydra5 opsys
=usg5-3
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1934 machine
=aviion opsys
=dgux4
1936 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine
=aviion opsys
=dgux5-4-3
1941 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1942 machine
=aviion opsys
=dgux5-4r2
1945 machine
=aviion opsys
=dgux
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i
[345]86-dg-dguxR4* )
1952 machine
=aviion-intel opsys
=dgux4
1956 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1957 machine
=pmax opsys
=bsd4-2
1959 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1960 machine
=pmax opsys
=bsd4-3
1963 machine
=pmax opsys
=ultrix4-3
1966 machine
=pmax opsys
=osf1
1968 mips-dec-mach_bsd4.3
* )
1969 machine
=pmax opsys
=mach-bsd4-3
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1974 machine
=delta opsys
=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1977 if test -s /etc
/167config
1978 then CC
="gnucc -m68040"
1979 else CC
="gnucc -m68881"
1982 if test -z "`type gcc | grep 'not found'`"
1988 m88k-motorola-sysv4
* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine
=delta88k opsys
=usg5-4-2
1995 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1996 machine
=delta88k opsys
=usg5-3
2001 machine
=dual opsys
=usg5-2
2003 m68
*-dual-uniplus* )
2004 machine
=dual opsys
=unipl5-2
2009 machine
=elxsi opsys
=usg5-2
2014 machine
=ns16000 opsys
=umax
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2020 ## Gould Power Node and NP1
2022 machine
=gould opsys
=bsd4-2
2025 machine
=gould opsys
=bsd4-3
2028 machine
=gould-np1 opsys
=bsd4-3
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2037 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2039 NON_GNU_CPP
="/lib/cpp"
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2043 machine
=nh3000 opsys
=cxux
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix
)
2047 machine
=nh6000 opsys
=powerunix
2048 NON_GNU_CPP
="cc -Xo -E -P"
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1
-hitachi-hiuxmpp* )
2052 machine
=sr2k opsys
=hiuxmpp
2054 hppa1.1
-hitachi-hiuxwe2* )
2055 machine
=sr2k opsys
=hiuxwe2
2058 xps
*-honeywell-sysv* )
2059 machine
=xps100 opsys
=usg5-2
2062 ## HP 9000 series 200 or 300
2064 machine
=hp9000s300 opsys
=bsd4-3
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2072 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2073 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2074 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2075 *) machine
=hp9000s300 opsys
=hpux
;;
2079 ## HP 9000 series 700 and 800, running HP/UX
2081 machine
=hp800 opsys
=hpux
2084 machine
=hp800 opsys
=hpux8
2086 hppa
*-hp-hpux9shr* )
2087 machine
=hp800 opsys
=hpux9shr
2090 machine
=hp800 opsys
=hpux9
2092 hppa
*-hp-hpux10.2
* )
2093 machine
=hp800 opsys
=hpux10-20
2096 machine
=hp800 opsys
=hpux10
2098 hppa
*-hp-hpux1[1-9]* )
2099 machine
=hp800 opsys
=hpux11
2100 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2103 hppa
*-*-linux-gnu* )
2104 machine
=hp800 opsys
=gnu-linux
2107 ## HP 9000 series 700 and 800, running HP/UX
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2114 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2115 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2116 *) machine
=hp800 opsys
=hpux10
;;
2120 machine
=hp800 opsys
=nextstep
2125 machine
=orion opsys
=bsd4-2
2127 clipper-orion-bsd
* )
2128 machine
=orion105 opsys
=bsd4-2
2132 i
[3456]86-ibm-aix1.1
* )
2133 machine
=ibmps2-aix opsys
=usg5-2-2
2135 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2136 machine
=ibmps2-aix opsys
=usg5-3
2139 machine
=ibm370aix opsys
=usg5-3
2142 machine
=ibms390 opsys
=gnu-linux
2144 s390x-
*-linux-gnu* )
2145 machine
=ibms390x opsys
=gnu-linux
2147 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2148 machine
=ibmrs6000 opsys
=aix3-1
2150 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2151 machine
=ibmrs6000 opsys
=aix3-2-5
2153 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2154 machine
=ibmrs6000 opsys
=aix4-1
2156 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2157 machine
=ibmrs6000 opsys
=aix4-2
2159 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2160 machine
=ibmrs6000 opsys
=aix4-2
2162 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2163 machine
=ibmrs6000 opsys
=aix4
2165 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2166 machine
=ibmrs6000 opsys
=aix4-1
2168 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2169 machine
=ibmrs6000 opsys
=aix3-2
2172 machine
=ibmrt opsys
=bsd4-3
2175 machine
=ibmrt opsys
=bsd4-2
2178 machine
=ibmrt opsys
=bsd4-3
2181 machine
=ibmrt opsys
=bsd4-2
2184 machine
=ibmrt opsys
=bsd4-3
2187 machine
=ibmrt opsys
=bsd4-3
2190 machine
=ibmrt-aix opsys
=usg5-2-2
2193 ## Integrated Solutions `Optimum V'
2195 machine
=isi-ov opsys
=bsd4-2
2198 machine
=isi-ov opsys
=bsd4-3
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i
[3456]86-intsys-sysv* )
2203 machine
=is386 opsys
=usg5-2-2
2207 i
[3456]86-prime-sysv* )
2208 machine
=i386 opsys
=usg5-3
2211 ## Sequent Symmetry running Dynix
2212 i
[3456]86-sequent-bsd* )
2213 machine
=symmetry opsys
=bsd4-3
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2218 machine
=sequent-ptx opsys
=ptx4
2219 NON_GNU_CPP
=/lib
/cpp
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i
[3456]86-sequent-ptx* )
2225 machine
=sequent-ptx opsys
=ptx
2226 NON_GNU_CPP
="/lib/cpp"
2229 ## ncr machine running svr4.3.
2230 i
[3456]86-ncr-sysv4.3
)
2231 machine
=ncr386 opsys
=usg5-4-3
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i
[3456]86-ncr-sysv* )
2237 machine
=ncr386 opsys
=usg5-4-2
2240 ## Intel Paragon OSF/1
2242 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2247 machine
=i860 opsys
=usg5-4
2248 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2252 ## Macintosh PowerPC
2253 powerpc
*-*-linux-gnu* )
2254 machine
=macppc opsys
=gnu-linux
2257 ## Masscomp machines
2258 m68
*-masscomp-rtu* )
2259 machine
=masscomp opsys
=rtu
2262 ## Megatest machines
2263 m68
*-megatest-bsd* )
2264 machine
=mega68 opsys
=bsd4-2
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2280 ## Fall through to the general code at the bottom to decide on the OS.
2282 mips-mips-riscos4
* )
2283 machine
=mips4 opsys
=bsd4-3
2284 NON_GNU_CC
="cc -systype bsd43"
2285 NON_GNU_CPP
="cc -systype bsd43 -E"
2287 mips-mips-riscos5
* )
2288 machine
=mips4 opsys
=riscos5
2289 NON_GNU_CC
="cc -systype bsd43"
2290 NON_GNU_CPP
="cc -systype bsd43 -E"
2293 machine
=mips opsys
=bsd4-3
2296 machine
=mips opsys
=usg5-2-2
2300 m68
*-next-* | m68k-
*-nextstep* )
2301 machine
=m68k opsys
=nextstep
2304 ## The complete machine from National Semiconductor
2306 machine
=ns32000 opsys
=usg5-2
2310 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2311 machine
=tower32 opsys
=usg5-2-2
2313 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2314 machine
=tower32v3 opsys
=usg5-3
2319 machine
=ews4800 opsys
=ux4800
2322 ## Nixdorf Targon 31
2323 m68
*-nixdorf-sysv* )
2324 machine
=targon31 opsys
=usg5-2-2
2329 machine
=nu opsys
=usg5-2
2334 machine
=plexus opsys
=usg5-2
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd
* )
2341 machine
=pyramid opsys
=bsd4-2
2345 ns32k-sequent-bsd4.2
* )
2346 machine
=sequent opsys
=bsd4-2
2348 ns32k-sequent-bsd4.3
* )
2349 machine
=sequent opsys
=bsd4-3
2353 mips-siemens-sysv
* | mips-sni-sysv
*)
2354 machine
=mips-siemens opsys
=usg5-4
2355 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2356 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2362 machine
=irist opsys
=iris3-5
2364 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2365 machine
=irist opsys
=iris3-6
2369 machine
=iris4d opsys
=irix3-3
2372 machine
=iris4d opsys
=irix4-0
2375 machine
=iris4d opsys
=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2383 machine
=iris4d opsys
=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS
=-32
2390 mips-sgi-irix5.
[01]* )
2391 machine
=iris4d opsys
=irix5-0
2393 mips-sgi-irix5
* | mips-sgi-irix
* )
2394 machine
=iris4d opsys
=irix5-2
2399 machine
=news opsys
=bsd4-2
2402 machine
=news opsys
=bsd4-3
2404 m68
*-sony-newsos3* | m68
*-sony-news3*)
2405 machine
=news opsys
=bsd4-3
2407 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2408 machine
=news-risc opsys
=bsd4-3
2410 mips-sony-newsos6
* )
2411 machine
=news-r6 opsys
=newsos6
2414 machine
=news-risc opsys
=newsos5
2419 machine
=stride opsys
=usg5-2
2423 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2424 machine
=sparc opsys
=gnu-linux
2427 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2428 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2429 | rs6000-
*-solaris2*)
2430 case "${canonical}" in
2431 m68
*-sunos1* ) machine
=sun1
;;
2432 m68
*-sunos2* ) machine
=sun2
;;
2433 m68
* ) machine
=sun3
;;
2434 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2435 i
[3456]86-*-* ) machine
=intel386
;;
2436 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2437 powerpcle
* ) machine
=powerpcle
;;
2438 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2439 sparc
* ) machine
=sparc
;;
2442 case "${canonical}" in
2443 ## The Sun386 didn't get past 4.0.
2444 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2445 *-sunos4.0
* ) opsys
=sunos4-0
;;
2446 *-sunos4.1.
[3-9]*noshare
)
2447 ## This name is sunos413 instead of sunos4-1-3
2448 ## to avoid a file name conflict on MSDOS.
2450 NON_GNU_CPP
=/usr
/lib
/cpp
2451 NON_GCC_TEST_OPTIONS
=-Bstatic
2452 GCC_TEST_OPTIONS
=-static
2454 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2456 NON_GNU_CPP
=/usr
/lib
/cpp
2458 *-sunos4* |
*-sunos )
2460 NON_GCC_TEST_OPTIONS
=-Bstatic
2461 GCC_TEST_OPTIONS
=-static
2463 *-sunos5.3
* |
*-solaris2.3
* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.4
* |
*-solaris2.4
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5.5
* |
*-solaris2.5
* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2477 *-sunos5.6
* |
*-solaris2.6
* )
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2482 *-sunos5* |
*-solaris* )
2484 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2488 ## Watch out for a compiler that we know will not work.
2489 case "${canonical}" in
2490 *-solaris* |
*-sunos5* )
2491 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2492 ## /usr/ucb/cc doesn't work;
2493 ## we should find some other compiler that does work.
2501 machine
=sparc opsys
=nextstep
2505 m68
*-tadpole-sysv* )
2506 machine
=tad68k opsys
=usg5-3
2510 tahoe-tahoe-bsd4.2
* )
2511 machine
=tahoe opsys
=bsd4-2
2513 tahoe-tahoe-bsd4.3
* )
2514 machine
=tahoe opsys
=bsd4-3
2517 ## Tandem Integrity S2
2519 machine
=tandem-s2 opsys
=usg5-3
2523 m88k-tektronix-sysv3
* )
2524 machine
=tekxd88 opsys
=usg5-3
2527 ## Tektronix 16000 box (6130?)
2528 ns16k-tektronix-bsd
* )
2529 machine
=ns16000 opsys
=bsd4-2
2532 ## src/m/tek4300.h hints that this is a m68k machine.
2533 m68
*-tektronix-bsd* )
2534 machine
=tek4300 opsys
=bsd4-3
2538 ## We seem to have lost the machine-description file titan.h!
2540 machine
=titan opsys
=usg5-3
2543 ## Ustation E30 (SS5E)
2544 m68
*-unisys-uniplus* )
2545 machine
=ustation opsystem
=unipl5-2
2551 case "${canonical}" in
2552 *-bsd4.1
* ) opsys
=bsd4-1
;;
2553 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2554 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2555 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2556 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2557 *-vms* ) opsys
=vms
;;
2563 ns16k-whitechapel-
* )
2565 ## We don't know what sort of OS runs on these; we'll let the
2566 ## operating system guessing code below try.
2571 machine
=wicat opsys
=usg5-2
2576 machine
=ia64 opsys
=gnu-linux
2579 ## Intel 386 machines where we don't care about the manufacturer
2582 case "${canonical}" in
2583 *-cygwin ) opsys
=cygwin
;;
2584 *-darwin* ) opsys
=darwin
2585 CPP
="${CC-cc} -E -no-cpp-precomp"
2587 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2588 *-isc2.2
* ) opsys
=isc2-2
;;
2589 *-isc4.0
* ) opsys
=isc4-0
;;
2590 *-isc4.
* ) opsys
=isc4-1
2591 GCC_TEST_OPTIONS
=-posix
2592 NON_GCC_TEST_OPTIONS
=-Xp
2594 *-isc* ) opsys
=isc3-0
;;
2595 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2596 *-esix* ) opsys
=esix
;;
2597 *-xenix* ) opsys
=xenix
;;
2598 *-linux-gnu* ) opsys
=gnu-linux
;;
2599 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2600 *-sco3.2v5
* ) opsys
=sco5
2601 NON_GNU_CPP
=/lib
/cpp
2602 # Prevent -belf from being passed to $CPP.
2603 # /lib/cpp does not accept it.
2604 OVERRIDE_CPPFLAGS
=" "
2606 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2607 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2608 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2609 *-386bsd* ) opsys
=386bsd
;;
2610 *-nextstep* ) opsys
=nextstep
;;
2611 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2615 ## m68k Linux-based GNU system
2617 machine
=m68k opsys
=gnu-linux
2620 ## Mips Linux-based GNU system
2621 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2622 machine
=mips opsys
=gnu-linux
2626 sparc-fujitsu-sysv4
* )
2627 machine
=sparc opsys
=uxpds
2628 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2633 f301-fujitsu-uxpv4.1
)
2634 machine
=f301 opsys
=uxpv
2637 ## Darwin / Mac OS X
2638 powerpc-apple-darwin
* )
2639 machine
=powermac opsys
=darwin
2640 # Define CPP as follows to make autoconf work correctly.
2641 CPP
="${CC-cc} -E -no-cpp-precomp"
2642 # Use fink packages if available.
2643 if test -d /sw
/include
&& test -d /sw
/lib
; then
2644 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2645 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2646 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2650 ## AMD x86-64 Linux-based GNU system
2651 x86_64-
*-linux-gnu* )
2652 machine
=amdx86-64 opsys
=gnu-linux
2660 ### If the code above didn't choose an operating system, just choose
2661 ### an operating system based on the configuration name. You really
2662 ### only want to use this when you have no idea what the right
2663 ### operating system is; if you know what operating systems a machine
2664 ### runs, it's cleaner to make it explicit in the case statement
2666 if test x
"${opsys}" = x
; then
2667 case "${canonical}" in
2668 *-gnu* ) opsys
=gnu
;;
2669 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2670 *-bsd4.2
) opsys
=bsd4-2
;;
2671 *-bsd4.3
) opsys
=bsd4-3
;;
2672 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2673 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2674 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2675 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2676 *-sysv4.2uw
* ) opsys
=unixware
;;
2677 *-sysv5uw* ) opsys
=unixware
;;
2678 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2679 *-sysv4.1
* |
*-sysvr4.1
* )
2680 NON_GNU_CPP
=/usr
/lib
/cpp
2682 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2683 if [ x
$NON_GNU_CPP = x
]; then
2684 if [ -f /usr
/ccs
/lib
/cpp
]; then
2685 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2687 NON_GNU_CPP
=/lib
/cpp
2691 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2700 if test $unported = yes; then
2701 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2702 Check \`etc/MACHINES' for recognized configuration names." >&5
2703 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2704 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2705 { (exit 1); exit 1; }; }
2708 machfile
="m/${machine}.h"
2709 opsysfile
="s/${opsys}.h"
2712 #### Choose a compiler.
2713 test -n "$CC" && cc_specified
=yes
2715 # Save the value of CFLAGS that the user specified.
2716 SPECIFIED_CFLAGS
="$CFLAGS"
2719 "yes" ) CC
="gcc" GCC
=yes ;;
2720 "no" ) : ${CC=cc} ;;
2724 ac_cpp
='$CPP $CPPFLAGS'
2725 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC
="$CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2765 if test -z "$ac_cv_prog_CC"; then
2767 # Extract the first word of "gcc", so it can be a program name with args.
2768 set dummy gcc
; ac_word
=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir
=.
2782 for ac_exec_ext
in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_ac_ct_CC
="gcc"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2796 echo "${ECHO_T}$ac_ct_CC" >&6
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC
="$CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 echo "$as_me:$LINENO: result: $CC" >&5
2838 echo "${ECHO_T}$CC" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2845 if test -z "$ac_cv_prog_CC"; then
2847 # Extract the first word of "cc", so it can be a program name with args.
2848 set dummy cc
; ac_word
=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$ac_ct_CC"; then
2855 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_ac_ct_CC
="cc"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2874 if test -n "$ac_ct_CC"; then
2875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2876 echo "${ECHO_T}$ac_ct_CC" >&6
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2888 if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc
; ac_word
=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC
="$CC" # Let the user override the test.
2900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir
=.
2905 for ac_exec_ext
in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected
=yes
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 if test $ac_prog_rejected = yes; then
2919 # We found a bogon in the path, so make sure we never use it.
2920 set dummy
$ac_cv_prog_CC
2922 if test $# != 0; then
2923 # We chose a different compiler from the bogus one.
2924 # However, it has the same basename, so the bogon will be chosen
2925 # first if we set CC to just the basename; use the full file name.
2927 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2933 if test -n "$CC"; then
2934 echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2948 echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC
="$CC" # Let the user override the test.
2956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir
=.
2961 for ac_exec_ext
in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975 echo "${ECHO_T}$CC" >&6
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2981 test -n "$CC" && break
2984 if test -z "$CC"; then
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy
$ac_prog; ac_word
=$2
2990 echo "$as_me:$LINENO: checking for $ac_word" >&5
2991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir
=.
3003 for ac_exec_ext
in '' $ac_executable_extensions; do
3004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CC
="$ac_prog"
3006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3017 echo "${ECHO_T}$ac_ct_CC" >&6
3019 echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3023 test -n "$ac_ct_CC" && break
3032 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: no acceptable C compiler found in \$PATH
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3038 # Provide some information about the compiler.
3039 echo "$as_me:$LINENO:" \
3040 "checking for C compiler version" >&5
3041 ac_compiler
=`set X $ac_compile; echo $2`
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3043 (eval $ac_compiler --version </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); }
3052 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3053 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3058 cat >conftest.
$ac_ext <<_ACEOF
3061 cat confdefs.h
>>conftest.
$ac_ext
3062 cat >>conftest.
$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 ac_clean_files_save
=$ac_clean_files
3074 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3078 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3079 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3080 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3082 (eval $ac_link_default) 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # Find the output, starting from the most likely. This scheme is
3087 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3090 # Be careful to initialize this variable, since it used to be cached.
3091 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3093 # b.out is created by i960 compilers.
3094 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3096 test -f "$ac_file" ||
continue
3098 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3101 # This is the source file.
3104 # We found the default executable, but exeext='' is most
3108 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 # FIXME: I believe we export ac_cv_exeext for Libtool,
3110 # but it would be cool to find out if it's true. Does anybody
3111 # maintain Libtool? --akim.
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.
$ac_ext >&5
3122 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: C compiler cannot create executables
3125 See \`config.log' for more details." >&2;}
3126 { (exit 77); exit 77; }; }
3129 ac_exeext
=$ac_cv_exeext
3130 echo "$as_me:$LINENO: result: $ac_file" >&5
3131 echo "${ECHO_T}$ac_file" >&6
3133 # Check the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3136 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3137 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3138 # If not cross compiling, check that we can run a simple program.
3139 if test "$cross_compiling" != yes; then
3140 if { ac_try
='./$ac_file'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3148 if test "$cross_compiling" = maybe
; then
3151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3152 If you meant to cross compile, use \`--host'.
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3161 echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6
3164 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3165 ac_clean_files
=$ac_clean_files_save
3166 # Check the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3169 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3170 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3171 echo "${ECHO_T}$cross_compiling" >&6
3173 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3174 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; then
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3184 for ac_file
in conftest.exe conftest conftest.
*; do
3185 test -f "$ac_file" ||
continue
3187 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3188 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3196 See \`config.log' for more details." >&5
3197 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3202 rm -f conftest
$ac_cv_exeext
3203 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3204 echo "${ECHO_T}$ac_cv_exeext" >&6
3206 rm -f conftest.
$ac_ext
3207 EXEEXT
=$ac_cv_exeext
3209 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3210 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3211 if test "${ac_cv_objext+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 cat >conftest.
$ac_ext <<_ACEOF
3217 cat confdefs.h
>>conftest.
$ac_ext
3218 cat >>conftest.
$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3229 rm -f conftest.o conftest.obj
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; then
3235 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3237 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3238 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.
$ac_ext >&5
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3253 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3255 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3256 echo "${ECHO_T}$ac_cv_objext" >&6
3257 OBJEXT
=$ac_cv_objext
3259 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3260 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3261 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 cat >conftest.
$ac_ext <<_ACEOF
3267 cat confdefs.h
>>conftest.
$ac_ext
3268 cat >>conftest.
$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3282 rm -f conftest.
$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3286 grep -v '^ *+' conftest.er1
>conftest.err
3288 cat conftest.err
>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try
='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try
='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.
$ac_ext >&5
3311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3312 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3317 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3318 ac_test_CFLAGS
=${CFLAGS+set}
3319 ac_save_CFLAGS
=$CFLAGS
3321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3323 if test "${ac_cv_prog_cc_g+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 cat >conftest.
$ac_ext <<_ACEOF
3329 cat confdefs.h
>>conftest.
$ac_ext
3330 cat >>conftest.
$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3341 rm -f conftest.
$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1
>conftest.err
3347 cat conftest.err
>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try
='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try
='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.
$ac_ext >&5
3370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS
=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3383 if test "$GCC" = yes; then
3389 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3390 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3391 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 ac_cv_prog_cc_stdc
=no
3396 cat >conftest.
$ac_ext <<_ACEOF
3399 cat confdefs.h
>>conftest.
$ac_ext
3400 cat >>conftest.
$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3404 #include <sys/types.h>
3405 #include <sys/stat.h>
3406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407 struct buf { int x; };
3408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409 static char *e (p, i)
3415 static char *f (char * (*g) (char **, int), char **p, ...)
3420 s = g (p, va_arg (v,int));
3425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std1 is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std1. */
3432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3448 # Don't try gcc -ansi; that turns off useful extensions and
3449 # breaks some systems' header files.
3450 # AIX -qlanglvl=ansi
3451 # Ultrix and OSF/1 -std1
3452 # HP-UX 10.20 and later -Ae
3453 # HP-UX older versions -Aa -D_HPUX_SOURCE
3454 # SVR4 -Xc -D__EXTENSIONS__
3455 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3457 CC
="$ac_save_CC $ac_arg"
3458 rm -f conftest.
$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3462 grep -v '^ *+' conftest.er1
>conftest.err
3464 cat conftest.err
>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try
='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try
='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_prog_cc_stdc
=$ac_arg
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.
$ac_ext >&5
3487 rm -f conftest.err conftest.
$ac_objext
3489 rm -f conftest.
$ac_ext conftest.
$ac_objext
3494 case "x$ac_cv_prog_cc_stdc" in
3496 echo "$as_me:$LINENO: result: none needed" >&5
3497 echo "${ECHO_T}none needed" >&6 ;;
3499 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3501 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3504 # Some people use a C++ compiler to compile C. Since we use `exit',
3505 # in C++ we need to declare it. In case someone uses the same compiler
3506 # for both compiling C and C++ we need to have the C++ compiler decide
3507 # the declaration of exit, since it's the most demanding environment.
3508 cat >conftest.
$ac_ext <<_ACEOF
3513 rm -f conftest.
$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3517 grep -v '^ *+' conftest.er1
>conftest.err
3519 cat conftest.err
>&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try
='test -z "$ac_c_werror_flag"
3523 || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try
='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 for ac_declaration
in \
3537 'extern "C" void std::exit (int) throw (); using std::exit;' \
3538 'extern "C" void std::exit (int); using std::exit;' \
3539 'extern "C" void exit (int) throw ();' \
3540 'extern "C" void exit (int);' \
3543 cat >conftest.
$ac_ext <<_ACEOF
3546 cat confdefs.h
>>conftest.
$ac_ext
3547 cat >>conftest.
$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3559 rm -f conftest.
$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1
>conftest.err
3565 cat conftest.err
>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try
='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try
='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.
$ac_ext >&5
3588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3589 cat >conftest.
$ac_ext <<_ACEOF
3592 cat confdefs.h
>>conftest.
$ac_ext
3593 cat >>conftest.
$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3604 rm -f conftest.
$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3608 grep -v '^ *+' conftest.er1
>conftest.err
3610 cat conftest.err
>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try
='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try
='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3635 if test -n "$ac_declaration"; then
3636 echo '#ifdef __cplusplus' >>confdefs.h
3637 echo $ac_declaration >>confdefs.h
3638 echo '#endif' >>confdefs.h
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3648 ac_cpp
='$CPP $CPPFLAGS'
3649 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3659 #### Some systems specify a CPP to use unless we are using GCC.
3660 #### Now that we know whether we are using GCC, we can decide whether
3661 #### to use that one.
3662 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3667 #### Some systems specify a CC to use unless we are using GCC.
3668 #### Now that we know whether we are using GCC, we can decide whether
3669 #### to use that one.
3670 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3671 test x
$cc_specified != xyes
3676 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3678 CC
="$CC $GCC_TEST_OPTIONS"
3681 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3683 CC
="$CC $NON_GCC_TEST_OPTIONS"
3688 ac_cpp
='$CPP $CPPFLAGS'
3689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3692 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3694 # On Suns, sometimes $CPP names a directory.
3695 if test -n "$CPP" && test -d "$CPP"; then
3698 if test -z "$CPP"; then
3699 if test "${ac_cv_prog_CPP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 # Double quotes because CPP needs to be expanded
3703 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3706 for ac_c_preproc_warn_flag
in '' yes
3708 # Use a header file that comes with gcc, so configuring glibc
3709 # with a fresh cross-compiler works.
3710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3711 # <limits.h> exists even on freestanding compilers.
3712 # On the NeXT, cc -E runs the code through the compiler's parser,
3713 # not just through cpp. "Syntax error" is here to catch this case.
3714 cat >conftest.
$ac_ext <<_ACEOF
3717 cat confdefs.h
>>conftest.
$ac_ext
3718 cat >>conftest.
$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3721 # include <limits.h>
3723 # include <assert.h>
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3730 grep -v '^ *+' conftest.er1
>conftest.err
3732 cat conftest.err
>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev
/null
; then
3735 if test -s conftest.err
; then
3736 ac_cpp_err
=$ac_c_preproc_warn_flag
3737 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3744 if test -z "$ac_cpp_err"; then
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.
$ac_ext >&5
3750 # Broken: fails on valid input.
3753 rm -f conftest.err conftest.
$ac_ext
3755 # OK, works on sane cases. Now check whether non-existent headers
3756 # can be detected and how.
3757 cat >conftest.
$ac_ext <<_ACEOF
3760 cat confdefs.h
>>conftest.
$ac_ext
3761 cat >>conftest.
$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <ac_nonexistent.h>
3765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3766 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3768 grep -v '^ *+' conftest.er1
>conftest.err
3770 cat conftest.err
>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } >/dev
/null
; then
3773 if test -s conftest.err
; then
3774 ac_cpp_err
=$ac_c_preproc_warn_flag
3775 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3782 if test -z "$ac_cpp_err"; then
3783 # Broken: success on invalid input.
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.
$ac_ext >&5
3789 # Passes both tests.
3793 rm -f conftest.err conftest.
$ac_ext
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.err conftest.
$ac_ext
3798 if $ac_preproc_ok; then
3810 echo "$as_me:$LINENO: result: $CPP" >&5
3811 echo "${ECHO_T}$CPP" >&6
3813 for ac_c_preproc_warn_flag
in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3828 # include <limits.h>
3830 # include <assert.h>
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3837 grep -v '^ *+' conftest.er1
>conftest.err
3839 cat conftest.err
>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev
/null
; then
3842 if test -s conftest.err
; then
3843 ac_cpp_err
=$ac_c_preproc_warn_flag
3844 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3851 if test -z "$ac_cpp_err"; then
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.
$ac_ext >&5
3857 # Broken: fails on valid input.
3860 rm -f conftest.err conftest.
$ac_ext
3862 # OK, works on sane cases. Now check whether non-existent headers
3863 # can be detected and how.
3864 cat >conftest.
$ac_ext <<_ACEOF
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3873 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3875 grep -v '^ *+' conftest.er1
>conftest.err
3877 cat conftest.err
>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev
/null
; then
3880 if test -s conftest.err
; then
3881 ac_cpp_err
=$ac_c_preproc_warn_flag
3882 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3889 if test -z "$ac_cpp_err"; then
3890 # Broken: success on invalid input.
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.
$ac_ext >&5
3896 # Passes both tests.
3900 rm -f conftest.err conftest.
$ac_ext
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.
$ac_ext
3905 if $ac_preproc_ok; then
3908 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3909 See \`config.log' for more details." >&5
3910 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&2;}
3912 { (exit 1); exit 1; }; }
3916 ac_cpp
='$CPP $CPPFLAGS'
3917 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3922 echo "$as_me:$LINENO: checking for egrep" >&5
3923 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3924 if test "${ac_cv_prog_egrep+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3928 then ac_cv_prog_egrep
='grep -E'
3929 else ac_cv_prog_egrep
='egrep'
3932 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3933 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3934 EGREP
=$ac_cv_prog_egrep
3938 echo "$as_me:$LINENO: checking for AIX" >&5
3939 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3940 cat >conftest.
$ac_ext <<_ACEOF
3943 cat confdefs.h
>>conftest.
$ac_ext
3944 cat >>conftest.
$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "yes" >/dev
/null
2>&1; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955 cat >>confdefs.h
<<\_ACEOF
3956 #define _ALL_SOURCE 1
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3967 cat >>confdefs.h
<<\_ACEOF
3968 #define _GNU_SOURCE 1
3973 ### Use -Wno-pointer-sign if the compiler supports it
3974 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3975 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3976 SAVE_CFLAGS
="$CFLAGS"
3977 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3978 cat >conftest.
$ac_ext <<_ACEOF
3981 cat confdefs.h
>>conftest.
$ac_ext
3982 cat >>conftest.
$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3993 rm -f conftest.
$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3997 grep -v '^ *+' conftest.er1
>conftest.err
3999 cat conftest.err
>&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try
='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try
='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.
$ac_ext >&5
4022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4023 if test $has_option = yes; then
4024 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4026 echo "$as_me:$LINENO: result: $has_option" >&5
4027 echo "${ECHO_T}$has_option" >&6
4028 CFLAGS
="$SAVE_CFLAGS"
4032 #### Some other nice autoconf tests.
4034 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4035 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4037 if test "$LN_S" = "ln -s"; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039 echo "${ECHO_T}yes" >&6
4041 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4042 echo "${ECHO_T}no, using $LN_S" >&6
4046 ac_cpp
='$CPP $CPPFLAGS'
4047 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4050 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4051 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4052 # On Suns, sometimes $CPP names a directory.
4053 if test -n "$CPP" && test -d "$CPP"; then
4056 if test -z "$CPP"; then
4057 if test "${ac_cv_prog_CPP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 # Double quotes because CPP needs to be expanded
4061 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 for ac_c_preproc_warn_flag
in '' yes
4066 # Use a header file that comes with gcc, so configuring glibc
4067 # with a fresh cross-compiler works.
4068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4069 # <limits.h> exists even on freestanding compilers.
4070 # On the NeXT, cc -E runs the code through the compiler's parser,
4071 # not just through cpp. "Syntax error" is here to catch this case.
4072 cat >conftest.
$ac_ext <<_ACEOF
4075 cat confdefs.h
>>conftest.
$ac_ext
4076 cat >>conftest.
$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4079 # include <limits.h>
4081 # include <assert.h>
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1
>conftest.err
4090 cat conftest.err
>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev
/null
; then
4093 if test -s conftest.err
; then
4094 ac_cpp_err
=$ac_c_preproc_warn_flag
4095 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4102 if test -z "$ac_cpp_err"; then
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.
$ac_ext >&5
4108 # Broken: fails on valid input.
4111 rm -f conftest.err conftest.
$ac_ext
4113 # OK, works on sane cases. Now check whether non-existent headers
4114 # can be detected and how.
4115 cat >conftest.
$ac_ext <<_ACEOF
4118 cat confdefs.h
>>conftest.
$ac_ext
4119 cat >>conftest.
$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <ac_nonexistent.h>
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4126 grep -v '^ *+' conftest.er1
>conftest.err
4128 cat conftest.err
>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev
/null
; then
4131 if test -s conftest.err
; then
4132 ac_cpp_err
=$ac_c_preproc_warn_flag
4133 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4140 if test -z "$ac_cpp_err"; then
4141 # Broken: success on invalid input.
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.
$ac_ext >&5
4147 # Passes both tests.
4151 rm -f conftest.err conftest.
$ac_ext
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.err conftest.
$ac_ext
4156 if $ac_preproc_ok; then
4168 echo "$as_me:$LINENO: result: $CPP" >&5
4169 echo "${ECHO_T}$CPP" >&6
4171 for ac_c_preproc_warn_flag
in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat >conftest.
$ac_ext <<_ACEOF
4182 cat confdefs.h
>>conftest.
$ac_ext
4183 cat >>conftest.
$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4186 # include <limits.h>
4188 # include <assert.h>
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4195 grep -v '^ *+' conftest.er1
>conftest.err
4197 cat conftest.err
>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev
/null
; then
4200 if test -s conftest.err
; then
4201 ac_cpp_err
=$ac_c_preproc_warn_flag
4202 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4209 if test -z "$ac_cpp_err"; then
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.
$ac_ext >&5
4215 # Broken: fails on valid input.
4218 rm -f conftest.err conftest.
$ac_ext
4220 # OK, works on sane cases. Now check whether non-existent headers
4221 # can be detected and how.
4222 cat >conftest.
$ac_ext <<_ACEOF
4225 cat confdefs.h
>>conftest.
$ac_ext
4226 cat >>conftest.
$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4231 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4233 grep -v '^ *+' conftest.er1
>conftest.err
4235 cat conftest.err
>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev
/null
; then
4238 if test -s conftest.err
; then
4239 ac_cpp_err
=$ac_c_preproc_warn_flag
4240 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4247 if test -z "$ac_cpp_err"; then
4248 # Broken: success on invalid input.
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.
$ac_ext >&5
4254 # Passes both tests.
4258 rm -f conftest.err conftest.
$ac_ext
4261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4262 rm -f conftest.err conftest.
$ac_ext
4263 if $ac_preproc_ok; then
4266 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4267 See \`config.log' for more details." >&5
4268 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4269 See \`config.log' for more details." >&2;}
4270 { (exit 1); exit 1; }; }
4274 ac_cpp
='$CPP $CPPFLAGS'
4275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4279 # Find a good install program. We prefer a C program (faster),
4280 # so one script is as good as another. But avoid the broken or
4281 # incompatible versions:
4282 # SysV /etc/install, /usr/sbin/install
4283 # SunOS /usr/etc/install
4284 # IRIX /sbin/install
4286 # AmigaOS /C/install, which installs bootblocks on floppy discs
4287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290 # OS/2's system install, which has a completely different semantic
4291 # ./install, which can be erroneously created by make from ./install.sh.
4292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4294 if test -z "$INSTALL"; then
4295 if test "${ac_cv_path_install+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir
=.
4303 # Account for people who put trailing slashes in PATH elements.
4305 .
/ | .
// |
/cC
/* | \
4306 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4307 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4310 # OSF1 and SCO ODT 3.0 have their own names for install.
4311 # Don't use installbsd from OSF since it installs stuff as root
4313 for ac_prog
in ginstall scoinst
install; do
4314 for ac_exec_ext
in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4316 if test $ac_prog = install &&
4317 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4318 # AIX install. It has an incompatible calling convention.
4320 elif test $ac_prog = install &&
4321 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4322 # program-specific install script used by HP pwplus--don't use.
4325 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4337 if test "${ac_cv_path_install+set}" = set; then
4338 INSTALL
=$ac_cv_path_install
4340 # As a last resort, use the slow shell script. We don't cache a
4341 # path for INSTALL within a source directory, because that will
4342 # break other packages using the cache if that directory is
4343 # removed, or if the path is relative.
4344 INSTALL
=$ac_install_sh
4347 echo "$as_me:$LINENO: result: $INSTALL" >&5
4348 echo "${ECHO_T}$INSTALL" >&6
4350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351 # It thinks the first close brace ends the variable substitution.
4352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4356 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4358 if test "x$RANLIB" = x
; then
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4362 echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_prog_RANLIB+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4374 test -z "$as_dir" && as_dir
=.
4375 for ac_exec_ext
in '' $ac_executable_extensions; do
4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 RANLIB
=$ac_cv_prog_RANLIB
4387 if test -n "$RANLIB"; then
4388 echo "$as_me:$LINENO: result: $RANLIB" >&5
4389 echo "${ECHO_T}$RANLIB" >&6
4391 echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4396 if test -z "$ac_cv_prog_RANLIB"; then
4397 ac_ct_RANLIB
=$RANLIB
4398 # Extract the first word of "ranlib", so it can be a program name with args.
4399 set dummy ranlib
; ac_word
=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 if test -n "$ac_ct_RANLIB"; then
4406 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir
=.
4413 for ac_exec_ext
in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4425 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4426 if test -n "$ac_ct_RANLIB"; then
4427 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4434 RANLIB
=$ac_ct_RANLIB
4436 RANLIB
="$ac_cv_prog_RANLIB"
4440 # Extract the first word of "install-info", so it can be a program name with args.
4441 set dummy install-info
; ac_word
=$2
4442 echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 case $INSTALL_INFO in
4449 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir
=.
4457 for ac_exec_ext
in '' $ac_executable_extensions; do
4458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4471 if test -n "$INSTALL_INFO"; then
4472 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4473 echo "${ECHO_T}$INSTALL_INFO" >&6
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4479 # Extract the first word of "install-info", so it can be a program name with args.
4480 set dummy install-info
; ac_word
=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 case $INSTALL_INFO in
4488 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4492 for as_dir
in /usr
/sbin
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_exec_ext
in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4510 if test -n "$INSTALL_INFO"; then
4511 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4512 echo "${ECHO_T}$INSTALL_INFO" >&6
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4518 # Extract the first word of "install-info", so it can be a program name with args.
4519 set dummy install-info
; ac_word
=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 case $INSTALL_INFO in
4527 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4534 test -z "$as_dir" && as_dir
=.
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4548 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4550 if test -n "$INSTALL_INFO"; then
4551 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4552 echo "${ECHO_T}$INSTALL_INFO" >&6
4554 echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4558 # Extract the first word of "gzip", so it can be a program name with args.
4559 set dummy
gzip; ac_word
=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir
=.
4575 for ac_exec_ext
in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4589 if test -n "$GZIP_PROG"; then
4590 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4591 echo "${ECHO_T}$GZIP_PROG" >&6
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4599 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4601 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4604 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4606 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4610 late_LDFLAGS
=$LDFLAGS
4611 if test "$GCC" = yes; then
4612 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4614 LDFLAGS
="$LDFLAGS -znocombreloc"
4617 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4618 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4619 cat >conftest.
$ac_ext <<_ACEOF
4622 rm -f conftest.
$ac_objext conftest
$ac_exeext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624 (eval $ac_link) 2>conftest.er1
4626 grep -v '^ *+' conftest.er1
>conftest.err
4628 cat conftest.err
>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try
='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try
='test -s conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.
$ac_ext >&5
4650 LDFLAGS
=$late_LDFLAGS
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4654 rm -f conftest.err conftest.
$ac_objext \
4655 conftest
$ac_exeext conftest.
$ac_ext
4657 #### Extract some information from the operating system and machine files.
4659 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4660 - which libraries the lib-src programs will want, and
4661 - whether the GNU malloc routines are usable..." >&5
4662 echo "$as_me: checking the machine- and system-dependent files to find out
4663 - which libraries the lib-src programs will want, and
4664 - whether the GNU malloc routines are usable..." >&6;}
4666 ### First figure out CFLAGS (which we use for running the compiler here)
4667 ### and REAL_CFLAGS (which we use for real compilation).
4668 ### The two are the same except on a few systems, where they are made
4669 ### different to work around various lossages. For example,
4670 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4671 ### as implying static linking.
4673 ### If the CFLAGS env var is specified, we use that value
4674 ### instead of the default.
4676 ### It's not important that this name contain the PID; you can't run
4677 ### two configures in the same directory and have anything work
4679 tempcname
="conftest.c"
4682 #include "'${srcdir}'/src/'${opsysfile}'"
4683 #include "'${srcdir}'/src/'${machfile}'"
4684 #ifndef LIBS_MACHINE
4685 #define LIBS_MACHINE
4690 #ifndef C_SWITCH_SYSTEM
4691 #define C_SWITCH_SYSTEM
4693 #ifndef C_SWITCH_MACHINE
4694 #define C_SWITCH_MACHINE
4696 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4697 configure___ c_switch_system=C_SWITCH_SYSTEM
4698 configure___ c_switch_machine=C_SWITCH_MACHINE
4701 #define LIB_X11_LIB -lX11
4704 #ifndef LIBX11_MACHINE
4705 #define LIBX11_MACHINE
4708 #ifndef LIBX11_SYSTEM
4709 #define LIBX11_SYSTEM
4711 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4714 configure___ unexec=UNEXEC
4716 configure___ unexec=unexec.o
4719 #ifdef SYSTEM_MALLOC
4720 configure___ system_malloc=yes
4722 configure___ system_malloc=no
4725 #ifdef USE_MMAP_FOR_BUFFERS
4726 configure___ use_mmap_for_buffers=yes
4728 configure___ use_mmap_for_buffers=no
4731 #ifndef C_DEBUG_SWITCH
4732 #define C_DEBUG_SWITCH -g
4735 #ifndef C_OPTIMIZE_SWITCH
4737 #define C_OPTIMIZE_SWITCH -O2
4739 #define C_OPTIMIZE_SWITCH -O
4743 #ifndef C_WARNINGS_SWITCH
4744 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4747 #ifndef LD_SWITCH_MACHINE
4748 #define LD_SWITCH_MACHINE
4751 #ifndef LD_SWITCH_SYSTEM
4752 #define LD_SWITCH_SYSTEM
4755 #ifndef LD_SWITCH_X_SITE_AUX
4756 #define LD_SWITCH_X_SITE_AUX
4759 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4760 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4762 #ifdef THIS_IS_CONFIGURE
4764 /* Get the CFLAGS for tests in configure. */
4766 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4768 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4771 #else /* not THIS_IS_CONFIGURE */
4773 /* Get the CFLAGS for real compilation. */
4775 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4777 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4780 #endif /* not THIS_IS_CONFIGURE */
4783 # The value of CPP is a quoted variable reference, so we need to do this
4784 # to get its actual value...
4785 CPP
=`eval "echo $CPP"`
4786 eval `${CPP} -Isrc ${tempcname} \
4787 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4788 if test "x$SPECIFIED_CFLAGS" = x
; then
4789 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4790 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4792 REAL_CFLAGS
="$CFLAGS"
4796 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4798 ### Make sure subsequent tests use flags consistent with the build flags.
4800 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4801 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4803 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4808 # Check whether --enable-largefile or --disable-largefile was given.
4809 if test "${enable_largefile+set}" = set; then
4810 enableval
="$enable_largefile"
4813 if test "$enable_largefile" != no
; then
4815 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4816 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4817 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_cv_sys_largefile_CC
=no
4821 if test "$GCC" != yes; then
4824 # IRIX 6.2 and later do not support large files by default,
4825 # so use the C compiler's -n32 option if that helps.
4826 cat >conftest.
$ac_ext <<_ACEOF
4829 cat confdefs.h
>>conftest.
$ac_ext
4830 cat >>conftest.
$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #include <sys/types.h>
4833 /* Check that off_t can represent 2**63 - 1 correctly.
4834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4835 since some C++ compilers masquerading as C compilers
4836 incorrectly reject 9223372036854775807. */
4837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4839 && LARGE_OFF_T % 2147483647 == 1)
4849 rm -f conftest.
$ac_objext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>conftest.er1
4853 grep -v '^ *+' conftest.er1
>conftest.err
4855 cat conftest.err
>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try
='test -z "$ac_c_werror_flag"
4859 || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try
='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.
$ac_ext >&5
4877 rm -f conftest.err conftest.
$ac_objext
4879 rm -f conftest.
$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4883 grep -v '^ *+' conftest.er1
>conftest.err
4885 cat conftest.err
>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try
='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try
='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_sys_largefile_CC
=' -n32'; break
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.
$ac_ext >&5
4907 rm -f conftest.err conftest.
$ac_objext
4911 rm -f conftest.
$ac_ext
4914 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4915 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4916 if test "$ac_cv_sys_largefile_CC" != no
; then
4917 CC
=$CC$ac_cv_sys_largefile_CC
4920 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4921 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4922 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 ac_cv_sys_file_offset_bits
=no
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <sys/types.h>
4934 /* Check that off_t can represent 2**63 - 1 correctly.
4935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4936 since some C++ compilers masquerading as C compilers
4937 incorrectly reject 9223372036854775807. */
4938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4940 && LARGE_OFF_T % 2147483647 == 1)
4950 rm -f conftest.
$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4954 grep -v '^ *+' conftest.er1
>conftest.err
4956 cat conftest.err
>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try
='test -z "$ac_c_werror_flag"
4960 || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try
='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4979 cat >conftest.
$ac_ext <<_ACEOF
4982 cat confdefs.h
>>conftest.
$ac_ext
4983 cat >>conftest.
$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #define _FILE_OFFSET_BITS 64
4986 #include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
5003 rm -f conftest.
$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1
>conftest.err
5009 cat conftest.err
>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try
='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try
='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_cv_sys_file_offset_bits
=64; break
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.
$ac_ext >&5
5031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5035 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5036 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5037 if test "$ac_cv_sys_file_offset_bits" != no
; then
5039 cat >>confdefs.h
<<_ACEOF
5040 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5045 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5046 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5047 if test "${ac_cv_sys_large_files+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 ac_cv_sys_large_files
=no
5052 cat >conftest.
$ac_ext <<_ACEOF
5055 cat confdefs.h
>>conftest.
$ac_ext
5056 cat >>conftest.
$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <sys/types.h>
5059 /* Check that off_t can represent 2**63 - 1 correctly.
5060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5061 since some C++ compilers masquerading as C compilers
5062 incorrectly reject 9223372036854775807. */
5063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5065 && LARGE_OFF_T % 2147483647 == 1)
5075 rm -f conftest.
$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>conftest.er1
5079 grep -v '^ *+' conftest.er1
>conftest.err
5081 cat conftest.err
>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try
='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try
='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.
$ac_ext >&5
5103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #define _LARGE_FILES 1
5111 #include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114 since some C++ compilers masquerading as C compilers
5115 incorrectly reject 9223372036854775807. */
5116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118 && LARGE_OFF_T % 2147483647 == 1)
5128 rm -f conftest.
$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>conftest.er1
5132 grep -v '^ *+' conftest.er1
>conftest.err
5134 cat conftest.err
>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try
='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try
='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_sys_large_files
=1; break
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.
$ac_ext >&5
5156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5160 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5161 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5162 if test "$ac_cv_sys_large_files" != no
; then
5164 cat >>confdefs.h
<<_ACEOF
5165 #define _LARGE_FILES $ac_cv_sys_large_files
5174 ### The standard library on x86-64 GNU/Linux distributions can
5175 ### be located in either /usr/lib64 or /usr/lib.
5176 case "${canonical}" in
5177 x86_64-
*-linux-gnu* )
5178 if test -d /usr
/lib64
; then
5180 cat >>confdefs.h
<<\_ACEOF
5181 #define HAVE_X86_64_LIB64_DIR 1
5190 if test "${with_sound}" != "no"; then
5191 # Sound support for GNU/Linux and the free BSDs.
5192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5194 if test "${ac_cv_header_stdc+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 cat >conftest.
$ac_ext <<_ACEOF
5200 cat confdefs.h
>>conftest.
$ac_ext
5201 cat >>conftest.
$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5216 rm -f conftest.
$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5220 grep -v '^ *+' conftest.er1
>conftest.err
5222 cat conftest.err
>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try
='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try
='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_header_stdc
=yes
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.
$ac_ext >&5
5243 ac_cv_header_stdc
=no
5245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5247 if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249 cat >conftest.
$ac_ext <<_ACEOF
5252 cat confdefs.h
>>conftest.
$ac_ext
5253 cat >>conftest.
$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev
/null
2>&1; then
5262 ac_cv_header_stdc
=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat >conftest.
$ac_ext <<_ACEOF
5273 cat confdefs.h
>>conftest.
$ac_ext
5274 cat >>conftest.
$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev
/null
2>&1; then
5283 ac_cv_header_stdc
=no
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then
5294 cat >conftest.
$ac_ext <<_ACEOF
5297 cat confdefs.h
>>conftest.
$ac_ext
5298 cat >>conftest.
$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5324 rm -f conftest
$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5337 echo "$as_me: program exited with status $ac_status" >&5
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.
$ac_ext >&5
5342 ac_cv_header_stdc
=no
5344 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5350 if test $ac_cv_header_stdc = yes; then
5352 cat >>confdefs.h
<<\_ACEOF
5353 #define STDC_HEADERS 1
5358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5368 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5369 inttypes.h stdint.h unistd.h
5371 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 cat >conftest.
$ac_ext <<_ACEOF
5380 cat confdefs.h
>>conftest.
$ac_ext
5381 cat >>conftest.
$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 $ac_includes_default
5385 #include <$ac_header>
5387 rm -f conftest.
$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1
>conftest.err
5393 cat conftest.err
>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try
='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try
='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 eval "$as_ac_Header=yes"
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.
$ac_ext >&5
5414 eval "$as_ac_Header=no"
5416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5421 cat >>confdefs.h
<<_ACEOF
5422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5433 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5435 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437 echo "$as_me:$LINENO: checking for $ac_header" >&5
5438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5445 # Is the header compilable?
5446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5448 cat >conftest.
$ac_ext <<_ACEOF
5451 cat confdefs.h
>>conftest.
$ac_ext
5452 cat >>conftest.
$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5457 rm -f conftest.
$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459 (eval $ac_compile) 2>conftest.er1
5461 grep -v '^ *+' conftest.er1
>conftest.err
5463 cat conftest.err
>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try
='test -z "$ac_c_werror_flag"
5467 || test ! -s conftest.err'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; } &&
5473 { ac_try
='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_header_compiler
=yes
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.
$ac_ext >&5
5484 ac_header_compiler
=no
5486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6
5490 # Is the header present?
5491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5504 grep -v '^ *+' conftest.er1
>conftest.err
5506 cat conftest.err
>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev
/null
; then
5509 if test -s conftest.err
; then
5510 ac_cpp_err
=$ac_c_preproc_warn_flag
5511 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5518 if test -z "$ac_cpp_err"; then
5519 ac_header_preproc
=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.
$ac_ext >&5
5524 ac_header_preproc
=no
5526 rm -f conftest.err conftest.
$ac_ext
5527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5528 echo "${ECHO_T}$ac_header_preproc" >&6
5530 # So? What about this header?
5531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5537 ac_header_preproc
=yes
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5554 ## ------------------------------------------ ##
5555 ## Report this to the AC_PACKAGE_NAME lists. ##
5556 ## ------------------------------------------ ##
5559 sed "s/^/$as_me: WARNING: /" >&2
5562 echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 eval "$as_ac_Header=\$ac_header_preproc"
5569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h
<<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 # Emulation library used on NetBSD.
5583 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5584 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5585 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 ac_check_lib_save_LIBS
=$LIBS
5589 LIBS
="-lossaudio $LIBS"
5590 cat >conftest.
$ac_ext <<_ACEOF
5593 cat confdefs.h
>>conftest.
$ac_ext
5594 cat >>conftest.
$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5612 rm -f conftest.
$ac_objext conftest
$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>conftest.er1
5616 grep -v '^ *+' conftest.er1
>conftest.err
5618 cat conftest.err
>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try
='test -z "$ac_c_werror_flag"
5622 || test ! -s conftest.err'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try
='test -s conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_lib_ossaudio__oss_ioctl
=yes
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.
$ac_ext >&5
5639 ac_cv_lib_ossaudio__oss_ioctl
=no
5641 rm -f conftest.err conftest.
$ac_objext \
5642 conftest
$ac_exeext conftest.
$ac_ext
5643 LIBS
=$ac_check_lib_save_LIBS
5645 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5646 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5647 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5656 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5657 if test "X${with_pkg_config_prog}" != X
; then
5658 PKG_CONFIG
="${with_pkg_config_prog}"
5663 if test -z "$PKG_CONFIG"; then
5664 # Extract the first word of "pkg-config", so it can be a program name with args.
5665 set dummy pkg-config
; ac_word
=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir
=.
5681 for ac_exec_ext
in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5694 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5696 if test -n "$PKG_CONFIG"; then
5697 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5698 echo "${ECHO_T}$PKG_CONFIG" >&6
5700 echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5706 if test "$PKG_CONFIG" = "no" ; then
5709 PKG_CONFIG_MIN_VERSION
=0.9.0
5710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5711 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5712 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5714 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5719 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5720 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5721 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5722 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5723 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5725 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5726 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5727 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5728 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5729 echo "${ECHO_T}$ALSA_LIBS" >&6
5731 echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5735 ## If we have a custom action on failure, don't print errors, but
5736 ## do set a variable so people can do so.
5737 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5749 if test $succeeded = yes; then
5755 if test $HAVE_ALSA = yes; then
5756 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5757 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5759 cat >>confdefs.h
<<\_ACEOF
5792 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5793 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5794 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5795 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5798 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5800 echo "$as_me:$LINENO: checking for $ac_header" >&5
5801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5808 # Is the header compilable?
5809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5811 cat >conftest.
$ac_ext <<_ACEOF
5814 cat confdefs.h
>>conftest.
$ac_ext
5815 cat >>conftest.
$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5818 #include <$ac_header>
5820 rm -f conftest.
$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5824 grep -v '^ *+' conftest.er1
>conftest.err
5826 cat conftest.err
>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try
='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try
='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_header_compiler
=yes
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.
$ac_ext >&5
5847 ac_header_compiler
=no
5849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5851 echo "${ECHO_T}$ac_header_compiler" >&6
5853 # Is the header present?
5854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <$ac_header>
5864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev
/null
; then
5872 if test -s conftest.err
; then
5873 ac_cpp_err
=$ac_c_preproc_warn_flag
5874 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5881 if test -z "$ac_cpp_err"; then
5882 ac_header_preproc
=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 ac_header_preproc
=no
5889 rm -f conftest.err conftest.
$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5891 echo "${ECHO_T}$ac_header_preproc" >&6
5893 # So? What about this header?
5894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5900 ac_header_preproc
=yes
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5917 ## ------------------------------------------ ##
5918 ## Report this to the AC_PACKAGE_NAME lists. ##
5919 ## ------------------------------------------ ##
5922 sed "s/^/$as_me: WARNING: /" >&2
5925 echo "$as_me:$LINENO: checking for $ac_header" >&5
5926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 eval "$as_ac_Header=\$ac_header_preproc"
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5937 cat >>confdefs.h
<<_ACEOF
5938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5947 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5948 cat >conftest.
$ac_ext <<_ACEOF
5951 cat confdefs.h
>>conftest.
$ac_ext
5952 cat >>conftest.
$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/personality.h>
5958 personality (PER_LINUX32)
5963 rm -f conftest.
$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5967 grep -v '^ *+' conftest.er1
>conftest.err
5969 cat conftest.err
>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try
='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try
='test -s conftest.$ac_objext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 emacs_cv_personality_linux32
=yes
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.
$ac_ext >&5
5990 emacs_cv_personality_linux32
=no
5992 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5993 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5994 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5996 if test $emacs_cv_personality_linux32 = yes; then
5998 cat >>confdefs.h
<<\_ACEOF
5999 #define HAVE_PERSONALITY_LINUX32 1
6005 for ac_header
in term.h
6007 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6008 echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 cat >conftest.
$ac_ext <<_ACEOF
6016 cat confdefs.h
>>conftest.
$ac_ext
6017 cat >>conftest.
$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <$ac_header>
6021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6024 grep -v '^ *+' conftest.er1
>conftest.err
6026 cat conftest.err
>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev
/null
; then
6029 if test -s conftest.err
; then
6030 ac_cpp_err
=$ac_c_preproc_warn_flag
6031 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6038 if test -z "$ac_cpp_err"; then
6039 eval "$as_ac_Header=yes"
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 eval "$as_ac_Header=no"
6046 rm -f conftest.err conftest.
$ac_ext
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051 cat >>confdefs.h
<<_ACEOF
6052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6061 if test "${ac_cv_header_stdc+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6083 rm -f conftest.
$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1
>conftest.err
6089 cat conftest.err
>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try
='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try
='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_header_stdc
=yes
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.
$ac_ext >&5
6110 ac_cv_header_stdc
=no
6112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6114 if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat >conftest.
$ac_ext <<_ACEOF
6119 cat confdefs.h
>>conftest.
$ac_ext
6120 cat >>conftest.
$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6126 $EGREP "memchr" >/dev
/null
2>&1; then
6129 ac_cv_header_stdc
=no
6135 if test $ac_cv_header_stdc = yes; then
6136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6137 cat >conftest.
$ac_ext <<_ACEOF
6140 cat confdefs.h
>>conftest.
$ac_ext
6141 cat >>conftest.
$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev
/null
2>&1; then
6150 ac_cv_header_stdc
=no
6156 if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then
6161 cat >conftest.
$ac_ext <<_ACEOF
6164 cat confdefs.h
>>conftest.
$ac_ext
6165 cat >>conftest.
$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6168 #if ((' ' & 0x0FF) == 0x020)
6169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6172 # define ISLOWER(c) \
6173 (('a' <= (c) && (c) <= 'i') \
6174 || ('j' <= (c) && (c) <= 'r') \
6175 || ('s' <= (c) && (c) <= 'z'))
6176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6184 for (i = 0; i < 256; i++)
6185 if (XOR (islower (i), ISLOWER (i))
6186 || toupper (i) != TOUPPER (i))
6191 rm -f conftest
$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6204 echo "$as_me: program exited with status $ac_status" >&5
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.
$ac_ext >&5
6209 ac_cv_header_stdc
=no
6211 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6217 if test $ac_cv_header_stdc = yes; then
6219 cat >>confdefs.h
<<\_ACEOF
6220 #define STDC_HEADERS 1
6225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6227 if test "${ac_cv_header_time+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6233 cat confdefs.h
>>conftest.
$ac_ext
6234 cat >>conftest.
$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 #include <sys/time.h>
6243 if ((struct tm *) 0)
6249 rm -f conftest.
$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try
='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try
='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_header_time
=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6276 ac_cv_header_time
=no
6278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6281 echo "${ECHO_T}$ac_cv_header_time" >&6
6282 if test $ac_cv_header_time = yes; then
6284 cat >>confdefs.h
<<\_ACEOF
6285 #define TIME_WITH_SYS_TIME 1
6290 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6291 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6292 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 cat >conftest.
$ac_ext <<_ACEOF
6298 cat confdefs.h
>>conftest.
$ac_ext
6299 cat >>conftest.
$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6306 char *p = (char *) sys_siglist;
6313 rm -f conftest.
$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try
='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try
='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_have_decl_sys_siglist
=yes
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.
$ac_ext >&5
6340 ac_cv_have_decl_sys_siglist
=no
6342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6345 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6346 if test $ac_cv_have_decl_sys_siglist = yes; then
6348 cat >>confdefs.h
<<_ACEOF
6349 #define HAVE_DECL_SYS_SIGLIST 1
6354 cat >>confdefs.h
<<_ACEOF
6355 #define HAVE_DECL_SYS_SIGLIST 0
6362 if test $ac_cv_have_decl_sys_siglist != yes; then
6363 # For Tru64, at least:
6364 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6365 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6366 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 cat >conftest.
$ac_ext <<_ACEOF
6372 cat confdefs.h
>>conftest.
$ac_ext
6373 cat >>conftest.
$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 $ac_includes_default
6379 #ifndef __sys_siglist
6380 char *p = (char *) __sys_siglist;
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_have_decl___sys_siglist
=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.
$ac_ext >&5
6414 ac_cv_have_decl___sys_siglist
=no
6416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6418 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6419 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6420 if test $ac_cv_have_decl___sys_siglist = yes; then
6422 cat >>confdefs.h
<<_ACEOF
6423 #define HAVE_DECL___SYS_SIGLIST 1
6428 cat >>confdefs.h
<<_ACEOF
6429 #define HAVE_DECL___SYS_SIGLIST 0
6436 if test $ac_cv_have_decl___sys_siglist = yes; then
6438 cat >>confdefs.h
<<\_ACEOF
6439 #define sys_siglist __sys_siglist
6444 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6445 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6446 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 cat >conftest.
$ac_ext <<_ACEOF
6452 cat confdefs.h
>>conftest.
$ac_ext
6453 cat >>conftest.
$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <sys/types.h>
6456 #include <sys/wait.h>
6458 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6461 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6469 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6474 rm -f conftest.
$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1
>conftest.err
6480 cat conftest.err
>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try
='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try
='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_header_sys_wait_h
=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.
$ac_ext >&5
6501 ac_cv_header_sys_wait_h
=no
6503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6506 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6507 if test $ac_cv_header_sys_wait_h = yes; then
6509 cat >>confdefs.h
<<\_ACEOF
6510 #define HAVE_SYS_WAIT_H 1
6516 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6517 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6518 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #ifdef TIME_WITH_SYS_TIME
6528 #include <sys/time.h>
6531 #ifdef HAVE_SYS_TIME_H
6532 #include <sys/time.h>
6543 static struct utimbuf x; x.actime = x.modtime;
6548 rm -f conftest.
$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
6554 cat conftest.err
>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try
='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try
='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 emacs_cv_struct_utimbuf
=yes
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.
$ac_ext >&5
6575 emacs_cv_struct_utimbuf
=no
6577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6579 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6580 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6581 if test $emacs_cv_struct_utimbuf = yes; then
6583 cat >>confdefs.h
<<\_ACEOF
6584 #define HAVE_STRUCT_UTIMBUF 1
6589 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6590 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6591 if test "${ac_cv_type_signal+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 cat >conftest.
$ac_ext <<_ACEOF
6597 cat confdefs.h
>>conftest.
$ac_ext
6598 cat >>conftest.
$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 #include <sys/types.h>
6606 extern "C" void (*signal (int, void (*)(int)))(int);
6608 void (*signal ()) ();
6619 rm -f conftest.
$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1
>conftest.err
6625 cat conftest.err
>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try
='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try
='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_type_signal
=void
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.
$ac_ext >&5
6646 ac_cv_type_signal
=int
6648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6650 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6651 echo "${ECHO_T}$ac_cv_type_signal" >&6
6653 cat >>confdefs.h
<<_ACEOF
6654 #define RETSIGTYPE $ac_cv_type_signal
6659 echo "$as_me:$LINENO: checking for speed_t" >&5
6660 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6661 if test "${emacs_cv_speed_t+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 cat >conftest.
$ac_ext <<_ACEOF
6667 cat confdefs.h
>>conftest.
$ac_ext
6668 cat >>conftest.
$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <termios.h>
6679 rm -f conftest.
$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
6685 cat conftest.err
>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try
='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try
='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 emacs_cv_speed_t
=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.
$ac_ext >&5
6708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6710 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6711 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6712 if test $emacs_cv_speed_t = yes; then
6714 cat >>confdefs.h
<<\_ACEOF
6715 #define HAVE_SPEED_T 1
6720 echo "$as_me:$LINENO: checking for struct timeval" >&5
6721 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6722 if test "${emacs_cv_struct_timeval+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cat >conftest.
$ac_ext <<_ACEOF
6728 cat confdefs.h
>>conftest.
$ac_ext
6729 cat >>conftest.
$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #ifdef TIME_WITH_SYS_TIME
6732 #include <sys/time.h>
6735 #ifdef HAVE_SYS_TIME_H
6736 #include <sys/time.h>
6744 static struct timeval x; x.tv_sec = x.tv_usec;
6749 rm -f conftest.
$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751 (eval $ac_compile) 2>conftest.er1
6753 grep -v '^ *+' conftest.er1
>conftest.err
6755 cat conftest.err
>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try
='test -z "$ac_c_werror_flag"
6759 || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try
='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 emacs_cv_struct_timeval
=yes
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.
$ac_ext >&5
6776 emacs_cv_struct_timeval
=no
6778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6780 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6781 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6782 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6783 if test $emacs_cv_struct_timeval = yes; then
6785 cat >>confdefs.h
<<\_ACEOF
6786 #define HAVE_TIMEVAL 1
6791 echo "$as_me:$LINENO: checking for struct exception" >&5
6792 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6793 if test "${emacs_cv_struct_exception+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 cat >conftest.
$ac_ext <<_ACEOF
6799 cat confdefs.h
>>conftest.
$ac_ext
6800 cat >>conftest.
$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6806 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6811 rm -f conftest.
$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 2>conftest.er1
6815 grep -v '^ *+' conftest.er1
>conftest.err
6817 cat conftest.err
>&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try
='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try
='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 emacs_cv_struct_exception
=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.
$ac_ext >&5
6838 emacs_cv_struct_exception
=no
6840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6842 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6843 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6844 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6845 if test $emacs_cv_struct_exception != yes; then
6847 cat >>confdefs.h
<<\_ACEOF
6848 #define NO_MATHERR 1
6854 for ac_header
in sys
/socket.h
6856 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6858 echo "$as_me:$LINENO: checking for $ac_header" >&5
6859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6866 # Is the header compilable?
6867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6869 cat >conftest.
$ac_ext <<_ACEOF
6872 cat confdefs.h
>>conftest.
$ac_ext
6873 cat >>conftest.
$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 #include <$ac_header>
6878 rm -f conftest.
$ac_objext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>conftest.er1
6882 grep -v '^ *+' conftest.er1
>conftest.err
6884 cat conftest.err
>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try
='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try
='test -s conftest.$ac_objext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_header_compiler
=yes
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6905 ac_header_compiler
=no
6907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909 echo "${ECHO_T}$ac_header_compiler" >&6
6911 # Is the header present?
6912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6914 cat >conftest.
$ac_ext <<_ACEOF
6917 cat confdefs.h
>>conftest.
$ac_ext
6918 cat >>conftest.
$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <$ac_header>
6922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6925 grep -v '^ *+' conftest.er1
>conftest.err
6927 cat conftest.err
>&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev
/null
; then
6930 if test -s conftest.err
; then
6931 ac_cpp_err
=$ac_c_preproc_warn_flag
6932 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6939 if test -z "$ac_cpp_err"; then
6940 ac_header_preproc
=yes
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.
$ac_ext >&5
6945 ac_header_preproc
=no
6947 rm -f conftest.err conftest.
$ac_ext
6948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6949 echo "${ECHO_T}$ac_header_preproc" >&6
6951 # So? What about this header?
6952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6958 ac_header_preproc
=yes
6961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6975 ## ------------------------------------------ ##
6976 ## Report this to the AC_PACKAGE_NAME lists. ##
6977 ## ------------------------------------------ ##
6980 sed "s/^/$as_me: WARNING: /" >&2
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 eval "$as_ac_Header=\$ac_header_preproc"
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995 cat >>confdefs.h
<<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 for ac_header
in net
/if.h
7006 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 echo "$as_me:$LINENO: checking for $ac_header" >&5
7008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 cat >conftest.
$ac_ext <<_ACEOF
7015 cat confdefs.h
>>conftest.
$ac_ext
7016 cat >>conftest.
$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 #if HAVE_SYS_SOCKET_H
7020 #include <sys/socket.h>
7023 #include <$ac_header>
7025 rm -f conftest.
$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7029 grep -v '^ *+' conftest.er1
>conftest.err
7031 cat conftest.err
>&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try
='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try
='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 eval "$as_ac_Header=yes"
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.
$ac_ext >&5
7052 eval "$as_ac_Header=no"
7054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7059 cat >>confdefs.h
<<_ACEOF
7060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7069 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7070 if test "${ac_cv_struct_tm+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 cat >conftest.
$ac_ext <<_ACEOF
7076 cat confdefs.h
>>conftest.
$ac_ext
7077 cat >>conftest.
$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 #include <sys/types.h>
7085 struct tm *tp; tp->tm_sec;
7090 rm -f conftest.
$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7094 grep -v '^ *+' conftest.er1
>conftest.err
7096 cat conftest.err
>&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try
='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try
='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_cv_struct_tm
=time.h
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.
$ac_ext >&5
7117 ac_cv_struct_tm
=sys
/time.h
7119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7122 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7123 if test $ac_cv_struct_tm = sys
/time.h
; then
7125 cat >>confdefs.h
<<\_ACEOF
7126 #define TM_IN_SYS_TIME 1
7131 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7132 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7133 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 cat >conftest.
$ac_ext <<_ACEOF
7139 cat confdefs.h
>>conftest.
$ac_ext
7140 cat >>conftest.
$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <sys/types.h>
7143 #include <$ac_cv_struct_tm>
7149 static struct tm ac_aggr;
7150 if (ac_aggr.tm_zone)
7156 rm -f conftest.
$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1
>conftest.err
7162 cat conftest.err
>&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try
='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try
='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_member_struct_tm_tm_zone
=yes
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.
$ac_ext >&5
7183 cat >conftest.
$ac_ext <<_ACEOF
7186 cat confdefs.h
>>conftest.
$ac_ext
7187 cat >>conftest.
$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 #include <sys/types.h>
7190 #include <$ac_cv_struct_tm>
7196 static struct tm ac_aggr;
7197 if (sizeof ac_aggr.tm_zone)
7203 rm -f conftest.
$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>conftest.er1
7207 grep -v '^ *+' conftest.er1
>conftest.err
7209 cat conftest.err
>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try
='test -z "$ac_c_werror_flag"
7213 || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try
='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 ac_cv_member_struct_tm_tm_zone
=yes
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.
$ac_ext >&5
7230 ac_cv_member_struct_tm_tm_zone
=no
7232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7237 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7238 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7240 cat >>confdefs.h
<<_ACEOF
7241 #define HAVE_STRUCT_TM_TM_ZONE 1
7247 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7249 cat >>confdefs.h
<<\_ACEOF
7250 #define HAVE_TM_ZONE 1
7254 echo "$as_me:$LINENO: checking for tzname" >&5
7255 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7256 if test "${ac_cv_var_tzname+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7266 #ifndef tzname /* For SGI. */
7267 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7278 rm -f conftest.
$ac_objext conftest
$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>conftest.er1
7282 grep -v '^ *+' conftest.er1
>conftest.err
7284 cat conftest.err
>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try
='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try
='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_var_tzname
=yes
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.
$ac_ext >&5
7307 rm -f conftest.err conftest.
$ac_objext \
7308 conftest
$ac_exeext conftest.
$ac_ext
7310 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7311 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7312 if test $ac_cv_var_tzname = yes; then
7314 cat >>confdefs.h
<<\_ACEOF
7315 #define HAVE_TZNAME 1
7321 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7322 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7323 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 cat >conftest.
$ac_ext <<_ACEOF
7329 cat confdefs.h
>>conftest.
$ac_ext
7330 cat >>conftest.
$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7337 static struct tm ac_aggr;
7338 if (ac_aggr.tm_gmtoff)
7344 rm -f conftest.
$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7348 grep -v '^ *+' conftest.er1
>conftest.err
7350 cat conftest.err
>&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try
='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try
='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_member_struct_tm_tm_gmtoff
=yes
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 cat >conftest.
$ac_ext <<_ACEOF
7374 cat confdefs.h
>>conftest.
$ac_ext
7375 cat >>conftest.
$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7382 static struct tm ac_aggr;
7383 if (sizeof ac_aggr.tm_gmtoff)
7389 rm -f conftest.
$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try
='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try
='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_member_struct_tm_tm_gmtoff
=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.
$ac_ext >&5
7416 ac_cv_member_struct_tm_tm_gmtoff
=no
7418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7423 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7424 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7426 cat >>confdefs.h
<<\_ACEOF
7427 #define HAVE_TM_GMTOFF 1
7432 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7433 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7434 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7454 static struct ifreq ac_aggr;
7455 if (ac_aggr.ifr_flags)
7461 rm -f conftest.
$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try
='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_member_struct_ifreq_ifr_flags
=yes
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.
$ac_ext >&5
7488 cat >conftest.
$ac_ext <<_ACEOF
7491 cat confdefs.h
>>conftest.
$ac_ext
7492 cat >>conftest.
$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 #if HAVE_SYS_SOCKET_H
7496 #include <sys/socket.h>
7505 static struct ifreq ac_aggr;
7506 if (sizeof ac_aggr.ifr_flags)
7512 rm -f conftest.
$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7516 grep -v '^ *+' conftest.er1
>conftest.err
7518 cat conftest.err
>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try
='test -z "$ac_c_werror_flag"
7522 || test ! -s conftest.err'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; } &&
7528 { ac_try
='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_member_struct_ifreq_ifr_flags
=yes
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.
$ac_ext >&5
7539 ac_cv_member_struct_ifreq_ifr_flags
=no
7541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7547 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7549 cat >>confdefs.h
<<_ACEOF
7550 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7555 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7556 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7557 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 cat >conftest.
$ac_ext <<_ACEOF
7563 cat confdefs.h
>>conftest.
$ac_ext
7564 cat >>conftest.
$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #if HAVE_SYS_SOCKET_H
7568 #include <sys/socket.h>
7577 static struct ifreq ac_aggr;
7578 if (ac_aggr.ifr_hwaddr)
7584 rm -f conftest.
$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1
>conftest.err
7590 cat conftest.err
>&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try
='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try
='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.
$ac_ext >&5
7611 cat >conftest.
$ac_ext <<_ACEOF
7614 cat confdefs.h
>>conftest.
$ac_ext
7615 cat >>conftest.
$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #if HAVE_SYS_SOCKET_H
7619 #include <sys/socket.h>
7628 static struct ifreq ac_aggr;
7629 if (sizeof ac_aggr.ifr_hwaddr)
7635 rm -f conftest.
$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>conftest.er1
7639 grep -v '^ *+' conftest.er1
>conftest.err
7641 cat conftest.err
>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try
='test -z "$ac_c_werror_flag"
7645 || test ! -s conftest.err'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; } &&
7651 { ac_try
='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.
$ac_ext >&5
7662 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7669 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7670 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7672 cat >>confdefs.h
<<_ACEOF
7673 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7678 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7679 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7680 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 cat >conftest.
$ac_ext <<_ACEOF
7686 cat confdefs.h
>>conftest.
$ac_ext
7687 cat >>conftest.
$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 #if HAVE_SYS_SOCKET_H
7691 #include <sys/socket.h>
7700 static struct ifreq ac_aggr;
7701 if (ac_aggr.ifr_netmask)
7707 rm -f conftest.
$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1
>conftest.err
7713 cat conftest.err
>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try
='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try
='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7734 cat >conftest.
$ac_ext <<_ACEOF
7737 cat confdefs.h
>>conftest.
$ac_ext
7738 cat >>conftest.
$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 $ac_includes_default
7741 #if HAVE_SYS_SOCKET_H
7742 #include <sys/socket.h>
7751 static struct ifreq ac_aggr;
7752 if (sizeof ac_aggr.ifr_netmask)
7758 rm -f conftest.
$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>conftest.er1
7762 grep -v '^ *+' conftest.er1
>conftest.err
7764 cat conftest.err
>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try
='test -z "$ac_c_werror_flag"
7768 || test ! -s conftest.err'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try
='test -s conftest.$ac_objext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.
$ac_ext >&5
7785 ac_cv_member_struct_ifreq_ifr_netmask
=no
7787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7792 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7793 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7795 cat >>confdefs.h
<<_ACEOF
7796 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7801 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7802 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7803 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 cat >conftest.
$ac_ext <<_ACEOF
7809 cat confdefs.h
>>conftest.
$ac_ext
7810 cat >>conftest.
$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 $ac_includes_default
7813 #if HAVE_SYS_SOCKET_H
7814 #include <sys/socket.h>
7823 static struct ifreq ac_aggr;
7824 if (ac_aggr.ifr_broadaddr)
7830 rm -f conftest.
$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7834 grep -v '^ *+' conftest.er1
>conftest.err
7836 cat conftest.err
>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try
='test -z "$ac_c_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try
='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.
$ac_ext >&5
7857 cat >conftest.
$ac_ext <<_ACEOF
7860 cat confdefs.h
>>conftest.
$ac_ext
7861 cat >>conftest.
$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7864 #if HAVE_SYS_SOCKET_H
7865 #include <sys/socket.h>
7874 static struct ifreq ac_aggr;
7875 if (sizeof ac_aggr.ifr_broadaddr)
7881 rm -f conftest.
$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1
>conftest.err
7887 cat conftest.err
>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try
='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try
='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.
$ac_ext >&5
7908 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7915 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7916 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7918 cat >>confdefs.h
<<_ACEOF
7919 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7924 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7925 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7926 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.
$ac_ext <<_ACEOF
7932 cat confdefs.h
>>conftest.
$ac_ext
7933 cat >>conftest.
$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #if HAVE_SYS_SOCKET_H
7937 #include <sys/socket.h>
7946 static struct ifreq ac_aggr;
7947 if (ac_aggr.ifr_addr)
7953 rm -f conftest.
$ac_objext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>conftest.er1
7957 grep -v '^ *+' conftest.er1
>conftest.err
7959 cat conftest.err
>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try
='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try
='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_member_struct_ifreq_ifr_addr
=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.
$ac_ext >&5
7980 cat >conftest.
$ac_ext <<_ACEOF
7983 cat confdefs.h
>>conftest.
$ac_ext
7984 cat >>conftest.
$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 #if HAVE_SYS_SOCKET_H
7988 #include <sys/socket.h>
7997 static struct ifreq ac_aggr;
7998 if (sizeof ac_aggr.ifr_addr)
8004 rm -f conftest.
$ac_objext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8006 (eval $ac_compile) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1
>conftest.err
8010 cat conftest.err
>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try
='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try
='test -s conftest.$ac_objext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_member_struct_ifreq_ifr_addr
=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.
$ac_ext >&5
8031 ac_cv_member_struct_ifreq_ifr_addr
=no
8033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8038 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8039 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8041 cat >>confdefs.h
<<_ACEOF
8042 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8050 echo "$as_me:$LINENO: checking for function prototypes" >&5
8051 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8052 if test "$ac_cv_prog_cc_stdc" != no
; then
8053 echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8056 cat >>confdefs.h
<<\_ACEOF
8057 #define PROTOTYPES 1
8061 cat >>confdefs.h
<<\_ACEOF
8062 #define __PROTOTYPES 1
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8070 echo "$as_me:$LINENO: checking for working volatile" >&5
8071 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8072 if test "${ac_cv_c_volatile+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 cat >conftest.
$ac_ext <<_ACEOF
8078 cat confdefs.h
>>conftest.
$ac_ext
8079 cat >>conftest.
$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8092 rm -f conftest.
$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8096 grep -v '^ *+' conftest.er1
>conftest.err
8098 cat conftest.err
>&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try
='test -z "$ac_c_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try
='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_c_volatile
=yes
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.
$ac_ext >&5
8121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8123 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8124 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8125 if test $ac_cv_c_volatile = no
; then
8127 cat >>confdefs.h
<<\_ACEOF
8133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8135 if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.
$ac_ext <<_ACEOF
8141 cat confdefs.h
>>conftest.
$ac_ext
8142 cat >>conftest.
$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8148 /* FIXME: Include the comments suggested by Paul. */
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
8153 /* SunOS 4.1.1 cc rejects this. */
8154 char const *const *ccp;
8156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8163 const char *g = "string";
8164 ccp = &g + (g ? g-g : 0);
8165 /* HPUX 7.0 cc rejects these. */
8168 ccp = (char const *const *) p;
8169 { /* SCO 3.2v4 cc rejects this. */
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8177 const int *foo = &x[0];
8180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8181 typedef const int *iptr;
8185 { /* AIX XL C 1.02.0.0 rejects this saying
8186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8187 struct s { int j; const int *ap[3]; };
8188 struct s *b; b->j = 5;
8190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8199 rm -f conftest.
$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8203 grep -v '^ *+' conftest.er1
>conftest.err
8205 cat conftest.err
>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try
='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try
='test -s conftest.$ac_objext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8231 echo "${ECHO_T}$ac_cv_c_const" >&6
8232 if test $ac_cv_c_const = no
; then
8234 cat >>confdefs.h
<<\_ACEOF
8240 echo "$as_me:$LINENO: checking for void * support" >&5
8241 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8242 if test "${emacs_cv_void_star+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.
$ac_ext <<_ACEOF
8248 cat confdefs.h
>>conftest.
$ac_ext
8249 cat >>conftest.
$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8260 rm -f conftest.
$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8264 grep -v '^ *+' conftest.er1
>conftest.err
8266 cat conftest.err
>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try
='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try
='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 emacs_cv_void_star
=yes
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.
$ac_ext >&5
8287 emacs_cv_void_star
=no
8289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8292 echo "${ECHO_T}$emacs_cv_void_star" >&6
8293 if test $emacs_cv_void_star = yes; then
8294 cat >>confdefs.h
<<\_ACEOF
8295 #define POINTER_TYPE void
8299 cat >>confdefs.h
<<\_ACEOF
8300 #define POINTER_TYPE char
8309 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8310 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8311 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8312 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 cat >conftest.
make <<\_ACEOF
8317 @
echo 'ac_maketemp="$(MAKE)"'
8319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8320 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8321 if test -n "$ac_maketemp"; then
8322 eval ac_cv_prog_make_
${ac_make}_set
=yes
8324 eval ac_cv_prog_make_
${ac_make}_set
=no
8328 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8333 echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6
8335 SET_MAKE
="MAKE=${MAKE-make}"
8339 echo "$as_me:$LINENO: checking for long file names" >&5
8340 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8341 if test "${ac_cv_sys_long_file_names+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 ac_cv_sys_long_file_names
=yes
8345 # Test for long file names in all the places we know might matter:
8346 # . the current directory, where building will happen
8347 # $prefix/lib where we will be installing things
8348 # $exec_prefix/lib likewise
8349 # eval it to expand exec_prefix.
8350 # $TMPDIR if set, where it might want to write temporary files
8351 # if $TMPDIR is not set:
8352 # /tmp where it might want to write temporary files
8355 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8358 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8360 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8361 test -d $ac_dir ||
continue
8362 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8363 ac_xdir
=$ac_dir/cf$$
8364 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8365 ac_tf1
=$ac_xdir/conftest9012345
8366 ac_tf2
=$ac_xdir/conftest9012346
8367 (echo 1 >$ac_tf1) 2>/dev
/null
8368 (echo 2 >$ac_tf2) 2>/dev
/null
8369 ac_val
=`cat $ac_tf1 2>/dev/null`
8370 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8371 ac_cv_sys_long_file_names
=no
8372 rm -rf $ac_xdir 2>/dev
/null
8375 rm -rf $ac_xdir 2>/dev
/null
8378 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8379 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8380 if test $ac_cv_sys_long_file_names = yes; then
8382 cat >>confdefs.h
<<\_ACEOF
8383 #define HAVE_LONG_FILE_NAMES 1
8389 #### Choose a window system.
8391 echo "$as_me:$LINENO: checking for X" >&5
8392 echo $ECHO_N "checking for X... $ECHO_C" >&6
8394 ac_path_x_has_been_run
=yes
8396 # Check whether --with-x or --without-x was given.
8397 if test "${with_x+set}" = set; then
8401 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8402 if test "x$with_x" = xno
; then
8403 # The user explicitly disabled X.
8406 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8407 # Both variables are already set.
8410 if test "${ac_cv_have_x+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 # One or both of the vars are not set, and there is no cached value.
8414 ac_x_includes
=no ac_x_libraries
=no
8416 if mkdir conftest.dir
; then
8418 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8419 cat >Imakefile
<<'_ACEOF'
8421 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8423 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8425 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8426 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8427 for ac_extension
in a so sl
; do
8428 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8429 test -f $ac_im_libdir/libX11.
$ac_extension; then
8430 ac_im_usrlibdir
=$ac_im_libdir; break
8433 # Screen out bogus values from the imake configuration. They are
8434 # bogus both because they are the default anyway, and because
8435 # using them would break gcc on systems where it needs fixed includes.
8436 case $ac_im_incroot in
8438 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8440 case $ac_im_usrlibdir in
8442 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8449 # Standard set of common directories for X headers.
8450 # Check X11 before X11Rn because it is often a symlink to the current release.
8462 /usr/local/X11/include
8463 /usr/local/X11R6/include
8464 /usr/local/X11R5/include
8465 /usr/local/X11R4/include
8467 /usr/local/include/X11
8468 /usr/local/include/X11R6
8469 /usr/local/include/X11R5
8470 /usr/local/include/X11R4
8474 /usr/XFree86/include/X11
8478 /usr/unsupported/include
8480 /usr/local/x11r5/include
8481 /usr/lpp/Xamples/include
8483 /usr/openwin/include
8484 /usr/openwin/share/include'
8486 if test "$ac_x_includes" = no
; then
8487 # Guess where to find include files, by looking for a specified header file.
8488 # First, try using that file with no special directory specified.
8489 cat >conftest.
$ac_ext <<_ACEOF
8492 cat confdefs.h
>>conftest.
$ac_ext
8493 cat >>conftest.
$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <X11/Intrinsic.h>
8497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8500 grep -v '^ *+' conftest.er1
>conftest.err
8502 cat conftest.err
>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } >/dev
/null
; then
8505 if test -s conftest.err
; then
8506 ac_cpp_err
=$ac_c_preproc_warn_flag
8507 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8514 if test -z "$ac_cpp_err"; then
8515 # We can compile using X headers with no special include directory.
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.
$ac_ext >&5
8521 for ac_dir
in $ac_x_header_dirs; do
8522 if test -r "$ac_dir/X11/Intrinsic.h"; then
8523 ac_x_includes
=$ac_dir
8528 rm -f conftest.err conftest.
$ac_ext
8529 fi # $ac_x_includes = no
8531 if test "$ac_x_libraries" = no
; then
8532 # Check for the libraries.
8533 # See if we find them without any special options.
8534 # Don't add to $LIBS permanently.
8537 cat >conftest.
$ac_ext <<_ACEOF
8540 cat confdefs.h
>>conftest.
$ac_ext
8541 cat >>conftest.
$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 #include <X11/Intrinsic.h>
8552 rm -f conftest.
$ac_objext conftest
$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8556 grep -v '^ *+' conftest.er1
>conftest.err
8558 cat conftest.err
>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try
='test -z "$ac_c_werror_flag"
8562 || test ! -s conftest.err'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try
='test -s conftest$ac_exeext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8575 # We can link X programs with no special library path.
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.
$ac_ext >&5
8582 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8584 # Don't even attempt the hair of trying to link an X program!
8585 for ac_extension
in a so sl
; do
8586 if test -r $ac_dir/libXt.
$ac_extension; then
8587 ac_x_libraries
=$ac_dir
8593 rm -f conftest.err conftest.
$ac_objext \
8594 conftest
$ac_exeext conftest.
$ac_ext
8595 fi # $ac_x_libraries = no
8597 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8598 # Didn't find X anywhere. Cache the known absence of X.
8599 ac_cv_have_x
="have_x=no"
8601 # Record where we found X for the cache.
8602 ac_cv_have_x
="have_x=yes \
8603 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8608 eval "$ac_cv_have_x"
8611 if test "$have_x" != yes; then
8612 echo "$as_me:$LINENO: result: $have_x" >&5
8613 echo "${ECHO_T}$have_x" >&6
8616 # If each of the values was on the command line, it overrides each guess.
8617 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8618 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8619 # Update the cache value to reflect the command line values.
8620 ac_cv_have_x
="have_x=yes \
8621 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8622 # It might be that x_includes is empty (headers are found in the
8623 # standard search path. Then output the corresponding message
8624 ac_out_x_includes
=$x_includes
8625 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8626 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8627 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8630 if test "$no_x" = yes; then
8636 if test "${x_libraries}" != NONE
; then
8637 if test -n "${x_libraries}"; then
8638 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8639 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8641 x_default_search_path
=""
8642 x_search_path
=${x_libraries}
8643 if test -z "${x_search_path}"; then
8644 x_search_path
=/usr
/lib
8646 for x_library
in `echo ${x_search_path}: | \
8647 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8649 ${x_library}/X11/%L/%T/%N%C%S:\
8650 ${x_library}/X11/%l/%T/%N%C%S:\
8651 ${x_library}/X11/%T/%N%C%S:\
8652 ${x_library}/X11/%L/%T/%N%S:\
8653 ${x_library}/X11/%l/%T/%N%S:\
8654 ${x_library}/X11/%T/%N%S"
8655 if test x
"${x_default_search_path}" = x
; then
8656 x_default_search_path
=${x_search_path}
8658 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8662 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8663 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8666 if test x
"${x_includes}" = x
; then
8667 bitmapdir
=/usr
/include
/X11
/bitmaps
8669 # accumulate include directories that have X11 bitmap subdirectories
8671 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8672 if test -d "${bmd}/X11/bitmaps"; then
8673 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8675 if test -d "${bmd}/bitmaps"; then
8676 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8679 if test ${bmd_acc} != "dummyval"; then
8680 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8685 if test "${with_carbon}" != no
; then
8686 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8687 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8688 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8689 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8693 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8695 # Is the header compilable?
8696 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8697 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8698 cat >conftest.
$ac_ext <<_ACEOF
8701 cat confdefs.h
>>conftest.
$ac_ext
8702 cat >>conftest.
$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 #include <Carbon/Carbon.h>
8707 rm -f conftest.
$ac_objext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8709 (eval $ac_compile) 2>conftest.er1
8711 grep -v '^ *+' conftest.er1
>conftest.err
8713 cat conftest.err
>&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try
='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try
='test -s conftest.$ac_objext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_header_compiler
=yes
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.
$ac_ext >&5
8734 ac_header_compiler
=no
8736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8738 echo "${ECHO_T}$ac_header_compiler" >&6
8740 # Is the header present?
8741 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8742 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8743 cat >conftest.
$ac_ext <<_ACEOF
8746 cat confdefs.h
>>conftest.
$ac_ext
8747 cat >>conftest.
$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <Carbon/Carbon.h>
8751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8752 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8754 grep -v '^ *+' conftest.er1
>conftest.err
8756 cat conftest.err
>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } >/dev
/null
; then
8759 if test -s conftest.err
; then
8760 ac_cpp_err
=$ac_c_preproc_warn_flag
8761 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8768 if test -z "$ac_cpp_err"; then
8769 ac_header_preproc
=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8774 ac_header_preproc
=no
8776 rm -f conftest.err conftest.
$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8778 echo "${ECHO_T}$ac_header_preproc" >&6
8780 # So? What about this header?
8781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8783 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8784 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8786 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8787 ac_header_preproc
=yes
8790 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8791 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8793 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8795 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8797 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8799 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8800 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8801 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8804 ## ------------------------------------------ ##
8805 ## Report this to the AC_PACKAGE_NAME lists. ##
8806 ## ------------------------------------------ ##
8809 sed "s/^/$as_me: WARNING: /" >&2
8812 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8813 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8814 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8819 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8820 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8823 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8829 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8830 if test "${with_carbon+set}" != set \
8831 && test "${carbon_appdir_x+set}" != set; then
8832 for var
in with_x with_x_toolkit with_gtk with_xim \
8833 with_xpm with_jpeg with_tiff with_gif with_png
; do
8834 if eval test \"\
${$var+set}\" = set; then
8841 if test "${HAVE_CARBON}" = yes; then
8845 case "${window_system}" in
8849 case "${with_x_toolkit}" in
8850 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8851 motif
) USE_X_TOOLKIT
=MOTIF
;;
8853 USE_X_TOOLKIT
=none
;;
8854 no
) USE_X_TOOLKIT
=none
;;
8855 * ) USE_X_TOOLKIT
=maybe
;;
8865 ### If we're using X11, we should use the X menu package.
8868 yes ) HAVE_MENUS
=yes ;;
8871 if test "${opsys}" = "hpux9"; then
8872 case "${x_libraries}" in
8874 opsysfile
="s/hpux9-x11r4.h"
8879 if test "${opsys}" = "hpux9shr"; then
8880 case "${x_libraries}" in
8882 opsysfile
="s/hpux9shxr4.h"
8887 ### Compute the unexec source name from the object name.
8888 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8890 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8891 # Assume not, until told otherwise.
8894 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8895 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8896 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 cat >conftest.
$ac_ext <<_ACEOF
8902 cat confdefs.h
>>conftest.
$ac_ext
8903 cat >>conftest.
$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8907 #define malloc_get_state innocuous_malloc_get_state
8909 /* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char malloc_get_state (); below.
8911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912 <limits.h> exists even on freestanding compilers. */
8915 # include <limits.h>
8917 # include <assert.h>
8920 #undef malloc_get_state
8922 /* Override any gcc2 internal prototype to avoid an error. */
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929 char malloc_get_state ();
8930 /* The GNU C library defines this for functions which it implements
8931 to always fail with ENOSYS. Some functions are actually named
8932 something starting with __ and the normal name is an alias. */
8933 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8936 char (*f) () = malloc_get_state;
8945 return f != malloc_get_state;
8950 rm -f conftest.
$ac_objext conftest
$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8954 grep -v '^ *+' conftest.er1
>conftest.err
8956 cat conftest.err
>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try
='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try
='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_func_malloc_get_state
=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.
$ac_ext >&5
8977 ac_cv_func_malloc_get_state
=no
8979 rm -f conftest.err conftest.
$ac_objext \
8980 conftest
$ac_exeext conftest.
$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8983 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8984 if test $ac_cv_func_malloc_get_state = yes; then
8990 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8991 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8992 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 cat >conftest.
$ac_ext <<_ACEOF
8998 cat confdefs.h
>>conftest.
$ac_ext
8999 cat >>conftest.
$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9003 #define malloc_set_state innocuous_malloc_set_state
9005 /* System header to define __stub macros and hopefully few prototypes,
9006 which can conflict with char malloc_set_state (); below.
9007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008 <limits.h> exists even on freestanding compilers. */
9011 # include <limits.h>
9013 # include <assert.h>
9016 #undef malloc_set_state
9018 /* Override any gcc2 internal prototype to avoid an error. */
9023 /* We use char because int might match the return type of a gcc2
9024 builtin and then its argument prototype would still apply. */
9025 char malloc_set_state ();
9026 /* The GNU C library defines this for functions which it implements
9027 to always fail with ENOSYS. Some functions are actually named
9028 something starting with __ and the normal name is an alias. */
9029 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9032 char (*f) () = malloc_set_state;
9041 return f != malloc_set_state;
9046 rm -f conftest.
$ac_objext conftest
$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9050 grep -v '^ *+' conftest.er1
>conftest.err
9052 cat conftest.err
>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try
='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try
='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_func_malloc_set_state
=yes
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.
$ac_ext >&5
9073 ac_cv_func_malloc_set_state
=no
9075 rm -f conftest.err conftest.
$ac_objext \
9076 conftest
$ac_exeext conftest.
$ac_ext
9078 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9079 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9080 if test $ac_cv_func_malloc_set_state = yes; then
9086 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9087 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9088 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 cat >conftest.
$ac_ext <<_ACEOF
9094 cat confdefs.h
>>conftest.
$ac_ext
9095 cat >>conftest.
$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 extern void (* __after_morecore_hook)();
9101 __after_morecore_hook = 0
9106 rm -f conftest.
$ac_objext conftest
$ac_exeext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>conftest.er1
9110 grep -v '^ *+' conftest.er1
>conftest.err
9112 cat conftest.err
>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try
='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try
='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 emacs_cv_var___after_morecore_hook
=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.
$ac_ext >&5
9133 emacs_cv_var___after_morecore_hook
=no
9135 rm -f conftest.err conftest.
$ac_objext \
9136 conftest
$ac_exeext conftest.
$ac_ext
9138 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9139 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9140 if test $emacs_cv_var___after_morecore_hook = no
; then
9143 if test "${system_malloc}" = "yes"; then
9146 (The GNU allocators don't work with this system configuration.)"
9148 if test "$doug_lea_malloc" = "yes" ; then
9149 if test "$GNU_MALLOC" = yes ; then
9151 (Using Doug Lea's new malloc from the GNU C Library.)"
9154 cat >>confdefs.h
<<\_ACEOF
9155 #define DOUG_LEA_MALLOC 1
9160 if test x
"${REL_ALLOC}" = x
; then
9161 REL_ALLOC
=${GNU_MALLOC}
9167 for ac_header
in stdlib.h unistd.h
9169 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 # Is the header compilable?
9180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9182 cat >conftest.
$ac_ext <<_ACEOF
9185 cat confdefs.h
>>conftest.
$ac_ext
9186 cat >>conftest.
$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 #include <$ac_header>
9191 rm -f conftest.
$ac_objext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9193 (eval $ac_compile) 2>conftest.er1
9195 grep -v '^ *+' conftest.er1
>conftest.err
9197 cat conftest.err
>&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try
='test -z "$ac_c_werror_flag"
9201 || test ! -s conftest.err'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; } &&
9207 { ac_try
='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_header_compiler
=yes
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.
$ac_ext >&5
9218 ac_header_compiler
=no
9220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 echo "${ECHO_T}$ac_header_compiler" >&6
9224 # Is the header present?
9225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9227 cat >conftest.
$ac_ext <<_ACEOF
9230 cat confdefs.h
>>conftest.
$ac_ext
9231 cat >>conftest.
$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 #include <$ac_header>
9235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9236 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1
>conftest.err
9240 cat conftest.err
>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev
/null
; then
9243 if test -s conftest.err
; then
9244 ac_cpp_err
=$ac_c_preproc_warn_flag
9245 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9252 if test -z "$ac_cpp_err"; then
9253 ac_header_preproc
=yes
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.
$ac_ext >&5
9258 ac_header_preproc
=no
9260 rm -f conftest.err conftest.
$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9262 echo "${ECHO_T}$ac_header_preproc" >&6
9264 # So? What about this header?
9265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9271 ac_header_preproc
=yes
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9288 ## ------------------------------------------ ##
9289 ## Report this to the AC_PACKAGE_NAME lists. ##
9290 ## ------------------------------------------ ##
9293 sed "s/^/$as_me: WARNING: /" >&2
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 eval "$as_ac_Header=\$ac_header_preproc"
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308 cat >>confdefs.h
<<_ACEOF
9309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317 for ac_func
in getpagesize
9319 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320 echo "$as_me:$LINENO: checking for $ac_func" >&5
9321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_var+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.
$ac_ext <<_ACEOF
9328 cat confdefs.h
>>conftest.
$ac_ext
9329 cat >>conftest.
$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9333 #define $ac_func innocuous_$ac_func
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char $ac_func (); below.
9337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338 <limits.h> exists even on freestanding compilers. */
9341 # include <limits.h>
9343 # include <assert.h>
9348 /* Override any gcc2 internal prototype to avoid an error. */
9353 /* We use char because int might match the return type of a gcc2
9354 builtin and then its argument prototype would still apply. */
9356 /* The GNU C library defines this for functions which it implements
9357 to always fail with ENOSYS. Some functions are actually named
9358 something starting with __ and the normal name is an alias. */
9359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9362 char (*f) () = $ac_func;
9371 return f != $ac_func;
9376 rm -f conftest.
$ac_objext conftest
$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9380 grep -v '^ *+' conftest.er1
>conftest.err
9382 cat conftest.err
>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try
='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try
='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 eval "$as_ac_var=yes"
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.
$ac_ext >&5
9403 eval "$as_ac_var=no"
9405 rm -f conftest.err conftest.
$ac_objext \
9406 conftest
$ac_exeext conftest.
$ac_ext
9408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9410 if test `eval echo '${'$as_ac_var'}'` = yes; then
9411 cat >>confdefs.h
<<_ACEOF
9412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9418 echo "$as_me:$LINENO: checking for working mmap" >&5
9419 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9420 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 if test "$cross_compiling" = yes; then
9424 ac_cv_func_mmap_fixed_mapped
=no
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9433 /* malloc might have been renamed as rpl_malloc. */
9436 /* Thanks to Mike Haertel and Jim Avera for this test.
9437 Here is a matrix of mmap possibilities:
9438 mmap private not fixed
9439 mmap private fixed at somewhere currently unmapped
9440 mmap private fixed at somewhere already mapped
9441 mmap shared not fixed
9442 mmap shared fixed at somewhere currently unmapped
9443 mmap shared fixed at somewhere already mapped
9444 For private mappings, we should verify that changes cannot be read()
9445 back from the file, nor mmap's back from the file at a different
9446 address. (There have been systems where private was not correctly
9447 implemented like the infamous i386 svr4.0, and systems where the
9448 VM page cache was not coherent with the file system buffer cache
9449 like early versions of FreeBSD and possibly contemporary NetBSD.)
9450 For shared mappings, we should conversely verify that changes get
9451 propagated back to all the places they're supposed to be.
9453 Grep wants private fixed already mapped.
9454 The main things grep needs to know about mmap are:
9455 * does it exist and is it safe to write into the mmap'd area
9456 * how to use it (BSD variants) */
9459 #include <sys/mman.h>
9461 #if !STDC_HEADERS && !HAVE_STDLIB_H
9465 /* This mess was copied from the GNU getpagesize.h. */
9466 #if !HAVE_GETPAGESIZE
9467 /* Assume that all systems that can run configure have sys/param.h. */
9468 # if !HAVE_SYS_PARAM_H
9469 # define HAVE_SYS_PARAM_H 1
9472 # ifdef _SC_PAGESIZE
9473 # define getpagesize() sysconf(_SC_PAGESIZE)
9474 # else /* no _SC_PAGESIZE */
9475 # if HAVE_SYS_PARAM_H
9476 # include <sys/param.h>
9477 # ifdef EXEC_PAGESIZE
9478 # define getpagesize() EXEC_PAGESIZE
9479 # else /* no EXEC_PAGESIZE */
9481 # define getpagesize() NBPG * CLSIZE
9484 # endif /* no CLSIZE */
9485 # else /* no NBPG */
9487 # define getpagesize() NBPC
9488 # else /* no NBPC */
9490 # define getpagesize() PAGESIZE
9491 # endif /* PAGESIZE */
9492 # endif /* no NBPC */
9493 # endif /* no NBPG */
9494 # endif /* no EXEC_PAGESIZE */
9495 # else /* no HAVE_SYS_PARAM_H */
9496 # define getpagesize() 8192 /* punt totally */
9497 # endif /* no HAVE_SYS_PARAM_H */
9498 # endif /* no _SC_PAGESIZE */
9500 #endif /* no HAVE_GETPAGESIZE */
9505 char *data, *data2, *data3;
9509 pagesize = getpagesize ();
9511 /* First, make a file with some known garbage in it. */
9512 data = (char *) malloc (pagesize);
9515 for (i = 0; i < pagesize; ++i)
9516 *(data + i) = rand ();
9518 fd = creat ("conftest.mmap", 0600);
9521 if (write (fd, data, pagesize) != pagesize)
9525 /* Next, try to mmap the file at a fixed address which already has
9526 something else allocated at it. If we can, also make sure that
9527 we see the same garbage. */
9528 fd = open ("conftest.mmap", O_RDWR);
9531 data2 = (char *) malloc (2 * pagesize);
9534 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9535 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9536 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9538 for (i = 0; i < pagesize; ++i)
9539 if (*(data + i) != *(data2 + i))
9542 /* Finally, make sure that changes to the mapped area do not
9543 percolate back to the file as seen by read(). (This is a bug on
9544 some variants of i386 svr4.0.) */
9545 for (i = 0; i < pagesize; ++i)
9546 *(data2 + i) = *(data2 + i) + 1;
9547 data3 = (char *) malloc (pagesize);
9550 if (read (fd, data3, pagesize) != pagesize)
9552 for (i = 0; i < pagesize; ++i)
9553 if (*(data + i) != *(data3 + i))
9559 rm -f conftest
$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_func_mmap_fixed_mapped
=yes
9572 echo "$as_me: program exited with status $ac_status" >&5
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.
$ac_ext >&5
9577 ac_cv_func_mmap_fixed_mapped
=no
9579 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9582 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9583 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9586 cat >>confdefs.h
<<\_ACEOF
9593 if test $use_mmap_for_buffers = yes; then
9597 LIBS
="$libsrc_libs $LIBS"
9600 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9601 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9602 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 ac_check_lib_save_LIBS
=$LIBS
9607 cat >conftest.
$ac_ext <<_ACEOF
9610 cat confdefs.h
>>conftest.
$ac_ext
9611 cat >>conftest.
$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any gcc2 internal prototype to avoid an error. */
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9629 rm -f conftest.
$ac_objext conftest
$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9633 grep -v '^ *+' conftest.er1
>conftest.err
9635 cat conftest.err
>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try
='test -z "$ac_c_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try
='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_dnet_dnet_ntoa
=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.
$ac_ext >&5
9656 ac_cv_lib_dnet_dnet_ntoa
=no
9658 rm -f conftest.err conftest.
$ac_objext \
9659 conftest
$ac_exeext conftest.
$ac_ext
9660 LIBS
=$ac_check_lib_save_LIBS
9662 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9664 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9665 cat >>confdefs.h
<<_ACEOF
9666 #define HAVE_LIBDNET 1
9674 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9675 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9676 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 ac_check_lib_save_LIBS
=$LIBS
9681 cat >conftest.
$ac_ext <<_ACEOF
9684 cat confdefs.h
>>conftest.
$ac_ext
9685 cat >>conftest.
$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9697 rm -f conftest.
$ac_objext conftest
$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>conftest.er1
9701 grep -v '^ *+' conftest.er1
>conftest.err
9703 cat conftest.err
>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try
='test -z "$ac_c_werror_flag"
9707 || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try
='test -s conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_lib_Xbsd_main
=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.
$ac_ext >&5
9724 ac_cv_lib_Xbsd_main
=no
9726 rm -f conftest.err conftest.
$ac_objext \
9727 conftest
$ac_exeext conftest.
$ac_ext
9728 LIBS
=$ac_check_lib_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9731 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9732 if test $ac_cv_lib_Xbsd_main = yes; then
9733 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9738 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9739 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9740 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 ac_check_lib_save_LIBS
=$LIBS
9744 LIBS
="-lpthreads $LIBS"
9745 cat >conftest.
$ac_ext <<_ACEOF
9748 cat confdefs.h
>>conftest.
$ac_ext
9749 cat >>conftest.
$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any gcc2 internal prototype to avoid an error. */
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9767 rm -f conftest.
$ac_objext conftest
$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>conftest.er1
9771 grep -v '^ *+' conftest.er1
>conftest.err
9773 cat conftest.err
>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try
='test -z "$ac_c_werror_flag"
9777 || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try
='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_lib_pthreads_cma_open
=yes
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.
$ac_ext >&5
9794 ac_cv_lib_pthreads_cma_open
=no
9796 rm -f conftest.err conftest.
$ac_objext \
9797 conftest
$ac_exeext conftest.
$ac_ext
9798 LIBS
=$ac_check_lib_save_LIBS
9800 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9801 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9802 if test $ac_cv_lib_pthreads_cma_open = yes; then
9803 cat >>confdefs.h
<<_ACEOF
9804 #define HAVE_LIBPTHREADS 1
9807 LIBS
="-lpthreads $LIBS"
9812 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9813 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9814 if test -d /usr
/X386
/include
; then
9816 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9820 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9821 echo "${ECHO_T}$HAVE_XFREE386" >&6
9826 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9827 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9828 if test "${gdb_cv_bigtoc+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9834 *) gdb_cv_bigtoc
=-bbigtoc ;;
9837 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9838 cat >conftest.
$ac_ext <<_ACEOF
9841 cat confdefs.h
>>conftest.
$ac_ext
9842 cat >>conftest.
$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9853 rm -f conftest.
$ac_objext conftest
$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1
>conftest.err
9859 cat conftest.err
>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try
='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try
='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.
$ac_ext >&5
9882 rm -f conftest.err conftest.
$ac_objext \
9883 conftest
$ac_exeext conftest.
$ac_ext
9886 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9887 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9891 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9892 # used for the tests that follow. We set them back to REAL_CFLAGS and
9893 # REAL_CPPFLAGS later on.
9895 REAL_CPPFLAGS
="$CPPFLAGS"
9897 if test "${HAVE_X11}" = "yes"; then
9898 DEFS
="$C_SWITCH_X_SITE $DEFS"
9899 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9901 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9902 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9904 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9905 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9906 # but it's more convenient here to set LD_RUN_PATH
9907 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9908 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9909 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9913 if test "${opsys}" = "gnu-linux"; then
9914 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9915 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9916 cat >conftest.
$ac_ext <<_ACEOF
9919 cat confdefs.h
>>conftest.
$ac_ext
9920 cat >>conftest.
$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9926 XOpenDisplay ("foo");
9931 rm -f conftest.
$ac_objext conftest
$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>conftest.er1
9935 grep -v '^ *+' conftest.er1
>conftest.err
9937 cat conftest.err
>&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try
='test -z "$ac_c_werror_flag"
9941 || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try
='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 xlinux_first_failure
=no
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.
$ac_ext >&5
9958 xlinux_first_failure
=yes
9960 rm -f conftest.err conftest.
$ac_objext \
9961 conftest
$ac_exeext conftest.
$ac_ext
9962 if test "${xlinux_first_failure}" = "yes"; then
9963 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9964 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9965 OLD_CPPFLAGS
="$CPPFLAGS"
9967 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9968 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9969 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9970 LIBS
="$LIBS -b i486-linuxaout"
9971 cat >conftest.
$ac_ext <<_ACEOF
9974 cat confdefs.h
>>conftest.
$ac_ext
9975 cat >>conftest.
$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9981 XOpenDisplay ("foo");
9986 rm -f conftest.
$ac_objext conftest
$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9990 grep -v '^ *+' conftest.er1
>conftest.err
9992 cat conftest.err
>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try
='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try
='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 xlinux_second_failure
=no
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.
$ac_ext >&5
10013 xlinux_second_failure
=yes
10015 rm -f conftest.err conftest.
$ac_objext \
10016 conftest
$ac_exeext conftest.
$ac_ext
10017 if test "${xlinux_second_failure}" = "yes"; then
10018 # If we get the same failure with -b, there is no use adding -b.
10019 # So take it out. This plays safe.
10020 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10021 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10022 CPPFLAGS
="$OLD_CPPFLAGS"
10024 echo "$as_me:$LINENO: result: no" >&5
10025 echo "${ECHO_T}no" >&6
10027 echo "$as_me:$LINENO: result: yes" >&5
10028 echo "${ECHO_T}yes" >&6
10031 echo "$as_me:$LINENO: result: no" >&5
10032 echo "${ECHO_T}no" >&6
10036 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10037 # header files included from there.
10038 echo "$as_me:$LINENO: checking for Xkb" >&5
10039 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10040 cat >conftest.
$ac_ext <<_ACEOF
10043 cat confdefs.h
>>conftest.
$ac_ext
10044 cat >>conftest.
$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <X11/Xlib.h>
10047 #include <X11/XKBlib.h>
10051 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10056 rm -f conftest.
$ac_objext conftest
$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>conftest.er1
10060 grep -v '^ *+' conftest.er1
>conftest.err
10062 cat conftest.err
>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try
='test -z "$ac_c_werror_flag"
10066 || test ! -s conftest.err'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try
='test -s conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.
$ac_ext >&5
10085 rm -f conftest.err conftest.
$ac_objext \
10086 conftest
$ac_exeext conftest.
$ac_ext
10087 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10088 echo "${ECHO_T}$emacs_xkb" >&6
10089 if test $emacs_xkb = yes; then
10091 cat >>confdefs.h
<<\_ACEOF
10092 #define HAVE_XKBGETKEYBOARD 1
10101 for ac_func
in XrmSetDatabase XScreenResourceString \
10102 XScreenNumberOfScreen XSetWMProtocols
10104 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_var+set}\" = set"; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 cat >conftest.
$ac_ext <<_ACEOF
10113 cat confdefs.h
>>conftest.
$ac_ext
10114 cat >>conftest.
$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define $ac_func innocuous_$ac_func
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10126 # include <limits.h>
10128 # include <assert.h>
10133 /* Override any gcc2 internal prototype to avoid an error. */
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10147 char (*f) () = $ac_func;
10156 return f != $ac_func;
10161 rm -f conftest.
$ac_objext conftest
$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>conftest.er1
10165 grep -v '^ *+' conftest.er1
>conftest.err
10167 cat conftest.err
>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try
='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try
='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 eval "$as_ac_var=yes"
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.
$ac_ext >&5
10188 eval "$as_ac_var=no"
10190 rm -f conftest.err conftest.
$ac_objext \
10191 conftest
$ac_exeext conftest.
$ac_ext
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195 if test `eval echo '${'$as_ac_var'}'` = yes; then
10196 cat >>confdefs.h
<<_ACEOF
10197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10205 if test "${window_system}" = "x11"; then
10206 echo "$as_me:$LINENO: checking X11 version 6" >&5
10207 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10208 if test "${emacs_cv_x11_version_6+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 cat >conftest.
$ac_ext <<_ACEOF
10214 cat confdefs.h
>>conftest.
$ac_ext
10215 cat >>conftest.
$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 #include <X11/Xlib.h>
10221 #if XlibSpecificationRelease < 6
10229 rm -f conftest.
$ac_objext conftest
$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10233 grep -v '^ *+' conftest.er1
>conftest.err
10235 cat conftest.err
>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try
='test -z "$ac_c_werror_flag"
10239 || test ! -s conftest.err'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try
='test -s conftest$ac_exeext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 emacs_cv_x11_version_6
=yes
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.
$ac_ext >&5
10256 emacs_cv_x11_version_6
=no
10258 rm -f conftest.err conftest.
$ac_objext \
10259 conftest
$ac_exeext conftest.
$ac_ext
10262 if test $emacs_cv_x11_version_6 = yes; then
10263 echo "$as_me:$LINENO: result: 6 or newer" >&5
10264 echo "${ECHO_T}6 or newer" >&6
10266 cat >>confdefs.h
<<\_ACEOF
10267 #define HAVE_X11R6 1
10271 echo "$as_me:$LINENO: result: before 6" >&5
10272 echo "${ECHO_T}before 6" >&6
10276 if test "${window_system}" = "x11"; then
10277 echo "$as_me:$LINENO: checking X11 version 5" >&5
10278 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10279 if test "${emacs_cv_x11_version_5+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 cat >conftest.
$ac_ext <<_ACEOF
10285 cat confdefs.h
>>conftest.
$ac_ext
10286 cat >>conftest.
$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <X11/Xlib.h>
10292 #if XlibSpecificationRelease < 5
10300 rm -f conftest.
$ac_objext conftest
$ac_exeext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302 (eval $ac_link) 2>conftest.er1
10304 grep -v '^ *+' conftest.er1
>conftest.err
10306 cat conftest.err
>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try
='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try
='test -s conftest$ac_exeext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 emacs_cv_x11_version_5
=yes
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.
$ac_ext >&5
10327 emacs_cv_x11_version_5
=no
10329 rm -f conftest.err conftest.
$ac_objext \
10330 conftest
$ac_exeext conftest.
$ac_ext
10333 if test $emacs_cv_x11_version_5 = yes; then
10334 echo "$as_me:$LINENO: result: 5 or newer" >&5
10335 echo "${ECHO_T}5 or newer" >&6
10338 cat >>confdefs.h
<<\_ACEOF
10339 #define HAVE_X11R5 1
10344 echo "$as_me:$LINENO: result: before 5" >&5
10345 echo "${ECHO_T}before 5" >&6
10350 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10351 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10352 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10353 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10354 { (exit 1); exit 1; }; };
10358 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10360 if test "X${with_pkg_config_prog}" != X
; then
10361 PKG_CONFIG
="${with_pkg_config_prog}"
10366 if test -z "$PKG_CONFIG"; then
10367 # Extract the first word of "pkg-config", so it can be a program name with args.
10368 set dummy pkg-config
; ac_word
=$2
10369 echo "$as_me:$LINENO: checking for $ac_word" >&5
10370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10371 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 case $PKG_CONFIG in
10376 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10380 for as_dir
in $PATH
10383 test -z "$as_dir" && as_dir
=.
10384 for ac_exec_ext
in '' $ac_executable_extensions; do
10385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10386 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10397 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10399 if test -n "$PKG_CONFIG"; then
10400 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10401 echo "${ECHO_T}$PKG_CONFIG" >&6
10403 echo "$as_me:$LINENO: result: no" >&5
10404 echo "${ECHO_T}no" >&6
10409 if test "$PKG_CONFIG" = "no" ; then
10410 { { echo "$as_me:$LINENO: error:
10411 *** 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
10412 echo "$as_me: error:
10413 *** 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;}
10414 { (exit 1); exit 1; }; }
10416 PKG_CONFIG_MIN_VERSION
=0.9.0
10417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10418 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10419 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10421 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6
10426 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10427 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10428 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10429 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10430 echo "${ECHO_T}$GTK_CFLAGS" >&6
10432 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10433 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10434 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10435 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10436 echo "${ECHO_T}$GTK_LIBS" >&6
10438 echo "$as_me:$LINENO: result: no" >&5
10439 echo "${ECHO_T}no" >&6
10442 ## If we have a custom action on failure, don't print errors, but
10443 ## do set a variable so people can do so.
10444 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10445 echo $GTK_PKG_ERRORS
10451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10456 if test $succeeded = yes; then
10459 { { 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
10460 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;}
10461 { (exit 1); exit 1; }; }
10466 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10467 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10468 LIBS
="$GTK_LIBS $LIBS"
10471 cat >>confdefs.h
<<\_ACEOF
10477 if test "$with_toolkit_scroll_bars" != no
; then
10478 with_toolkit_scroll_bars
=yes
10481 HAVE_GTK_MULTIDISPLAY
=no
10483 for ac_func
in gdk_display_open
10485 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10486 echo "$as_me:$LINENO: checking for $ac_func" >&5
10487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10488 if eval "test \"\${$as_ac_var+set}\" = set"; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 cat >conftest.
$ac_ext <<_ACEOF
10494 cat confdefs.h
>>conftest.
$ac_ext
10495 cat >>conftest.
$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10499 #define $ac_func innocuous_$ac_func
10501 /* System header to define __stub macros and hopefully few prototypes,
10502 which can conflict with char $ac_func (); below.
10503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10504 <limits.h> exists even on freestanding compilers. */
10507 # include <limits.h>
10509 # include <assert.h>
10514 /* Override any gcc2 internal prototype to avoid an error. */
10519 /* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10522 /* The GNU C library defines this for functions which it implements
10523 to always fail with ENOSYS. Some functions are actually named
10524 something starting with __ and the normal name is an alias. */
10525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10528 char (*f) () = $ac_func;
10537 return f != $ac_func;
10542 rm -f conftest.
$ac_objext conftest
$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>conftest.er1
10546 grep -v '^ *+' conftest.er1
>conftest.err
10548 cat conftest.err
>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try
='test -z "$ac_c_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try
='test -s conftest$ac_exeext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 eval "$as_ac_var=yes"
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.
$ac_ext >&5
10569 eval "$as_ac_var=no"
10571 rm -f conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10576 if test `eval echo '${'$as_ac_var'}'` = yes; then
10577 cat >>confdefs.h
<<_ACEOF
10578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10580 HAVE_GTK_MULTIDISPLAY
=yes
10584 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10586 cat >>confdefs.h
<<\_ACEOF
10587 #define HAVE_GTK_MULTIDISPLAY 1
10591 HAVE_GTK_FILE_SELECTION
=no
10593 for ac_func
in gtk_file_selection_new
10595 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596 echo "$as_me:$LINENO: checking for $ac_func" >&5
10597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10598 if eval "test \"\${$as_ac_var+set}\" = set"; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 cat >conftest.
$ac_ext <<_ACEOF
10604 cat confdefs.h
>>conftest.
$ac_ext
10605 cat >>conftest.
$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10609 #define $ac_func innocuous_$ac_func
10611 /* System header to define __stub macros and hopefully few prototypes,
10612 which can conflict with char $ac_func (); below.
10613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10614 <limits.h> exists even on freestanding compilers. */
10617 # include <limits.h>
10619 # include <assert.h>
10624 /* Override any gcc2 internal prototype to avoid an error. */
10629 /* We use char because int might match the return type of a gcc2
10630 builtin and then its argument prototype would still apply. */
10632 /* The GNU C library defines this for functions which it implements
10633 to always fail with ENOSYS. Some functions are actually named
10634 something starting with __ and the normal name is an alias. */
10635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10638 char (*f) () = $ac_func;
10647 return f != $ac_func;
10652 rm -f conftest.
$ac_objext conftest
$ac_exeext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654 (eval $ac_link) 2>conftest.er1
10656 grep -v '^ *+' conftest.er1
>conftest.err
10658 cat conftest.err
>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try
='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try
='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 eval "$as_ac_var=yes"
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.
$ac_ext >&5
10679 eval "$as_ac_var=no"
10681 rm -f conftest.err conftest.
$ac_objext \
10682 conftest
$ac_exeext conftest.
$ac_ext
10684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10686 if test `eval echo '${'$as_ac_var'}'` = yes; then
10687 cat >>confdefs.h
<<_ACEOF
10688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10690 HAVE_GTK_FILE_SELECTION
=yes
10695 HAVE_GTK_FILE_CHOOSER
=no
10697 for ac_func
in gtk_file_chooser_dialog_new
10699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10700 echo "$as_me:$LINENO: checking for $ac_func" >&5
10701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10702 if eval "test \"\${$as_ac_var+set}\" = set"; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 cat >conftest.
$ac_ext <<_ACEOF
10708 cat confdefs.h
>>conftest.
$ac_ext
10709 cat >>conftest.
$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10713 #define $ac_func innocuous_$ac_func
10715 /* System header to define __stub macros and hopefully few prototypes,
10716 which can conflict with char $ac_func (); below.
10717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10718 <limits.h> exists even on freestanding compilers. */
10721 # include <limits.h>
10723 # include <assert.h>
10728 /* Override any gcc2 internal prototype to avoid an error. */
10733 /* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10736 /* The GNU C library defines this for functions which it implements
10737 to always fail with ENOSYS. Some functions are actually named
10738 something starting with __ and the normal name is an alias. */
10739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10742 char (*f) () = $ac_func;
10751 return f != $ac_func;
10756 rm -f conftest.
$ac_objext conftest
$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>conftest.er1
10760 grep -v '^ *+' conftest.er1
>conftest.err
10762 cat conftest.err
>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try
='test -z "$ac_c_werror_flag"
10766 || test ! -s conftest.err'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try
='test -s conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 eval "$as_ac_var=yes"
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.
$ac_ext >&5
10783 eval "$as_ac_var=no"
10785 rm -f conftest.err conftest.
$ac_objext \
10786 conftest
$ac_exeext conftest.
$ac_ext
10788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10790 if test `eval echo '${'$as_ac_var'}'` = yes; then
10791 cat >>confdefs.h
<<_ACEOF
10792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10794 HAVE_GTK_FILE_CHOOSER
=yes
10799 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10800 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10802 cat >>confdefs.h
<<\_ACEOF
10803 #define HAVE_GTK_FILE_BOTH 1
10808 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10809 HAVE_GTK_AND_PTHREAD
=no
10811 for ac_header
in pthread.h
10813 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10815 echo "$as_me:$LINENO: checking for $ac_header" >&5
10816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10823 # Is the header compilable?
10824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10826 cat >conftest.
$ac_ext <<_ACEOF
10829 cat confdefs.h
>>conftest.
$ac_ext
10830 cat >>conftest.
$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10833 #include <$ac_header>
10835 rm -f conftest.
$ac_objext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>conftest.er1
10839 grep -v '^ *+' conftest.er1
>conftest.err
10841 cat conftest.err
>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try
='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try
='test -s conftest.$ac_objext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_header_compiler
=yes
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.
$ac_ext >&5
10862 ac_header_compiler
=no
10864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10866 echo "${ECHO_T}$ac_header_compiler" >&6
10868 # Is the header present?
10869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10871 cat >conftest.
$ac_ext <<_ACEOF
10874 cat confdefs.h
>>conftest.
$ac_ext
10875 cat >>conftest.
$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <$ac_header>
10879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10880 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10882 grep -v '^ *+' conftest.er1
>conftest.err
10884 cat conftest.err
>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } >/dev
/null
; then
10887 if test -s conftest.err
; then
10888 ac_cpp_err
=$ac_c_preproc_warn_flag
10889 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10896 if test -z "$ac_cpp_err"; then
10897 ac_header_preproc
=yes
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.
$ac_ext >&5
10902 ac_header_preproc
=no
10904 rm -f conftest.err conftest.
$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10906 echo "${ECHO_T}$ac_header_preproc" >&6
10908 # So? What about this header?
10909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10915 ac_header_preproc
=yes
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10932 ## ------------------------------------------ ##
10933 ## Report this to the AC_PACKAGE_NAME lists. ##
10934 ## ------------------------------------------ ##
10937 sed "s/^/$as_me: WARNING: /" >&2
10940 echo "$as_me:$LINENO: checking for $ac_header" >&5
10941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 eval "$as_ac_Header=\$ac_header_preproc"
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10952 cat >>confdefs.h
<<_ACEOF
10953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10960 if test "$ac_cv_header_pthread_h"; then
10961 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10962 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10963 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 ac_check_lib_save_LIBS
=$LIBS
10967 LIBS
="-lpthread $LIBS"
10968 cat >conftest.
$ac_ext <<_ACEOF
10971 cat confdefs.h
>>conftest.
$ac_ext
10972 cat >>conftest.
$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 /* Override any gcc2 internal prototype to avoid an error. */
10979 /* We use char because int might match the return type of a gcc2
10980 builtin and then its argument prototype would still apply. */
10981 char pthread_self ();
10990 rm -f conftest.
$ac_objext conftest
$ac_exeext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10992 (eval $ac_link) 2>conftest.er1
10994 grep -v '^ *+' conftest.er1
>conftest.err
10996 cat conftest.err
>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try
='test -z "$ac_c_werror_flag"
11000 || test ! -s conftest.err'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; } &&
11006 { ac_try
='test -s conftest$ac_exeext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 ac_cv_lib_pthread_pthread_self
=yes
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.
$ac_ext >&5
11017 ac_cv_lib_pthread_pthread_self
=no
11019 rm -f conftest.err conftest.
$ac_objext \
11020 conftest
$ac_exeext conftest.
$ac_ext
11021 LIBS
=$ac_check_lib_save_LIBS
11023 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11024 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11025 if test $ac_cv_lib_pthread_pthread_self = yes; then
11026 HAVE_GTK_AND_PTHREAD
=yes
11030 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11031 GTK_LIBS
="$GTK_LIBS -lpthread"
11033 cat >>confdefs.h
<<\_ACEOF
11034 #define HAVE_GTK_AND_PTHREAD 1
11041 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11042 if test x
"${HAVE_X11R5}" = xyes
; then
11043 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11044 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11045 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 cat >conftest.
$ac_ext <<_ACEOF
11051 cat confdefs.h
>>conftest.
$ac_ext
11052 cat >>conftest.
$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11055 #include <X11/Intrinsic.h>
11056 #include <X11/Xaw/Simple.h>
11065 rm -f conftest.
$ac_objext conftest
$ac_exeext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067 (eval $ac_link) 2>conftest.er1
11069 grep -v '^ *+' conftest.er1
>conftest.err
11071 cat conftest.err
>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try
='test -z "$ac_c_werror_flag"
11075 || test ! -s conftest.err'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try
='test -s conftest$ac_exeext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 emacs_cv_x11_version_5_with_xaw
=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.
$ac_ext >&5
11092 emacs_cv_x11_version_5_with_xaw
=no
11094 rm -f conftest.err conftest.
$ac_objext \
11095 conftest
$ac_exeext conftest.
$ac_ext
11098 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11099 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11100 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11101 USE_X_TOOLKIT
=LUCID
11103 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11104 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11112 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11114 if test "${USE_X_TOOLKIT}" != "none"; then
11115 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11116 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11117 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 cat >conftest.
$ac_ext <<_ACEOF
11123 cat confdefs.h
>>conftest.
$ac_ext
11124 cat >>conftest.
$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <X11/Intrinsic.h>
11130 #if XtSpecificationRelease < 6
11138 rm -f conftest.
$ac_objext conftest
$ac_exeext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140 (eval $ac_link) 2>conftest.er1
11142 grep -v '^ *+' conftest.er1
>conftest.err
11144 cat conftest.err
>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try
='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try
='test -s conftest$ac_exeext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 emacs_cv_x11_toolkit_version_6
=yes
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.
$ac_ext >&5
11165 emacs_cv_x11_toolkit_version_6
=no
11167 rm -f conftest.err conftest.
$ac_objext \
11168 conftest
$ac_exeext conftest.
$ac_ext
11171 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11172 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11173 echo "$as_me:$LINENO: result: 6 or newer" >&5
11174 echo "${ECHO_T}6 or newer" >&6
11176 cat >>confdefs.h
<<\_ACEOF
11177 #define HAVE_X11XTR6 1
11181 echo "$as_me:$LINENO: result: before 6" >&5
11182 echo "${ECHO_T}before 6" >&6
11186 if test x
$HAVE_X11XTR6 = xyes
; then
11187 LIBS
="-lXt -lSM -lICE $LIBS"
11192 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11193 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11194 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 ac_check_lib_save_LIBS
=$LIBS
11199 cat >conftest.
$ac_ext <<_ACEOF
11202 cat confdefs.h
>>conftest.
$ac_ext
11203 cat >>conftest.
$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11206 /* Override any gcc2 internal prototype to avoid an error. */
11210 /* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11212 char XmuConvertStandardSelection ();
11216 XmuConvertStandardSelection ();
11221 rm -f conftest.
$ac_objext conftest
$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>conftest.er1
11225 grep -v '^ *+' conftest.er1
>conftest.err
11227 cat conftest.err
>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try
='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try
='test -s conftest$ac_exeext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.
$ac_ext >&5
11248 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11250 rm -f conftest.err conftest.
$ac_objext \
11251 conftest
$ac_exeext conftest.
$ac_ext
11252 LIBS
=$ac_check_lib_save_LIBS
11254 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11255 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11256 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11257 cat >>confdefs.h
<<_ACEOF
11258 #define HAVE_LIBXMU 1
11265 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11268 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11269 if test "${HAVE_X11}" = "yes"; then
11270 if test "${USE_X_TOOLKIT}" != "none"; then
11272 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11273 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11274 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 ac_check_lib_save_LIBS
=$LIBS
11278 LIBS
="-lXext $LIBS"
11279 cat >conftest.
$ac_ext <<_ACEOF
11282 cat confdefs.h
>>conftest.
$ac_ext
11283 cat >>conftest.
$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11286 /* Override any gcc2 internal prototype to avoid an error. */
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11292 char XShapeQueryExtension ();
11296 XShapeQueryExtension ();
11301 rm -f conftest.
$ac_objext conftest
$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>conftest.er1
11305 grep -v '^ *+' conftest.er1
>conftest.err
11307 cat conftest.err
>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try
='test -z "$ac_c_werror_flag"
11311 || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try
='test -s conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.
$ac_ext >&5
11328 ac_cv_lib_Xext_XShapeQueryExtension
=no
11330 rm -f conftest.err conftest.
$ac_objext \
11331 conftest
$ac_exeext conftest.
$ac_ext
11332 LIBS
=$ac_check_lib_save_LIBS
11334 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11335 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11336 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11337 cat >>confdefs.h
<<_ACEOF
11338 #define HAVE_LIBXEXT 1
11341 LIBS
="-lXext $LIBS"
11348 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11349 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11350 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11351 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 cat >conftest.
$ac_ext <<_ACEOF
11357 cat confdefs.h
>>conftest.
$ac_ext
11358 cat >>conftest.
$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11364 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11367 Motif version prior to 2.1.
11373 rm -f conftest.
$ac_objext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375 (eval $ac_compile) 2>conftest.er1
11377 grep -v '^ *+' conftest.er1
>conftest.err
11379 cat conftest.err
>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try
='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try
='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 emacs_cv_motif_version_2_1
=yes
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.
$ac_ext >&5
11400 emacs_cv_motif_version_2_1
=no
11402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11404 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11405 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11406 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11407 if test $emacs_cv_motif_version_2_1 = yes; then
11410 cat >>confdefs.h
<<\_ACEOF
11411 #define HAVE_MOTIF_2_1 1
11414 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11415 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11416 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 ac_check_lib_save_LIBS
=$LIBS
11421 cat >conftest.
$ac_ext <<_ACEOF
11424 cat confdefs.h
>>conftest.
$ac_ext
11425 cat >>conftest.
$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11428 /* Override any gcc2 internal prototype to avoid an error. */
11432 /* We use char because int might match the return type of a gcc2
11433 builtin and then its argument prototype would still apply. */
11434 char XpCreateContext ();
11438 XpCreateContext ();
11443 rm -f conftest.
$ac_objext conftest
$ac_exeext
11444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445 (eval $ac_link) 2>conftest.er1
11447 grep -v '^ *+' conftest.er1
>conftest.err
11449 cat conftest.err
>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try
='test -z "$ac_c_werror_flag"
11453 || test ! -s conftest.err'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try
='test -s conftest$ac_exeext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_lib_Xp_XpCreateContext
=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.
$ac_ext >&5
11470 ac_cv_lib_Xp_XpCreateContext
=no
11472 rm -f conftest.err conftest.
$ac_objext \
11473 conftest
$ac_exeext conftest.
$ac_ext
11474 LIBS
=$ac_check_lib_save_LIBS
11476 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11477 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11478 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11482 if test ${HAVE_LIBXP} = yes; then
11484 cat >>confdefs.h
<<\_ACEOF
11485 #define HAVE_LIBXP 1
11490 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11491 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11492 if test "${emacs_cv_lesstif+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 # We put this in CFLAGS temporarily to precede other -I options
11496 # that might be in CFLAGS temporarily.
11497 # We put this in CPPFLAGS where it precedes the other -I options.
11498 OLD_CPPFLAGS
=$CPPFLAGS
11500 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11501 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11502 cat >conftest.
$ac_ext <<_ACEOF
11505 cat confdefs.h
>>conftest.
$ac_ext
11506 cat >>conftest.
$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11517 rm -f conftest.
$ac_objext
11518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11519 (eval $ac_compile) 2>conftest.er1
11521 grep -v '^ *+' conftest.er1
>conftest.err
11523 cat conftest.err
>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try
='test -z "$ac_c_werror_flag"
11527 || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try
='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 emacs_cv_lesstif
=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.
$ac_ext >&5
11544 emacs_cv_lesstif
=no
11546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11548 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11549 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11550 if test $emacs_cv_lesstif = yes; then
11551 # Make sure this -I option remains in CPPFLAGS after it is set
11552 # back to REAL_CPPFLAGS.
11553 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11554 # have those other -I options anyway. Ultimately, having this
11555 # directory ultimately in CPPFLAGS will be enough.
11556 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11557 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11560 CPPFLAGS
=$OLD_CPPFLAGS
11565 ### Is -lXaw3d available?
11567 if test "${HAVE_X11}" = "yes"; then
11568 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11569 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11570 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11571 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 cat >conftest.
$ac_ext <<_ACEOF
11577 cat confdefs.h
>>conftest.
$ac_ext
11578 cat >>conftest.
$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <X11/Xaw3d/Scrollbar.h>
11582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11583 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11585 grep -v '^ *+' conftest.er1
>conftest.err
11587 cat conftest.err
>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } >/dev
/null
; then
11590 if test -s conftest.err
; then
11591 ac_cpp_err
=$ac_c_preproc_warn_flag
11592 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11599 if test -z "$ac_cpp_err"; then
11600 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.
$ac_ext >&5
11605 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11607 rm -f conftest.err conftest.
$ac_ext
11609 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11610 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11611 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11612 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11613 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11614 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 ac_check_lib_save_LIBS
=$LIBS
11618 LIBS
="-lXaw3d $LIBS"
11619 cat >conftest.
$ac_ext <<_ACEOF
11622 cat confdefs.h
>>conftest.
$ac_ext
11623 cat >>conftest.
$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11626 /* Override any gcc2 internal prototype to avoid an error. */
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11632 char XawScrollbarSetThumb ();
11636 XawScrollbarSetThumb ();
11641 rm -f conftest.
$ac_objext conftest
$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>conftest.er1
11645 grep -v '^ *+' conftest.er1
>conftest.err
11647 cat conftest.err
>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try
='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try
='test -s conftest$ac_exeext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.
$ac_ext >&5
11668 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11670 rm -f conftest.err conftest.
$ac_objext \
11671 conftest
$ac_exeext conftest.
$ac_ext
11672 LIBS
=$ac_check_lib_save_LIBS
11674 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11675 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11676 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11683 if test "${HAVE_XAW3D}" = "yes"; then
11685 cat >>confdefs.h
<<\_ACEOF
11686 #define HAVE_XAW3D 1
11695 USE_TOOLKIT_SCROLL_BARS
=no
11696 if test "${with_toolkit_scroll_bars}" != "no"; then
11697 if test "${USE_X_TOOLKIT}" != "none"; then
11698 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11699 cat >>confdefs.h
<<\_ACEOF
11700 #define USE_TOOLKIT_SCROLL_BARS 1
11704 USE_TOOLKIT_SCROLL_BARS
=yes
11705 elif test "${HAVE_XAW3D}" = "yes"; then
11706 cat >>confdefs.h
<<\_ACEOF
11707 #define USE_TOOLKIT_SCROLL_BARS 1
11710 USE_TOOLKIT_SCROLL_BARS
=yes
11712 elif test "${HAVE_GTK}" = "yes"; then
11713 cat >>confdefs.h
<<\_ACEOF
11714 #define USE_TOOLKIT_SCROLL_BARS 1
11717 USE_TOOLKIT_SCROLL_BARS
=yes
11718 elif test "${HAVE_CARBON}" = "yes"; then
11719 cat >>confdefs.h
<<\_ACEOF
11720 #define USE_TOOLKIT_SCROLL_BARS 1
11723 USE_TOOLKIT_SCROLL_BARS
=yes
11727 cat >conftest.
$ac_ext <<_ACEOF
11730 cat confdefs.h
>>conftest.
$ac_ext
11731 cat >>conftest.
$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11734 #include <X11/Xlib.h>
11735 #include <X11/Xresource.h>
11744 rm -f conftest.
$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746 (eval $ac_compile) 2>conftest.er1
11748 grep -v '^ *+' conftest.er1
>conftest.err
11750 cat conftest.err
>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try
='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try
='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11768 cat >>confdefs.h
<<\_ACEOF
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.
$ac_ext >&5
11778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11781 if test "${with_xim}" != "no"; then
11783 cat >>confdefs.h
<<\_ACEOF
11790 if test "${HAVE_XIM}" != "no"; then
11791 late_CFLAGS
=$CFLAGS
11792 if test "$GCC" = yes; then
11793 CFLAGS
="$CFLAGS --pedantic-errors"
11795 cat >conftest.
$ac_ext <<_ACEOF
11798 cat confdefs.h
>>conftest.
$ac_ext
11799 cat >>conftest.
$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11802 #include <X11/Xlib.h>
11803 #include <X11/Xresource.h>
11812 XPointer *client_data;
11814 /* If we're not using GCC, it's probably not XFree86, and this is
11815 probably right, but we can't use something like --pedantic-errors. */
11816 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11817 char*, XIMProc, XPointer*);
11819 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11825 rm -f conftest.
$ac_objext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11829 grep -v '^ *+' conftest.er1
>conftest.err
11831 cat conftest.err
>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try
='test -z "$ac_c_werror_flag"
11835 || test ! -s conftest.err'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try
='test -s conftest.$ac_objext'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; }; then
11847 emacs_cv_arg6_star
=yes
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.
$ac_ext >&5
11853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11855 if test "$emacs_cv_arg6_star" = yes; then
11856 cat >>confdefs.h
<<\_ACEOF
11857 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11861 cat >>confdefs.h
<<\_ACEOF
11862 #define XRegisterIMInstantiateCallback_arg6 XPointer
11866 CFLAGS
=$late_CFLAGS
11869 ### Use -lXpm if available, unless `--with-xpm=no'.
11871 if test "${HAVE_X11}" = "yes"; then
11872 if test "${with_xpm}" != "no"; then
11873 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11874 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11875 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11876 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11882 # Is the header compilable?
11883 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11884 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11885 cat >conftest.
$ac_ext <<_ACEOF
11888 cat confdefs.h
>>conftest.
$ac_ext
11889 cat >>conftest.
$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11892 #include <X11/xpm.h>
11894 rm -f conftest.
$ac_objext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1
>conftest.err
11900 cat conftest.err
>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try
='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try
='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_header_compiler
=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.
$ac_ext >&5
11921 ac_header_compiler
=no
11923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11925 echo "${ECHO_T}$ac_header_compiler" >&6
11927 # Is the header present?
11928 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11929 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11930 cat >conftest.
$ac_ext <<_ACEOF
11933 cat confdefs.h
>>conftest.
$ac_ext
11934 cat >>conftest.
$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 #include <X11/xpm.h>
11938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11941 grep -v '^ *+' conftest.er1
>conftest.err
11943 cat conftest.err
>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } >/dev
/null
; then
11946 if test -s conftest.err
; then
11947 ac_cpp_err
=$ac_c_preproc_warn_flag
11948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11955 if test -z "$ac_cpp_err"; then
11956 ac_header_preproc
=yes
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.
$ac_ext >&5
11961 ac_header_preproc
=no
11963 rm -f conftest.err conftest.
$ac_ext
11964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11965 echo "${ECHO_T}$ac_header_preproc" >&6
11967 # So? What about this header?
11968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11970 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11971 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11973 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11974 ac_header_preproc
=yes
11977 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11978 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11980 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11982 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11984 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11986 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11988 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11991 ## ------------------------------------------ ##
11992 ## Report this to the AC_PACKAGE_NAME lists. ##
11993 ## ------------------------------------------ ##
11996 sed "s/^/$as_me: WARNING: /" >&2
11999 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12000 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12001 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12006 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12007 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12010 if test $ac_cv_header_X11_xpm_h = yes; then
12011 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12012 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12013 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 ac_check_lib_save_LIBS
=$LIBS
12017 LIBS
="-lXpm -lX11 $LIBS"
12018 cat >conftest.
$ac_ext <<_ACEOF
12021 cat confdefs.h
>>conftest.
$ac_ext
12022 cat >>conftest.
$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12025 /* Override any gcc2 internal prototype to avoid an error. */
12029 /* We use char because int might match the return type of a gcc2
12030 builtin and then its argument prototype would still apply. */
12031 char XpmReadFileToPixmap ();
12035 XpmReadFileToPixmap ();
12040 rm -f conftest.
$ac_objext conftest
$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>conftest.er1
12044 grep -v '^ *+' conftest.er1
>conftest.err
12046 cat conftest.err
>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try
='test -z "$ac_c_werror_flag"
12050 || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try
='test -s conftest$ac_exeext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.
$ac_ext >&5
12067 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12069 rm -f conftest.err conftest.
$ac_objext \
12070 conftest
$ac_exeext conftest.
$ac_ext
12071 LIBS
=$ac_check_lib_save_LIBS
12073 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12074 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12075 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12082 if test "${HAVE_XPM}" = "yes"; then
12083 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12084 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12085 cat >conftest.
$ac_ext <<_ACEOF
12088 cat confdefs.h
>>conftest.
$ac_ext
12089 cat >>conftest.
$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 #include "X11/xpm.h"
12092 #ifndef XpmReturnAllocPixels
12093 no_return_alloc_pixels
12097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12098 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12106 if test "${HAVE_XPM}" = "yes"; then
12107 echo "$as_me:$LINENO: result: yes" >&5
12108 echo "${ECHO_T}yes" >&6
12110 echo "$as_me:$LINENO: result: no" >&5
12111 echo "${ECHO_T}no" >&6
12116 if test "${HAVE_XPM}" = "yes"; then
12118 cat >>confdefs.h
<<\_ACEOF
12125 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12127 if test "${HAVE_X11}" = "yes"; then
12128 if test "${with_jpeg}" != "no"; then
12129 if test "${ac_cv_header_jerror_h+set}" = set; then
12130 echo "$as_me:$LINENO: checking for jerror.h" >&5
12131 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12132 if test "${ac_cv_header_jerror_h+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12136 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12138 # Is the header compilable?
12139 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12140 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12141 cat >conftest.
$ac_ext <<_ACEOF
12144 cat confdefs.h
>>conftest.
$ac_ext
12145 cat >>conftest.
$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 #include <jerror.h>
12150 rm -f conftest.
$ac_objext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12152 (eval $ac_compile) 2>conftest.er1
12154 grep -v '^ *+' conftest.er1
>conftest.err
12156 cat conftest.err
>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try
='test -z "$ac_c_werror_flag"
12160 || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try
='test -s conftest.$ac_objext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_header_compiler
=yes
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.
$ac_ext >&5
12177 ac_header_compiler
=no
12179 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12181 echo "${ECHO_T}$ac_header_compiler" >&6
12183 # Is the header present?
12184 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12185 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12186 cat >conftest.
$ac_ext <<_ACEOF
12189 cat confdefs.h
>>conftest.
$ac_ext
12190 cat >>conftest.
$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 #include <jerror.h>
12194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12195 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12197 grep -v '^ *+' conftest.er1
>conftest.err
12199 cat conftest.err
>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } >/dev
/null
; then
12202 if test -s conftest.err
; then
12203 ac_cpp_err
=$ac_c_preproc_warn_flag
12204 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12211 if test -z "$ac_cpp_err"; then
12212 ac_header_preproc
=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.
$ac_ext >&5
12217 ac_header_preproc
=no
12219 rm -f conftest.err conftest.
$ac_ext
12220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12221 echo "${ECHO_T}$ac_header_preproc" >&6
12223 # So? What about this header?
12224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12226 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12227 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12229 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12230 ac_header_preproc
=yes
12233 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12234 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12235 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12236 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12238 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12240 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12242 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12244 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12247 ## ------------------------------------------ ##
12248 ## Report this to the AC_PACKAGE_NAME lists. ##
12249 ## ------------------------------------------ ##
12252 sed "s/^/$as_me: WARNING: /" >&2
12255 echo "$as_me:$LINENO: checking for jerror.h" >&5
12256 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12257 if test "${ac_cv_header_jerror_h+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 ac_cv_header_jerror_h
=$ac_header_preproc
12262 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12263 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12266 if test $ac_cv_header_jerror_h = yes; then
12267 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12268 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12269 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 ac_check_lib_save_LIBS
=$LIBS
12273 LIBS
="-ljpeg $LIBS"
12274 cat >conftest.
$ac_ext <<_ACEOF
12277 cat confdefs.h
>>conftest.
$ac_ext
12278 cat >>conftest.
$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char jpeg_destroy_compress ();
12291 jpeg_destroy_compress ();
12296 rm -f conftest.
$ac_objext conftest
$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>conftest.er1
12300 grep -v '^ *+' conftest.er1
>conftest.err
12302 cat conftest.err
>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try
='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try
='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.
$ac_ext >&5
12323 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12325 rm -f conftest.err conftest.
$ac_objext \
12326 conftest
$ac_exeext conftest.
$ac_ext
12327 LIBS
=$ac_check_lib_save_LIBS
12329 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12330 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12331 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12341 if test "${HAVE_JPEG}" = "yes"; then
12342 cat >>confdefs.h
<<\_ACEOF
12343 #define HAVE_JPEG 1
12346 cat >conftest.
$ac_ext <<_ACEOF
12349 cat confdefs.h
>>conftest.
$ac_ext
12350 cat >>conftest.
$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <jpeglib.h>
12353 version=JPEG_LIB_VERSION
12356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12357 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12358 cat >>confdefs.h
<<\_ACEOF
12359 #define HAVE_JPEG 1
12363 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12364 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12372 ### Use -lpng if available, unless `--with-png=no'.
12374 if test "${HAVE_X11}" = "yes"; then
12375 if test "${with_png}" != "no"; then
12376 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12377 # in /usr/include/libpng.
12380 for ac_header
in png.h libpng
/png.h
12382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12384 echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12392 # Is the header compilable?
12393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12395 cat >conftest.
$ac_ext <<_ACEOF
12398 cat confdefs.h
>>conftest.
$ac_ext
12399 cat >>conftest.
$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 $ac_includes_default
12402 #include <$ac_header>
12404 rm -f conftest.
$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12408 grep -v '^ *+' conftest.er1
>conftest.err
12410 cat conftest.err
>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try
='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try
='test -s conftest.$ac_objext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_header_compiler
=yes
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.
$ac_ext >&5
12431 ac_header_compiler
=no
12433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12435 echo "${ECHO_T}$ac_header_compiler" >&6
12437 # Is the header present?
12438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12440 cat >conftest.
$ac_ext <<_ACEOF
12443 cat confdefs.h
>>conftest.
$ac_ext
12444 cat >>conftest.
$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #include <$ac_header>
12448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12449 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12451 grep -v '^ *+' conftest.er1
>conftest.err
12453 cat conftest.err
>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } >/dev
/null
; then
12456 if test -s conftest.err
; then
12457 ac_cpp_err
=$ac_c_preproc_warn_flag
12458 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12465 if test -z "$ac_cpp_err"; then
12466 ac_header_preproc
=yes
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.
$ac_ext >&5
12471 ac_header_preproc
=no
12473 rm -f conftest.err conftest.
$ac_ext
12474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12475 echo "${ECHO_T}$ac_header_preproc" >&6
12477 # So? What about this header?
12478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12484 ac_header_preproc
=yes
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12501 ## ------------------------------------------ ##
12502 ## Report this to the AC_PACKAGE_NAME lists. ##
12503 ## ------------------------------------------ ##
12506 sed "s/^/$as_me: WARNING: /" >&2
12509 echo "$as_me:$LINENO: checking for $ac_header" >&5
12510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 eval "$as_ac_Header=\$ac_header_preproc"
12516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12521 cat >>confdefs.h
<<_ACEOF
12522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12529 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12530 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12531 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12532 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 ac_check_lib_save_LIBS
=$LIBS
12536 LIBS
="-lpng -lz -lm $LIBS"
12537 cat >conftest.
$ac_ext <<_ACEOF
12540 cat confdefs.h
>>conftest.
$ac_ext
12541 cat >>conftest.
$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12544 /* Override any gcc2 internal prototype to avoid an error. */
12548 /* We use char because int might match the return type of a gcc2
12549 builtin and then its argument prototype would still apply. */
12550 char png_get_channels ();
12554 png_get_channels ();
12559 rm -f conftest.
$ac_objext conftest
$ac_exeext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>conftest.er1
12563 grep -v '^ *+' conftest.er1
>conftest.err
12565 cat conftest.err
>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try
='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try
='test -s conftest$ac_exeext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_cv_lib_png_png_get_channels
=yes
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.
$ac_ext >&5
12586 ac_cv_lib_png_png_get_channels
=no
12588 rm -f conftest.err conftest.
$ac_objext \
12589 conftest
$ac_exeext conftest.
$ac_ext
12590 LIBS
=$ac_check_lib_save_LIBS
12592 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12593 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12594 if test $ac_cv_lib_png_png_get_channels = yes; then
12601 if test "${HAVE_PNG}" = "yes"; then
12603 cat >>confdefs.h
<<\_ACEOF
12610 ### Use -ltiff if available, unless `--with-tiff=no'.
12612 if test "${HAVE_X11}" = "yes"; then
12613 if test "${with_tiff}" != "no"; then
12614 if test "${ac_cv_header_tiffio_h+set}" = set; then
12615 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12616 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12617 if test "${ac_cv_header_tiffio_h+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12621 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12623 # Is the header compilable?
12624 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12625 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12626 cat >conftest.
$ac_ext <<_ACEOF
12629 cat confdefs.h
>>conftest.
$ac_ext
12630 cat >>conftest.
$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 #include <tiffio.h>
12635 rm -f conftest.
$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12639 grep -v '^ *+' conftest.er1
>conftest.err
12641 cat conftest.err
>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try
='test -z "$ac_c_werror_flag"
12645 || test ! -s conftest.err'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try
='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_header_compiler
=yes
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.
$ac_ext >&5
12662 ac_header_compiler
=no
12664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12666 echo "${ECHO_T}$ac_header_compiler" >&6
12668 # Is the header present?
12669 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12670 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12671 cat >conftest.
$ac_ext <<_ACEOF
12674 cat confdefs.h
>>conftest.
$ac_ext
12675 cat >>conftest.
$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 #include <tiffio.h>
12679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12682 grep -v '^ *+' conftest.er1
>conftest.err
12684 cat conftest.err
>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } >/dev
/null
; then
12687 if test -s conftest.err
; then
12688 ac_cpp_err
=$ac_c_preproc_warn_flag
12689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12696 if test -z "$ac_cpp_err"; then
12697 ac_header_preproc
=yes
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.
$ac_ext >&5
12702 ac_header_preproc
=no
12704 rm -f conftest.err conftest.
$ac_ext
12705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12706 echo "${ECHO_T}$ac_header_preproc" >&6
12708 # So? What about this header?
12709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12711 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12712 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12714 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12715 ac_header_preproc
=yes
12718 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12719 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12721 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12723 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12725 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12727 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12729 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12732 ## ------------------------------------------ ##
12733 ## Report this to the AC_PACKAGE_NAME lists. ##
12734 ## ------------------------------------------ ##
12737 sed "s/^/$as_me: WARNING: /" >&2
12740 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12741 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12742 if test "${ac_cv_header_tiffio_h+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 ac_cv_header_tiffio_h
=$ac_header_preproc
12747 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12748 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12751 if test $ac_cv_header_tiffio_h = yes; then
12753 # At least one tiff package requires the jpeg library.
12754 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12755 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12756 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12757 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 ac_check_lib_save_LIBS
=$LIBS
12761 LIBS
="-ltiff $tifflibs $LIBS"
12762 cat >conftest.
$ac_ext <<_ACEOF
12765 cat confdefs.h
>>conftest.
$ac_ext
12766 cat >>conftest.
$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12769 /* Override any gcc2 internal prototype to avoid an error. */
12773 /* We use char because int might match the return type of a gcc2
12774 builtin and then its argument prototype would still apply. */
12775 char TIFFGetVersion ();
12784 rm -f conftest.
$ac_objext conftest
$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786 (eval $ac_link) 2>conftest.er1
12788 grep -v '^ *+' conftest.er1
>conftest.err
12790 cat conftest.err
>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try
='test -z "$ac_c_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try
='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_lib_tiff_TIFFGetVersion
=yes
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.
$ac_ext >&5
12811 ac_cv_lib_tiff_TIFFGetVersion
=no
12813 rm -f conftest.err conftest.
$ac_objext \
12814 conftest
$ac_exeext conftest.
$ac_ext
12815 LIBS
=$ac_check_lib_save_LIBS
12817 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12818 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12819 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12828 if test "${HAVE_TIFF}" = "yes"; then
12830 cat >>confdefs.h
<<\_ACEOF
12831 #define HAVE_TIFF 1
12837 ### Use -lgif if available, unless `--with-gif=no'.
12839 if test "${HAVE_X11}" = "yes"; then
12840 if test "${with_gif}" != "no"; then
12841 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12842 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12843 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12844 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12848 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12850 # Is the header compilable?
12851 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12852 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12853 cat >conftest.
$ac_ext <<_ACEOF
12856 cat confdefs.h
>>conftest.
$ac_ext
12857 cat >>conftest.
$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 $ac_includes_default
12860 #include <gif_lib.h>
12862 rm -f conftest.
$ac_objext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>conftest.er1
12866 grep -v '^ *+' conftest.er1
>conftest.err
12868 cat conftest.err
>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try
='test -z "$ac_c_werror_flag"
12872 || test ! -s conftest.err'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try
='test -s conftest.$ac_objext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_header_compiler
=yes
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.
$ac_ext >&5
12889 ac_header_compiler
=no
12891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12893 echo "${ECHO_T}$ac_header_compiler" >&6
12895 # Is the header present?
12896 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12897 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12898 cat >conftest.
$ac_ext <<_ACEOF
12901 cat confdefs.h
>>conftest.
$ac_ext
12902 cat >>conftest.
$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 #include <gif_lib.h>
12906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12907 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12909 grep -v '^ *+' conftest.er1
>conftest.err
12911 cat conftest.err
>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } >/dev
/null
; then
12914 if test -s conftest.err
; then
12915 ac_cpp_err
=$ac_c_preproc_warn_flag
12916 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12923 if test -z "$ac_cpp_err"; then
12924 ac_header_preproc
=yes
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.
$ac_ext >&5
12929 ac_header_preproc
=no
12931 rm -f conftest.err conftest.
$ac_ext
12932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12933 echo "${ECHO_T}$ac_header_preproc" >&6
12935 # So? What about this header?
12936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12938 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12939 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12941 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12942 ac_header_preproc
=yes
12945 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12946 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12948 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12950 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12952 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12954 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12956 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12959 ## ------------------------------------------ ##
12960 ## Report this to the AC_PACKAGE_NAME lists. ##
12961 ## ------------------------------------------ ##
12964 sed "s/^/$as_me: WARNING: /" >&2
12967 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12968 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12969 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 ac_cv_header_gif_lib_h
=$ac_header_preproc
12974 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12975 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12978 if test $ac_cv_header_gif_lib_h = yes; then
12979 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12980 # Earlier versions can crash Emacs.
12981 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12982 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12983 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 ac_check_lib_save_LIBS
=$LIBS
12987 LIBS
="-lungif $LIBS"
12988 cat >conftest.
$ac_ext <<_ACEOF
12991 cat confdefs.h
>>conftest.
$ac_ext
12992 cat >>conftest.
$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12995 /* Override any gcc2 internal prototype to avoid an error. */
12999 /* We use char because int might match the return type of a gcc2
13000 builtin and then its argument prototype would still apply. */
13001 char EGifPutExtensionLast ();
13005 EGifPutExtensionLast ();
13010 rm -f conftest.
$ac_objext conftest
$ac_exeext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012 (eval $ac_link) 2>conftest.er1
13014 grep -v '^ *+' conftest.er1
>conftest.err
13016 cat conftest.err
>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try
='test -z "$ac_c_werror_flag"
13020 || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try
='test -s conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.
$ac_ext >&5
13037 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13039 rm -f conftest.err conftest.
$ac_objext \
13040 conftest
$ac_exeext conftest.
$ac_ext
13041 LIBS
=$ac_check_lib_save_LIBS
13043 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13044 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13045 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13054 if test "${HAVE_GIF}" = "yes"; then
13056 cat >>confdefs.h
<<\_ACEOF
13063 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13064 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13065 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13066 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13070 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13072 # Is the header compilable?
13073 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13074 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13075 cat >conftest.
$ac_ext <<_ACEOF
13078 cat confdefs.h
>>conftest.
$ac_ext
13079 cat >>conftest.
$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 $ac_includes_default
13082 #include <malloc/malloc.h>
13084 rm -f conftest.
$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13088 grep -v '^ *+' conftest.er1
>conftest.err
13090 cat conftest.err
>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try
='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try
='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_header_compiler
=yes
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.
$ac_ext >&5
13111 ac_header_compiler
=no
13113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13115 echo "${ECHO_T}$ac_header_compiler" >&6
13117 # Is the header present?
13118 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13119 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13120 cat >conftest.
$ac_ext <<_ACEOF
13123 cat confdefs.h
>>conftest.
$ac_ext
13124 cat >>conftest.
$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 #include <malloc/malloc.h>
13128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13129 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
13136 if test -s conftest.err
; then
13137 ac_cpp_err
=$ac_c_preproc_warn_flag
13138 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13145 if test -z "$ac_cpp_err"; then
13146 ac_header_preproc
=yes
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.
$ac_ext >&5
13151 ac_header_preproc
=no
13153 rm -f conftest.err conftest.
$ac_ext
13154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13155 echo "${ECHO_T}$ac_header_preproc" >&6
13157 # So? What about this header?
13158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13160 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13161 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13162 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13163 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13164 ac_header_preproc
=yes
13167 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13168 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13170 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13172 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13174 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13176 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13178 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13181 ## ------------------------------------------ ##
13182 ## Report this to the AC_PACKAGE_NAME lists. ##
13183 ## ------------------------------------------ ##
13186 sed "s/^/$as_me: WARNING: /" >&2
13189 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13190 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13191 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13196 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13197 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13200 if test $ac_cv_header_malloc_malloc_h = yes; then
13202 cat >>confdefs.h
<<\_ACEOF
13203 #define HAVE_MALLOC_MALLOC_H 1
13210 ### Use Mac OS X Carbon API to implement GUI.
13211 if test "${HAVE_CARBON}" = "yes"; then
13213 cat >>confdefs.h
<<\_ACEOF
13214 #define HAVE_CARBON 1
13217 ## Specify the install directory
13219 if test "${carbon_appdir_x}" != ""; then
13220 case ${carbon_appdir_x} in
13221 y | ye |
yes) carbon_appdir
=/Applications
;;
13222 * ) carbon_appdir
=${carbon_appdir_x} ;;
13225 # We also have mouse menus.
13229 ### Use session management (-lSM -lICE) if available
13231 if test "${HAVE_X11}" = "yes"; then
13232 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13233 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13234 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13235 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
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
13241 # Is the header compilable?
13242 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13243 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13244 cat >conftest.
$ac_ext <<_ACEOF
13247 cat confdefs.h
>>conftest.
$ac_ext
13248 cat >>conftest.
$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 $ac_includes_default
13251 #include <X11/SM/SMlib.h>
13253 rm -f conftest.
$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>conftest.er1
13257 grep -v '^ *+' conftest.er1
>conftest.err
13259 cat conftest.err
>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try
='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try
='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_header_compiler
=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.
$ac_ext >&5
13280 ac_header_compiler
=no
13282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284 echo "${ECHO_T}$ac_header_compiler" >&6
13286 # Is the header present?
13287 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13288 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13289 cat >conftest.
$ac_ext <<_ACEOF
13292 cat confdefs.h
>>conftest.
$ac_ext
13293 cat >>conftest.
$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 #include <X11/SM/SMlib.h>
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13300 grep -v '^ *+' conftest.er1
>conftest.err
13302 cat conftest.err
>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev
/null
; then
13305 if test -s conftest.err
; then
13306 ac_cpp_err
=$ac_c_preproc_warn_flag
13307 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13314 if test -z "$ac_cpp_err"; then
13315 ac_header_preproc
=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.
$ac_ext >&5
13320 ac_header_preproc
=no
13322 rm -f conftest.err conftest.
$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6
13326 # So? What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13329 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13333 ac_header_preproc
=yes
13336 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13350 ## ------------------------------------------ ##
13351 ## Report this to the AC_PACKAGE_NAME lists. ##
13352 ## ------------------------------------------ ##
13355 sed "s/^/$as_me: WARNING: /" >&2
13358 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13359 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13360 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13365 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13366 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13369 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13370 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13371 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13372 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_check_lib_save_LIBS
=$LIBS
13376 LIBS
="-lSM -lICE $LIBS"
13377 cat >conftest.
$ac_ext <<_ACEOF
13380 cat confdefs.h
>>conftest.
$ac_ext
13381 cat >>conftest.
$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13384 /* Override any gcc2 internal prototype to avoid an error. */
13388 /* We use char because int might match the return type of a gcc2
13389 builtin and then its argument prototype would still apply. */
13390 char SmcOpenConnection ();
13394 SmcOpenConnection ();
13399 rm -f conftest.
$ac_objext conftest
$ac_exeext
13400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401 (eval $ac_link) 2>conftest.er1
13403 grep -v '^ *+' conftest.er1
>conftest.err
13405 cat conftest.err
>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try
='test -z "$ac_c_werror_flag"
13409 || test ! -s conftest.err'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try
='test -s conftest$ac_exeext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_lib_SM_SmcOpenConnection
=yes
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.
$ac_ext >&5
13426 ac_cv_lib_SM_SmcOpenConnection
=no
13428 rm -f conftest.err conftest.
$ac_objext \
13429 conftest
$ac_exeext conftest.
$ac_ext
13430 LIBS
=$ac_check_lib_save_LIBS
13432 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13433 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13434 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13442 if test "${HAVE_X_SM}" = "yes"; then
13444 cat >>confdefs.h
<<\_ACEOF
13445 #define HAVE_X_SM 1
13450 *) LIBS
="-lSM -lICE $LIBS" ;;
13455 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13456 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13457 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13458 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 cat >conftest.
$ac_ext <<_ACEOF
13464 cat confdefs.h
>>conftest.
$ac_ext
13465 cat >>conftest.
$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13476 rm -f conftest.
$ac_objext conftest
$ac_exeext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13478 (eval $ac_link) 2>conftest.er1
13480 grep -v '^ *+' conftest.er1
>conftest.err
13482 cat conftest.err
>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try
='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try
='test -s conftest$ac_exeext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 emacs_cv_netdb_declares_h_errno
=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.
$ac_ext >&5
13503 emacs_cv_netdb_declares_h_errno
=no
13505 rm -f conftest.err conftest.
$ac_objext \
13506 conftest
$ac_exeext conftest.
$ac_ext
13508 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13509 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13510 if test $emacs_cv_netdb_declares_h_errno = yes; then
13512 cat >>confdefs.h
<<\_ACEOF
13513 #define HAVE_H_ERRNO 1
13518 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13519 # for constant arguments. Useless!
13520 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13521 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13522 if test "${ac_cv_working_alloca_h+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 cat >conftest.
$ac_ext <<_ACEOF
13528 cat confdefs.h
>>conftest.
$ac_ext
13529 cat >>conftest.
$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 #include <alloca.h>
13535 char *p = (char *) alloca (2 * sizeof (int));
13540 rm -f conftest.
$ac_objext conftest
$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13544 grep -v '^ *+' conftest.er1
>conftest.err
13546 cat conftest.err
>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try
='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try
='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_working_alloca_h
=yes
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.
$ac_ext >&5
13567 ac_cv_working_alloca_h
=no
13569 rm -f conftest.err conftest.
$ac_objext \
13570 conftest
$ac_exeext conftest.
$ac_ext
13572 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13573 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13574 if test $ac_cv_working_alloca_h = yes; then
13576 cat >>confdefs.h
<<\_ACEOF
13577 #define HAVE_ALLOCA_H 1
13582 echo "$as_me:$LINENO: checking for alloca" >&5
13583 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13584 if test "${ac_cv_func_alloca_works+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 cat >conftest.
$ac_ext <<_ACEOF
13590 cat confdefs.h
>>conftest.
$ac_ext
13591 cat >>conftest.
$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13594 # define alloca __builtin_alloca
13597 # include <malloc.h>
13598 # define alloca _alloca
13601 # include <alloca.h>
13606 # ifndef alloca /* predefined by HP cc +Olibcalls */
13617 char *p = (char *) alloca (1);
13622 rm -f conftest.
$ac_objext conftest
$ac_exeext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13624 (eval $ac_link) 2>conftest.er1
13626 grep -v '^ *+' conftest.er1
>conftest.err
13628 cat conftest.err
>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try
='test -z "$ac_c_werror_flag"
13632 || test ! -s conftest.err'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try
='test -s conftest$ac_exeext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_func_alloca_works
=yes
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.
$ac_ext >&5
13649 ac_cv_func_alloca_works
=no
13651 rm -f conftest.err conftest.
$ac_objext \
13652 conftest
$ac_exeext conftest.
$ac_ext
13654 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13655 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13657 if test $ac_cv_func_alloca_works = yes; then
13659 cat >>confdefs.h
<<\_ACEOF
13660 #define HAVE_ALLOCA 1
13664 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13665 # that cause trouble. Some versions do not even contain alloca or
13666 # contain a buggy version. If you still want to use their alloca,
13667 # use ar to extract alloca.o from them instead of compiling alloca.c.
13669 ALLOCA
=alloca.
$ac_objext
13671 cat >>confdefs.h
<<\_ACEOF
13676 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13677 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13678 if test "${ac_cv_os_cray+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 cat >conftest.
$ac_ext <<_ACEOF
13684 cat confdefs.h
>>conftest.
$ac_ext
13685 cat >>conftest.
$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 #if defined(CRAY) && ! defined(CRAY2)
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "webecray" >/dev
/null
2>&1; then
13703 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13704 echo "${ECHO_T}$ac_cv_os_cray" >&6
13705 if test $ac_cv_os_cray = yes; then
13706 for ac_func
in _getb67 GETB67 getb67
; do
13707 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13708 echo "$as_me:$LINENO: checking for $ac_func" >&5
13709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13710 if eval "test \"\${$as_ac_var+set}\" = set"; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 cat >conftest.
$ac_ext <<_ACEOF
13716 cat confdefs.h
>>conftest.
$ac_ext
13717 cat >>conftest.
$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13721 #define $ac_func innocuous_$ac_func
13723 /* System header to define __stub macros and hopefully few prototypes,
13724 which can conflict with char $ac_func (); below.
13725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13726 <limits.h> exists even on freestanding compilers. */
13729 # include <limits.h>
13731 # include <assert.h>
13736 /* Override any gcc2 internal prototype to avoid an error. */
13741 /* We use char because int might match the return type of a gcc2
13742 builtin and then its argument prototype would still apply. */
13744 /* The GNU C library defines this for functions which it implements
13745 to always fail with ENOSYS. Some functions are actually named
13746 something starting with __ and the normal name is an alias. */
13747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13750 char (*f) () = $ac_func;
13759 return f != $ac_func;
13764 rm -f conftest.
$ac_objext conftest
$ac_exeext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13768 grep -v '^ *+' conftest.er1
>conftest.err
13770 cat conftest.err
>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try
='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try
='test -s conftest$ac_exeext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 eval "$as_ac_var=yes"
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.
$ac_ext >&5
13791 eval "$as_ac_var=no"
13793 rm -f conftest.err conftest.
$ac_objext \
13794 conftest
$ac_exeext conftest.
$ac_ext
13796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13798 if test `eval echo '${'$as_ac_var'}'` = yes; then
13800 cat >>confdefs.h
<<_ACEOF
13801 #define CRAY_STACKSEG_END $ac_func
13810 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13811 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13812 if test "${ac_cv_c_stack_direction+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 if test "$cross_compiling" = yes; then
13816 ac_cv_c_stack_direction
=0
13818 cat >conftest.
$ac_ext <<_ACEOF
13821 cat confdefs.h
>>conftest.
$ac_ext
13822 cat >>conftest.
$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13825 find_stack_direction ()
13827 static char *addr = 0;
13832 return find_stack_direction ();
13835 return (&dummy > addr) ? 1 : -1;
13841 exit (find_stack_direction () < 0);
13844 rm -f conftest
$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_cv_c_stack_direction
=1
13857 echo "$as_me: program exited with status $ac_status" >&5
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.
$ac_ext >&5
13861 ( exit $ac_status )
13862 ac_cv_c_stack_direction
=-1
13864 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13867 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13868 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13870 cat >>confdefs.h
<<_ACEOF
13871 #define STACK_DIRECTION $ac_cv_c_stack_direction
13878 # fmod, logb, and frexp are found in -lm on most systems.
13879 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13881 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13882 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13883 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 ac_check_lib_save_LIBS
=$LIBS
13888 cat >conftest.
$ac_ext <<_ACEOF
13891 cat confdefs.h
>>conftest.
$ac_ext
13892 cat >>conftest.
$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13895 /* Override any gcc2 internal prototype to avoid an error. */
13899 /* We use char because int might match the return type of a gcc2
13900 builtin and then its argument prototype would still apply. */
13910 rm -f conftest.
$ac_objext conftest
$ac_exeext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13912 (eval $ac_link) 2>conftest.er1
13914 grep -v '^ *+' conftest.er1
>conftest.err
13916 cat conftest.err
>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try
='test -z "$ac_c_werror_flag"
13920 || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try
='test -s conftest$ac_exeext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_cv_lib_m_sqrt
=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.
$ac_ext >&5
13937 ac_cv_lib_m_sqrt
=no
13939 rm -f conftest.err conftest.
$ac_objext \
13940 conftest
$ac_exeext conftest.
$ac_ext
13941 LIBS
=$ac_check_lib_save_LIBS
13943 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13944 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13945 if test $ac_cv_lib_m_sqrt = yes; then
13946 cat >>confdefs.h
<<_ACEOF
13947 #define HAVE_LIBM 1
13955 # Check for mail-locking functions in a "mail" library. Probably this should
13956 # have the same check as for liblockfile below.
13958 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13959 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13960 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 ac_check_lib_save_LIBS
=$LIBS
13964 LIBS
="-lmail $LIBS"
13965 cat >conftest.
$ac_ext <<_ACEOF
13968 cat confdefs.h
>>conftest.
$ac_ext
13969 cat >>conftest.
$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13972 /* Override any gcc2 internal prototype to avoid an error. */
13976 /* We use char because int might match the return type of a gcc2
13977 builtin and then its argument prototype would still apply. */
13987 rm -f conftest.
$ac_objext conftest
$ac_exeext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13989 (eval $ac_link) 2>conftest.er1
13991 grep -v '^ *+' conftest.er1
>conftest.err
13993 cat conftest.err
>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try
='test -z "$ac_c_werror_flag"
13997 || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try
='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_lib_mail_maillock
=yes
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.
$ac_ext >&5
14014 ac_cv_lib_mail_maillock
=no
14016 rm -f conftest.err conftest.
$ac_objext \
14017 conftest
$ac_exeext conftest.
$ac_ext
14018 LIBS
=$ac_check_lib_save_LIBS
14020 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14021 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14022 if test $ac_cv_lib_mail_maillock = yes; then
14023 cat >>confdefs.h
<<_ACEOF
14024 #define HAVE_LIBMAIL 1
14027 LIBS
="-lmail $LIBS"
14032 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14033 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14034 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 ac_check_lib_save_LIBS
=$LIBS
14038 LIBS
="-llockfile $LIBS"
14039 cat >conftest.
$ac_ext <<_ACEOF
14042 cat confdefs.h
>>conftest.
$ac_ext
14043 cat >>conftest.
$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14046 /* Override any gcc2 internal prototype to avoid an error. */
14050 /* We use char because int might match the return type of a gcc2
14051 builtin and then its argument prototype would still apply. */
14061 rm -f conftest.
$ac_objext conftest
$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>conftest.er1
14065 grep -v '^ *+' conftest.er1
>conftest.err
14067 cat conftest.err
>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try
='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try
='test -s conftest$ac_exeext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_lib_lockfile_maillock
=yes
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.
$ac_ext >&5
14088 ac_cv_lib_lockfile_maillock
=no
14090 rm -f conftest.err conftest.
$ac_objext \
14091 conftest
$ac_exeext conftest.
$ac_ext
14092 LIBS
=$ac_check_lib_save_LIBS
14094 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14095 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14096 if test $ac_cv_lib_lockfile_maillock = yes; then
14097 cat >>confdefs.h
<<_ACEOF
14098 #define HAVE_LIBLOCKFILE 1
14101 LIBS
="-llockfile $LIBS"
14105 # If we have the shared liblockfile, assume we must use it for mail
14106 # locking (e.g. Debian). If we couldn't link against liblockfile
14107 # (no liblockfile.a installed), ensure that we don't need to.
14108 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14109 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14110 set dummy liblockfile.so
; ac_word
=$2
14111 echo "$as_me:$LINENO: checking for $ac_word" >&5
14112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14113 if test "${ac_cv_prog_liblockfile+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 if test -n "$liblockfile"; then
14117 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14120 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14121 for as_dir
in $as_dummy
14124 test -z "$as_dir" && as_dir
=.
14125 for ac_exec_ext
in '' $ac_executable_extensions; do
14126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14127 ac_cv_prog_liblockfile
="yes"
14128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14137 liblockfile
=$ac_cv_prog_liblockfile
14138 if test -n "$liblockfile"; then
14139 echo "$as_me:$LINENO: result: $liblockfile" >&5
14140 echo "${ECHO_T}$liblockfile" >&6
14142 echo "$as_me:$LINENO: result: no" >&5
14143 echo "${ECHO_T}no" >&6
14146 if test $ac_cv_prog_liblockfile = yes; then
14147 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14148 This probably means that movemail could lose mail.
14149 There may be a \`development' package to install containing liblockfile." >&5
14150 echo "$as_me: error: Shared liblockfile found but can't link against it.
14151 This probably means that movemail could lose mail.
14152 There may be a \`development' package to install containing liblockfile." >&2;}
14153 { (exit 1); exit 1; }; }
14158 for ac_func
in touchlock
14160 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14161 echo "$as_me:$LINENO: checking for $ac_func" >&5
14162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14163 if eval "test \"\${$as_ac_var+set}\" = set"; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 cat >conftest.
$ac_ext <<_ACEOF
14169 cat confdefs.h
>>conftest.
$ac_ext
14170 cat >>conftest.
$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14174 #define $ac_func innocuous_$ac_func
14176 /* System header to define __stub macros and hopefully few prototypes,
14177 which can conflict with char $ac_func (); below.
14178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14179 <limits.h> exists even on freestanding compilers. */
14182 # include <limits.h>
14184 # include <assert.h>
14189 /* Override any gcc2 internal prototype to avoid an error. */
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14197 /* The GNU C library defines this for functions which it implements
14198 to always fail with ENOSYS. Some functions are actually named
14199 something starting with __ and the normal name is an alias. */
14200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14203 char (*f) () = $ac_func;
14212 return f != $ac_func;
14217 rm -f conftest.
$ac_objext conftest
$ac_exeext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14219 (eval $ac_link) 2>conftest.er1
14221 grep -v '^ *+' conftest.er1
>conftest.err
14223 cat conftest.err
>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try
='test -z "$ac_c_werror_flag"
14227 || test ! -s conftest.err'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; } &&
14233 { ac_try
='test -s conftest$ac_exeext'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 eval "$as_ac_var=yes"
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.
$ac_ext >&5
14244 eval "$as_ac_var=no"
14246 rm -f conftest.err conftest.
$ac_objext \
14247 conftest
$ac_exeext conftest.
$ac_ext
14249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14251 if test `eval echo '${'$as_ac_var'}'` = yes; then
14252 cat >>confdefs.h
<<_ACEOF
14253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14260 for ac_header
in maillock.h
14262 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264 echo "$as_me:$LINENO: checking for $ac_header" >&5
14265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272 # Is the header compilable?
14273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14275 cat >conftest.
$ac_ext <<_ACEOF
14278 cat confdefs.h
>>conftest.
$ac_ext
14279 cat >>conftest.
$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 $ac_includes_default
14282 #include <$ac_header>
14284 rm -f conftest.
$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14288 grep -v '^ *+' conftest.er1
>conftest.err
14290 cat conftest.err
>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try
='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try
='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_header_compiler
=yes
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.
$ac_ext >&5
14311 ac_header_compiler
=no
14313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14315 echo "${ECHO_T}$ac_header_compiler" >&6
14317 # Is the header present?
14318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14320 cat >conftest.
$ac_ext <<_ACEOF
14323 cat confdefs.h
>>conftest.
$ac_ext
14324 cat >>conftest.
$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 #include <$ac_header>
14328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14329 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14331 grep -v '^ *+' conftest.er1
>conftest.err
14333 cat conftest.err
>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } >/dev
/null
; then
14336 if test -s conftest.err
; then
14337 ac_cpp_err
=$ac_c_preproc_warn_flag
14338 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14345 if test -z "$ac_cpp_err"; then
14346 ac_header_preproc
=yes
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.
$ac_ext >&5
14351 ac_header_preproc
=no
14353 rm -f conftest.err conftest.
$ac_ext
14354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14355 echo "${ECHO_T}$ac_header_preproc" >&6
14357 # So? What about this header?
14358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14364 ac_header_preproc
=yes
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14381 ## ------------------------------------------ ##
14382 ## Report this to the AC_PACKAGE_NAME lists. ##
14383 ## ------------------------------------------ ##
14386 sed "s/^/$as_me: WARNING: /" >&2
14389 echo "$as_me:$LINENO: checking for $ac_header" >&5
14390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 eval "$as_ac_Header=\$ac_header_preproc"
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14401 cat >>confdefs.h
<<_ACEOF
14402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14479 for ac_func
in gethostname getdomainname dup2 \
14480 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14481 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14482 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14483 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14484 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14485 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14486 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14487 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14489 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14490 echo "$as_me:$LINENO: checking for $ac_func" >&5
14491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14492 if eval "test \"\${$as_ac_var+set}\" = set"; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 cat >conftest.
$ac_ext <<_ACEOF
14498 cat confdefs.h
>>conftest.
$ac_ext
14499 cat >>conftest.
$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14503 #define $ac_func innocuous_$ac_func
14505 /* System header to define __stub macros and hopefully few prototypes,
14506 which can conflict with char $ac_func (); below.
14507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14508 <limits.h> exists even on freestanding compilers. */
14511 # include <limits.h>
14513 # include <assert.h>
14518 /* Override any gcc2 internal prototype to avoid an error. */
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14526 /* The GNU C library defines this for functions which it implements
14527 to always fail with ENOSYS. Some functions are actually named
14528 something starting with __ and the normal name is an alias. */
14529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14532 char (*f) () = $ac_func;
14541 return f != $ac_func;
14546 rm -f conftest.
$ac_objext conftest
$ac_exeext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14548 (eval $ac_link) 2>conftest.er1
14550 grep -v '^ *+' conftest.er1
>conftest.err
14552 cat conftest.err
>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try
='test -z "$ac_c_werror_flag"
14556 || test ! -s conftest.err'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; } &&
14562 { ac_try
='test -s conftest$ac_exeext'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 eval "$as_ac_var=yes"
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.
$ac_ext >&5
14573 eval "$as_ac_var=no"
14575 rm -f conftest.err conftest.
$ac_objext \
14576 conftest
$ac_exeext conftest.
$ac_ext
14578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14580 if test `eval echo '${'$as_ac_var'}'` = yes; then
14581 cat >>confdefs.h
<<_ACEOF
14582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14590 for ac_header
in sys
/un.h
14592 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14594 echo "$as_me:$LINENO: checking for $ac_header" >&5
14595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14602 # Is the header compilable?
14603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14605 cat >conftest.
$ac_ext <<_ACEOF
14608 cat confdefs.h
>>conftest.
$ac_ext
14609 cat >>conftest.
$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14612 #include <$ac_header>
14614 rm -f conftest.
$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>conftest.er1
14618 grep -v '^ *+' conftest.er1
>conftest.err
14620 cat conftest.err
>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try
='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try
='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_header_compiler
=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.
$ac_ext >&5
14641 ac_header_compiler
=no
14643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14645 echo "${ECHO_T}$ac_header_compiler" >&6
14647 # Is the header present?
14648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14650 cat >conftest.
$ac_ext <<_ACEOF
14653 cat confdefs.h
>>conftest.
$ac_ext
14654 cat >>conftest.
$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <$ac_header>
14658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14661 grep -v '^ *+' conftest.er1
>conftest.err
14663 cat conftest.err
>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev
/null
; then
14666 if test -s conftest.err
; then
14667 ac_cpp_err
=$ac_c_preproc_warn_flag
14668 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14675 if test -z "$ac_cpp_err"; then
14676 ac_header_preproc
=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.
$ac_ext >&5
14681 ac_header_preproc
=no
14683 rm -f conftest.err conftest.
$ac_ext
14684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14685 echo "${ECHO_T}$ac_header_preproc" >&6
14687 # So? What about this header?
14688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14694 ac_header_preproc
=yes
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14711 ## ------------------------------------------ ##
14712 ## Report this to the AC_PACKAGE_NAME lists. ##
14713 ## ------------------------------------------ ##
14716 sed "s/^/$as_me: WARNING: /" >&2
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 eval "$as_ac_Header=\$ac_header_preproc"
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14731 cat >>confdefs.h
<<_ACEOF
14732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14743 for ac_header
in stdlib.h sys
/time.h unistd.h
14745 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14747 echo "$as_me:$LINENO: checking for $ac_header" >&5
14748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14755 # Is the header compilable?
14756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14758 cat >conftest.
$ac_ext <<_ACEOF
14761 cat confdefs.h
>>conftest.
$ac_ext
14762 cat >>conftest.
$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 $ac_includes_default
14765 #include <$ac_header>
14767 rm -f conftest.
$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>conftest.er1
14771 grep -v '^ *+' conftest.er1
>conftest.err
14773 cat conftest.err
>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try
='test -z "$ac_c_werror_flag"
14777 || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try
='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 ac_header_compiler
=yes
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.
$ac_ext >&5
14794 ac_header_compiler
=no
14796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 echo "${ECHO_T}$ac_header_compiler" >&6
14800 # Is the header present?
14801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14803 cat >conftest.
$ac_ext <<_ACEOF
14806 cat confdefs.h
>>conftest.
$ac_ext
14807 cat >>conftest.
$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <$ac_header>
14811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14814 grep -v '^ *+' conftest.er1
>conftest.err
14816 cat conftest.err
>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } >/dev
/null
; then
14819 if test -s conftest.err
; then
14820 ac_cpp_err
=$ac_c_preproc_warn_flag
14821 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14828 if test -z "$ac_cpp_err"; then
14829 ac_header_preproc
=yes
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.
$ac_ext >&5
14834 ac_header_preproc
=no
14836 rm -f conftest.err conftest.
$ac_ext
14837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14838 echo "${ECHO_T}$ac_header_preproc" >&6
14840 # So? What about this header?
14841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14847 ac_header_preproc
=yes
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14864 ## ------------------------------------------ ##
14865 ## Report this to the AC_PACKAGE_NAME lists. ##
14866 ## ------------------------------------------ ##
14869 sed "s/^/$as_me: WARNING: /" >&2
14872 echo "$as_me:$LINENO: checking for $ac_header" >&5
14873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 eval "$as_ac_Header=\$ac_header_preproc"
14879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14884 cat >>confdefs.h
<<_ACEOF
14885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14893 for ac_func
in alarm
14895 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14896 echo "$as_me:$LINENO: checking for $ac_func" >&5
14897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14898 if eval "test \"\${$as_ac_var+set}\" = set"; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 cat >conftest.
$ac_ext <<_ACEOF
14904 cat confdefs.h
>>conftest.
$ac_ext
14905 cat >>conftest.
$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14909 #define $ac_func innocuous_$ac_func
14911 /* System header to define __stub macros and hopefully few prototypes,
14912 which can conflict with char $ac_func (); below.
14913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14914 <limits.h> exists even on freestanding compilers. */
14917 # include <limits.h>
14919 # include <assert.h>
14924 /* Override any gcc2 internal prototype to avoid an error. */
14929 /* We use char because int might match the return type of a gcc2
14930 builtin and then its argument prototype would still apply. */
14932 /* The GNU C library defines this for functions which it implements
14933 to always fail with ENOSYS. Some functions are actually named
14934 something starting with __ and the normal name is an alias. */
14935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14938 char (*f) () = $ac_func;
14947 return f != $ac_func;
14952 rm -f conftest.
$ac_objext conftest
$ac_exeext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954 (eval $ac_link) 2>conftest.er1
14956 grep -v '^ *+' conftest.er1
>conftest.err
14958 cat conftest.err
>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try
='test -z "$ac_c_werror_flag"
14962 || test ! -s conftest.err'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; } &&
14968 { ac_try
='test -s conftest$ac_exeext'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 eval "$as_ac_var=yes"
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.
$ac_ext >&5
14979 eval "$as_ac_var=no"
14981 rm -f conftest.err conftest.
$ac_objext \
14982 conftest
$ac_exeext conftest.
$ac_ext
14984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14986 if test `eval echo '${'$as_ac_var'}'` = yes; then
14987 cat >>confdefs.h
<<_ACEOF
14988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14994 echo "$as_me:$LINENO: checking for working mktime" >&5
14995 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14996 if test "${ac_cv_func_working_mktime+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 if test "$cross_compiling" = yes; then
15000 ac_cv_func_working_mktime
=no
15002 cat >conftest.
$ac_ext <<_ACEOF
15005 cat confdefs.h
>>conftest.
$ac_ext
15006 cat >>conftest.
$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 /* Test program from Paul Eggert and Tony Leneis. */
15009 #if TIME_WITH_SYS_TIME
15010 # include <sys/time.h>
15013 # if HAVE_SYS_TIME_H
15014 # include <sys/time.h>
15021 # include <stdlib.h>
15025 # include <unistd.h>
15029 # define alarm(X) /* empty */
15032 /* Work around redefinition to rpl_putenv by other config tests. */
15035 static time_t time_t_max;
15036 static time_t time_t_min;
15038 /* Values we'll use to set the TZ environment variable. */
15039 static char *tz_strings[] = {
15040 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15041 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15043 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15045 /* Fail if mktime fails to convert a date in the spring-forward gap.
15046 Based on a problem report from Andreas Jaeger. */
15048 spring_forward_gap ()
15050 /* glibc (up to about 1998-10-07) failed this test. */
15053 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15054 instead of "TZ=America/Vancouver" in order to detect the bug even
15055 on systems that don't support the Olson extension, or don't have the
15056 full zoneinfo tables installed. */
15057 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15066 if (mktime (&tm) == (time_t)-1)
15075 if ((lt = localtime (&now)) && mktime (lt) != now)
15083 mktime_test1 (now);
15084 mktime_test1 ((time_t) (time_t_max - now));
15085 mktime_test1 ((time_t) (time_t_min + now));
15091 /* Based on code from Ariel Faigon. */
15101 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15111 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15112 now = mktime (&tm);
15113 if (now != (time_t) -1)
15115 struct tm *lt = localtime (&now);
15117 && lt->tm_year == tm.tm_year
15118 && lt->tm_mon == tm.tm_mon
15119 && lt->tm_mday == tm.tm_mday
15120 && lt->tm_hour == tm.tm_hour
15121 && lt->tm_min == tm.tm_min
15122 && lt->tm_sec == tm.tm_sec
15123 && lt->tm_yday == tm.tm_yday
15124 && lt->tm_wday == tm.tm_wday
15125 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15126 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15137 /* This test makes some buggy mktime implementations loop.
15138 Give up after 60 seconds; a mktime slower than that
15139 isn't worth using anyway. */
15142 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15145 if ((time_t) -1 < 0)
15146 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15148 delta = time_t_max / 997; /* a suitable prime number */
15149 for (i = 0; i < N_STRINGS; i++)
15152 putenv (tz_strings[i]);
15154 for (t = 0; t <= time_t_max - delta; t += delta)
15156 mktime_test ((time_t) 1);
15157 mktime_test ((time_t) (60 * 60));
15158 mktime_test ((time_t) (60 * 60 * 24));
15160 for (j = 1; 0 < j; j *= 2)
15162 bigtime_test (j - 1);
15165 spring_forward_gap ();
15169 rm -f conftest
$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171 (eval $ac_link) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15180 ac_cv_func_working_mktime
=yes
15182 echo "$as_me: program exited with status $ac_status" >&5
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.
$ac_ext >&5
15186 ( exit $ac_status )
15187 ac_cv_func_working_mktime
=no
15189 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15192 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15193 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15194 if test $ac_cv_func_working_mktime = no
; then
15196 "mktime.$ac_objext" | \
15197 *" mktime.$ac_objext" | \
15198 "mktime.$ac_objext "* | \
15199 *" mktime.$ac_objext "* ) ;;
15200 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15205 if test "$ac_cv_func_working_mktime" = no
; then
15207 cat >>confdefs.h
<<\_ACEOF
15208 #define BROKEN_MKTIME 1
15213 ac_have_func
=no
# yes means we've found a way to get the load average.
15215 # Make sure getloadavg.c is where it belongs, at configure-time.
15216 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15217 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15218 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15219 { (exit 1); exit 1; }; }
15223 # Check for getloadavg, but be sure not to touch the cache variable.
15224 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15225 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15226 if test "${ac_cv_func_getloadavg+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 cat >conftest.
$ac_ext <<_ACEOF
15232 cat confdefs.h
>>conftest.
$ac_ext
15233 cat >>conftest.
$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15237 #define getloadavg innocuous_getloadavg
15239 /* System header to define __stub macros and hopefully few prototypes,
15240 which can conflict with char getloadavg (); below.
15241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15242 <limits.h> exists even on freestanding compilers. */
15245 # include <limits.h>
15247 # include <assert.h>
15252 /* Override any gcc2 internal prototype to avoid an error. */
15257 /* We use char because int might match the return type of a gcc2
15258 builtin and then its argument prototype would still apply. */
15259 char getloadavg ();
15260 /* The GNU C library defines this for functions which it implements
15261 to always fail with ENOSYS. Some functions are actually named
15262 something starting with __ and the normal name is an alias. */
15263 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15266 char (*f) () = getloadavg;
15275 return f != getloadavg;
15280 rm -f conftest.
$ac_objext conftest
$ac_exeext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15282 (eval $ac_link) 2>conftest.er1
15284 grep -v '^ *+' conftest.er1
>conftest.err
15286 cat conftest.err
>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try
='test -z "$ac_c_werror_flag"
15290 || test ! -s conftest.err'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try
='test -s conftest$ac_exeext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_func_getloadavg
=yes
15304 echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.
$ac_ext >&5
15307 ac_cv_func_getloadavg
=no
15309 rm -f conftest.err conftest.
$ac_objext \
15310 conftest
$ac_exeext conftest.
$ac_ext
15312 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15313 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15314 if test $ac_cv_func_getloadavg = yes; then
15319 ) && ac_have_func
=yes
15321 # On HPUX9, an unprivileged user can get load averages through this function.
15323 for ac_func
in pstat_getdynamic
15325 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 echo "$as_me:$LINENO: checking for $ac_func" >&5
15327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_var+set}\" = set"; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 cat >conftest.
$ac_ext <<_ACEOF
15334 cat confdefs.h
>>conftest.
$ac_ext
15335 cat >>conftest.
$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15339 #define $ac_func innocuous_$ac_func
15341 /* System header to define __stub macros and hopefully few prototypes,
15342 which can conflict with char $ac_func (); below.
15343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344 <limits.h> exists even on freestanding compilers. */
15347 # include <limits.h>
15349 # include <assert.h>
15354 /* Override any gcc2 internal prototype to avoid an error. */
15359 /* We use char because int might match the return type of a gcc2
15360 builtin and then its argument prototype would still apply. */
15362 /* The GNU C library defines this for functions which it implements
15363 to always fail with ENOSYS. Some functions are actually named
15364 something starting with __ and the normal name is an alias. */
15365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15368 char (*f) () = $ac_func;
15377 return f != $ac_func;
15382 rm -f conftest.
$ac_objext conftest
$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384 (eval $ac_link) 2>conftest.er1
15386 grep -v '^ *+' conftest.er1
>conftest.err
15388 cat conftest.err
>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try
='test -z "$ac_c_werror_flag"
15392 || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try
='test -s conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 eval "$as_ac_var=yes"
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.
$ac_ext >&5
15409 eval "$as_ac_var=no"
15411 rm -f conftest.err conftest.
$ac_objext \
15412 conftest
$ac_exeext conftest.
$ac_ext
15414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15416 if test `eval echo '${'$as_ac_var'}'` = yes; then
15417 cat >>confdefs.h
<<_ACEOF
15418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15425 # Solaris has libkstat which does not require root.
15427 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15428 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15429 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 ac_check_lib_save_LIBS
=$LIBS
15433 LIBS
="-lkstat $LIBS"
15434 cat >conftest.
$ac_ext <<_ACEOF
15437 cat confdefs.h
>>conftest.
$ac_ext
15438 cat >>conftest.
$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15441 /* Override any gcc2 internal prototype to avoid an error. */
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15447 char kstat_open ();
15456 rm -f conftest.
$ac_objext conftest
$ac_exeext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15458 (eval $ac_link) 2>conftest.er1
15460 grep -v '^ *+' conftest.er1
>conftest.err
15462 cat conftest.err
>&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } &&
15465 { ac_try
='test -z "$ac_c_werror_flag"
15466 || test ! -s conftest.err'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try
='test -s conftest$ac_exeext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_lib_kstat_kstat_open
=yes
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.
$ac_ext >&5
15483 ac_cv_lib_kstat_kstat_open
=no
15485 rm -f conftest.err conftest.
$ac_objext \
15486 conftest
$ac_exeext conftest.
$ac_ext
15487 LIBS
=$ac_check_lib_save_LIBS
15489 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15490 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15491 if test $ac_cv_lib_kstat_kstat_open = yes; then
15492 cat >>confdefs.h
<<_ACEOF
15493 #define HAVE_LIBKSTAT 1
15496 LIBS
="-lkstat $LIBS"
15500 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15502 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15503 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15504 # to get the right answer into the cache.
15505 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15506 if test $ac_have_func = no
; then
15507 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15508 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15509 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 ac_check_lib_save_LIBS
=$LIBS
15514 cat >conftest.
$ac_ext <<_ACEOF
15517 cat confdefs.h
>>conftest.
$ac_ext
15518 cat >>conftest.
$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15521 /* Override any gcc2 internal prototype to avoid an error. */
15525 /* We use char because int might match the return type of a gcc2
15526 builtin and then its argument prototype would still apply. */
15536 rm -f conftest.
$ac_objext conftest
$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538 (eval $ac_link) 2>conftest.er1
15540 grep -v '^ *+' conftest.er1
>conftest.err
15542 cat conftest.err
>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try
='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try
='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_lib_elf_elf_begin
=yes
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.
$ac_ext >&5
15563 ac_cv_lib_elf_elf_begin
=no
15565 rm -f conftest.err conftest.
$ac_objext \
15566 conftest
$ac_exeext conftest.
$ac_ext
15567 LIBS
=$ac_check_lib_save_LIBS
15569 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15570 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15571 if test $ac_cv_lib_elf_elf_begin = yes; then
15576 if test $ac_have_func = no
; then
15577 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15578 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15579 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15582 ac_check_lib_save_LIBS
=$LIBS
15584 cat >conftest.
$ac_ext <<_ACEOF
15587 cat confdefs.h
>>conftest.
$ac_ext
15588 cat >>conftest.
$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15591 /* Override any gcc2 internal prototype to avoid an error. */
15595 /* We use char because int might match the return type of a gcc2
15596 builtin and then its argument prototype would still apply. */
15606 rm -f conftest.
$ac_objext conftest
$ac_exeext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15608 (eval $ac_link) 2>conftest.er1
15610 grep -v '^ *+' conftest.er1
>conftest.err
15612 cat conftest.err
>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try
='test -z "$ac_c_werror_flag"
15616 || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try
='test -s conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_lib_kvm_kvm_open
=yes
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.
$ac_ext >&5
15633 ac_cv_lib_kvm_kvm_open
=no
15635 rm -f conftest.err conftest.
$ac_objext \
15636 conftest
$ac_exeext conftest.
$ac_ext
15637 LIBS
=$ac_check_lib_save_LIBS
15639 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15640 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15641 if test $ac_cv_lib_kvm_kvm_open = yes; then
15645 # Check for the 4.4BSD definition of getloadavg.
15646 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15647 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15648 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 ac_check_lib_save_LIBS
=$LIBS
15652 LIBS
="-lutil $LIBS"
15653 cat >conftest.
$ac_ext <<_ACEOF
15656 cat confdefs.h
>>conftest.
$ac_ext
15657 cat >>conftest.
$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15660 /* Override any gcc2 internal prototype to avoid an error. */
15664 /* We use char because int might match the return type of a gcc2
15665 builtin and then its argument prototype would still apply. */
15666 char getloadavg ();
15675 rm -f conftest.
$ac_objext conftest
$ac_exeext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>conftest.er1
15679 grep -v '^ *+' conftest.er1
>conftest.err
15681 cat conftest.err
>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try
='test -z "$ac_c_werror_flag"
15685 || test ! -s conftest.err'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try
='test -s conftest$ac_exeext'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_cv_lib_util_getloadavg
=yes
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.
$ac_ext >&5
15702 ac_cv_lib_util_getloadavg
=no
15704 rm -f conftest.err conftest.
$ac_objext \
15705 conftest
$ac_exeext conftest.
$ac_ext
15706 LIBS
=$ac_check_lib_save_LIBS
15708 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15709 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15710 if test $ac_cv_lib_util_getloadavg = yes; then
15711 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15716 if test $ac_have_func = no
; then
15717 # There is a commonly available library for RS/6000 AIX.
15718 # Since it is not a standard part of AIX, it might be installed locally.
15719 ac_getloadavg_LIBS
=$LIBS
15720 LIBS
="-L/usr/local/lib $LIBS"
15721 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15722 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15723 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 ac_check_lib_save_LIBS
=$LIBS
15727 LIBS
="-lgetloadavg $LIBS"
15728 cat >conftest.
$ac_ext <<_ACEOF
15731 cat confdefs.h
>>conftest.
$ac_ext
15732 cat >>conftest.
$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15735 /* Override any gcc2 internal prototype to avoid an error. */
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15741 char getloadavg ();
15750 rm -f conftest.
$ac_objext conftest
$ac_exeext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15752 (eval $ac_link) 2>conftest.er1
15754 grep -v '^ *+' conftest.er1
>conftest.err
15756 cat conftest.err
>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try
='test -z "$ac_c_werror_flag"
15760 || test ! -s conftest.err'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try
='test -s conftest$ac_exeext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_cv_lib_getloadavg_getloadavg
=yes
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.
$ac_ext >&5
15777 ac_cv_lib_getloadavg_getloadavg
=no
15779 rm -f conftest.err conftest.
$ac_objext \
15780 conftest
$ac_exeext conftest.
$ac_ext
15781 LIBS
=$ac_check_lib_save_LIBS
15783 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15784 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15785 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15786 LIBS
="-lgetloadavg $LIBS"
15788 LIBS
=$ac_getloadavg_LIBS
15793 # Make sure it is really in the library, if we think we found it,
15794 # otherwise set up the replacement function.
15796 for ac_func
in getloadavg
15798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 echo "$as_me:$LINENO: checking for $ac_func" >&5
15800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_var+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 cat >conftest.
$ac_ext <<_ACEOF
15807 cat confdefs.h
>>conftest.
$ac_ext
15808 cat >>conftest.
$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15812 #define $ac_func innocuous_$ac_func
15814 /* System header to define __stub macros and hopefully few prototypes,
15815 which can conflict with char $ac_func (); below.
15816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817 <limits.h> exists even on freestanding compilers. */
15820 # include <limits.h>
15822 # include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error. */
15832 /* We use char because int might match the return type of a gcc2
15833 builtin and then its argument prototype would still apply. */
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15841 char (*f) () = $ac_func;
15850 return f != $ac_func;
15855 rm -f conftest.
$ac_objext conftest
$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>conftest.er1
15859 grep -v '^ *+' conftest.er1
>conftest.err
15861 cat conftest.err
>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try
='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try
='test -s conftest$ac_exeext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 eval "$as_ac_var=yes"
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.
$ac_ext >&5
15882 eval "$as_ac_var=no"
15884 rm -f conftest.err conftest.
$ac_objext \
15885 conftest
$ac_exeext conftest.
$ac_ext
15887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15889 if test `eval echo '${'$as_ac_var'}'` = yes; then
15890 cat >>confdefs.h
<<_ACEOF
15891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15896 "getloadavg.$ac_objext" | \
15897 *" getloadavg.$ac_objext" | \
15898 "getloadavg.$ac_objext "* | \
15899 *" getloadavg.$ac_objext "* ) ;;
15900 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15904 cat >>confdefs.h
<<\_ACEOF
15905 #define C_GETLOADAVG 1
15908 # Figure out what our getloadavg.c needs.
15910 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15911 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15912 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15913 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15917 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15919 # Is the header compilable?
15920 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15921 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15922 cat >conftest.
$ac_ext <<_ACEOF
15925 cat confdefs.h
>>conftest.
$ac_ext
15926 cat >>conftest.
$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 $ac_includes_default
15929 #include <sys/dg_sys_info.h>
15931 rm -f conftest.
$ac_objext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>conftest.er1
15935 grep -v '^ *+' conftest.er1
>conftest.err
15937 cat conftest.err
>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try
='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try
='test -s conftest.$ac_objext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_header_compiler
=yes
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.
$ac_ext >&5
15958 ac_header_compiler
=no
15960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15962 echo "${ECHO_T}$ac_header_compiler" >&6
15964 # Is the header present?
15965 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15966 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15967 cat >conftest.
$ac_ext <<_ACEOF
15970 cat confdefs.h
>>conftest.
$ac_ext
15971 cat >>conftest.
$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 #include <sys/dg_sys_info.h>
15975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15976 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15978 grep -v '^ *+' conftest.er1
>conftest.err
15980 cat conftest.err
>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } >/dev
/null
; then
15983 if test -s conftest.err
; then
15984 ac_cpp_err
=$ac_c_preproc_warn_flag
15985 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15992 if test -z "$ac_cpp_err"; then
15993 ac_header_preproc
=yes
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.
$ac_ext >&5
15998 ac_header_preproc
=no
16000 rm -f conftest.err conftest.
$ac_ext
16001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16002 echo "${ECHO_T}$ac_header_preproc" >&6
16004 # So? What about this header?
16005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16007 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16008 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16010 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16011 ac_header_preproc
=yes
16014 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16015 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16017 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16019 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16021 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16023 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16025 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16028 ## ------------------------------------------ ##
16029 ## Report this to the AC_PACKAGE_NAME lists. ##
16030 ## ------------------------------------------ ##
16033 sed "s/^/$as_me: WARNING: /" >&2
16036 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16037 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16038 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16043 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16044 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16047 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16050 cat >>confdefs.h
<<\_ACEOF
16055 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16056 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16057 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 ac_check_lib_save_LIBS
=$LIBS
16062 cat >conftest.
$ac_ext <<_ACEOF
16065 cat confdefs.h
>>conftest.
$ac_ext
16066 cat >>conftest.
$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16069 /* Override any gcc2 internal prototype to avoid an error. */
16073 /* We use char because int might match the return type of a gcc2
16074 builtin and then its argument prototype would still apply. */
16075 char dg_sys_info ();
16084 rm -f conftest.
$ac_objext conftest
$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086 (eval $ac_link) 2>conftest.er1
16088 grep -v '^ *+' conftest.er1
>conftest.err
16090 cat conftest.err
>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try
='test -z "$ac_c_werror_flag"
16094 || test ! -s conftest.err'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try
='test -s conftest$ac_exeext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_lib_dgc_dg_sys_info
=yes
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.
$ac_ext >&5
16111 ac_cv_lib_dgc_dg_sys_info
=no
16113 rm -f conftest.err conftest.
$ac_objext \
16114 conftest
$ac_exeext conftest.
$ac_ext
16115 LIBS
=$ac_check_lib_save_LIBS
16117 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16118 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16119 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16120 cat >>confdefs.h
<<_ACEOF
16121 #define HAVE_LIBDGC 1
16132 if test "${ac_cv_header_locale_h+set}" = set; then
16133 echo "$as_me:$LINENO: checking for locale.h" >&5
16134 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16135 if test "${ac_cv_header_locale_h+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16139 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16141 # Is the header compilable?
16142 echo "$as_me:$LINENO: checking locale.h usability" >&5
16143 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16144 cat >conftest.
$ac_ext <<_ACEOF
16147 cat confdefs.h
>>conftest.
$ac_ext
16148 cat >>conftest.
$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 $ac_includes_default
16151 #include <locale.h>
16153 rm -f conftest.
$ac_objext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>conftest.er1
16157 grep -v '^ *+' conftest.er1
>conftest.err
16159 cat conftest.err
>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try
='test -z "$ac_c_werror_flag"
16163 || test ! -s conftest.err'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try
='test -s conftest.$ac_objext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_header_compiler
=yes
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.
$ac_ext >&5
16180 ac_header_compiler
=no
16182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16184 echo "${ECHO_T}$ac_header_compiler" >&6
16186 # Is the header present?
16187 echo "$as_me:$LINENO: checking locale.h presence" >&5
16188 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16189 cat >conftest.
$ac_ext <<_ACEOF
16192 cat confdefs.h
>>conftest.
$ac_ext
16193 cat >>conftest.
$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 #include <locale.h>
16197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16200 grep -v '^ *+' conftest.er1
>conftest.err
16202 cat conftest.err
>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } >/dev
/null
; then
16205 if test -s conftest.err
; then
16206 ac_cpp_err
=$ac_c_preproc_warn_flag
16207 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16214 if test -z "$ac_cpp_err"; then
16215 ac_header_preproc
=yes
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.
$ac_ext >&5
16220 ac_header_preproc
=no
16222 rm -f conftest.err conftest.
$ac_ext
16223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16224 echo "${ECHO_T}$ac_header_preproc" >&6
16226 # So? What about this header?
16227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16229 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16230 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16232 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16233 ac_header_preproc
=yes
16236 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16237 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16239 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16241 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16243 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16245 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16247 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16250 ## ------------------------------------------ ##
16251 ## Report this to the AC_PACKAGE_NAME lists. ##
16252 ## ------------------------------------------ ##
16255 sed "s/^/$as_me: WARNING: /" >&2
16258 echo "$as_me:$LINENO: checking for locale.h" >&5
16259 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16260 if test "${ac_cv_header_locale_h+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 ac_cv_header_locale_h
=$ac_header_preproc
16265 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16266 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16272 for ac_func
in setlocale
16274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16275 echo "$as_me:$LINENO: checking for $ac_func" >&5
16276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16277 if eval "test \"\${$as_ac_var+set}\" = set"; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 cat >conftest.
$ac_ext <<_ACEOF
16283 cat confdefs.h
>>conftest.
$ac_ext
16284 cat >>conftest.
$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16288 #define $ac_func innocuous_$ac_func
16290 /* System header to define __stub macros and hopefully few prototypes,
16291 which can conflict with char $ac_func (); below.
16292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16293 <limits.h> exists even on freestanding compilers. */
16296 # include <limits.h>
16298 # include <assert.h>
16303 /* Override any gcc2 internal prototype to avoid an error. */
16308 /* We use char because int might match the return type of a gcc2
16309 builtin and then its argument prototype would still apply. */
16311 /* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16317 char (*f) () = $ac_func;
16326 return f != $ac_func;
16331 rm -f conftest.
$ac_objext conftest
$ac_exeext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16333 (eval $ac_link) 2>conftest.er1
16335 grep -v '^ *+' conftest.er1
>conftest.err
16337 cat conftest.err
>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try
='test -z "$ac_c_werror_flag"
16341 || test ! -s conftest.err'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try
='test -s conftest$ac_exeext'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16353 eval "$as_ac_var=yes"
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.
$ac_ext >&5
16358 eval "$as_ac_var=no"
16360 rm -f conftest.err conftest.
$ac_objext \
16361 conftest
$ac_exeext conftest.
$ac_ext
16363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16365 if test `eval echo '${'$as_ac_var'}'` = yes; then
16366 cat >>confdefs.h
<<_ACEOF
16367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16374 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16375 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16376 # Irix 4.0.5F has the header but not the library.
16377 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16380 cat >>confdefs.h
<<\_ACEOF
16386 if test $ac_have_func = no
; then
16387 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16388 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16389 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16390 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16394 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16396 # Is the header compilable?
16397 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16398 echo $ECHO_N "checking inq_stats/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 <inq_stats/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"
16418 || test ! -s conftest.err'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try
='test -s conftest.$ac_objext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_header_compiler
=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.
$ac_ext >&5
16435 ac_header_compiler
=no
16437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16439 echo "${ECHO_T}$ac_header_compiler" >&6
16441 # Is the header present?
16442 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16443 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16444 cat >conftest.
$ac_ext <<_ACEOF
16447 cat confdefs.h
>>conftest.
$ac_ext
16448 cat >>conftest.
$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <inq_stats/cpustats.h>
16452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16455 grep -v '^ *+' conftest.er1
>conftest.err
16457 cat conftest.err
>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } >/dev
/null
; then
16460 if test -s conftest.err
; then
16461 ac_cpp_err
=$ac_c_preproc_warn_flag
16462 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16469 if test -z "$ac_cpp_err"; then
16470 ac_header_preproc
=yes
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.
$ac_ext >&5
16475 ac_header_preproc
=no
16477 rm -f conftest.err conftest.
$ac_ext
16478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16479 echo "${ECHO_T}$ac_header_preproc" >&6
16481 # So? What about this header?
16482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16484 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16485 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16487 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16488 ac_header_preproc
=yes
16491 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16492 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16494 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16496 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16498 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16500 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16502 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16505 ## ------------------------------------------ ##
16506 ## Report this to the AC_PACKAGE_NAME lists. ##
16507 ## ------------------------------------------ ##
16510 sed "s/^/$as_me: WARNING: /" >&2
16513 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16514 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16515 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16520 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16521 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16524 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16527 cat >>confdefs.h
<<\_ACEOF
16532 cat >>confdefs.h
<<\_ACEOF
16541 if test $ac_have_func = no
; then
16542 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16543 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16544 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16545 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16549 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16551 # Is the header compilable?
16552 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16553 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16554 cat >conftest.
$ac_ext <<_ACEOF
16557 cat confdefs.h
>>conftest.
$ac_ext
16558 cat >>conftest.
$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 $ac_includes_default
16561 #include <sys/cpustats.h>
16563 rm -f conftest.
$ac_objext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16565 (eval $ac_compile) 2>conftest.er1
16567 grep -v '^ *+' conftest.er1
>conftest.err
16569 cat conftest.err
>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try
='test -z "$ac_c_werror_flag"
16573 || test ! -s conftest.err'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; } &&
16579 { ac_try
='test -s conftest.$ac_objext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_header_compiler
=yes
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.
$ac_ext >&5
16590 ac_header_compiler
=no
16592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16594 echo "${ECHO_T}$ac_header_compiler" >&6
16596 # Is the header present?
16597 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16598 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16599 cat >conftest.
$ac_ext <<_ACEOF
16602 cat confdefs.h
>>conftest.
$ac_ext
16603 cat >>conftest.
$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #include <sys/cpustats.h>
16607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16608 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16610 grep -v '^ *+' conftest.er1
>conftest.err
16612 cat conftest.err
>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } >/dev
/null
; then
16615 if test -s conftest.err
; then
16616 ac_cpp_err
=$ac_c_preproc_warn_flag
16617 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16624 if test -z "$ac_cpp_err"; then
16625 ac_header_preproc
=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.
$ac_ext >&5
16630 ac_header_preproc
=no
16632 rm -f conftest.err conftest.
$ac_ext
16633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16639 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc
=yes
16646 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16656 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16660 ## ------------------------------------------ ##
16661 ## Report this to the AC_PACKAGE_NAME lists. ##
16662 ## ------------------------------------------ ##
16665 sed "s/^/$as_me: WARNING: /" >&2
16668 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16669 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16670 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16673 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16676 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16679 if test $ac_cv_header_sys_cpustats_h = yes; then
16680 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16689 if test $ac_have_func = no
; then
16691 for ac_header
in mach
/mach.h
16693 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16695 echo "$as_me:$LINENO: checking for $ac_header" >&5
16696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16703 # Is the header compilable?
16704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16706 cat >conftest.
$ac_ext <<_ACEOF
16709 cat confdefs.h
>>conftest.
$ac_ext
16710 cat >>conftest.
$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 $ac_includes_default
16713 #include <$ac_header>
16715 rm -f conftest.
$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>conftest.er1
16719 grep -v '^ *+' conftest.er1
>conftest.err
16721 cat conftest.err
>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try
='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
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); }; } &&
16731 { ac_try
='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 ac_header_compiler
=yes
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.
$ac_ext >&5
16742 ac_header_compiler
=no
16744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16746 echo "${ECHO_T}$ac_header_compiler" >&6
16748 # Is the header present?
16749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16751 cat >conftest.
$ac_ext <<_ACEOF
16754 cat confdefs.h
>>conftest.
$ac_ext
16755 cat >>conftest.
$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 #include <$ac_header>
16759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16760 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16762 grep -v '^ *+' conftest.er1
>conftest.err
16764 cat conftest.err
>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } >/dev
/null
; then
16767 if test -s conftest.err
; then
16768 ac_cpp_err
=$ac_c_preproc_warn_flag
16769 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16776 if test -z "$ac_cpp_err"; then
16777 ac_header_preproc
=yes
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.
$ac_ext >&5
16782 ac_header_preproc
=no
16784 rm -f conftest.err conftest.
$ac_ext
16785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16786 echo "${ECHO_T}$ac_header_preproc" >&6
16788 # So? What about this header?
16789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16795 ac_header_preproc
=yes
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16812 ## ------------------------------------------ ##
16813 ## Report this to the AC_PACKAGE_NAME lists. ##
16814 ## ------------------------------------------ ##
16817 sed "s/^/$as_me: WARNING: /" >&2
16820 echo "$as_me:$LINENO: checking for $ac_header" >&5
16821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 eval "$as_ac_Header=\$ac_header_preproc"
16827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16832 cat >>confdefs.h
<<_ACEOF
16833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 for ac_header
in nlist.h
16845 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16847 echo "$as_me:$LINENO: checking for $ac_header" >&5
16848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16855 # Is the header compilable?
16856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16858 cat >conftest.
$ac_ext <<_ACEOF
16861 cat confdefs.h
>>conftest.
$ac_ext
16862 cat >>conftest.
$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 $ac_includes_default
16865 #include <$ac_header>
16867 rm -f conftest.
$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16871 grep -v '^ *+' conftest.er1
>conftest.err
16873 cat conftest.err
>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try
='test -z "$ac_c_werror_flag"
16877 || test ! -s conftest.err'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try
='test -s conftest.$ac_objext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 ac_header_compiler
=yes
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.
$ac_ext >&5
16894 ac_header_compiler
=no
16896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16898 echo "${ECHO_T}$ac_header_compiler" >&6
16900 # Is the header present?
16901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16903 cat >conftest.
$ac_ext <<_ACEOF
16906 cat confdefs.h
>>conftest.
$ac_ext
16907 cat >>conftest.
$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 #include <$ac_header>
16911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16912 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1
>conftest.err
16916 cat conftest.err
>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } >/dev
/null
; then
16919 if test -s conftest.err
; then
16920 ac_cpp_err
=$ac_c_preproc_warn_flag
16921 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16928 if test -z "$ac_cpp_err"; then
16929 ac_header_preproc
=yes
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.
$ac_ext >&5
16934 ac_header_preproc
=no
16936 rm -f conftest.err conftest.
$ac_ext
16937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16938 echo "${ECHO_T}$ac_header_preproc" >&6
16940 # So? What about this header?
16941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16947 ac_header_preproc
=yes
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16964 ## ------------------------------------------ ##
16965 ## Report this to the AC_PACKAGE_NAME lists. ##
16966 ## ------------------------------------------ ##
16969 sed "s/^/$as_me: WARNING: /" >&2
16972 echo "$as_me:$LINENO: checking for $ac_header" >&5
16973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 eval "$as_ac_Header=\$ac_header_preproc"
16979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16984 cat >>confdefs.h
<<_ACEOF
16985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16987 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16988 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16989 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 cat >conftest.
$ac_ext <<_ACEOF
16995 cat confdefs.h
>>conftest.
$ac_ext
16996 cat >>conftest.
$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
17003 static struct nlist ac_aggr;
17004 if (ac_aggr.n_un.n_name)
17010 rm -f conftest.
$ac_objext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17012 (eval $ac_compile) 2>conftest.er1
17014 grep -v '^ *+' conftest.er1
>conftest.err
17016 cat conftest.err
>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try
='test -z "$ac_c_werror_flag"
17020 || test ! -s conftest.err'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try
='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_member_struct_nlist_n_un_n_name
=yes
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.
$ac_ext >&5
17037 cat >conftest.
$ac_ext <<_ACEOF
17040 cat confdefs.h
>>conftest.
$ac_ext
17041 cat >>conftest.
$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17048 static struct nlist ac_aggr;
17049 if (sizeof ac_aggr.n_un.n_name)
17055 rm -f conftest.
$ac_objext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17057 (eval $ac_compile) 2>conftest.er1
17059 grep -v '^ *+' conftest.er1
>conftest.err
17061 cat conftest.err
>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try
='test -z "$ac_c_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try
='test -s conftest.$ac_objext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_member_struct_nlist_n_un_n_name
=yes
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.
$ac_ext >&5
17082 ac_cv_member_struct_nlist_n_un_n_name
=no
17084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17088 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17089 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17090 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17092 cat >>confdefs.h
<<_ACEOF
17093 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17097 cat >>confdefs.h
<<\_ACEOF
17098 #define NLIST_NAME_UNION 1
17112 # Some definitions of getloadavg require that the program be installed setgid.
17113 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17114 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17115 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 cat >conftest.
$ac_ext <<_ACEOF
17121 cat confdefs.h
>>conftest.
$ac_ext
17122 cat >>conftest.
$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17125 #ifdef LDAV_PRIVILEGED
17126 Yowza Am I SETGID yet
17129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17130 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17131 ac_cv_func_getloadavg_setgid
=yes
17133 ac_cv_func_getloadavg_setgid
=no
17138 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17139 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17140 if test $ac_cv_func_getloadavg_setgid = yes; then
17143 cat >>confdefs.h
<<\_ACEOF
17144 #define GETLOADAVG_PRIVILEGED 1
17151 if test $ac_cv_func_getloadavg_setgid = yes; then
17152 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17153 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17154 if test "${ac_cv_group_kmem+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17158 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17159 # If we got an error (system does not support symlinks), try without -L.
17160 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17161 ac_cv_group_kmem
=`echo $ac_ls_output \
17162 | sed -ne 's/[ ][ ]*/ /g;
17163 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17167 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17168 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17169 KMEM_GROUP
=$ac_cv_group_kmem
17171 if test "x$ac_save_LIBS" = x
; then
17172 GETLOADAVG_LIBS
=$LIBS
17174 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17180 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17181 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17182 if test "${ac_cv_sys_largefile_source+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 ac_cv_sys_largefile_source
=no
17187 cat >conftest.
$ac_ext <<_ACEOF
17190 cat confdefs.h
>>conftest.
$ac_ext
17191 cat >>conftest.
$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17202 rm -f conftest.
$ac_objext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17204 (eval $ac_compile) 2>conftest.er1
17206 grep -v '^ *+' conftest.er1
>conftest.err
17208 cat conftest.err
>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try
='test -z "$ac_c_werror_flag"
17212 || test ! -s conftest.err'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try
='test -s conftest.$ac_objext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.
$ac_ext >&5
17230 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17231 cat >conftest.
$ac_ext <<_ACEOF
17234 cat confdefs.h
>>conftest.
$ac_ext
17235 cat >>conftest.
$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 #define _LARGEFILE_SOURCE 1
17247 rm -f conftest.
$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>conftest.er1
17251 grep -v '^ *+' conftest.er1
>conftest.err
17253 cat conftest.err
>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try
='test -z "$ac_c_werror_flag"
17257 || test ! -s conftest.err'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try
='test -s conftest.$ac_objext'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_sys_largefile_source
=1; break
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.
$ac_ext >&5
17275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17279 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17280 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17281 if test "$ac_cv_sys_largefile_source" != no
; then
17283 cat >>confdefs.h
<<_ACEOF
17284 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17290 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17291 # in glibc 2.1.3, but that breaks too many other things.
17292 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17293 echo "$as_me:$LINENO: checking for fseeko" >&5
17294 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17295 if test "${ac_cv_func_fseeko+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 cat >conftest.
$ac_ext <<_ACEOF
17301 cat confdefs.h
>>conftest.
$ac_ext
17302 cat >>conftest.
$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17308 return fseeko && fseeko (stdin, 0, 0);
17313 rm -f conftest.
$ac_objext conftest
$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>conftest.er1
17317 grep -v '^ *+' conftest.er1
>conftest.err
17319 cat conftest.err
>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try
='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try
='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_func_fseeko
=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.
$ac_ext >&5
17340 ac_cv_func_fseeko
=no
17342 rm -f conftest.err conftest.
$ac_objext \
17343 conftest
$ac_exeext conftest.
$ac_ext
17345 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17346 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17347 if test $ac_cv_func_fseeko = yes; then
17349 cat >>confdefs.h
<<\_ACEOF
17350 #define HAVE_FSEEKO 1
17356 # Configure getopt.
17357 # getopt.m4 serial 10
17359 # The getopt module assume you want GNU getopt, with getopt_long etc,
17360 # rather than vanilla POSIX getopt. This means your your code should
17361 # always include <getopt.h> for the getopt prototypes.
17373 # Prerequisites of lib/getopt*.
17380 for ac_header
in getopt.h
17382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17384 echo "$as_me:$LINENO: checking for $ac_header" >&5
17385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17392 # Is the header compilable?
17393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17395 cat >conftest.
$ac_ext <<_ACEOF
17398 cat confdefs.h
>>conftest.
$ac_ext
17399 cat >>conftest.
$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 $ac_includes_default
17402 #include <$ac_header>
17404 rm -f conftest.
$ac_objext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17406 (eval $ac_compile) 2>conftest.er1
17408 grep -v '^ *+' conftest.er1
>conftest.err
17410 cat conftest.err
>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try
='test -z "$ac_c_werror_flag"
17414 || test ! -s conftest.err'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try
='test -s conftest.$ac_objext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_header_compiler
=yes
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.
$ac_ext >&5
17431 ac_header_compiler
=no
17433 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17435 echo "${ECHO_T}$ac_header_compiler" >&6
17437 # Is the header present?
17438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17440 cat >conftest.
$ac_ext <<_ACEOF
17443 cat confdefs.h
>>conftest.
$ac_ext
17444 cat >>conftest.
$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 #include <$ac_header>
17448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17449 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17451 grep -v '^ *+' conftest.er1
>conftest.err
17453 cat conftest.err
>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } >/dev
/null
; then
17456 if test -s conftest.err
; then
17457 ac_cpp_err
=$ac_c_preproc_warn_flag
17458 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17465 if test -z "$ac_cpp_err"; then
17466 ac_header_preproc
=yes
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.
$ac_ext >&5
17471 ac_header_preproc
=no
17473 rm -f conftest.err conftest.
$ac_ext
17474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17475 echo "${ECHO_T}$ac_header_preproc" >&6
17477 # So? What about this header?
17478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17484 ac_header_preproc
=yes
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17501 ## ------------------------------------------ ##
17502 ## Report this to the AC_PACKAGE_NAME lists. ##
17503 ## ------------------------------------------ ##
17506 sed "s/^/$as_me: WARNING: /" >&2
17509 echo "$as_me:$LINENO: checking for $ac_header" >&5
17510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 eval "$as_ac_Header=\$ac_header_preproc"
17516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17521 cat >>confdefs.h
<<_ACEOF
17522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17531 if test -z "$GETOPT_H"; then
17533 for ac_func
in getopt_long_only
17535 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17536 echo "$as_me:$LINENO: checking for $ac_func" >&5
17537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17538 if eval "test \"\${$as_ac_var+set}\" = set"; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 cat >conftest.
$ac_ext <<_ACEOF
17544 cat confdefs.h
>>conftest.
$ac_ext
17545 cat >>conftest.
$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17549 #define $ac_func innocuous_$ac_func
17551 /* System header to define __stub macros and hopefully few prototypes,
17552 which can conflict with char $ac_func (); below.
17553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17554 <limits.h> exists even on freestanding compilers. */
17557 # include <limits.h>
17559 # include <assert.h>
17564 /* Override any gcc2 internal prototype to avoid an error. */
17569 /* We use char because int might match the return type of a gcc2
17570 builtin and then its argument prototype would still apply. */
17572 /* The GNU C library defines this for functions which it implements
17573 to always fail with ENOSYS. Some functions are actually named
17574 something starting with __ and the normal name is an alias. */
17575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17578 char (*f) () = $ac_func;
17587 return f != $ac_func;
17592 rm -f conftest.
$ac_objext conftest
$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>conftest.er1
17596 grep -v '^ *+' conftest.er1
>conftest.err
17598 cat conftest.err
>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try
='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try
='test -s conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 eval "$as_ac_var=yes"
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.
$ac_ext >&5
17619 eval "$as_ac_var=no"
17621 rm -f conftest.err conftest.
$ac_objext \
17622 conftest
$ac_exeext conftest.
$ac_ext
17624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627 cat >>confdefs.h
<<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17638 if test -z "$GETOPT_H"; then
17639 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17640 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17641 if test "${ac_cv_have_decl_optreset+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 cat >conftest.
$ac_ext <<_ACEOF
17647 cat confdefs.h
>>conftest.
$ac_ext
17648 cat >>conftest.
$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650 #include <getopt.h>
17656 char *p = (char *) optreset;
17663 rm -f conftest.
$ac_objext
17664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17665 (eval $ac_compile) 2>conftest.er1
17667 grep -v '^ *+' conftest.er1
>conftest.err
17669 cat conftest.err
>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try
='test -z "$ac_c_werror_flag"
17673 || test ! -s conftest.err'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; } &&
17679 { ac_try
='test -s conftest.$ac_objext'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 ac_cv_have_decl_optreset
=yes
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.
$ac_ext >&5
17690 ac_cv_have_decl_optreset
=no
17692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17694 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17695 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17696 if test $ac_cv_have_decl_optreset = yes; then
17702 if test -z "$GETOPT_H"; then
17703 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17704 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17705 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 if test "$cross_compiling" = yes; then
17709 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17710 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17711 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 cat >conftest.
$ac_ext <<_ACEOF
17717 cat confdefs.h
>>conftest.
$ac_ext
17718 cat >>conftest.
$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include <getopt.h>
17725 #ifndef getopt_clip
17726 char *p = (char *) getopt_clip;
17733 rm -f conftest.
$ac_objext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17735 (eval $ac_compile) 2>conftest.er1
17737 grep -v '^ *+' conftest.er1
>conftest.err
17739 cat conftest.err
>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try
='test -z "$ac_c_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try
='test -s conftest.$ac_objext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_have_decl_getopt_clip
=yes
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.
$ac_ext >&5
17760 ac_cv_have_decl_getopt_clip
=no
17762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17765 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17766 if test $ac_cv_have_decl_getopt_clip = yes; then
17767 gl_cv_func_gnu_getopt
=no
17769 gl_cv_func_gnu_getopt
=yes
17773 cat >conftest.
$ac_ext <<_ACEOF
17776 cat confdefs.h
>>conftest.
$ac_ext
17777 cat >>conftest.
$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 #include <getopt.h>
17785 myargv[0] = "conftest";
17788 return getopt (2, myargv, "+a") != '?';
17794 rm -f conftest
$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 gl_cv_func_gnu_getopt
=yes
17807 echo "$as_me: program exited with status $ac_status" >&5
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.
$ac_ext >&5
17811 ( exit $ac_status )
17812 gl_cv_func_gnu_getopt
=no
17814 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17817 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17818 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17819 if test "$gl_cv_func_gnu_getopt" = "no"; then
17826 if test -n "$GETOPT_H"; then
17831 cat >>confdefs.h
<<\_ACEOF
17832 #define __GETOPT_PREFIX rpl_
17838 GETOPTOBJS
='getopt.o getopt1.o'
17845 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17846 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17847 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 # Use it with a single arg.
17851 cat >conftest.
$ac_ext <<_ACEOF
17854 cat confdefs.h
>>conftest.
$ac_ext
17855 cat >>conftest.
$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 $ac_includes_default
17866 rm -f conftest.
$ac_objext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17868 (eval $ac_compile) 2>conftest.er1
17870 grep -v '^ *+' conftest.er1
>conftest.err
17872 cat conftest.err
>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try
='test -z "$ac_c_werror_flag"
17876 || test ! -s conftest.err'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try
='test -s conftest.$ac_objext'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 ac_cv_func_getpgrp_void
=no
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.
$ac_ext >&5
17893 ac_cv_func_getpgrp_void
=yes
17895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17898 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17899 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17900 if test $ac_cv_func_getpgrp_void = yes; then
17902 cat >>confdefs.h
<<\_ACEOF
17903 #define GETPGRP_VOID 1
17910 for ac_func
in strftime
17912 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17913 echo "$as_me:$LINENO: checking for $ac_func" >&5
17914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17915 if eval "test \"\${$as_ac_var+set}\" = set"; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 cat >conftest.
$ac_ext <<_ACEOF
17921 cat confdefs.h
>>conftest.
$ac_ext
17922 cat >>conftest.
$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17926 #define $ac_func innocuous_$ac_func
17928 /* System header to define __stub macros and hopefully few prototypes,
17929 which can conflict with char $ac_func (); below.
17930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17931 <limits.h> exists even on freestanding compilers. */
17934 # include <limits.h>
17936 # include <assert.h>
17941 /* Override any gcc2 internal prototype to avoid an error. */
17946 /* We use char because int might match the return type of a gcc2
17947 builtin and then its argument prototype would still apply. */
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17955 char (*f) () = $ac_func;
17964 return f != $ac_func;
17969 rm -f conftest.
$ac_objext conftest
$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>conftest.er1
17973 grep -v '^ *+' conftest.er1
>conftest.err
17975 cat conftest.err
>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try
='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try
='test -s conftest$ac_exeext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 eval "$as_ac_var=yes"
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.
$ac_ext >&5
17996 eval "$as_ac_var=no"
17998 rm -f conftest.err conftest.
$ac_objext \
17999 conftest
$ac_exeext conftest.
$ac_ext
18001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18003 if test `eval echo '${'$as_ac_var'}'` = yes; then
18004 cat >>confdefs.h
<<_ACEOF
18005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18009 # strftime is in -lintl on SCO UNIX.
18010 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18011 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18012 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 ac_check_lib_save_LIBS
=$LIBS
18016 LIBS
="-lintl $LIBS"
18017 cat >conftest.
$ac_ext <<_ACEOF
18020 cat confdefs.h
>>conftest.
$ac_ext
18021 cat >>conftest.
$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18024 /* Override any gcc2 internal prototype to avoid an error. */
18028 /* We use char because int might match the return type of a gcc2
18029 builtin and then its argument prototype would still apply. */
18039 rm -f conftest.
$ac_objext conftest
$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041 (eval $ac_link) 2>conftest.er1
18043 grep -v '^ *+' conftest.er1
>conftest.err
18045 cat conftest.err
>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try
='test -z "$ac_c_werror_flag"
18049 || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try
='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_lib_intl_strftime
=yes
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.
$ac_ext >&5
18066 ac_cv_lib_intl_strftime
=no
18068 rm -f conftest.err conftest.
$ac_objext \
18069 conftest
$ac_exeext conftest.
$ac_ext
18070 LIBS
=$ac_check_lib_save_LIBS
18072 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18073 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18074 if test $ac_cv_lib_intl_strftime = yes; then
18075 cat >>confdefs.h
<<\_ACEOF
18076 #define HAVE_STRFTIME 1
18079 LIBS
="-lintl $LIBS"
18088 for ac_func
in grantpt
18090 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18091 echo "$as_me:$LINENO: checking for $ac_func" >&5
18092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18093 if eval "test \"\${$as_ac_var+set}\" = set"; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 cat >conftest.
$ac_ext <<_ACEOF
18099 cat confdefs.h
>>conftest.
$ac_ext
18100 cat >>conftest.
$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18104 #define $ac_func innocuous_$ac_func
18106 /* System header to define __stub macros and hopefully few prototypes,
18107 which can conflict with char $ac_func (); below.
18108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18109 <limits.h> exists even on freestanding compilers. */
18112 # include <limits.h>
18114 # include <assert.h>
18119 /* Override any gcc2 internal prototype to avoid an error. */
18124 /* We use char because int might match the return type of a gcc2
18125 builtin and then its argument prototype would still apply. */
18127 /* The GNU C library defines this for functions which it implements
18128 to always fail with ENOSYS. Some functions are actually named
18129 something starting with __ and the normal name is an alias. */
18130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18133 char (*f) () = $ac_func;
18142 return f != $ac_func;
18147 rm -f conftest.
$ac_objext conftest
$ac_exeext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>conftest.er1
18151 grep -v '^ *+' conftest.er1
>conftest.err
18153 cat conftest.err
>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try
='test -z "$ac_c_werror_flag"
18157 || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try
='test -s conftest$ac_exeext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 eval "$as_ac_var=yes"
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.
$ac_ext >&5
18174 eval "$as_ac_var=no"
18176 rm -f conftest.err conftest.
$ac_objext \
18177 conftest
$ac_exeext conftest.
$ac_ext
18179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18181 if test `eval echo '${'$as_ac_var'}'` = yes; then
18182 cat >>confdefs.h
<<_ACEOF
18183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18190 # PTY-related GNU extensions.
18192 for ac_func
in getpt
18194 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18195 echo "$as_me:$LINENO: checking for $ac_func" >&5
18196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18197 if eval "test \"\${$as_ac_var+set}\" = set"; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 cat >conftest.
$ac_ext <<_ACEOF
18203 cat confdefs.h
>>conftest.
$ac_ext
18204 cat >>conftest.
$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18208 #define $ac_func innocuous_$ac_func
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char $ac_func (); below.
18212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213 <limits.h> exists even on freestanding compilers. */
18216 # include <limits.h>
18218 # include <assert.h>
18223 /* Override any gcc2 internal prototype to avoid an error. */
18228 /* We use char because int might match the return type of a gcc2
18229 builtin and then its argument prototype would still apply. */
18231 /* The GNU C library defines this for functions which it implements
18232 to always fail with ENOSYS. Some functions are actually named
18233 something starting with __ and the normal name is an alias. */
18234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18237 char (*f) () = $ac_func;
18246 return f != $ac_func;
18251 rm -f conftest.
$ac_objext conftest
$ac_exeext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18253 (eval $ac_link) 2>conftest.er1
18255 grep -v '^ *+' conftest.er1
>conftest.err
18257 cat conftest.err
>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try
='test -z "$ac_c_werror_flag"
18261 || test ! -s conftest.err'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try
='test -s conftest$ac_exeext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 eval "$as_ac_var=yes"
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.
$ac_ext >&5
18278 eval "$as_ac_var=no"
18280 rm -f conftest.err conftest.
$ac_objext \
18281 conftest
$ac_exeext conftest.
$ac_ext
18283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18285 if test `eval echo '${'$as_ac_var'}'` = yes; then
18286 cat >>confdefs.h
<<_ACEOF
18287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294 # Check this now, so that we will NOT find the above functions in ncurses.
18295 # That is because we have not set up to link ncurses in lib-src.
18296 # It's better to believe a function is not available
18297 # than to expect to find it in ncurses.
18299 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18300 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18301 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 ac_check_lib_save_LIBS
=$LIBS
18305 LIBS
="-lncurses $LIBS"
18306 cat >conftest.
$ac_ext <<_ACEOF
18309 cat confdefs.h
>>conftest.
$ac_ext
18310 cat >>conftest.
$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 /* Override any gcc2 internal prototype to avoid an error. */
18317 /* We use char because int might match the return type of a gcc2
18318 builtin and then its argument prototype would still apply. */
18328 rm -f conftest.
$ac_objext conftest
$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>conftest.er1
18332 grep -v '^ *+' conftest.er1
>conftest.err
18334 cat conftest.err
>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try
='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try
='test -s conftest$ac_exeext'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_lib_ncurses_tparm
=yes
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.
$ac_ext >&5
18355 ac_cv_lib_ncurses_tparm
=no
18357 rm -f conftest.err conftest.
$ac_objext \
18358 conftest
$ac_exeext conftest.
$ac_ext
18359 LIBS
=$ac_check_lib_save_LIBS
18361 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18362 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18363 if test $ac_cv_lib_ncurses_tparm = yes; then
18364 cat >>confdefs.h
<<_ACEOF
18365 #define HAVE_LIBNCURSES 1
18368 LIBS
="-lncurses $LIBS"
18373 # Do we need the Hesiod library to provide the support routines?
18374 if test "$with_hesiod" = yes ; then
18375 # Don't set $LIBS here -- see comments above.
18377 echo "$as_me:$LINENO: checking for res_send" >&5
18378 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18379 if test "${ac_cv_func_res_send+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 cat >conftest.
$ac_ext <<_ACEOF
18385 cat confdefs.h
>>conftest.
$ac_ext
18386 cat >>conftest.
$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18390 #define res_send innocuous_res_send
18392 /* System header to define __stub macros and hopefully few prototypes,
18393 which can conflict with char res_send (); below.
18394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 <limits.h> exists even on freestanding compilers. */
18398 # include <limits.h>
18400 # include <assert.h>
18405 /* Override any gcc2 internal prototype to avoid an error. */
18410 /* We use char because int might match the return type of a gcc2
18411 builtin and then its argument prototype would still apply. */
18413 /* The GNU C library defines this for functions which it implements
18414 to always fail with ENOSYS. Some functions are actually named
18415 something starting with __ and the normal name is an alias. */
18416 #if defined (__stub_res_send) || defined (__stub___res_send)
18419 char (*f) () = res_send;
18428 return f != res_send;
18433 rm -f conftest.
$ac_objext conftest
$ac_exeext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435 (eval $ac_link) 2>conftest.er1
18437 grep -v '^ *+' conftest.er1
>conftest.err
18439 cat conftest.err
>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try
='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try
='test -s conftest$ac_exeext'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_cv_func_res_send
=yes
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.
$ac_ext >&5
18460 ac_cv_func_res_send
=no
18462 rm -f conftest.err conftest.
$ac_objext \
18463 conftest
$ac_exeext conftest.
$ac_ext
18465 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18466 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18467 if test $ac_cv_func_res_send = yes; then
18470 echo "$as_me:$LINENO: checking for __res_send" >&5
18471 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18472 if test "${ac_cv_func___res_send+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 cat >conftest.
$ac_ext <<_ACEOF
18478 cat confdefs.h
>>conftest.
$ac_ext
18479 cat >>conftest.
$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18483 #define __res_send innocuous___res_send
18485 /* System header to define __stub macros and hopefully few prototypes,
18486 which can conflict with char __res_send (); below.
18487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18488 <limits.h> exists even on freestanding compilers. */
18491 # include <limits.h>
18493 # include <assert.h>
18498 /* Override any gcc2 internal prototype to avoid an error. */
18503 /* We use char because int might match the return type of a gcc2
18504 builtin and then its argument prototype would still apply. */
18505 char __res_send ();
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined (__stub___res_send) || defined (__stub_____res_send)
18512 char (*f) () = __res_send;
18521 return f != __res_send;
18526 rm -f conftest.
$ac_objext conftest
$ac_exeext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18528 (eval $ac_link) 2>conftest.er1
18530 grep -v '^ *+' conftest.er1
>conftest.err
18532 cat conftest.err
>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try
='test -z "$ac_c_werror_flag"
18536 || test ! -s conftest.err'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try
='test -s conftest$ac_exeext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 ac_cv_func___res_send
=yes
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.
$ac_ext >&5
18553 ac_cv_func___res_send
=no
18555 rm -f conftest.err conftest.
$ac_objext \
18556 conftest
$ac_exeext conftest.
$ac_ext
18558 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18559 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18560 if test $ac_cv_func___res_send = yes; then
18563 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18564 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18565 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 ac_check_lib_save_LIBS
=$LIBS
18569 LIBS
="-lresolv $LIBS"
18570 cat >conftest.
$ac_ext <<_ACEOF
18573 cat confdefs.h
>>conftest.
$ac_ext
18574 cat >>conftest.
$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18577 /* Override any gcc2 internal prototype to avoid an error. */
18581 /* We use char because int might match the return type of a gcc2
18582 builtin and then its argument prototype would still apply. */
18592 rm -f conftest.
$ac_objext conftest
$ac_exeext
18593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18594 (eval $ac_link) 2>conftest.er1
18596 grep -v '^ *+' conftest.er1
>conftest.err
18598 cat conftest.err
>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } &&
18601 { ac_try
='test -z "$ac_c_werror_flag"
18602 || 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_lib_resolv_res_send
=yes
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.
$ac_ext >&5
18619 ac_cv_lib_resolv_res_send
=no
18621 rm -f conftest.err conftest.
$ac_objext \
18622 conftest
$ac_exeext conftest.
$ac_ext
18623 LIBS
=$ac_check_lib_save_LIBS
18625 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18626 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18627 if test $ac_cv_lib_resolv_res_send = yes; then
18630 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18631 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18632 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 ac_check_lib_save_LIBS
=$LIBS
18636 LIBS
="-lresolv $LIBS"
18637 cat >conftest.
$ac_ext <<_ACEOF
18640 cat confdefs.h
>>conftest.
$ac_ext
18641 cat >>conftest.
$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18644 /* Override any gcc2 internal prototype to avoid an error. */
18648 /* We use char because int might match the return type of a gcc2
18649 builtin and then its argument prototype would still apply. */
18650 char __res_send ();
18659 rm -f conftest.
$ac_objext conftest
$ac_exeext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18661 (eval $ac_link) 2>conftest.er1
18663 grep -v '^ *+' conftest.er1
>conftest.err
18665 cat conftest.err
>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
18668 { ac_try
='test -z "$ac_c_werror_flag"
18669 || test ! -s conftest.err'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try
='test -s conftest$ac_exeext'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_lib_resolv___res_send
=yes
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.
$ac_ext >&5
18686 ac_cv_lib_resolv___res_send
=no
18688 rm -f conftest.err conftest.
$ac_objext \
18689 conftest
$ac_exeext conftest.
$ac_ext
18690 LIBS
=$ac_check_lib_save_LIBS
18692 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18693 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18694 if test $ac_cv_lib_resolv___res_send = yes; then
18704 if test "$resolv" = yes ; then
18707 cat >>confdefs.h
<<\_ACEOF
18708 #define HAVE_LIBRESOLV 1
18714 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18715 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18716 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 cat >conftest.
$ac_ext <<_ACEOF
18722 cat confdefs.h
>>conftest.
$ac_ext
18723 cat >>conftest.
$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727 #define hes_getmailhost innocuous_hes_getmailhost
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char hes_getmailhost (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18735 # include <limits.h>
18737 # include <assert.h>
18740 #undef hes_getmailhost
18742 /* Override any gcc2 internal prototype to avoid an error. */
18747 /* We use char because int might match the return type of a gcc2
18748 builtin and then its argument prototype would still apply. */
18749 char hes_getmailhost ();
18750 /* The GNU C library defines this for functions which it implements
18751 to always fail with ENOSYS. Some functions are actually named
18752 something starting with __ and the normal name is an alias. */
18753 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18756 char (*f) () = hes_getmailhost;
18765 return f != hes_getmailhost;
18770 rm -f conftest.
$ac_objext conftest
$ac_exeext
18771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18772 (eval $ac_link) 2>conftest.er1
18774 grep -v '^ *+' conftest.er1
>conftest.err
18776 cat conftest.err
>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try
='test -z "$ac_c_werror_flag"
18780 || test ! -s conftest.err'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try
='test -s conftest$ac_exeext'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 ac_cv_func_hes_getmailhost
=yes
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.
$ac_ext >&5
18797 ac_cv_func_hes_getmailhost
=no
18799 rm -f conftest.err conftest.
$ac_objext \
18800 conftest
$ac_exeext conftest.
$ac_ext
18802 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18803 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18804 if test $ac_cv_func_hes_getmailhost = yes; then
18807 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18808 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18809 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_check_lib_save_LIBS
=$LIBS
18813 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18814 cat >conftest.
$ac_ext <<_ACEOF
18817 cat confdefs.h
>>conftest.
$ac_ext
18818 cat >>conftest.
$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18821 /* Override any gcc2 internal prototype to avoid an error. */
18825 /* We use char because int might match the return type of a gcc2
18826 builtin and then its argument prototype would still apply. */
18827 char hes_getmailhost ();
18831 hes_getmailhost ();
18836 rm -f conftest.
$ac_objext conftest
$ac_exeext
18837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18838 (eval $ac_link) 2>conftest.er1
18840 grep -v '^ *+' conftest.er1
>conftest.err
18842 cat conftest.err
>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try
='test -z "$ac_c_werror_flag"
18846 || test ! -s conftest.err'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try
='test -s conftest$ac_exeext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_cv_lib_hesiod_hes_getmailhost
=yes
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18863 ac_cv_lib_hesiod_hes_getmailhost
=no
18865 rm -f conftest.err conftest.
$ac_objext \
18866 conftest
$ac_exeext conftest.
$ac_ext
18867 LIBS
=$ac_check_lib_save_LIBS
18869 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18870 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18871 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18873 cat >>confdefs.h
<<\_ACEOF
18874 #define HAVE_LIBHESIOD 1
18885 # These tell us which Kerberos-related libraries to use.
18886 if test "${with_kerberos+set}" = set; then
18888 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18889 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18890 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 ac_check_lib_save_LIBS
=$LIBS
18894 LIBS
="-lcom_err $LIBS"
18895 cat >conftest.
$ac_ext <<_ACEOF
18898 cat confdefs.h
>>conftest.
$ac_ext
18899 cat >>conftest.
$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18902 /* Override any gcc2 internal prototype to avoid an error. */
18906 /* We use char because int might match the return type of a gcc2
18907 builtin and then its argument prototype would still apply. */
18917 rm -f conftest.
$ac_objext conftest
$ac_exeext
18918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919 (eval $ac_link) 2>conftest.er1
18921 grep -v '^ *+' conftest.er1
>conftest.err
18923 cat conftest.err
>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
18926 { ac_try
='test -z "$ac_c_werror_flag"
18927 || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try
='test -s conftest$ac_exeext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_com_err_com_err
=yes
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.
$ac_ext >&5
18944 ac_cv_lib_com_err_com_err
=no
18946 rm -f conftest.err conftest.
$ac_objext \
18947 conftest
$ac_exeext conftest.
$ac_ext
18948 LIBS
=$ac_check_lib_save_LIBS
18950 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18951 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18952 if test $ac_cv_lib_com_err_com_err = yes; then
18953 cat >>confdefs.h
<<_ACEOF
18954 #define HAVE_LIBCOM_ERR 1
18957 LIBS
="-lcom_err $LIBS"
18962 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18963 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18964 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 ac_check_lib_save_LIBS
=$LIBS
18968 LIBS
="-lk5crypto $LIBS"
18969 cat >conftest.
$ac_ext <<_ACEOF
18972 cat confdefs.h
>>conftest.
$ac_ext
18973 cat >>conftest.
$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18976 /* Override any gcc2 internal prototype to avoid an error. */
18980 /* We use char because int might match the return type of a gcc2
18981 builtin and then its argument prototype would still apply. */
18982 char mit_des_cbc_encrypt ();
18986 mit_des_cbc_encrypt ();
18991 rm -f conftest.
$ac_objext conftest
$ac_exeext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18993 (eval $ac_link) 2>conftest.er1
18995 grep -v '^ *+' conftest.er1
>conftest.err
18997 cat conftest.err
>&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try
='test -z "$ac_c_werror_flag"
19001 || test ! -s conftest.err'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try
='test -s conftest$ac_exeext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.
$ac_ext >&5
19018 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19020 rm -f conftest.err conftest.
$ac_objext \
19021 conftest
$ac_exeext conftest.
$ac_ext
19022 LIBS
=$ac_check_lib_save_LIBS
19024 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19025 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19026 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19027 cat >>confdefs.h
<<_ACEOF
19028 #define HAVE_LIBK5CRYPTO 1
19031 LIBS
="-lk5crypto $LIBS"
19036 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19037 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19038 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 ac_check_lib_save_LIBS
=$LIBS
19042 LIBS
="-lcrypto $LIBS"
19043 cat >conftest.
$ac_ext <<_ACEOF
19046 cat confdefs.h
>>conftest.
$ac_ext
19047 cat >>conftest.
$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any gcc2 internal prototype to avoid an error. */
19054 /* We use char because int might match the return type of a gcc2
19055 builtin and then its argument prototype would still apply. */
19056 char mit_des_cbc_encrypt ();
19060 mit_des_cbc_encrypt ();
19065 rm -f conftest.
$ac_objext conftest
$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>conftest.er1
19069 grep -v '^ *+' conftest.er1
>conftest.err
19071 cat conftest.err
>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
19074 { ac_try
='test -z "$ac_c_werror_flag"
19075 || test ! -s conftest.err'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; } &&
19081 { ac_try
='test -s conftest$ac_exeext'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.
$ac_ext >&5
19092 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19094 rm -f conftest.err conftest.
$ac_objext \
19095 conftest
$ac_exeext conftest.
$ac_ext
19096 LIBS
=$ac_check_lib_save_LIBS
19098 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19099 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19100 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19101 cat >>confdefs.h
<<_ACEOF
19102 #define HAVE_LIBCRYPTO 1
19105 LIBS
="-lcrypto $LIBS"
19110 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19111 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19112 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 ac_check_lib_save_LIBS
=$LIBS
19116 LIBS
="-lkrb5 $LIBS"
19117 cat >conftest.
$ac_ext <<_ACEOF
19120 cat confdefs.h
>>conftest.
$ac_ext
19121 cat >>conftest.
$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19124 /* Override any gcc2 internal prototype to avoid an error. */
19128 /* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19130 char krb5_init_context ();
19134 krb5_init_context ();
19139 rm -f conftest.
$ac_objext conftest
$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19143 grep -v '^ *+' conftest.er1
>conftest.err
19145 cat conftest.err
>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try
='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try
='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_krb5_krb5_init_context
=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.
$ac_ext >&5
19166 ac_cv_lib_krb5_krb5_init_context
=no
19168 rm -f conftest.err conftest.
$ac_objext \
19169 conftest
$ac_exeext conftest.
$ac_ext
19170 LIBS
=$ac_check_lib_save_LIBS
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19173 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19174 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19175 cat >>confdefs.h
<<_ACEOF
19176 #define HAVE_LIBKRB5 1
19179 LIBS
="-lkrb5 $LIBS"
19183 if test "${with_kerberos5+set}" != set; then
19185 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19186 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19187 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 ac_check_lib_save_LIBS
=$LIBS
19191 LIBS
="-ldes425 $LIBS"
19192 cat >conftest.
$ac_ext <<_ACEOF
19195 cat confdefs.h
>>conftest.
$ac_ext
19196 cat >>conftest.
$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19199 /* Override any gcc2 internal prototype to avoid an error. */
19203 /* We use char because int might match the return type of a gcc2
19204 builtin and then its argument prototype would still apply. */
19205 char des_cbc_encrypt ();
19209 des_cbc_encrypt ();
19214 rm -f conftest.
$ac_objext conftest
$ac_exeext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216 (eval $ac_link) 2>conftest.er1
19218 grep -v '^ *+' conftest.er1
>conftest.err
19220 cat conftest.err
>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try
='test -z "$ac_c_werror_flag"
19224 || test ! -s conftest.err'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try
='test -s conftest$ac_exeext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_cv_lib_des425_des_cbc_encrypt
=yes
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.
$ac_ext >&5
19241 ac_cv_lib_des425_des_cbc_encrypt
=no
19243 rm -f conftest.err conftest.
$ac_objext \
19244 conftest
$ac_exeext conftest.
$ac_ext
19245 LIBS
=$ac_check_lib_save_LIBS
19247 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19248 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19249 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19250 cat >>confdefs.h
<<_ACEOF
19251 #define HAVE_LIBDES425 1
19254 LIBS
="-ldes425 $LIBS"
19258 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19259 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19260 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 ac_check_lib_save_LIBS
=$LIBS
19265 cat >conftest.
$ac_ext <<_ACEOF
19268 cat confdefs.h
>>conftest.
$ac_ext
19269 cat >>conftest.
$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19272 /* Override any gcc2 internal prototype to avoid an error. */
19276 /* We use char because int might match the return type of a gcc2
19277 builtin and then its argument prototype would still apply. */
19278 char des_cbc_encrypt ();
19282 des_cbc_encrypt ();
19287 rm -f conftest.
$ac_objext conftest
$ac_exeext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>conftest.er1
19291 grep -v '^ *+' conftest.er1
>conftest.err
19293 cat conftest.err
>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try
='test -z "$ac_c_werror_flag"
19297 || test ! -s conftest.err'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try
='test -s conftest$ac_exeext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_lib_des_des_cbc_encrypt
=yes
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.
$ac_ext >&5
19314 ac_cv_lib_des_des_cbc_encrypt
=no
19316 rm -f conftest.err conftest.
$ac_objext \
19317 conftest
$ac_exeext conftest.
$ac_ext
19318 LIBS
=$ac_check_lib_save_LIBS
19320 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19321 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19322 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19323 cat >>confdefs.h
<<_ACEOF
19324 #define HAVE_LIBDES 1
19334 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19335 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19336 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 ac_check_lib_save_LIBS
=$LIBS
19340 LIBS
="-lkrb4 $LIBS"
19341 cat >conftest.
$ac_ext <<_ACEOF
19344 cat confdefs.h
>>conftest.
$ac_ext
19345 cat >>conftest.
$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 /* Override any gcc2 internal prototype to avoid an error. */
19352 /* We use char because int might match the return type of a gcc2
19353 builtin and then its argument prototype would still apply. */
19354 char krb_get_cred ();
19363 rm -f conftest.
$ac_objext conftest
$ac_exeext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19365 (eval $ac_link) 2>conftest.er1
19367 grep -v '^ *+' conftest.er1
>conftest.err
19369 cat conftest.err
>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try
='test -z "$ac_c_werror_flag"
19373 || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try
='test -s conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_lib_krb4_krb_get_cred
=yes
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.
$ac_ext >&5
19390 ac_cv_lib_krb4_krb_get_cred
=no
19392 rm -f conftest.err conftest.
$ac_objext \
19393 conftest
$ac_exeext conftest.
$ac_ext
19394 LIBS
=$ac_check_lib_save_LIBS
19396 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19397 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19398 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19399 cat >>confdefs.h
<<_ACEOF
19400 #define HAVE_LIBKRB4 1
19403 LIBS
="-lkrb4 $LIBS"
19407 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19408 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19409 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 ac_check_lib_save_LIBS
=$LIBS
19414 cat >conftest.
$ac_ext <<_ACEOF
19417 cat confdefs.h
>>conftest.
$ac_ext
19418 cat >>conftest.
$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19421 /* Override any gcc2 internal prototype to avoid an error. */
19425 /* We use char because int might match the return type of a gcc2
19426 builtin and then its argument prototype would still apply. */
19427 char krb_get_cred ();
19436 rm -f conftest.
$ac_objext conftest
$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438 (eval $ac_link) 2>conftest.er1
19440 grep -v '^ *+' conftest.er1
>conftest.err
19442 cat conftest.err
>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
19445 { ac_try
='test -z "$ac_c_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try
='test -s conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_cv_lib_krb_krb_get_cred
=yes
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.
$ac_ext >&5
19463 ac_cv_lib_krb_krb_get_cred
=no
19465 rm -f conftest.err conftest.
$ac_objext \
19466 conftest
$ac_exeext conftest.
$ac_ext
19467 LIBS
=$ac_check_lib_save_LIBS
19469 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19470 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19471 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19472 cat >>confdefs.h
<<_ACEOF
19473 #define HAVE_LIBKRB 1
19484 if test "${with_kerberos5+set}" = set; then
19486 for ac_header
in krb5.h
19488 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19490 echo "$as_me:$LINENO: checking for $ac_header" >&5
19491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19498 # Is the header compilable?
19499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19501 cat >conftest.
$ac_ext <<_ACEOF
19504 cat confdefs.h
>>conftest.
$ac_ext
19505 cat >>conftest.
$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 $ac_includes_default
19508 #include <$ac_header>
19510 rm -f conftest.
$ac_objext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512 (eval $ac_compile) 2>conftest.er1
19514 grep -v '^ *+' conftest.er1
>conftest.err
19516 cat conftest.err
>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try
='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try
='test -s conftest.$ac_objext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_header_compiler
=yes
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.
$ac_ext >&5
19537 ac_header_compiler
=no
19539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19541 echo "${ECHO_T}$ac_header_compiler" >&6
19543 # Is the header present?
19544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19546 cat >conftest.
$ac_ext <<_ACEOF
19549 cat confdefs.h
>>conftest.
$ac_ext
19550 cat >>conftest.
$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 #include <$ac_header>
19554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19557 grep -v '^ *+' conftest.er1
>conftest.err
19559 cat conftest.err
>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } >/dev
/null
; then
19562 if test -s conftest.err
; then
19563 ac_cpp_err
=$ac_c_preproc_warn_flag
19564 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19571 if test -z "$ac_cpp_err"; then
19572 ac_header_preproc
=yes
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.
$ac_ext >&5
19577 ac_header_preproc
=no
19579 rm -f conftest.err conftest.
$ac_ext
19580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19581 echo "${ECHO_T}$ac_header_preproc" >&6
19583 # So? What about this header?
19584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19590 ac_header_preproc
=yes
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19607 ## ------------------------------------------ ##
19608 ## Report this to the AC_PACKAGE_NAME lists. ##
19609 ## ------------------------------------------ ##
19612 sed "s/^/$as_me: WARNING: /" >&2
19615 echo "$as_me:$LINENO: checking for $ac_header" >&5
19616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 eval "$as_ac_Header=\$ac_header_preproc"
19622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19627 cat >>confdefs.h
<<_ACEOF
19628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19637 for ac_header
in des.h
19639 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19641 echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19649 # Is the header compilable?
19650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19652 cat >conftest.
$ac_ext <<_ACEOF
19655 cat confdefs.h
>>conftest.
$ac_ext
19656 cat >>conftest.
$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 $ac_includes_default
19659 #include <$ac_header>
19661 rm -f conftest.
$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 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); } &&
19670 { ac_try
='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try
='test -s conftest.$ac_objext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_header_compiler
=yes
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.
$ac_ext >&5
19688 ac_header_compiler
=no
19690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19692 echo "${ECHO_T}$ac_header_compiler" >&6
19694 # Is the header present?
19695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19697 cat >conftest.
$ac_ext <<_ACEOF
19700 cat confdefs.h
>>conftest.
$ac_ext
19701 cat >>conftest.
$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 #include <$ac_header>
19705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19708 grep -v '^ *+' conftest.er1
>conftest.err
19710 cat conftest.err
>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } >/dev
/null
; then
19713 if test -s conftest.err
; then
19714 ac_cpp_err
=$ac_c_preproc_warn_flag
19715 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19722 if test -z "$ac_cpp_err"; then
19723 ac_header_preproc
=yes
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.
$ac_ext >&5
19728 ac_header_preproc
=no
19730 rm -f conftest.err conftest.
$ac_ext
19731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19732 echo "${ECHO_T}$ac_header_preproc" >&6
19734 # So? What about this header?
19735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19741 ac_header_preproc
=yes
19744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19758 ## ------------------------------------------ ##
19759 ## Report this to the AC_PACKAGE_NAME lists. ##
19760 ## ------------------------------------------ ##
19763 sed "s/^/$as_me: WARNING: /" >&2
19766 echo "$as_me:$LINENO: checking for $ac_header" >&5
19767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 eval "$as_ac_Header=\$ac_header_preproc"
19773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19778 cat >>confdefs.h
<<_ACEOF
19779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19784 for ac_header
in kerberosIV
/des.h
19786 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788 echo "$as_me:$LINENO: checking for $ac_header" >&5
19789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19796 # Is the header compilable?
19797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19799 cat >conftest.
$ac_ext <<_ACEOF
19802 cat confdefs.h
>>conftest.
$ac_ext
19803 cat >>conftest.
$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 $ac_includes_default
19806 #include <$ac_header>
19808 rm -f conftest.
$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810 (eval $ac_compile) 2>conftest.er1
19812 grep -v '^ *+' conftest.er1
>conftest.err
19814 cat conftest.err
>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try
='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try
='test -s conftest.$ac_objext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 ac_header_compiler
=yes
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.
$ac_ext >&5
19835 ac_header_compiler
=no
19837 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6
19841 # Is the header present?
19842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19844 cat >conftest.
$ac_ext <<_ACEOF
19847 cat confdefs.h
>>conftest.
$ac_ext
19848 cat >>conftest.
$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 #include <$ac_header>
19852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19853 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19855 grep -v '^ *+' conftest.er1
>conftest.err
19857 cat conftest.err
>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } >/dev
/null
; then
19860 if test -s conftest.err
; then
19861 ac_cpp_err
=$ac_c_preproc_warn_flag
19862 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19869 if test -z "$ac_cpp_err"; then
19870 ac_header_preproc
=yes
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.
$ac_ext >&5
19875 ac_header_preproc
=no
19877 rm -f conftest.err conftest.
$ac_ext
19878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6
19881 # So? What about this header?
19882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19888 ac_header_preproc
=yes
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19905 ## ------------------------------------------ ##
19906 ## Report this to the AC_PACKAGE_NAME lists. ##
19907 ## ------------------------------------------ ##
19910 sed "s/^/$as_me: WARNING: /" >&2
19913 echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 eval "$as_ac_Header=\$ac_header_preproc"
19920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19925 cat >>confdefs.h
<<_ACEOF
19926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19931 for ac_header
in kerberos
/des.h
19933 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19935 echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19943 # Is the header compilable?
19944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19946 cat >conftest.
$ac_ext <<_ACEOF
19949 cat confdefs.h
>>conftest.
$ac_ext
19950 cat >>conftest.
$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 $ac_includes_default
19953 #include <$ac_header>
19955 rm -f conftest.
$ac_objext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19957 (eval $ac_compile) 2>conftest.er1
19959 grep -v '^ *+' conftest.er1
>conftest.err
19961 cat conftest.err
>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try
='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try
='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_header_compiler
=yes
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.
$ac_ext >&5
19982 ac_header_compiler
=no
19984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19986 echo "${ECHO_T}$ac_header_compiler" >&6
19988 # Is the header present?
19989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19991 cat >conftest.
$ac_ext <<_ACEOF
19994 cat confdefs.h
>>conftest.
$ac_ext
19995 cat >>conftest.
$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19997 #include <$ac_header>
19999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20000 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20002 grep -v '^ *+' conftest.er1
>conftest.err
20004 cat conftest.err
>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } >/dev
/null
; then
20007 if test -s conftest.err
; then
20008 ac_cpp_err
=$ac_c_preproc_warn_flag
20009 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20016 if test -z "$ac_cpp_err"; then
20017 ac_header_preproc
=yes
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.
$ac_ext >&5
20022 ac_header_preproc
=no
20024 rm -f conftest.err conftest.
$ac_ext
20025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6
20028 # So? What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc
=yes
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20052 ## ------------------------------------------ ##
20053 ## Report this to the AC_PACKAGE_NAME lists. ##
20054 ## ------------------------------------------ ##
20057 sed "s/^/$as_me: WARNING: /" >&2
20060 echo "$as_me:$LINENO: checking for $ac_header" >&5
20061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 eval "$as_ac_Header=\$ac_header_preproc"
20067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20072 cat >>confdefs.h
<<_ACEOF
20073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20089 for ac_header
in krb.h
20091 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20093 echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20101 # Is the header compilable?
20102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20104 cat >conftest.
$ac_ext <<_ACEOF
20107 cat confdefs.h
>>conftest.
$ac_ext
20108 cat >>conftest.
$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20110 $ac_includes_default
20111 #include <$ac_header>
20113 rm -f conftest.
$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>conftest.er1
20117 grep -v '^ *+' conftest.er1
>conftest.err
20119 cat conftest.err
>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
20122 { ac_try
='test -z "$ac_c_werror_flag"
20123 || test ! -s conftest.err'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try
='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_header_compiler
=yes
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.
$ac_ext >&5
20140 ac_header_compiler
=no
20142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20144 echo "${ECHO_T}$ac_header_compiler" >&6
20146 # Is the header present?
20147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20149 cat >conftest.
$ac_ext <<_ACEOF
20152 cat confdefs.h
>>conftest.
$ac_ext
20153 cat >>conftest.
$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <$ac_header>
20157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20158 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20160 grep -v '^ *+' conftest.er1
>conftest.err
20162 cat conftest.err
>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } >/dev
/null
; then
20165 if test -s conftest.err
; then
20166 ac_cpp_err
=$ac_c_preproc_warn_flag
20167 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20174 if test -z "$ac_cpp_err"; then
20175 ac_header_preproc
=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.
$ac_ext >&5
20180 ac_header_preproc
=no
20182 rm -f conftest.err conftest.
$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20184 echo "${ECHO_T}$ac_header_preproc" >&6
20186 # So? What about this header?
20187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20193 ac_header_preproc
=yes
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20210 ## ------------------------------------------ ##
20211 ## Report this to the AC_PACKAGE_NAME lists. ##
20212 ## ------------------------------------------ ##
20215 sed "s/^/$as_me: WARNING: /" >&2
20218 echo "$as_me:$LINENO: checking for $ac_header" >&5
20219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 eval "$as_ac_Header=\$ac_header_preproc"
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20230 cat >>confdefs.h
<<_ACEOF
20231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20236 for ac_header
in kerberosIV
/krb.h
20238 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20240 echo "$as_me:$LINENO: checking for $ac_header" >&5
20241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20248 # Is the header compilable?
20249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20251 cat >conftest.
$ac_ext <<_ACEOF
20254 cat confdefs.h
>>conftest.
$ac_ext
20255 cat >>conftest.
$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 $ac_includes_default
20258 #include <$ac_header>
20260 rm -f conftest.
$ac_objext
20261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20262 (eval $ac_compile) 2>conftest.er1
20264 grep -v '^ *+' conftest.er1
>conftest.err
20266 cat conftest.err
>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } &&
20269 { ac_try
='test -z "$ac_c_werror_flag"
20270 || test ! -s conftest.err'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; } &&
20276 { ac_try
='test -s conftest.$ac_objext'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_header_compiler
=yes
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.
$ac_ext >&5
20287 ac_header_compiler
=no
20289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20291 echo "${ECHO_T}$ac_header_compiler" >&6
20293 # Is the header present?
20294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20296 cat >conftest.
$ac_ext <<_ACEOF
20299 cat confdefs.h
>>conftest.
$ac_ext
20300 cat >>conftest.
$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 #include <$ac_header>
20304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20305 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20307 grep -v '^ *+' conftest.er1
>conftest.err
20309 cat conftest.err
>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } >/dev
/null
; then
20312 if test -s conftest.err
; then
20313 ac_cpp_err
=$ac_c_preproc_warn_flag
20314 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20321 if test -z "$ac_cpp_err"; then
20322 ac_header_preproc
=yes
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.
$ac_ext >&5
20327 ac_header_preproc
=no
20329 rm -f conftest.err conftest.
$ac_ext
20330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20331 echo "${ECHO_T}$ac_header_preproc" >&6
20333 # So? What about this header?
20334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20340 ac_header_preproc
=yes
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20357 ## ------------------------------------------ ##
20358 ## Report this to the AC_PACKAGE_NAME lists. ##
20359 ## ------------------------------------------ ##
20362 sed "s/^/$as_me: WARNING: /" >&2
20365 echo "$as_me:$LINENO: checking for $ac_header" >&5
20366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 eval "$as_ac_Header=\$ac_header_preproc"
20372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20377 cat >>confdefs.h
<<_ACEOF
20378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20383 for ac_header
in kerberos
/krb.h
20385 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20387 echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20395 # Is the header compilable?
20396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20398 cat >conftest.
$ac_ext <<_ACEOF
20401 cat confdefs.h
>>conftest.
$ac_ext
20402 cat >>conftest.
$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20405 #include <$ac_header>
20407 rm -f conftest.
$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20411 grep -v '^ *+' conftest.er1
>conftest.err
20413 cat conftest.err
>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try
='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try
='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_header_compiler
=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.
$ac_ext >&5
20434 ac_header_compiler
=no
20436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20438 echo "${ECHO_T}$ac_header_compiler" >&6
20440 # Is the header present?
20441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20443 cat >conftest.
$ac_ext <<_ACEOF
20446 cat confdefs.h
>>conftest.
$ac_ext
20447 cat >>conftest.
$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20449 #include <$ac_header>
20451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20452 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20454 grep -v '^ *+' conftest.er1
>conftest.err
20456 cat conftest.err
>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } >/dev
/null
; then
20459 if test -s conftest.err
; then
20460 ac_cpp_err
=$ac_c_preproc_warn_flag
20461 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20468 if test -z "$ac_cpp_err"; then
20469 ac_header_preproc
=yes
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.
$ac_ext >&5
20474 ac_header_preproc
=no
20476 rm -f conftest.err conftest.
$ac_ext
20477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20478 echo "${ECHO_T}$ac_header_preproc" >&6
20480 # So? What about this header?
20481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20487 ac_header_preproc
=yes
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20504 ## ------------------------------------------ ##
20505 ## Report this to the AC_PACKAGE_NAME lists. ##
20506 ## ------------------------------------------ ##
20509 sed "s/^/$as_me: WARNING: /" >&2
20512 echo "$as_me:$LINENO: checking for $ac_header" >&5
20513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 eval "$as_ac_Header=\$ac_header_preproc"
20519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20524 cat >>confdefs.h
<<_ACEOF
20525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20542 for ac_header
in com_err.h
20544 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20546 echo "$as_me:$LINENO: checking for $ac_header" >&5
20547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20554 # Is the header compilable?
20555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20557 cat >conftest.
$ac_ext <<_ACEOF
20560 cat confdefs.h
>>conftest.
$ac_ext
20561 cat >>conftest.
$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 $ac_includes_default
20564 #include <$ac_header>
20566 rm -f conftest.
$ac_objext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568 (eval $ac_compile) 2>conftest.er1
20570 grep -v '^ *+' conftest.er1
>conftest.err
20572 cat conftest.err
>&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try
='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try
='test -s conftest.$ac_objext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_header_compiler
=yes
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.
$ac_ext >&5
20593 ac_header_compiler
=no
20595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20597 echo "${ECHO_T}$ac_header_compiler" >&6
20599 # Is the header present?
20600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20602 cat >conftest.
$ac_ext <<_ACEOF
20605 cat confdefs.h
>>conftest.
$ac_ext
20606 cat >>conftest.
$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 #include <$ac_header>
20610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20611 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20613 grep -v '^ *+' conftest.er1
>conftest.err
20615 cat conftest.err
>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } >/dev
/null
; then
20618 if test -s conftest.err
; then
20619 ac_cpp_err
=$ac_c_preproc_warn_flag
20620 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20627 if test -z "$ac_cpp_err"; then
20628 ac_header_preproc
=yes
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.
$ac_ext >&5
20633 ac_header_preproc
=no
20635 rm -f conftest.err conftest.
$ac_ext
20636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20637 echo "${ECHO_T}$ac_header_preproc" >&6
20639 # So? What about this header?
20640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20646 ac_header_preproc
=yes
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20663 ## ------------------------------------------ ##
20664 ## Report this to the AC_PACKAGE_NAME lists. ##
20665 ## ------------------------------------------ ##
20668 sed "s/^/$as_me: WARNING: /" >&2
20671 echo "$as_me:$LINENO: checking for $ac_header" >&5
20672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 eval "$as_ac_Header=\$ac_header_preproc"
20678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20683 cat >>confdefs.h
<<_ACEOF
20684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20693 # Solaris requires -lintl if you want strerror (which calls dgettext)
20694 # to return localized messages.
20696 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20697 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20698 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 ac_check_lib_save_LIBS
=$LIBS
20702 LIBS
="-lintl $LIBS"
20703 cat >conftest.
$ac_ext <<_ACEOF
20706 cat confdefs.h
>>conftest.
$ac_ext
20707 cat >>conftest.
$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20710 /* Override any gcc2 internal prototype to avoid an error. */
20714 /* We use char because int might match the return type of a gcc2
20715 builtin and then its argument prototype would still apply. */
20725 rm -f conftest.
$ac_objext conftest
$ac_exeext
20726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20727 (eval $ac_link) 2>conftest.er1
20729 grep -v '^ *+' conftest.er1
>conftest.err
20731 cat conftest.err
>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try
='test -z "$ac_c_werror_flag"
20735 || test ! -s conftest.err'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try
='test -s conftest$ac_exeext'
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20747 ac_cv_lib_intl_dgettext
=yes
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.
$ac_ext >&5
20752 ac_cv_lib_intl_dgettext
=no
20754 rm -f conftest.err conftest.
$ac_objext \
20755 conftest
$ac_exeext conftest.
$ac_ext
20756 LIBS
=$ac_check_lib_save_LIBS
20758 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20759 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20760 if test $ac_cv_lib_intl_dgettext = yes; then
20761 cat >>confdefs.h
<<_ACEOF
20762 #define HAVE_LIBINTL 1
20765 LIBS
="-lintl $LIBS"
20770 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20771 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20772 if test "${emacs_cv_localtime_cache+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 if test x
$ac_cv_func_tzset = xyes
; then
20776 if test "$cross_compiling" = yes; then
20777 # If we have tzset, assume the worst when cross-compiling.
20778 emacs_cv_localtime_cache
=yes
20780 cat >conftest.
$ac_ext <<_ACEOF
20783 cat confdefs.h
>>conftest.
$ac_ext
20784 cat >>conftest.
$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20787 extern char **environ;
20791 for (to = from = environ; (*to = *from); from++)
20792 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20795 char TZ_GMT0[] = "TZ=GMT0";
20796 char TZ_PST8[] = "TZ=PST8";
20799 time_t now = time ((time_t *) 0);
20800 int hour_GMT0, hour_unset;
20801 if (putenv (TZ_GMT0) != 0)
20803 hour_GMT0 = localtime (&now)->tm_hour;
20805 hour_unset = localtime (&now)->tm_hour;
20806 if (putenv (TZ_PST8) != 0)
20808 if (localtime (&now)->tm_hour == hour_GMT0)
20811 if (localtime (&now)->tm_hour != hour_unset)
20816 rm -f conftest
$ac_exeext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20818 (eval $ac_link) 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 emacs_cv_localtime_cache
=no
20829 echo "$as_me: program exited with status $ac_status" >&5
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.
$ac_ext >&5
20833 ( exit $ac_status )
20834 emacs_cv_localtime_cache
=yes
20836 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20839 # If we lack tzset, report that localtime does not cache TZ,
20840 # since we can't invalidate the cache if we don't have tzset.
20841 emacs_cv_localtime_cache
=no
20844 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20845 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20846 if test $emacs_cv_localtime_cache = yes; then
20848 cat >>confdefs.h
<<\_ACEOF
20849 #define LOCALTIME_CACHE 1
20854 if test "x$HAVE_TIMEVAL" = xyes
; then
20856 for ac_func
in gettimeofday
20858 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20859 echo "$as_me:$LINENO: checking for $ac_func" >&5
20860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20861 if eval "test \"\${$as_ac_var+set}\" = set"; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 cat >conftest.
$ac_ext <<_ACEOF
20867 cat confdefs.h
>>conftest.
$ac_ext
20868 cat >>conftest.
$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20872 #define $ac_func innocuous_$ac_func
20874 /* System header to define __stub macros and hopefully few prototypes,
20875 which can conflict with char $ac_func (); below.
20876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20877 <limits.h> exists even on freestanding compilers. */
20880 # include <limits.h>
20882 # include <assert.h>
20887 /* Override any gcc2 internal prototype to avoid an error. */
20892 /* We use char because int might match the return type of a gcc2
20893 builtin and then its argument prototype would still apply. */
20895 /* The GNU C library defines this for functions which it implements
20896 to always fail with ENOSYS. Some functions are actually named
20897 something starting with __ and the normal name is an alias. */
20898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20901 char (*f) () = $ac_func;
20910 return f != $ac_func;
20915 rm -f conftest.
$ac_objext conftest
$ac_exeext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20917 (eval $ac_link) 2>conftest.er1
20919 grep -v '^ *+' conftest.er1
>conftest.err
20921 cat conftest.err
>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } &&
20924 { ac_try
='test -z "$ac_c_werror_flag"
20925 || test ! -s conftest.err'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; } &&
20931 { ac_try
='test -s conftest$ac_exeext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 eval "$as_ac_var=yes"
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.
$ac_ext >&5
20942 eval "$as_ac_var=no"
20944 rm -f conftest.err conftest.
$ac_objext \
20945 conftest
$ac_exeext conftest.
$ac_ext
20947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20949 if test `eval echo '${'$as_ac_var'}'` = yes; then
20950 cat >>confdefs.h
<<_ACEOF
20951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20957 if test $ac_cv_func_gettimeofday = yes; then
20958 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20959 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20960 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 cat >conftest.
$ac_ext <<_ACEOF
20966 cat confdefs.h
>>conftest.
$ac_ext
20967 cat >>conftest.
$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20970 #ifdef TIME_WITH_SYS_TIME
20971 #include <sys/time.h>
20974 #ifdef HAVE_SYS_TIME_H
20975 #include <sys/time.h>
20983 struct timeval time;
20984 gettimeofday (&time, 0);
20989 rm -f conftest.
$ac_objext
20990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20991 (eval $ac_compile) 2>conftest.er1
20993 grep -v '^ *+' conftest.er1
>conftest.err
20995 cat conftest.err
>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try
='test -z "$ac_c_werror_flag"
20999 || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try
='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 emacs_cv_gettimeofday_two_arguments
=yes
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.
$ac_ext >&5
21016 emacs_cv_gettimeofday_two_arguments
=no
21018 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21020 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21021 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21022 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21024 cat >>confdefs.h
<<\_ACEOF
21025 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21032 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21033 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21034 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21035 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 cat >conftest.
$ac_ext <<_ACEOF
21041 cat confdefs.h
>>conftest.
$ac_ext
21042 cat >>conftest.
$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <sys/types.h>
21045 #include <$ac_cv_struct_tm>
21051 static struct tm ac_aggr;
21052 if (ac_aggr.tm_zone)
21058 rm -f conftest.
$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21062 grep -v '^ *+' conftest.er1
>conftest.err
21064 cat conftest.err
>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try
='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try
='test -s conftest.$ac_objext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 ac_cv_member_struct_tm_tm_zone
=yes
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.
$ac_ext >&5
21085 cat >conftest.
$ac_ext <<_ACEOF
21088 cat confdefs.h
>>conftest.
$ac_ext
21089 cat >>conftest.
$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 #include <sys/types.h>
21092 #include <$ac_cv_struct_tm>
21098 static struct tm ac_aggr;
21099 if (sizeof ac_aggr.tm_zone)
21105 rm -f conftest.
$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107 (eval $ac_compile) 2>conftest.er1
21109 grep -v '^ *+' conftest.er1
>conftest.err
21111 cat conftest.err
>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try
='test -z "$ac_c_werror_flag"
21115 || test ! -s conftest.err'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; } &&
21121 { ac_try
='test -s conftest.$ac_objext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ac_cv_member_struct_tm_tm_zone
=yes
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.
$ac_ext >&5
21132 ac_cv_member_struct_tm_tm_zone
=no
21134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21138 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21139 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21140 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21142 cat >>confdefs.h
<<_ACEOF
21143 #define HAVE_STRUCT_TM_TM_ZONE 1
21149 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21151 cat >>confdefs.h
<<\_ACEOF
21152 #define HAVE_TM_ZONE 1
21156 echo "$as_me:$LINENO: checking for tzname" >&5
21157 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21158 if test "${ac_cv_var_tzname+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 cat >conftest.
$ac_ext <<_ACEOF
21164 cat confdefs.h
>>conftest.
$ac_ext
21165 cat >>conftest.
$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21168 #ifndef tzname /* For SGI. */
21169 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21180 rm -f conftest.
$ac_objext conftest
$ac_exeext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21182 (eval $ac_link) 2>conftest.er1
21184 grep -v '^ *+' conftest.er1
>conftest.err
21186 cat conftest.err
>&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
21189 { ac_try
='test -z "$ac_c_werror_flag"
21190 || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try
='test -s conftest$ac_exeext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_cv_var_tzname
=yes
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.
$ac_ext >&5
21207 ac_cv_var_tzname
=no
21209 rm -f conftest.err conftest.
$ac_objext \
21210 conftest
$ac_exeext conftest.
$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21213 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21214 if test $ac_cv_var_tzname = yes; then
21216 cat >>confdefs.h
<<\_ACEOF
21217 #define HAVE_TZNAME 1
21224 if test "$ac_cv_func_gettimeofday" = yes; then
21225 echo "$as_me:$LINENO: checking for struct timezone" >&5
21226 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21227 if test "${emacs_cv_struct_timezone+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 cat >conftest.
$ac_ext <<_ACEOF
21233 cat confdefs.h
>>conftest.
$ac_ext
21234 cat >>conftest.
$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <sys/time.h>
21240 struct timezone tz;
21245 rm -f conftest.
$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21249 grep -v '^ *+' conftest.er1
>conftest.err
21251 cat conftest.err
>&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try
='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try
='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 if test "$cross_compiling" = yes; then
21268 emacs_cv_struct_timezone
=yes
21270 cat >conftest.
$ac_ext <<_ACEOF
21273 cat confdefs.h
>>conftest.
$ac_ext
21274 cat >>conftest.
$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21277 #ifdef TIME_WITH_SYS_TIME
21278 #include <sys/time.h>
21281 #ifdef HAVE_SYS_TIME_H
21282 #include <sys/time.h>
21288 struct timeval time;
21289 struct timezone dummy;
21290 exit (gettimeofday (&time, &dummy));
21293 rm -f conftest
$ac_exeext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295 (eval $ac_link) 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 emacs_cv_struct_timezone
=yes
21306 echo "$as_me: program exited with status $ac_status" >&5
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.
$ac_ext >&5
21310 ( exit $ac_status )
21311 emacs_cv_struct_timezone
=no
21313 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.
$ac_ext >&5
21319 emacs_cv_struct_timezone
=no
21321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21323 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21324 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21328 echo "$as_me:$LINENO: checking for socket" >&5
21329 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21330 if test "${ac_cv_func_socket+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 cat >conftest.
$ac_ext <<_ACEOF
21336 cat confdefs.h
>>conftest.
$ac_ext
21337 cat >>conftest.
$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21341 #define socket innocuous_socket
21343 /* System header to define __stub macros and hopefully few prototypes,
21344 which can conflict with char socket (); below.
21345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21346 <limits.h> exists even on freestanding compilers. */
21349 # include <limits.h>
21351 # include <assert.h>
21356 /* Override any gcc2 internal prototype to avoid an error. */
21361 /* We use char because int might match the return type of a gcc2
21362 builtin and then its argument prototype would still apply. */
21364 /* The GNU C library defines this for functions which it implements
21365 to always fail with ENOSYS. Some functions are actually named
21366 something starting with __ and the normal name is an alias. */
21367 #if defined (__stub_socket) || defined (__stub___socket)
21370 char (*f) () = socket;
21379 return f != socket;
21384 rm -f conftest.
$ac_objext conftest
$ac_exeext
21385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21386 (eval $ac_link) 2>conftest.er1
21388 grep -v '^ *+' conftest.er1
>conftest.err
21390 cat conftest.err
>&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
21393 { ac_try
='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try
='test -s conftest$ac_exeext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_func_socket
=yes
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.
$ac_ext >&5
21411 ac_cv_func_socket
=no
21413 rm -f conftest.err conftest.
$ac_objext \
21414 conftest
$ac_exeext conftest.
$ac_ext
21416 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21417 echo "${ECHO_T}$ac_cv_func_socket" >&6
21418 if test $ac_cv_func_socket = yes; then
21424 if test $ok_so_far = yes; then
21425 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21426 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21427 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21428 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21432 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21434 # Is the header compilable?
21435 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21436 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21437 cat >conftest.
$ac_ext <<_ACEOF
21440 cat confdefs.h
>>conftest.
$ac_ext
21441 cat >>conftest.
$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 $ac_includes_default
21444 #include <netinet/in.h>
21446 rm -f conftest.
$ac_objext
21447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21448 (eval $ac_compile) 2>conftest.er1
21450 grep -v '^ *+' conftest.er1
>conftest.err
21452 cat conftest.err
>&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
21455 { ac_try
='test -z "$ac_c_werror_flag"
21456 || test ! -s conftest.err'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try
='test -s conftest.$ac_objext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 ac_header_compiler
=yes
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.
$ac_ext >&5
21473 ac_header_compiler
=no
21475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21477 echo "${ECHO_T}$ac_header_compiler" >&6
21479 # Is the header present?
21480 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21481 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21482 cat >conftest.
$ac_ext <<_ACEOF
21485 cat confdefs.h
>>conftest.
$ac_ext
21486 cat >>conftest.
$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 #include <netinet/in.h>
21490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21491 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21493 grep -v '^ *+' conftest.er1
>conftest.err
21495 cat conftest.err
>&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } >/dev
/null
; then
21498 if test -s conftest.err
; then
21499 ac_cpp_err
=$ac_c_preproc_warn_flag
21500 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21507 if test -z "$ac_cpp_err"; then
21508 ac_header_preproc
=yes
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.
$ac_ext >&5
21513 ac_header_preproc
=no
21515 rm -f conftest.err conftest.
$ac_ext
21516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21517 echo "${ECHO_T}$ac_header_preproc" >&6
21519 # So? What about this header?
21520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21523 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21525 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21526 ac_header_preproc
=yes
21529 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21530 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21532 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21534 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21536 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21538 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21540 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21543 ## ------------------------------------------ ##
21544 ## Report this to the AC_PACKAGE_NAME lists. ##
21545 ## ------------------------------------------ ##
21548 sed "s/^/$as_me: WARNING: /" >&2
21551 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21552 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21553 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21556 ac_cv_header_netinet_in_h
=$ac_header_preproc
21558 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21559 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21562 if test $ac_cv_header_netinet_in_h = yes; then
21570 if test $ok_so_far = yes; then
21571 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21572 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21573 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21574 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21578 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21580 # Is the header compilable?
21581 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21582 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21583 cat >conftest.
$ac_ext <<_ACEOF
21586 cat confdefs.h
>>conftest.
$ac_ext
21587 cat >>conftest.
$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 #include <arpa/inet.h>
21592 rm -f conftest.
$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594 (eval $ac_compile) 2>conftest.er1
21596 grep -v '^ *+' conftest.er1
>conftest.err
21598 cat conftest.err
>&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
21601 { ac_try
='test -z "$ac_c_werror_flag"
21602 || test ! -s conftest.err'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } &&
21608 { ac_try
='test -s conftest.$ac_objext'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 ac_header_compiler
=yes
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.
$ac_ext >&5
21619 ac_header_compiler
=no
21621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21623 echo "${ECHO_T}$ac_header_compiler" >&6
21625 # Is the header present?
21626 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21627 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21628 cat >conftest.
$ac_ext <<_ACEOF
21631 cat confdefs.h
>>conftest.
$ac_ext
21632 cat >>conftest.
$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <arpa/inet.h>
21636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21637 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21639 grep -v '^ *+' conftest.er1
>conftest.err
21641 cat conftest.err
>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } >/dev
/null
; then
21644 if test -s conftest.err
; then
21645 ac_cpp_err
=$ac_c_preproc_warn_flag
21646 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21653 if test -z "$ac_cpp_err"; then
21654 ac_header_preproc
=yes
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.
$ac_ext >&5
21659 ac_header_preproc
=no
21661 rm -f conftest.err conftest.
$ac_ext
21662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21663 echo "${ECHO_T}$ac_header_preproc" >&6
21665 # So? What about this header?
21666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21669 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21671 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21672 ac_header_preproc
=yes
21675 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21676 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21678 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21680 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21682 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21684 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21686 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21689 ## ------------------------------------------ ##
21690 ## Report this to the AC_PACKAGE_NAME lists. ##
21691 ## ------------------------------------------ ##
21694 sed "s/^/$as_me: WARNING: /" >&2
21697 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21698 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21699 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21704 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21705 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21708 if test $ac_cv_header_arpa_inet_h = yes; then
21716 if test $ok_so_far = yes; then
21718 cat >>confdefs.h
<<\_ACEOF
21719 #define HAVE_INET_SOCKETS 1
21725 for ac_header
in sys
/ioctl.h
21727 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21729 echo "$as_me:$LINENO: checking for $ac_header" >&5
21730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21737 # Is the header compilable?
21738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21740 cat >conftest.
$ac_ext <<_ACEOF
21743 cat confdefs.h
>>conftest.
$ac_ext
21744 cat >>conftest.
$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 $ac_includes_default
21747 #include <$ac_header>
21749 rm -f conftest.
$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21753 grep -v '^ *+' conftest.er1
>conftest.err
21755 cat conftest.err
>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try
='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try
='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_header_compiler
=yes
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.
$ac_ext >&5
21776 ac_header_compiler
=no
21778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21780 echo "${ECHO_T}$ac_header_compiler" >&6
21782 # Is the header present?
21783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21785 cat >conftest.
$ac_ext <<_ACEOF
21788 cat confdefs.h
>>conftest.
$ac_ext
21789 cat >>conftest.
$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <$ac_header>
21793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21794 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21796 grep -v '^ *+' conftest.er1
>conftest.err
21798 cat conftest.err
>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } >/dev
/null
; then
21801 if test -s conftest.err
; then
21802 ac_cpp_err
=$ac_c_preproc_warn_flag
21803 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21810 if test -z "$ac_cpp_err"; then
21811 ac_header_preproc
=yes
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.
$ac_ext >&5
21816 ac_header_preproc
=no
21818 rm -f conftest.err conftest.
$ac_ext
21819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21820 echo "${ECHO_T}$ac_header_preproc" >&6
21822 # So? What about this header?
21823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21829 ac_header_preproc
=yes
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21846 ## ------------------------------------------ ##
21847 ## Report this to the AC_PACKAGE_NAME lists. ##
21848 ## ------------------------------------------ ##
21851 sed "s/^/$as_me: WARNING: /" >&2
21854 echo "$as_me:$LINENO: checking for $ac_header" >&5
21855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 eval "$as_ac_Header=\$ac_header_preproc"
21861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21866 cat >>confdefs.h
<<_ACEOF
21867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21875 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21877 cat >>confdefs.h
<<\_ACEOF
21878 #define HAVE_AIX_SMT_EXP 1
21883 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21884 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21885 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21886 echo "$as_me:$LINENO: result: yes" >&5
21887 echo "${ECHO_T}yes" >&6
21889 cat >>confdefs.h
<<\_ACEOF
21890 #define HAVE_DEV_PTMX 1
21894 echo "$as_me:$LINENO: result: no" >&5
21895 echo "${ECHO_T}no" >&6
21898 echo "$as_me:$LINENO: checking for pid_t" >&5
21899 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21900 if test "${ac_cv_type_pid_t+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 cat >conftest.
$ac_ext <<_ACEOF
21906 cat confdefs.h
>>conftest.
$ac_ext
21907 cat >>conftest.
$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 $ac_includes_default
21915 if (sizeof (pid_t))
21921 rm -f conftest.
$ac_objext
21922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21923 (eval $ac_compile) 2>conftest.er1
21925 grep -v '^ *+' conftest.er1
>conftest.err
21927 cat conftest.err
>&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } &&
21930 { ac_try
='test -z "$ac_c_werror_flag"
21931 || test ! -s conftest.err'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; } &&
21937 { ac_try
='test -s conftest.$ac_objext'
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; }; then
21943 ac_cv_type_pid_t
=yes
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.
$ac_ext >&5
21948 ac_cv_type_pid_t
=no
21950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21952 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21953 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21954 if test $ac_cv_type_pid_t = yes; then
21958 cat >>confdefs.h
<<_ACEOF
21966 for ac_header
in unistd.h vfork.h
21968 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21970 echo "$as_me:$LINENO: checking for $ac_header" >&5
21971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21978 # Is the header compilable?
21979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21981 cat >conftest.
$ac_ext <<_ACEOF
21984 cat confdefs.h
>>conftest.
$ac_ext
21985 cat >>conftest.
$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21987 $ac_includes_default
21988 #include <$ac_header>
21990 rm -f conftest.
$ac_objext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992 (eval $ac_compile) 2>conftest.er1
21994 grep -v '^ *+' conftest.er1
>conftest.err
21996 cat conftest.err
>&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
21999 { ac_try
='test -z "$ac_c_werror_flag"
22000 || test ! -s conftest.err'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; } &&
22006 { ac_try
='test -s conftest.$ac_objext'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_header_compiler
=yes
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.
$ac_ext >&5
22017 ac_header_compiler
=no
22019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6
22023 # Is the header present?
22024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22026 cat >conftest.
$ac_ext <<_ACEOF
22029 cat confdefs.h
>>conftest.
$ac_ext
22030 cat >>conftest.
$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <$ac_header>
22034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22037 grep -v '^ *+' conftest.er1
>conftest.err
22039 cat conftest.err
>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev
/null
; then
22042 if test -s conftest.err
; then
22043 ac_cpp_err
=$ac_c_preproc_warn_flag
22044 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22051 if test -z "$ac_cpp_err"; then
22052 ac_header_preproc
=yes
22054 echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.
$ac_ext >&5
22057 ac_header_preproc
=no
22059 rm -f conftest.err conftest.
$ac_ext
22060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22061 echo "${ECHO_T}$ac_header_preproc" >&6
22063 # So? What about this header?
22064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22070 ac_header_preproc
=yes
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22087 ## ------------------------------------------ ##
22088 ## Report this to the AC_PACKAGE_NAME lists. ##
22089 ## ------------------------------------------ ##
22092 sed "s/^/$as_me: WARNING: /" >&2
22095 echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 eval "$as_ac_Header=\$ac_header_preproc"
22102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22107 cat >>confdefs.h
<<_ACEOF
22108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22117 for ac_func
in fork vfork
22119 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22120 echo "$as_me:$LINENO: checking for $ac_func" >&5
22121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22122 if eval "test \"\${$as_ac_var+set}\" = set"; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22125 cat >conftest.
$ac_ext <<_ACEOF
22128 cat confdefs.h
>>conftest.
$ac_ext
22129 cat >>conftest.
$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22133 #define $ac_func innocuous_$ac_func
22135 /* System header to define __stub macros and hopefully few prototypes,
22136 which can conflict with char $ac_func (); below.
22137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22138 <limits.h> exists even on freestanding compilers. */
22141 # include <limits.h>
22143 # include <assert.h>
22148 /* Override any gcc2 internal prototype to avoid an error. */
22153 /* We use char because int might match the return type of a gcc2
22154 builtin and then its argument prototype would still apply. */
22156 /* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22162 char (*f) () = $ac_func;
22171 return f != $ac_func;
22176 rm -f conftest.
$ac_objext conftest
$ac_exeext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22178 (eval $ac_link) 2>conftest.er1
22180 grep -v '^ *+' conftest.er1
>conftest.err
22182 cat conftest.err
>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
22185 { ac_try
='test -z "$ac_c_werror_flag"
22186 || test ! -s conftest.err'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; } &&
22192 { ac_try
='test -s conftest$ac_exeext'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
22198 eval "$as_ac_var=yes"
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.
$ac_ext >&5
22203 eval "$as_ac_var=no"
22205 rm -f conftest.err conftest.
$ac_objext \
22206 conftest
$ac_exeext conftest.
$ac_ext
22208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22210 if test `eval echo '${'$as_ac_var'}'` = yes; then
22211 cat >>confdefs.h
<<_ACEOF
22212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22218 if test "x$ac_cv_func_fork" = xyes
; then
22219 echo "$as_me:$LINENO: checking for working fork" >&5
22220 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22221 if test "${ac_cv_func_fork_works+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22224 if test "$cross_compiling" = yes; then
22225 ac_cv_func_fork_works
=cross
22227 cat >conftest.
$ac_ext <<_ACEOF
22228 /* By Ruediger Kuhlmann. */
22229 #include <sys/types.h>
22231 # include <unistd.h>
22233 /* Some systems only have a dummy stub for fork() */
22241 rm -f conftest
$ac_exeext
22242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22243 (eval $ac_link) 2>&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 ac_cv_func_fork_works
=yes
22254 echo "$as_me: program exited with status $ac_status" >&5
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.
$ac_ext >&5
22258 ( exit $ac_status )
22259 ac_cv_func_fork_works
=no
22261 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22264 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22265 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22268 ac_cv_func_fork_works
=$ac_cv_func_fork
22270 if test "x$ac_cv_func_fork_works" = xcross
; then
22272 *-*-amigaos* |
*-*-msdosdjgpp*)
22273 # Override, as these systems have only a dummy fork() stub
22274 ac_cv_func_fork_works
=no
22277 ac_cv_func_fork_works
=yes
22280 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22281 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22283 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22284 if test "x$ac_cv_func_vfork" = xyes
; then
22285 echo "$as_me:$LINENO: checking for working vfork" >&5
22286 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22287 if test "${ac_cv_func_vfork_works+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 if test "$cross_compiling" = yes; then
22291 ac_cv_func_vfork_works
=cross
22293 cat >conftest.
$ac_ext <<_ACEOF
22296 cat confdefs.h
>>conftest.
$ac_ext
22297 cat >>conftest.
$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 /* Thanks to Paul Eggert for this test. */
22301 #include <stdlib.h>
22302 #include <sys/types.h>
22303 #include <sys/stat.h>
22304 #include <sys/wait.h>
22306 # include <unistd.h>
22309 # include <vfork.h>
22311 /* On some sparc systems, changes by the child to local and incoming
22312 argument registers are propagated back to the parent. The compiler
22313 is told about this with #include <vfork.h>, but some compilers
22314 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22315 static variable whose address is put into a register that is
22316 clobbered by the vfork. */
22319 sparc_address_test (int arg)
22321 sparc_address_test (arg) int arg;
22324 static pid_t child;
22342 pid_t parent = getpid ();
22345 sparc_address_test (0);
22350 /* Here is another test for sparc vfork register problems. This
22351 test uses lots of local variables, at least as many local
22352 variables as main has allocated so far including compiler
22353 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22354 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22355 reuse the register of parent for one of the local variables,
22356 since it will think that parent can't possibly be used any more
22357 in this routine. Assigning to the local variable will thus
22358 munge parent in the parent process. */
22360 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22361 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22362 /* Convince the compiler that p..p7 are live; otherwise, it might
22363 use the same hardware register for all 8 local variables. */
22364 if (p != p1 || p != p2 || p != p3 || p != p4
22365 || p != p5 || p != p6 || p != p7)
22368 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22369 from child file descriptors. If the child closes a descriptor
22370 before it execs or exits, this munges the parent's descriptor
22371 as well. Test for this by closing stdout in the child. */
22372 _exit(close(fileno(stdout)) != 0);
22377 while (wait(&status) != child)
22380 /* Was there some problem with vforking? */
22383 /* Did the child fail? (This shouldn't happen.) */
22386 /* Did the vfork/compiler bug occur? */
22387 || parent != getpid()
22389 /* Did the file descriptor bug occur? */
22390 || fstat(fileno(stdout), &st) != 0
22395 rm -f conftest
$ac_exeext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22397 (eval $ac_link) 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 ac_cv_func_vfork_works
=yes
22408 echo "$as_me: program exited with status $ac_status" >&5
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.
$ac_ext >&5
22412 ( exit $ac_status )
22413 ac_cv_func_vfork_works
=no
22415 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22418 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22419 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22422 if test "x$ac_cv_func_fork_works" = xcross
; then
22423 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22424 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22425 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22428 if test "x$ac_cv_func_vfork_works" = xyes
; then
22430 cat >>confdefs.h
<<\_ACEOF
22431 #define HAVE_WORKING_VFORK 1
22436 cat >>confdefs.h
<<\_ACEOF
22441 if test "x$ac_cv_func_fork_works" = xyes
; then
22443 cat >>confdefs.h
<<\_ACEOF
22444 #define HAVE_WORKING_FORK 1
22450 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22451 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22452 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22455 cat >conftest.
$ac_ext <<_ACEOF
22458 cat confdefs.h
>>conftest.
$ac_ext
22459 cat >>conftest.
$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 #include <langinfo.h>
22465 char* cs = nl_langinfo(CODESET);
22470 rm -f conftest.
$ac_objext conftest
$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472 (eval $ac_link) 2>conftest.er1
22474 grep -v '^ *+' conftest.er1
>conftest.err
22476 cat conftest.err
>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
22479 { ac_try
='test -z "$ac_c_werror_flag"
22480 || test ! -s conftest.err'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; } &&
22486 { ac_try
='test -s conftest$ac_exeext'
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22492 emacs_cv_langinfo_codeset
=yes
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.
$ac_ext >&5
22497 emacs_cv_langinfo_codeset
=no
22499 rm -f conftest.err conftest.
$ac_objext \
22500 conftest
$ac_exeext conftest.
$ac_ext
22503 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22504 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22505 if test $emacs_cv_langinfo_codeset = yes; then
22507 cat >>confdefs.h
<<\_ACEOF
22508 #define HAVE_LANGINFO_CODESET 1
22513 echo "$as_me:$LINENO: checking for size_t" >&5
22514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22515 if test "${ac_cv_type_size_t+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 cat >conftest.
$ac_ext <<_ACEOF
22521 cat confdefs.h
>>conftest.
$ac_ext
22522 cat >>conftest.
$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 $ac_includes_default
22530 if (sizeof (size_t))
22536 rm -f conftest.
$ac_objext
22537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22538 (eval $ac_compile) 2>conftest.er1
22540 grep -v '^ *+' conftest.er1
>conftest.err
22542 cat conftest.err
>&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } &&
22545 { ac_try
='test -z "$ac_c_werror_flag"
22546 || test ! -s conftest.err'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; } &&
22552 { ac_try
='test -s conftest.$ac_objext'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22558 ac_cv_type_size_t
=yes
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.
$ac_ext >&5
22563 ac_cv_type_size_t
=no
22565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22567 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22568 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22569 if test $ac_cv_type_size_t = yes; then
22571 cat >>confdefs.h
<<_ACEOF
22572 #define HAVE_SIZE_T 1
22579 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22580 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22581 if test "${ac_cv_type_mbstate_t+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 cat >conftest.
$ac_ext <<_ACEOF
22587 cat confdefs.h
>>conftest.
$ac_ext
22588 cat >>conftest.
$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 $ac_includes_default
22591 # include <wchar.h>
22595 mbstate_t x; return sizeof x;
22600 rm -f conftest.
$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602 (eval $ac_compile) 2>conftest.er1
22604 grep -v '^ *+' conftest.er1
>conftest.err
22606 cat conftest.err
>&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } &&
22609 { ac_try
='test -z "$ac_c_werror_flag"
22610 || test ! -s conftest.err'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; } &&
22616 { ac_try
='test -s conftest.$ac_objext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_cv_type_mbstate_t
=yes
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.
$ac_ext >&5
22627 ac_cv_type_mbstate_t
=no
22629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22631 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22632 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22633 if test $ac_cv_type_mbstate_t = yes; then
22635 cat >>confdefs.h
<<\_ACEOF
22636 #define HAVE_MBSTATE_T 1
22641 cat >>confdefs.h
<<\_ACEOF
22642 #define mbstate_t int
22647 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22648 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22649 if test "${emacs_cv_c_restrict+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 cat >conftest.
$ac_ext <<_ACEOF
22655 cat confdefs.h
>>conftest.
$ac_ext
22656 cat >>conftest.
$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 void fred (int *restrict x);
22667 rm -f conftest.
$ac_objext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22669 (eval $ac_compile) 2>conftest.er1
22671 grep -v '^ *+' conftest.er1
>conftest.err
22673 cat conftest.err
>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } &&
22676 { ac_try
='test -z "$ac_c_werror_flag"
22677 || test ! -s conftest.err'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } &&
22683 { ac_try
='test -s conftest.$ac_objext'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; }; then
22689 emacs_cv_c_restrict
=yes
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.
$ac_ext >&5
22694 cat >conftest.
$ac_ext <<_ACEOF
22697 cat confdefs.h
>>conftest.
$ac_ext
22698 cat >>conftest.
$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 void fred (int *__restrict x);
22709 rm -f conftest.
$ac_objext
22710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22711 (eval $ac_compile) 2>conftest.er1
22713 grep -v '^ *+' conftest.er1
>conftest.err
22715 cat conftest.err
>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } &&
22718 { ac_try
='test -z "$ac_c_werror_flag"
22719 || test ! -s conftest.err'
22720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721 (eval $ac_try) 2>&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; } &&
22725 { ac_try
='test -s conftest.$ac_objext'
22726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727 (eval $ac_try) 2>&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; }; then
22731 emacs_cv_c_restrict
=__restrict
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.
$ac_ext >&5
22736 emacs_cv_c_restrict
=no
22738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22742 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22743 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22744 case "$emacs_cv_c_restrict" in
22745 yes) emacs_restrict
=restrict
;;
22746 no
) emacs_restrict
="";;
22747 *) emacs_restrict
="$emacs_cv_c_restrict";;
22749 if test "$emacs_restrict" != __restrict
; then
22751 cat >>confdefs.h
<<_ACEOF
22752 #define __restrict $emacs_restrict
22757 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22758 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22759 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22762 cat >conftest.
$ac_ext <<_ACEOF
22765 cat confdefs.h
>>conftest.
$ac_ext
22766 cat >>conftest.
$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 void fred (int x[__restrict]);
22777 rm -f conftest.
$ac_objext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22779 (eval $ac_compile) 2>conftest.er1
22781 grep -v '^ *+' conftest.er1
>conftest.err
22783 cat conftest.err
>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } &&
22786 { ac_try
='test -z "$ac_c_werror_flag"
22787 || test ! -s conftest.err'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; } &&
22793 { ac_try
='test -s conftest.$ac_objext'
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; }; then
22799 emacs_cv_c_restrict_arr
=yes
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.
$ac_ext >&5
22804 emacs_cv_c_restrict_arr
=no
22806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22808 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22809 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22810 if test "$emacs_cv_c_restrict_arr" = yes; then
22812 cat >>confdefs.h
<<\_ACEOF
22813 #define __restrict_arr __restrict
22820 # Set up the CFLAGS for real compilation, so we can substitute it.
22821 CFLAGS
="$REAL_CFLAGS"
22822 CPPFLAGS
="$REAL_CPPFLAGS"
22824 #### Find out which version of Emacs this is.
22825 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22826 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22827 if test x
"${version}" = x
; then
22828 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22829 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22830 { (exit 1); exit 1; }; }
22833 ### Specify what sort of things we'll be editing into Makefile and config.h.
22834 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22870 cat >>confdefs.h
<<_ACEOF
22871 #define EMACS_CONFIGURATION "${canonical}"
22875 cat >>confdefs.h
<<_ACEOF
22876 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22880 cat >>confdefs.h
<<_ACEOF
22881 #define config_machfile "${machfile}"
22885 cat >>confdefs.h
<<_ACEOF
22886 #define config_opsysfile "${opsysfile}"
22890 cat >>confdefs.h
<<_ACEOF
22891 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22895 cat >>confdefs.h
<<_ACEOF
22896 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22900 cat >>confdefs.h
<<_ACEOF
22901 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22905 cat >>confdefs.h
<<_ACEOF
22906 #define UNEXEC_SRC ${UNEXEC_SRC}
22910 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22912 cat >>confdefs.h
<<\_ACEOF
22913 #define HAVE_X_WINDOWS 1
22917 if test "${USE_X_TOOLKIT}" != "none" ; then
22919 cat >>confdefs.h
<<\_ACEOF
22920 #define USE_X_TOOLKIT 1
22924 if test "${HAVE_X11}" = "yes" ; then
22926 cat >>confdefs.h
<<\_ACEOF
22931 if test "${HAVE_XFREE386}" = "yes" ; then
22933 cat >>confdefs.h
<<\_ACEOF
22934 #define HAVE_XFREE386 1
22938 if test "${HAVE_MENUS}" = "yes" ; then
22940 cat >>confdefs.h
<<\_ACEOF
22941 #define HAVE_MENUS 1
22945 if test "${GNU_MALLOC}" = "yes" ; then
22947 cat >>confdefs.h
<<\_ACEOF
22948 #define GNU_MALLOC 1
22952 if test "${REL_ALLOC}" = "yes" ; then
22954 cat >>confdefs.h
<<\_ACEOF
22955 #define REL_ALLOC 1
22964 #### Report on what we decided to do.
22965 #### Report GTK as a toolkit, even if it doesn't use Xt.
22966 #### It makes printing result more understandable as using GTK sets
22967 #### toolkit_scroll_bars to yes by default.
22968 if test "${HAVE_GTK}" = "yes"; then
22973 Configured for \`${canonical}'.
22975 Where should the build process find the source code? ${srcdir}
22976 What operating system and machine description files should Emacs use?
22977 \`${opsysfile}' and \`${machfile}'
22978 What compiler should emacs be built with? ${CC} ${CFLAGS}
22979 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22980 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22981 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22982 What window system should Emacs use? ${window_system}
22983 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22985 if test -n "${x_includes}"; then
22986 echo " Where do we find X Windows header files? ${x_includes}"
22988 echo " Where do we find X Windows header files? Standard dirs"
22990 if test -n "${x_libraries}"; then
22991 echo " Where do we find X Windows libraries? ${x_libraries}"
22993 echo " Where do we find X Windows libraries? Standard dirs"
22996 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22997 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22998 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22999 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23000 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23001 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23002 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23005 if test $USE_XASSERTS = yes; then
23006 echo " Compiling with asserts turned on."
23007 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23013 # Remove any trailing slashes in these variables.
23014 test "${prefix}" != NONE
&&
23015 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23016 test "${exec_prefix}" != NONE
&&
23017 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23019 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23020 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23021 ## from Makefile.c can correctly provide the arg `-traditional' to the
23024 cat >conftest.
$ac_ext <<_ACEOF
23027 cat confdefs.h
>>conftest.
$ac_ext
23028 cat >>conftest.
$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23033 $EGREP "yes..yes" >/dev
/null
2>&1; then
23034 CPP_NEED_TRADITIONAL
=no
23036 CPP_NEED_TRADITIONAL
=yes
23041 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"
23042 ac_config_commands
="$ac_config_commands default"
23043 cat >confcache
<<\_ACEOF
23044 # This file is a shell script that caches the results of configure
23045 # tests run on this system so they can be shared between configure
23046 # scripts and configure runs, see configure's option --config-cache.
23047 # It is not useful on other systems. If it contains results you don't
23048 # want to keep, you may remove or edit it.
23050 # config.status only pays attention to the cache file if you give it
23051 # the --recheck option to rerun configure.
23053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23055 # following values.
23059 # The following way of writing the cache mishandles newlines in values,
23060 # but we know of no workaround that is simple, portable, and efficient.
23061 # So, don't put newlines in cache variables' values.
23062 # Ultrix sh set writes to stderr and can't be redirected directly,
23063 # and sets the high bit in the cache file unless we assign to the vars.
23066 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23068 # `set' does not quote correctly, so add quotes (double-quote
23069 # substitution turns \\\\ into \\, and sed turns \\ into \).
23072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23075 # `set' quotes correctly as required by POSIX, so do not add quotes.
23077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23086 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23088 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23089 if test -w $cache_file; then
23090 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23091 cat confcache
>$cache_file
23093 echo "not updating unwritable cache $cache_file"
23098 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23099 # Let make expand exec_prefix.
23100 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23102 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23103 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23104 # trailing colons and then remove the whole line if VPATH becomes empty
23105 # (actually we leave an empty line to preserve line numbers).
23106 if test "x$srcdir" = x.
; then
23107 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23108 s/:*\$(srcdir):*/:/;
23109 s/:*\${srcdir}:*/:/;
23111 s/^\([^=]*=[ ]*\):*/\1/;
23117 DEFS
=-DHAVE_CONFIG_H
23121 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23122 # 1. Remove the extension, and $U if already installed.
23123 ac_i
=`echo "$ac_i" |
23124 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23126 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23127 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23129 LIBOBJS
=$ac_libobjs
23131 LTLIBOBJS
=$ac_ltlibobjs
23135 : ${CONFIG_STATUS=./config.status}
23136 ac_clean_files_save
=$ac_clean_files
23137 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23138 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23139 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23140 cat >$CONFIG_STATUS <<_ACEOF
23142 # Generated by $as_me.
23143 # Run this file to recreate the current configuration.
23144 # Compiler output produced by configure, useful for debugging
23145 # configure, is in config.log if it exists.
23148 ac_cs_recheck=false
23150 SHELL=\${CONFIG_SHELL-$SHELL}
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154 ## --------------------- ##
23155 ## M4sh Initialization. ##
23156 ## --------------------- ##
23158 # Be Bourne compatible
23159 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23163 # is contrary to our usage. Disable this feature.
23164 alias -g '${1+"$@"}'='"$@"'
23165 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23168 DUALCASE
=1; export DUALCASE
# for MKS sh
23170 # Support unset when possible.
23171 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23178 # Work around bugs in pre-3.0 UWIN ksh.
23179 $as_unset ENV MAIL MAILPATH
23186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23188 LC_TELEPHONE LC_TIME
23190 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23191 eval $as_var=C
; export $as_var
23197 # Required to use basename.
23198 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23204 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23205 as_basename
=basename
23211 # Name of the executable.
23212 as_me
=`$as_basename "$0" ||
23213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23214 X"$0" : 'X\(//\)$' \| \
23215 X"$0" : 'X\(/\)$' \| \
23216 . : '\(.\)' 2>/dev/null ||
23218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23219 /^X\/\(\/\/\)$/{ s//\1/; q; }
23220 /^X\/\(\/\).*/{ s//\1/; q; }
23224 # PATH needs CR, and LINENO needs CR and PATH.
23225 # Avoid depending upon Character Ranges.
23226 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23227 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23228 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23229 as_cr_digits
='0123456789'
23230 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23232 # The user is always right.
23233 if test "${PATH_SEPARATOR+set}" != set; then
23234 echo "#! /bin/sh" >conf$$.sh
23235 echo "exit 0" >>conf$$.sh
23237 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23246 as_lineno_1
=$LINENO
23247 as_lineno_2
=$LINENO
23248 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23249 test "x$as_lineno_1" != "x$as_lineno_2" &&
23250 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23251 # Find who we are. Look in the path if we contain no path at all
23254 *[\\/]* ) as_myself
=$0 ;;
23255 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23256 for as_dir
in $PATH
23259 test -z "$as_dir" && as_dir
=.
23260 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23265 # We did not find ourselves, most probably we were run as `sh COMMAND'
23266 # in which case we are not to be found in the path.
23267 if test "x$as_myself" = x
; then
23270 if test ! -f "$as_myself"; then
23271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23273 { (exit 1); exit 1; }; }
23275 case $CONFIG_SHELL in
23277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23278 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23281 test -z "$as_dir" && as_dir
=.
23282 for as_base
in sh bash ksh sh5
; do
23285 if ("$as_dir/$as_base" -c '
23286 as_lineno_1=$LINENO
23287 as_lineno_2=$LINENO
23288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23289 test "x$as_lineno_1" != "x$as_lineno_2" &&
23290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23291 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23292 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23293 CONFIG_SHELL
=$as_dir/$as_base
23294 export CONFIG_SHELL
23295 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23304 # uniformly replaced by the line number. The first 'sed' inserts a
23305 # line-number line before each line; the second 'sed' does the real
23306 # work. The second script uses 'N' to pair each line-number line
23307 # with the numbered line, and appends trailing '-' during
23308 # substitution so that $LINENO is not a special case at line end.
23309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23311 sed '=' <$as_myself |
23316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23319 s,^['$as_cr_digits']*\n,,
23320 ' >$as_me.lineno
&&
23321 chmod +x
$as_me.lineno ||
23322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23324 { (exit 1); exit 1; }; }
23326 # Don't try to exec as it changes $[0], causing all sort of problems
23327 # (the dirname of $[0] is not the place where we might find the
23328 # original and so on. Autoconf is especially sensible to this).
23330 # Exit status is that of the last command.
23335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23336 *c
*,-n*) ECHO_N
= ECHO_C
='
23338 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23339 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23342 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23348 rm -f conf$$ conf$$.exe conf$$.
file
23350 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23351 # We could just check for DJGPP; but this test a) works b) is more generic
23352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23353 if test -f conf$$.exe
; then
23354 # Don't use ln at all; we don't have any links
23359 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23364 rm -f conf$$ conf$$.exe conf$$.
file
23366 if mkdir
-p .
2>/dev
/null
; then
23369 test -d .
/-p && rmdir .
/-p
23373 as_executable_p
="test -f"
23375 # Sed expression to map a string onto a valid CPP name.
23376 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23378 # Sed expression to map a string onto a valid variable name.
23379 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23383 # We need space, tab and new line, in precisely that order.
23393 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23394 # report actual input values of CONFIG_FILES etc. instead of their
23395 # values after options handling. Logging --version etc. is OK.
23399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23400 ## Running $as_me. ##
23405 This file was extended by $as_me, which was
23406 generated by GNU Autoconf 2.59. Invocation command line was
23408 CONFIG_FILES = $CONFIG_FILES
23409 CONFIG_HEADERS = $CONFIG_HEADERS
23410 CONFIG_LINKS = $CONFIG_LINKS
23411 CONFIG_COMMANDS = $CONFIG_COMMANDS
23415 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23419 # Files that config.status was made for.
23420 if test -n "$ac_config_files"; then
23421 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23424 if test -n "$ac_config_headers"; then
23425 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23428 if test -n "$ac_config_links"; then
23429 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23432 if test -n "$ac_config_commands"; then
23433 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23439 \`$as_me' instantiates files from templates according to the
23440 current configuration.
23442 Usage: $0 [OPTIONS] [FILE]...
23444 -h, --help print this help, then exit
23445 -V, --version print version number, then exit
23446 -q, --quiet do not print progress messages
23447 -d, --debug don't remove temporary files
23448 --recheck update $as_me by reconfiguring in the same conditions
23449 --file=FILE[:TEMPLATE]
23450 instantiate the configuration file FILE
23451 --header=FILE[:TEMPLATE]
23452 instantiate the configuration header FILE
23454 Configuration files:
23457 Configuration headers:
23460 Configuration commands:
23463 Report bugs to <bug-autoconf@gnu.org>."
23466 cat >>$CONFIG_STATUS <<_ACEOF
23469 configured by $0, generated by GNU Autoconf 2.59,
23470 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23472 Copyright (C) 2003 Free Software Foundation, Inc.
23473 This config.status script is free software; the Free Software Foundation
23474 gives unlimited permission to copy, distribute and modify it."
23479 cat >>$CONFIG_STATUS <<\_ACEOF
23480 # If no file are specified by the user, then we need to provide default
23481 # value. By we need to know if files were specified by the user.
23487 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23488 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23496 *) # This is not an option, so the user has probably given explicit
23499 ac_need_defaults
=false
;;
23503 # Handling of the options.
23505 cat >>$CONFIG_STATUS <<\_ACEOF
23506 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23508 --version |
--vers* |
-V )
23509 echo "$ac_cs_version"; exit 0 ;;
23511 # Conflict between --help and --header
23512 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23513 Try \`$0 --help' for more information." >&5
23514 echo "$as_me: error: ambiguous option: $1
23515 Try \`$0 --help' for more information." >&2;}
23516 { (exit 1); exit 1; }; };;
23517 --help |
--hel |
-h )
23518 echo "$ac_cs_usage"; exit 0 ;;
23519 --debug |
--d* |
-d )
23521 --file |
--fil |
--fi |
--f )
23523 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23524 ac_need_defaults
=false
;;
23525 --header |
--heade |
--head |
--hea )
23527 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23528 ac_need_defaults
=false
;;
23529 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23530 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23533 # This is an error.
23534 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23535 Try \`$0 --help' for more information." >&5
23536 echo "$as_me: error: unrecognized option: $1
23537 Try \`$0 --help' for more information." >&2;}
23538 { (exit 1); exit 1; }; } ;;
23540 *) ac_config_targets
="$ac_config_targets $1" ;;
23546 ac_configure_extra_args
=
23548 if $ac_cs_silent; then
23550 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23554 cat >>$CONFIG_STATUS <<_ACEOF
23555 if \$ac_cs_recheck; then
23556 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23557 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23562 cat >>$CONFIG_STATUS <<_ACEOF
23564 # INIT-COMMANDS section.
23567 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574 for ac_config_target
in $ac_config_targets
23576 case "$ac_config_target" in
23577 # Handling of arguments.
23578 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23579 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23580 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23581 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23582 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23583 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23584 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23585 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23586 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23587 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23588 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23589 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23591 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23592 { (exit 1); exit 1; }; };;
23596 # If the user did not use the arguments to specify the items to instantiate,
23597 # then the envvar interface is used. Set only those that are not.
23598 # We use the long form for the default assignment because of an extremely
23599 # bizarre bug on SunOS 4.1.3.
23600 if $ac_need_defaults; then
23601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23603 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23606 # Have a temporary directory for convenience. Make it in the build tree
23607 # simply because there is no reason to put it here, and in addition,
23608 # creating and moving files from /tmp can sometimes cause problems.
23609 # Create a temporary directory, and hook for its removal unless debugging.
23612 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23613 trap '{ (exit 1); exit 1; }' 1 2 13 15
23616 # Create a (secure) tmp directory for tmp files.
23619 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23620 test -n "$tmp" && test -d "$tmp"
23623 tmp
=.
/confstat$$
-$RANDOM
23624 (umask 077 && mkdir
$tmp)
23627 echo "$me: cannot create a temporary directory in ." >&2
23628 { (exit 1); exit 1; }
23633 cat >>$CONFIG_STATUS <<_ACEOF
23636 # CONFIG_FILES section.
23639 # No need to generate the scripts if there are no CONFIG_FILES.
23640 # This happens for instance when ./config.status config.h
23641 if test -n "\$CONFIG_FILES"; then
23642 # Protect against being on the right side of a sed subst in config.status.
23643 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23644 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23645 s,@SHELL@,$SHELL,;t t
23646 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23652 s,@exec_prefix@,$exec_prefix,;t t
23653 s,@prefix@,$prefix,;t t
23654 s,@program_transform_name@,$program_transform_name,;t t
23655 s,@bindir@,$bindir,;t t
23656 s,@sbindir@,$sbindir,;t t
23657 s,@libexecdir@,$libexecdir,;t t
23658 s,@datadir@,$datadir,;t t
23659 s,@sysconfdir@,$sysconfdir,;t t
23660 s,@sharedstatedir@,$sharedstatedir,;t t
23661 s,@localstatedir@,$localstatedir,;t t
23662 s,@libdir@,$libdir,;t t
23663 s,@includedir@,$includedir,;t t
23664 s,@oldincludedir@,$oldincludedir,;t t
23665 s,@infodir@,$infodir,;t t
23666 s,@mandir@,$mandir,;t t
23667 s,@build_alias@,$build_alias,;t t
23668 s,@host_alias@,$host_alias,;t t
23669 s,@target_alias@,$target_alias,;t t
23670 s,@DEFS@,$DEFS,;t t
23671 s,@ECHO_C@,$ECHO_C,;t t
23672 s,@ECHO_N@,$ECHO_N,;t t
23673 s,@ECHO_T@,$ECHO_T,;t t
23674 s,@LIBS@,$LIBS,;t t
23675 s,@MAINT@,$MAINT,;t t
23676 s,@build@,$build,;t t
23677 s,@build_cpu@,$build_cpu,;t t
23678 s,@build_vendor@,$build_vendor,;t t
23679 s,@build_os@,$build_os,;t t
23680 s,@host@,$host,;t t
23681 s,@host_cpu@,$host_cpu,;t t
23682 s,@host_vendor@,$host_vendor,;t t
23683 s,@host_os@,$host_os,;t t
23685 s,@CFLAGS@,$CFLAGS,;t t
23686 s,@LDFLAGS@,$LDFLAGS,;t t
23687 s,@CPPFLAGS@,$CPPFLAGS,;t t
23688 s,@ac_ct_CC@,$ac_ct_CC,;t t
23689 s,@EXEEXT@,$EXEEXT,;t t
23690 s,@OBJEXT@,$OBJEXT,;t t
23692 s,@EGREP@,$EGREP,;t t
23693 s,@LN_S@,$LN_S,;t t
23694 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23695 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23696 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23697 s,@RANLIB@,$RANLIB,;t t
23698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23699 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23700 s,@GZIP_PROG@,$GZIP_PROG,;t t
23701 s,@LIBSOUND@,$LIBSOUND,;t t
23702 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23703 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23704 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23705 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23706 s,@SET_MAKE@,$SET_MAKE,;t t
23707 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23708 s,@GTK_LIBS@,$GTK_LIBS,;t t
23709 s,@ALLOCA@,$ALLOCA,;t t
23710 s,@liblockfile@,$liblockfile,;t t
23711 s,@LIBOBJS@,$LIBOBJS,;t t
23712 s,@NEED_SETGID@,$NEED_SETGID,;t t
23713 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23714 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23715 s,@GETOPT_H@,$GETOPT_H,;t t
23716 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23717 s,@version@,$version,;t t
23718 s,@configuration@,$configuration,;t t
23719 s,@canonical@,$canonical,;t t
23720 s,@srcdir@,$srcdir,;t t
23721 s,@lispdir@,$lispdir,;t t
23722 s,@locallisppath@,$locallisppath,;t t
23723 s,@lisppath@,$lisppath,;t t
23724 s,@x_default_search_path@,$x_default_search_path,;t t
23725 s,@etcdir@,$etcdir,;t t
23726 s,@archlibdir@,$archlibdir,;t t
23727 s,@docdir@,$docdir,;t t
23728 s,@bitmapdir@,$bitmapdir,;t t
23729 s,@gamedir@,$gamedir,;t t
23730 s,@gameuser@,$gameuser,;t t
23731 s,@c_switch_system@,$c_switch_system,;t t
23732 s,@c_switch_machine@,$c_switch_machine,;t t
23733 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23734 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23735 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23736 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23737 s,@machfile@,$machfile,;t t
23738 s,@opsysfile@,$opsysfile,;t t
23739 s,@carbon_appdir@,$carbon_appdir,;t t
23740 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23745 cat >>$CONFIG_STATUS <<\_ACEOF
23746 # Split the substitutions into bite-sized pieces for seds with
23747 # small command number limits, like on Digital OSF/1 and HP-UX.
23748 ac_max_sed_lines
=48
23749 ac_sed_frag
=1 # Number of current file.
23750 ac_beg
=1 # First line for current file.
23751 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23754 while $ac_more_lines; do
23755 if test $ac_beg -gt 1; then
23756 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23758 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23760 if test ! -s $tmp/subs.frag
; then
23761 ac_more_lines
=false
23763 # The purpose of the label and of the branching condition is to
23764 # speed up the sed processing (if there are no `@' at all, there
23765 # is no need to browse any of the substitutions).
23766 # These are the two extra sed commands mentioned above.
23768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23769 if test -z "$ac_sed_cmds"; then
23770 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23772 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23774 ac_sed_frag
=`expr $ac_sed_frag + 1`
23776 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23779 if test -z "$ac_sed_cmds"; then
23782 fi # test -n "$CONFIG_FILES"
23785 cat >>$CONFIG_STATUS <<\_ACEOF
23786 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23787 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23789 - |
*:- |
*:-:* ) # input from stdin
23791 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23792 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23793 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23794 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23795 * ) ac_file_in
=$ac_file.
in ;;
23798 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23799 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23801 X"$ac_file" : 'X\(//\)[^/]' \| \
23802 X"$ac_file" : 'X\(//\)$' \| \
23803 X"$ac_file" : 'X\(/\)' \| \
23804 . : '\(.\)' 2>/dev/null ||
23806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23808 /^X\(\/\/\)$/{ s//\1/; q; }
23809 /^X\(\/\).*/{ s//\1/; q; }
23811 { if $as_mkdir_p; then
23816 while test ! -d "$as_dir"; do
23817 as_dirs
="$as_dir $as_dirs"
23818 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23820 X"$as_dir" : 'X\(//\)[^/]' \| \
23821 X"$as_dir" : 'X\(//\)$' \| \
23822 X"$as_dir" : 'X\(/\)' \| \
23823 . : '\(.\)' 2>/dev/null ||
23825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23827 /^X\(\/\/\)$/{ s//\1/; q; }
23828 /^X\(\/\).*/{ s//\1/; q; }
23831 test ! -n "$as_dirs" || mkdir
$as_dirs
23832 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23834 { (exit 1); exit 1; }; }; }
23838 if test "$ac_dir" != .
; then
23839 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23840 # A "../" for each directory in $ac_dir_suffix.
23841 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23843 ac_dir_suffix
= ac_top_builddir
=
23847 .
) # No --srcdir option. We are building in place.
23849 if test -z "$ac_top_builddir"; then
23852 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23854 [\\/]* | ?
:[\\/]* ) # Absolute path.
23855 ac_srcdir
=$srcdir$ac_dir_suffix;
23856 ac_top_srcdir
=$srcdir ;;
23857 *) # Relative path.
23858 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23859 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23862 # Do not use `cd foo && pwd` to compute absolute paths, because
23863 # the directories may not exist.
23865 .
) ac_abs_builddir
="$ac_dir";;
23868 .
) ac_abs_builddir
=`pwd`;;
23869 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23870 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23873 case $ac_abs_builddir in
23874 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23876 case ${ac_top_builddir}.
in
23877 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23878 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23879 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23882 case $ac_abs_builddir in
23883 .
) ac_abs_srcdir
=$ac_srcdir;;
23886 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23887 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23888 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23891 case $ac_abs_builddir in
23892 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23894 case $ac_top_srcdir in
23895 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23896 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23897 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23903 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23904 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23907 # Let's still pretend it is `configure' which instantiates (i.e., don't
23908 # use $as_me), people would be surprised to read:
23909 # /* config.h. Generated by config.status. */
23910 if test x
"$ac_file" = x-
; then
23913 configure_input
="$ac_file. "
23915 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23916 sed 's,.*/,,'` by configure."
23918 # First look for the input files in the build tree, otherwise in the
23920 ac_file_inputs
=`IFS=:
23921 for f in $ac_file_in; do
23923 -) echo $tmp/stdin ;;
23925 # Absolute (can't be DOS-style, as IFS=:)
23926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23927 echo "$as_me: error: cannot find input file: $f" >&2;}
23928 { (exit 1); exit 1; }; }
23931 if test -f "$f"; then
23934 elif test -f "$srcdir/$f"; then
23939 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23940 echo "$as_me: error: cannot find input file: $f" >&2;}
23941 { (exit 1); exit 1; }; }
23944 done` ||
{ (exit 1); exit 1; }
23946 if test x
"$ac_file" != x-
; then
23947 { echo "$as_me:$LINENO: creating $ac_file" >&5
23948 echo "$as_me: creating $ac_file" >&6;}
23952 cat >>$CONFIG_STATUS <<_ACEOF
23956 cat >>$CONFIG_STATUS <<\_ACEOF
23958 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23959 s
,@configure_input@
,$configure_input,;t t
23960 s
,@srcdir@
,$ac_srcdir,;t t
23961 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23962 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23963 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23964 s
,@builddir@
,$ac_builddir,;t t
23965 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23966 s
,@top_builddir@
,$ac_top_builddir,;t t
23967 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23968 s
,@INSTALL@
,$ac_INSTALL,;t t
23969 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23971 if test x"$ac_file" != x-; then
23972 mv $tmp/out $ac_file
23980 cat >>$CONFIG_STATUS <<\_ACEOF
23983 # CONFIG_HEADER section.
23986 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23987 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23989 # ac_d sets the value in "#define NAME VALUE" lines.
23990 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23991 ac_dB
='[ ].*$,\1#\2'
23994 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23995 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23996 ac_uB
='$,\1#\2define\3'
24000 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24003 - |
*:- |
*:-:* ) # input from stdin
24005 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24006 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24007 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24008 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24009 * ) ac_file_in
=$ac_file.
in ;;
24012 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24013 echo "$as_me: creating $ac_file" >&6;}
24015 # First look for the input files in the build tree, otherwise in the
24017 ac_file_inputs
=`IFS=:
24018 for f in $ac_file_in; do
24020 -) echo $tmp/stdin ;;
24022 # Absolute (can't be DOS-style, as IFS=:)
24023 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24024 echo "$as_me: error: cannot find input file: $f" >&2;}
24025 { (exit 1); exit 1; }; }
24026 # Do quote $f, to prevent DOS paths from being IFS'd.
24029 if test -f "$f"; then
24032 elif test -f "$srcdir/$f"; then
24037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24038 echo "$as_me: error: cannot find input file: $f" >&2;}
24039 { (exit 1); exit 1; }; }
24042 done` ||
{ (exit 1); exit 1; }
24043 # Remove the trailing spaces.
24044 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24048 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24049 # `conftest.undefs', that substitutes the proper values into
24050 # config.h.in to produce config.h. The first handles `#define'
24051 # templates, and the second `#undef' templates.
24052 # And first: Protect against being on the right side of a sed subst in
24053 # config.status. Protect against being in an unquoted here document
24054 # in config.status.
24055 rm -f conftest.defines conftest.undefs
24056 # Using a here document instead of a string reduces the quoting nightmare.
24057 # Putting comments in sed scripts is not portable.
24059 # `end' is used to avoid that the second main sed command (meant for
24060 # 0-ary CPP macros) applies to n-ary macro definitions.
24061 # See the Autoconf documentation for `clear'.
24062 cat >confdef2sed.
sed <<\_ACEOF
24067 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24069 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24072 # If some macros were called several times there might be several times
24073 # the same #defines, which is useless. Nevertheless, we may not want to
24074 # sort them, since we want the *last* AC-DEFINE to be honored.
24075 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24076 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24077 rm -f confdef2sed.sed
24079 # This sed command replaces #undef with comments. This is necessary, for
24080 # example, in the case of _POSIX_SOURCE, which is predefined and required
24081 # on some systems where configure will not decide to define it.
24082 cat >>conftest.undefs <<\_ACEOF
24083 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24086 # Break up conftest.defines because some shells have a limit on the size
24087 # of here documents, and old seds have small limits too (100 cmds).
24088 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24089 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24090 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24091 echo ' :' >>$CONFIG_STATUS
24092 rm -f conftest.tail
24093 while grep . conftest.defines >/dev/null
24095 # Write a limited-size here document to $tmp/defines.sed.
24096 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24097 # Speed up: don't consider the non `#define' lines.
24098 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24099 # Work around the forget-to-reset-the-flag bug.
24100 echo 't clr' >>$CONFIG_STATUS
24101 echo ': clr' >>$CONFIG_STATUS
24102 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24104 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24106 mv $tmp/out $tmp/in
24108 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24109 rm -f conftest.defines
24110 mv conftest.
tail conftest.defines
24112 rm -f conftest.defines
24113 echo ' fi # grep' >>$CONFIG_STATUS
24114 echo >>$CONFIG_STATUS
24116 # Break up conftest.undefs because some shells have a limit on the size
24117 # of here documents, and old seds have small limits too (100 cmds).
24118 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24119 rm -f conftest.
tail
24120 while grep . conftest.undefs
>/dev
/null
24122 # Write a limited-size here document to $tmp/undefs.sed.
24123 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24124 # Speed up: don't consider the non
`#undef'
24125 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24126 # Work around the forget-to-reset-the-flag bug.
24127 echo 't clr' >>$CONFIG_STATUS
24128 echo ': clr' >>$CONFIG_STATUS
24129 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24131 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24133 mv $tmp/out $tmp/in
24135 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24136 rm -f conftest.undefs
24137 mv conftest.tail conftest.undefs
24139 rm -f conftest.undefs
24141 cat >>$CONFIG_STATUS <<\_ACEOF
24142 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24143 # use $as_me), people would be surprised to read:
24144 # /* config.h. Generated by config.status. */
24145 if test x
"$ac_file" = x-
; then
24146 echo "/* Generated by configure. */" >$tmp/config.h
24148 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24150 cat $tmp/in >>$tmp/config.h
24152 if test x
"$ac_file" != x-
; then
24153 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24155 echo "$as_me: $ac_file is unchanged" >&6;}
24157 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24159 X"$ac_file" : 'X\(//\)[^/]' \| \
24160 X"$ac_file" : 'X\(//\)$' \| \
24161 X"$ac_file" : 'X\(/\)' \| \
24162 . : '\(.\)' 2>/dev/null ||
24164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24166 /^X\(\/\/\)$/{ s//\1/; q; }
24167 /^X\(\/\).*/{ s//\1/; q; }
24169 { if $as_mkdir_p; then
24174 while test ! -d "$as_dir"; do
24175 as_dirs
="$as_dir $as_dirs"
24176 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24178 X"$as_dir" : 'X\(//\)[^/]' \| \
24179 X"$as_dir" : 'X\(//\)$' \| \
24180 X"$as_dir" : 'X\(/\)' \| \
24181 . : '\(.\)' 2>/dev/null ||
24183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24185 /^X\(\/\/\)$/{ s//\1/; q; }
24186 /^X\(\/\).*/{ s//\1/; q; }
24189 test ! -n "$as_dirs" || mkdir
$as_dirs
24190 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24192 { (exit 1); exit 1; }; }; }
24195 mv $tmp/config.h
$ac_file
24199 rm -f $tmp/config.h
24203 cat >>$CONFIG_STATUS <<\_ACEOF
24206 # CONFIG_COMMANDS section.
24208 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24209 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24210 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24211 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24212 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24213 X"$ac_dest" : 'X\(//\)[^/]' \| \
24214 X"$ac_dest" : 'X\(//\)$' \| \
24215 X"$ac_dest" : 'X\(/\)' \| \
24216 . : '\(.\)' 2>/dev/null ||
24218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24220 /^X\(\/\/\)$/{ s//\1/; q; }
24221 /^X\(\/\).*/{ s//\1/; q; }
24223 { if $as_mkdir_p; then
24228 while test ! -d "$as_dir"; do
24229 as_dirs
="$as_dir $as_dirs"
24230 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24232 X"$as_dir" : 'X\(//\)[^/]' \| \
24233 X"$as_dir" : 'X\(//\)$' \| \
24234 X"$as_dir" : 'X\(/\)' \| \
24235 . : '\(.\)' 2>/dev/null ||
24237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24239 /^X\(\/\/\)$/{ s//\1/; q; }
24240 /^X\(\/\).*/{ s//\1/; q; }
24243 test ! -n "$as_dirs" || mkdir
$as_dirs
24244 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24245 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24246 { (exit 1); exit 1; }; }; }
24250 if test "$ac_dir" != .
; then
24251 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24252 # A "../" for each directory in $ac_dir_suffix.
24253 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24255 ac_dir_suffix
= ac_top_builddir
=
24259 .
) # No --srcdir option. We are building in place.
24261 if test -z "$ac_top_builddir"; then
24264 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24266 [\\/]* | ?
:[\\/]* ) # Absolute path.
24267 ac_srcdir
=$srcdir$ac_dir_suffix;
24268 ac_top_srcdir
=$srcdir ;;
24269 *) # Relative path.
24270 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24271 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24274 # Do not use `cd foo && pwd` to compute absolute paths, because
24275 # the directories may not exist.
24277 .
) ac_abs_builddir
="$ac_dir";;
24280 .
) ac_abs_builddir
=`pwd`;;
24281 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24282 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24285 case $ac_abs_builddir in
24286 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24288 case ${ac_top_builddir}.
in
24289 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24290 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24291 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24294 case $ac_abs_builddir in
24295 .
) ac_abs_srcdir
=$ac_srcdir;;
24298 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24299 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24300 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24303 case $ac_abs_builddir in
24304 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24306 case $ac_top_srcdir in
24307 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24308 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24309 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24314 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24315 echo "$as_me: executing $ac_dest commands" >&6;}
24319 ### Make the necessary directories, if they don't exist.
24320 for dir
in etc lisp
; do
24321 test -d ${dir} || mkdir
${dir}
24324 # Build src/Makefile from ${srcdir}/src/Makefile.c
24325 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24326 # This must be done after src/config.h is built, since we rely on that file.
24328 # Now get this: Some word that is part of the ${srcdir} directory name
24329 # or the ${configuration} value might, just might, happen to be an
24330 # identifier like `sun4' or `i386' or something, and be predefined by
24331 # the C preprocessor to some helpful value like 1, or maybe the empty
24332 # string. Needless to say consequent macro substitutions are less
24333 # than conducive to the makefile finding the correct directory.
24334 undefs
="`echo $top_srcdir $configuration $canonical |
24335 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24336 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24339 echo creating src
/epaths.h
24340 ${MAKE-make} epaths-force
24342 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24343 # `..' to `. .' unless invoked with -traditional
24345 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24346 CPPFLAGS
="$CPPFLAGS -traditional"
24349 echo creating lib-src
/Makefile
24351 rm -f junk.c junk1.c junk2.c
24352 sed -e '/start of cpp stuff/q' \
24353 < Makefile.c
> junk1.c
24354 sed -e '1,/start of cpp stuff/d'\
24355 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24356 < Makefile.c
> junk.c
24357 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24358 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24359 cat junk1.c junk2.c
> Makefile.new
24360 rm -f junk.c junk1.c junk2.c
24361 chmod 444 Makefile.new
24362 mv -f Makefile.new Makefile
24365 echo creating src
/Makefile
24367 rm -f junk.c junk1.c junk2.c
24368 sed -e '/start of cpp stuff/q' \
24369 < Makefile.c
> junk1.c
24370 sed -e '1,/start of cpp stuff/d'\
24371 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24372 < Makefile.c
> junk.c
24373 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24374 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24375 cat junk1.c junk2.c
> Makefile.new
24376 rm -f junk.c junk1.c junk2.c
24377 chmod 444 Makefile.new
24378 mv -f Makefile.new Makefile
24381 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24382 echo creating src
/.gdbinit
24383 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24386 # This is how we know whether to re-run configure in certain cases.
24387 touch src
/config.stamp
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24396 { (exit 0); exit 0; }
24398 chmod +x
$CONFIG_STATUS
24399 ac_clean_files
=$ac_clean_files_save
24402 # configure is writing to config.log, and then calls config.status.
24403 # config.status does its own redirection, appending to config.log.
24404 # Unfortunately, on DOS this fails, as config.log is still kept open
24405 # by configure, so config.status won't be able to write to it; its
24406 # output is simply discarded. So we exec the FD to /dev/null,
24407 # effectively closing config.log, so it can be properly (re)opened and
24408 # appended to by config.status. When coming back to configure, we
24409 # need to make the FD available again.
24410 if test "$no_create" != yes; then
24412 ac_config_status_args
=
24413 test "$silent" = yes &&
24414 ac_config_status_args
="$ac_config_status_args --quiet"
24416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24419 # would make configure fail if this is the last instruction.
24420 $ac_cs_success ||
{ (exit 1); exit 1; }