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 SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath
='${locallisppath}:${lispdir}'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 i
[3456]86-*-freebsd*) machine
=intel386
;;
1721 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1728 if test -f /usr
/lib
/crti.o
; then
1730 cat >>confdefs.h
<<\_ACEOF
1736 case "${canonical}" in
1737 alpha
*-*-netbsd*) machine
=alpha
;;
1738 i
[3456]86-*-netbsd*) machine
=intel386
;;
1740 # This is somewhat bogus.
1741 machine
=hp9000s300
;;
1742 powerpc-apple-netbsd
*) machine
=macppc
;;
1743 mips-
*-netbsd*) machine
=pmax
;;
1744 mipsel-
*-netbsd*) machine
=pmax
;;
1745 mipseb-
*-netbsd*) machine
=pmax
;;
1746 ns32k-
*-netbsd*) machine
=ns32000
;;
1747 powerpc-
*-netbsd*) machine
=macppc
;;
1748 sparc
*-*-netbsd*) machine
=sparc
;;
1749 vax-
*-netbsd*) machine
=vax
;;
1750 arm-
*-netbsd*) machine
=arm
;;
1757 case "${canonical}" in
1758 alpha
*-*-openbsd*) machine
=alpha
;;
1759 i386-
*-openbsd*) machine
=intel386
;;
1760 m68k-
*-openbsd*) machine
=hp9000s300
;;
1761 mipsel-
*-openbsd*) machine
=pmax
;;
1762 ns32k-
*-openbsd*) machine
=ns32000
;;
1763 sparc-
*-openbsd*) machine
=sparc
;;
1764 vax-
*-openbsd*) machine
=vax
;;
1771 case "${canonical}" in
1772 i
[3456]86-*-lynxos*) machine
=intel386
;;
1773 powerpc-
*-lynxos*) machine
=powerpc
;;
1778 arm-acorn-riscix1.1
* )
1779 machine
=acorn opsys
=riscix1-1
1781 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine
=acorn opsys
=riscix12
1790 case "${canonical}" in
1791 i
[345]86-*-bsdi*) machine
=intel386
;;
1792 sparc-
*-bsdi*) machine
=sparc
;;
1793 powerpc-
*-bsdi*) machine
=macppc
;;
1795 case "${canonical}" in
1796 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1797 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1798 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1799 *-*-bsdi3* ) opsys
=bsdos3
;;
1800 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1811 machine
=alliant4 opsys
=bsd4-2
1814 machine
=alliant-2800 opsys
=bsd4-3
1817 ## Alpha (DEC) machines.
1819 machine
=alpha opsys
=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP
=/usr
/bin
/cpp
1828 case "${canonical}" in
1829 alpha
*-dec-osf[5-9]*)
1834 alpha
*-*-linux-gnu* )
1835 machine
=alpha opsys
=gnu-linux
1839 machine
=arm opsys
=gnu-linux
1844 machine
=altos opsys
=usg5-2
1849 machine
=amdahl opsys
=usg5-2-2
1852 ## Apollo, Domain/OS
1854 machine
=apollo opsys
=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 machine
=att3b opsys
=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1864 machine
=7300 opsys
=usg5-2-2
1869 machine
=ibmrs6000 opsys
=aix3-2
1874 machine
=dpx2 opsys
=usg5-3
1879 machine
=sps7 opsys
=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd
* )
1889 machine
=celerity opsys
=bsd4-2
1893 ## What operating systems does this chip run that Emacs has been
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1902 mips-compaq-nonstopux
* )
1903 machine
=nonstopux opsys
=nonstopux
1907 *-convex-bsd* |
*-convex-convexos* )
1908 machine
=convex opsys
=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP
="cc -E -P"
1914 i
[3456]86-cubix-sysv* )
1915 machine
=intel386 opsys
=usg5-3
1919 cydra
*-cydrome-sysv* )
1920 machine
=cydra5 opsys
=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1930 machine
=aviion opsys
=dgux4
1932 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine
=aviion opsys
=dgux5-4-3
1937 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1938 machine
=aviion opsys
=dgux5-4r2
1941 machine
=aviion opsys
=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i
[345]86-dg-dguxR4* )
1948 machine
=aviion-intel opsys
=dgux4
1952 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1953 machine
=pmax opsys
=bsd4-2
1955 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1956 machine
=pmax opsys
=bsd4-3
1959 machine
=pmax opsys
=ultrix4-3
1962 machine
=pmax opsys
=osf1
1964 mips-dec-mach_bsd4.3
* )
1965 machine
=pmax opsys
=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1970 machine
=delta opsys
=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1973 if test -s /etc
/167config
1974 then CC
="gnucc -m68040"
1975 else CC
="gnucc -m68881"
1978 if test -z "`type gcc | grep 'not found'`"
1984 m88k-motorola-sysv4
* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine
=delta88k opsys
=usg5-4-2
1991 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1992 machine
=delta88k opsys
=usg5-3
1997 machine
=dual opsys
=usg5-2
1999 m68
*-dual-uniplus* )
2000 machine
=dual opsys
=unipl5-2
2005 machine
=elxsi opsys
=usg5-2
2010 machine
=ns16000 opsys
=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2018 machine
=gould opsys
=bsd4-2
2021 machine
=gould opsys
=bsd4-3
2024 machine
=gould-np1 opsys
=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2033 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2035 NON_GNU_CPP
="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 machine
=nh3000 opsys
=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix
)
2043 machine
=nh6000 opsys
=powerunix
2044 NON_GNU_CPP
="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1
-hitachi-hiuxmpp* )
2048 machine
=sr2k opsys
=hiuxmpp
2050 hppa1.1
-hitachi-hiuxwe2* )
2051 machine
=sr2k opsys
=hiuxwe2
2054 xps
*-honeywell-sysv* )
2055 machine
=xps100 opsys
=usg5-2
2058 ## HP 9000 series 200 or 300
2060 machine
=hp9000s300 opsys
=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2070 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2071 *) machine
=hp9000s300 opsys
=hpux
;;
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 machine
=hp800 opsys
=hpux
2080 machine
=hp800 opsys
=hpux8
2082 hppa
*-hp-hpux9shr* )
2083 machine
=hp800 opsys
=hpux9shr
2086 machine
=hp800 opsys
=hpux9
2088 hppa
*-hp-hpux10.2
* )
2089 machine
=hp800 opsys
=hpux10-20
2092 machine
=hp800 opsys
=hpux10
2094 hppa
*-hp-hpux1[1-9]* )
2095 machine
=hp800 opsys
=hpux11
2098 hppa
*-*-linux-gnu* )
2099 machine
=hp800 opsys
=gnu-linux
2102 ## HP 9000 series 700 and 800, running HP/UX
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2109 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2111 *) machine
=hp800 opsys
=hpux10
;;
2115 machine
=hp800 opsys
=nextstep
2120 machine
=orion opsys
=bsd4-2
2122 clipper-orion-bsd
* )
2123 machine
=orion105 opsys
=bsd4-2
2127 i
[3456]86-ibm-aix1.1
* )
2128 machine
=ibmps2-aix opsys
=usg5-2-2
2130 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2131 machine
=ibmps2-aix opsys
=usg5-3
2134 machine
=ibm370aix opsys
=usg5-3
2137 machine
=ibms390 opsys
=gnu-linux
2139 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2140 machine
=ibmrs6000 opsys
=aix3-1
2142 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2143 machine
=ibmrs6000 opsys
=aix3-2-5
2145 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2146 machine
=ibmrs6000 opsys
=aix4-1
2148 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2149 machine
=ibmrs6000 opsys
=aix4-2
2151 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2152 machine
=ibmrs6000 opsys
=aix4-2
2154 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2155 machine
=ibmrs6000 opsys
=aix4
2157 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2158 machine
=ibmrs6000 opsys
=aix4-1
2160 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2161 machine
=ibmrs6000 opsys
=aix3-2
2164 machine
=ibmrt opsys
=bsd4-3
2167 machine
=ibmrt opsys
=bsd4-2
2170 machine
=ibmrt opsys
=bsd4-3
2173 machine
=ibmrt opsys
=bsd4-2
2176 machine
=ibmrt opsys
=bsd4-3
2179 machine
=ibmrt opsys
=bsd4-3
2182 machine
=ibmrt-aix opsys
=usg5-2-2
2185 ## Integrated Solutions `Optimum V'
2187 machine
=isi-ov opsys
=bsd4-2
2190 machine
=isi-ov opsys
=bsd4-3
2193 ## Intel 386 machines where we do care about the manufacturer
2194 i
[3456]86-intsys-sysv* )
2195 machine
=is386 opsys
=usg5-2-2
2199 i
[3456]86-prime-sysv* )
2200 machine
=i386 opsys
=usg5-3
2203 ## Sequent Symmetry running Dynix
2204 i
[3456]86-sequent-bsd* )
2205 machine
=symmetry opsys
=bsd4-3
2208 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2209 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2210 machine
=sequent-ptx opsys
=ptx4
2211 NON_GNU_CPP
=/lib
/cpp
2214 ## Sequent Symmetry running DYNIX/ptx
2215 ## Use the old cpp rather than the newer ANSI one.
2216 i
[3456]86-sequent-ptx* )
2217 machine
=sequent-ptx opsys
=ptx
2218 NON_GNU_CPP
="/lib/cpp"
2221 ## ncr machine running svr4.3.
2222 i
[3456]86-ncr-sysv4.3
)
2223 machine
=ncr386 opsys
=usg5-4-3
2226 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2227 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2228 i
[3456]86-ncr-sysv* )
2229 machine
=ncr386 opsys
=usg5-4-2
2232 ## Intel Paragon OSF/1
2234 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2239 machine
=i860 opsys
=usg5-4
2240 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2241 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2244 ## Macintosh PowerPC
2245 powerpc
*-*-linux-gnu* )
2246 machine
=macppc opsys
=gnu-linux
2249 ## Masscomp machines
2250 m68
*-masscomp-rtu* )
2251 machine
=masscomp opsys
=rtu
2254 ## Megatest machines
2255 m68
*-megatest-bsd* )
2256 machine
=mega68 opsys
=bsd4-2
2259 ## Workstations sold by MIPS
2260 ## This is not necessarily all workstations using the MIPS processor -
2261 ## Irises are produced by SGI, and DECstations by DEC.
2263 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2264 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2265 ## it gives for choosing between the alternatives seems to be "Use
2266 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2267 ## the BSD world." I'll assume that these are instructions for
2268 ## handling two odd situations, and that every other situation
2269 ## should use mips.h and usg5-2-2, they being listed first.
2272 ## Fall through to the general code at the bottom to decide on the OS.
2274 mips-mips-riscos4
* )
2275 machine
=mips4 opsys
=bsd4-3
2276 NON_GNU_CC
="cc -systype bsd43"
2277 NON_GNU_CPP
="cc -systype bsd43 -E"
2279 mips-mips-riscos5
* )
2280 machine
=mips4 opsys
=riscos5
2281 NON_GNU_CC
="cc -systype bsd43"
2282 NON_GNU_CPP
="cc -systype bsd43 -E"
2285 machine
=mips opsys
=bsd4-3
2288 machine
=mips opsys
=usg5-2-2
2292 m68
*-next-* | m68k-
*-nextstep* )
2293 machine
=m68k opsys
=nextstep
2296 ## The complete machine from National Semiconductor
2298 machine
=ns32000 opsys
=usg5-2
2302 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2303 machine
=tower32 opsys
=usg5-2-2
2305 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2306 machine
=tower32v3 opsys
=usg5-3
2311 machine
=ews4800 opsys
=ux4800
2314 ## Nixdorf Targon 31
2315 m68
*-nixdorf-sysv* )
2316 machine
=targon31 opsys
=usg5-2-2
2321 machine
=nu opsys
=usg5-2
2326 machine
=plexus opsys
=usg5-2
2330 ## I don't really have any idea what sort of processor the Pyramid has,
2331 ## so I'm assuming it is its own architecture.
2332 pyramid-pyramid-bsd
* )
2333 machine
=pyramid opsys
=bsd4-2
2337 ns32k-sequent-bsd4.2
* )
2338 machine
=sequent opsys
=bsd4-2
2340 ns32k-sequent-bsd4.3
* )
2341 machine
=sequent opsys
=bsd4-3
2345 mips-siemens-sysv
* | mips-sni-sysv
*)
2346 machine
=mips-siemens opsys
=usg5-4
2347 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2348 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2351 ## Silicon Graphics machines
2352 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2354 machine
=irist opsys
=iris3-5
2356 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2357 machine
=irist opsys
=iris3-6
2361 machine
=iris4d opsys
=irix3-3
2364 machine
=iris4d opsys
=irix4-0
2367 machine
=iris4d opsys
=irix6-5
2368 # Without defining _LANGUAGE_C, things get masked out in the headers
2369 # so that, for instance, grepping for `free' in stdlib.h fails and
2370 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2371 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2372 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2375 machine
=iris4d opsys
=irix6-0
2376 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2377 # but presumably it does no harm.
2378 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2379 # -32 probably isn't necessary in later v.6s -- anyone know which?
2380 NON_GCC_TEST_OPTIONS
=-32
2382 mips-sgi-irix5.
[01]* )
2383 machine
=iris4d opsys
=irix5-0
2385 mips-sgi-irix5
* | mips-sgi-irix
* )
2386 machine
=iris4d opsys
=irix5-2
2391 machine
=news opsys
=bsd4-2
2394 machine
=news opsys
=bsd4-3
2396 m68
*-sony-newsos3* | m68
*-sony-news3*)
2397 machine
=news opsys
=bsd4-3
2399 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2400 machine
=news-risc opsys
=bsd4-3
2402 mips-sony-newsos6
* )
2403 machine
=news-r6 opsys
=newsos6
2406 machine
=news-risc opsys
=newsos5
2411 machine
=stride opsys
=usg5-2
2415 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2416 machine
=sparc opsys
=gnu-linux
2419 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2420 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2421 | rs6000-
*-solaris2*)
2422 case "${canonical}" in
2423 m68
*-sunos1* ) machine
=sun1
;;
2424 m68
*-sunos2* ) machine
=sun2
;;
2425 m68
* ) machine
=sun3
;;
2426 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2427 i
[3456]86-*-* ) machine
=intel386
;;
2428 powerpcle
* ) machine
=powerpcle
;;
2429 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2430 sparc
* ) machine
=sparc
;;
2433 case "${canonical}" in
2434 ## The Sun386 didn't get past 4.0.
2435 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2436 *-sunos4.0
* ) opsys
=sunos4-0
;;
2437 *-sunos4.1.
[3-9]*noshare
)
2438 ## This name is sunos413 instead of sunos4-1-3
2439 ## to avoid a file name conflict on MSDOS.
2441 NON_GNU_CPP
=/usr
/lib
/cpp
2442 NON_GCC_TEST_OPTIONS
=-Bstatic
2443 GCC_TEST_OPTIONS
=-static
2445 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2447 NON_GNU_CPP
=/usr
/lib
/cpp
2449 *-sunos4* |
*-sunos )
2451 NON_GCC_TEST_OPTIONS
=-Bstatic
2452 GCC_TEST_OPTIONS
=-static
2454 *-sunos5.3
* |
*-solaris2.3
* )
2456 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2458 *-sunos5.4
* |
*-solaris2.4
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2463 *-sunos5.5
* |
*-solaris2.5
* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2468 *-sunos5.6
* |
*-solaris2.6
* )
2470 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2473 *-sunos5* |
*-solaris* )
2475 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2479 ## Watch out for a compiler that we know will not work.
2480 case "${canonical}" in
2481 *-solaris* |
*-sunos5* )
2482 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2483 ## /usr/ucb/cc doesn't work;
2484 ## we should find some other compiler that does work.
2492 machine
=sparc opsys
=nextstep
2496 m68
*-tadpole-sysv* )
2497 machine
=tad68k opsys
=usg5-3
2501 tahoe-tahoe-bsd4.2
* )
2502 machine
=tahoe opsys
=bsd4-2
2504 tahoe-tahoe-bsd4.3
* )
2505 machine
=tahoe opsys
=bsd4-3
2508 ## Tandem Integrity S2
2510 machine
=tandem-s2 opsys
=usg5-3
2514 m88k-tektronix-sysv3
* )
2515 machine
=tekxd88 opsys
=usg5-3
2518 ## Tektronix 16000 box (6130?)
2519 ns16k-tektronix-bsd
* )
2520 machine
=ns16000 opsys
=bsd4-2
2523 ## src/m/tek4300.h hints that this is a m68k machine.
2524 m68
*-tektronix-bsd* )
2525 machine
=tek4300 opsys
=bsd4-3
2529 ## We seem to have lost the machine-description file titan.h!
2531 machine
=titan opsys
=usg5-3
2534 ## Ustation E30 (SS5E)
2535 m68
*-unisys-uniplus* )
2536 machine
=ustation opsystem
=unipl5-2
2542 case "${canonical}" in
2543 *-bsd4.1
* ) opsys
=bsd4-1
;;
2544 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2545 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2546 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2547 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2548 *-vms* ) opsys
=vms
;;
2554 ns16k-whitechapel-
* )
2556 ## We don't know what sort of OS runs on these; we'll let the
2557 ## operating system guessing code below try.
2562 machine
=wicat opsys
=usg5-2
2567 machine
=ia64 opsys
=gnu-linux
2570 ## Intel 386 machines where we don't care about the manufacturer
2573 case "${canonical}" in
2574 *-cygwin ) opsys
=cygwin
;;
2575 *-darwin* ) opsys
=darwin
2576 CPP
="${CC-cc} -E -no-cpp-precomp"
2578 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2579 *-isc2.2
* ) opsys
=isc2-2
;;
2580 *-isc4.0
* ) opsys
=isc4-0
;;
2581 *-isc4.
* ) opsys
=isc4-1
2582 GCC_TEST_OPTIONS
=-posix
2583 NON_GCC_TEST_OPTIONS
=-Xp
2585 *-isc* ) opsys
=isc3-0
;;
2586 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2587 *-esix* ) opsys
=esix
;;
2588 *-xenix* ) opsys
=xenix
;;
2589 *-linux-gnu* ) opsys
=gnu-linux
;;
2590 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2591 *-sco3.2v5
* ) opsys
=sco5
2592 NON_GNU_CPP
=/lib
/cpp
2593 # Prevent -belf from being passed to $CPP.
2594 # /lib/cpp does not accept it.
2595 OVERRIDE_CPPFLAGS
=" "
2597 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2598 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2600 *-386bsd* ) opsys
=386bsd
;;
2601 *-nextstep* ) opsys
=nextstep
;;
2602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2606 ## m68k Linux-based GNU system
2608 machine
=m68k opsys
=gnu-linux
2611 ## Mips Linux-based GNU system
2612 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2613 machine
=mips opsys
=gnu-linux
2617 sparc-fujitsu-sysv4
* )
2618 machine
=sparc opsys
=uxpds
2619 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2624 f301-fujitsu-uxpv4.1
)
2625 machine
=f301 opsys
=uxpv
2628 ## Darwin / Mac OS X
2629 powerpc-apple-darwin
* )
2630 machine
=powermac opsys
=darwin
2631 # Define CPP as follows to make autoconf work correctly.
2632 CPP
="${CC-cc} -E -no-cpp-precomp"
2633 # Use fink packages if available.
2634 if test -d /sw
/include
&& test -d /sw
/lib
; then
2635 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2636 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2637 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-
*-linux-gnu* )
2643 machine
=amdx86-64 opsys
=gnu-linux
2651 ### If the code above didn't choose an operating system, just choose
2652 ### an operating system based on the configuration name. You really
2653 ### only want to use this when you have no idea what the right
2654 ### operating system is; if you know what operating systems a machine
2655 ### runs, it's cleaner to make it explicit in the case statement
2657 if test x
"${opsys}" = x
; then
2658 case "${canonical}" in
2659 *-gnu* ) opsys
=gnu
;;
2660 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2661 *-bsd4.2
) opsys
=bsd4-2
;;
2662 *-bsd4.3
) opsys
=bsd4-3
;;
2663 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2664 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2665 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2666 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2667 *-sysv4.2uw
* ) opsys
=unixware
;;
2668 *-sysv5uw* ) opsys
=unixware
;;
2669 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2670 *-sysv4.1
* |
*-sysvr4.1
* )
2671 NON_GNU_CPP
=/usr
/lib
/cpp
2673 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2674 if [ x
$NON_GNU_CPP = x
]; then
2675 if [ -f /usr
/ccs
/lib
/cpp
]; then
2676 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2678 NON_GNU_CPP
=/lib
/cpp
2682 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2699 machfile
="m/${machine}.h"
2700 opsysfile
="s/${opsys}.h"
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified
=yes
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS
="$CFLAGS"
2710 "yes" ) CC
="gcc" GCC
=yes ;;
2711 "no" ) : ${CC=cc} ;;
2715 ac_cpp
='$CPP $CPPFLAGS'
2716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC
="$CC" # Let the user override the test.
2730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir
=.
2735 for ac_exec_ext
in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test -n "$CC"; then
2748 echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2756 if test -z "$ac_cv_prog_CC"; then
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc
; ac_word
=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir
=.
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC
="gcc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC
="$CC" # Let the user override the test.
2810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir
=.
2815 for ac_exec_ext
in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc
; ac_word
=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir
=.
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC
="cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc
; ac_word
=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC
="$CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected
=yes
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy
$ac_cv_prog_CC
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2918 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2924 if test -n "$CC"; then
2925 echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC
="$CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$CC" && break
2975 if test -z "$CC"; then
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy
$ac_prog; ac_word
=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC
="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 echo "${ECHO_T}$ac_ct_CC" >&6
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$ac_ct_CC" && break
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO:" \
3031 "checking for C compiler version" >&5
3032 ac_compiler
=`set X $ac_compile; echo $2`
3033 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3034 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3039 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3044 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save
=$ac_clean_files
3065 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3071 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3073 (eval $ac_link_default) 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 # Find the output, starting from the most likely. This scheme is
3078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3081 # Be careful to initialize this variable, since it used to be cached.
3082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3084 # b.out is created by i960 compilers.
3085 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3087 test -f "$ac_file" ||
continue
3089 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3092 # This is the source file.
3095 # We found the default executable, but exeext='' is most
3099 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # FIXME: I believe we export ac_cv_exeext for Libtool,
3101 # but it would be cool to find out if it's true. Does anybody
3102 # maintain Libtool? --akim.
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.
$ac_ext >&5
3113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: C compiler cannot create executables
3116 See \`config.log' for more details." >&2;}
3117 { (exit 77); exit 77; }; }
3120 ac_exeext
=$ac_cv_exeext
3121 echo "$as_me:$LINENO: result: $ac_file" >&5
3122 echo "${ECHO_T}$ac_file" >&6
3124 # Check the compiler produces executables we can run. If not, either
3125 # the compiler is broken, or we cross compile.
3126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129 # If not cross compiling, check that we can run a simple program.
3130 if test "$cross_compiling" != yes; then
3131 if { ac_try
='./$ac_file'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 if test "$cross_compiling" = maybe
; then
3142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3155 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3156 ac_clean_files
=$ac_clean_files_save
3157 # Check the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3160 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3161 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3162 echo "${ECHO_T}$cross_compiling" >&6
3164 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3165 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3175 for ac_file
in conftest.exe conftest conftest.
*; do
3176 test -f "$ac_file" ||
continue
3178 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3179 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3193 rm -f conftest
$ac_cv_exeext
3194 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3195 echo "${ECHO_T}$ac_cv_exeext" >&6
3197 rm -f conftest.
$ac_ext
3198 EXEEXT
=$ac_cv_exeext
3200 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3201 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3202 if test "${ac_cv_objext+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.
$ac_ext <<_ACEOF
3208 cat confdefs.h
>>conftest.
$ac_ext
3209 cat >>conftest.
$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3220 rm -f conftest.o conftest.obj
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; then
3226 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3229 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.
$ac_ext >&5
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6
3248 OBJEXT
=$ac_cv_objext
3250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 cat >conftest.
$ac_ext <<_ACEOF
3258 cat confdefs.h
>>conftest.
$ac_ext
3259 cat >>conftest.
$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3273 rm -f conftest.
$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1
>conftest.err
3279 cat conftest.err
>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try
='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try
='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.
$ac_ext >&5
3302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3303 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3306 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3307 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3308 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3309 ac_test_CFLAGS
=${CFLAGS+set}
3310 ac_save_CFLAGS
=$CFLAGS
3312 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3313 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3314 if test "${ac_cv_prog_cc_g+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 cat >conftest.
$ac_ext <<_ACEOF
3320 cat confdefs.h
>>conftest.
$ac_ext
3321 cat >>conftest.
$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3332 rm -f conftest.
$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3336 grep -v '^ *+' conftest.er1
>conftest.err
3338 cat conftest.err
>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try
='test -z "$ac_c_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try
='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3364 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3365 if test "$ac_test_CFLAGS" = set; then
3366 CFLAGS
=$ac_save_CFLAGS
3367 elif test $ac_cv_prog_cc_g = yes; then
3368 if test "$GCC" = yes; then
3374 if test "$GCC" = yes; then
3380 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3381 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3382 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 ac_cv_prog_cc_stdc
=no
3387 cat >conftest.
$ac_ext <<_ACEOF
3390 cat confdefs.h
>>conftest.
$ac_ext
3391 cat >>conftest.
$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3395 #include <sys/types.h>
3396 #include <sys/stat.h>
3397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3398 struct buf { int x; };
3399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3400 static char *e (p, i)
3406 static char *f (char * (*g) (char **, int), char **p, ...)
3411 s = g (p, va_arg (v,int));
3416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3417 function prototypes and stuff, but not '\xHH' hex character constants.
3418 These don't provoke an error unfortunately, instead are silently treated
3419 as 'x'. The following induces an error, until -std1 is added to get
3420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3421 array size at least. It's necessary to write '\x00'==0 to get something
3422 that's true only with -std1. */
3423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 # Don't try gcc -ansi; that turns off useful extensions and
3440 # breaks some systems' header files.
3441 # AIX -qlanglvl=ansi
3442 # Ultrix and OSF/1 -std1
3443 # HP-UX 10.20 and later -Ae
3444 # HP-UX older versions -Aa -D_HPUX_SOURCE
3445 # SVR4 -Xc -D__EXTENSIONS__
3446 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448 CC
="$ac_save_CC $ac_arg"
3449 rm -f conftest.
$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1
>conftest.err
3455 cat conftest.err
>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try
='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try
='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_cv_prog_cc_stdc
=$ac_arg
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.
$ac_ext >&5
3478 rm -f conftest.err conftest.
$ac_objext
3480 rm -f conftest.
$ac_ext conftest.
$ac_objext
3485 case "x$ac_cv_prog_cc_stdc" in
3487 echo "$as_me:$LINENO: result: none needed" >&5
3488 echo "${ECHO_T}none needed" >&6 ;;
3490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3491 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3492 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3495 # Some people use a C++ compiler to compile C. Since we use `exit',
3496 # in C++ we need to declare it. In case someone uses the same compiler
3497 # for both compiling C and C++ we need to have the C++ compiler decide
3498 # the declaration of exit, since it's the most demanding environment.
3499 cat >conftest.
$ac_ext <<_ACEOF
3504 rm -f conftest.
$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3508 grep -v '^ *+' conftest.er1
>conftest.err
3510 cat conftest.err
>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try
='test -z "$ac_c_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try
='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 for ac_declaration
in \
3528 'extern "C" void std::exit (int) throw (); using std::exit;' \
3529 'extern "C" void std::exit (int); using std::exit;' \
3530 'extern "C" void exit (int) throw ();' \
3531 'extern "C" void exit (int);' \
3534 cat >conftest.
$ac_ext <<_ACEOF
3537 cat confdefs.h
>>conftest.
$ac_ext
3538 cat >>conftest.
$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3550 rm -f conftest.
$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1
>conftest.err
3556 cat conftest.err
>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try
='test -z "$ac_c_werror_flag"
3560 || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try
='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.
$ac_ext >&5
3579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3580 cat >conftest.
$ac_ext <<_ACEOF
3583 cat confdefs.h
>>conftest.
$ac_ext
3584 cat >>conftest.
$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3595 rm -f conftest.
$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3599 grep -v '^ *+' conftest.er1
>conftest.err
3601 cat conftest.err
>&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try
='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try
='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.
$ac_ext >&5
3623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3626 if test -n "$ac_declaration"; then
3627 echo '#ifdef __cplusplus' >>confdefs.h
3628 echo $ac_declaration >>confdefs.h
3629 echo '#endif' >>confdefs.h
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.
$ac_ext >&5
3637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3639 ac_cpp
='$CPP $CPPFLAGS'
3640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3645 # On Suns, sometimes $CPP names a directory.
3646 if test -n "$CPP" && test -d "$CPP"; then
3650 #### Some systems specify a CPP to use unless we are using GCC.
3651 #### Now that we know whether we are using GCC, we can decide whether
3652 #### to use that one.
3653 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3658 #### Some systems specify a CC to use unless we are using GCC.
3659 #### Now that we know whether we are using GCC, we can decide whether
3660 #### to use that one.
3661 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3662 test x
$cc_specified != xyes
3667 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3669 CC
="$CC $GCC_TEST_OPTIONS"
3672 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3674 CC
="$CC $NON_GCC_TEST_OPTIONS"
3679 ac_cpp
='$CPP $CPPFLAGS'
3680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3683 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3684 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3685 # On Suns, sometimes $CPP names a directory.
3686 if test -n "$CPP" && test -d "$CPP"; then
3689 if test -z "$CPP"; then
3690 if test "${ac_cv_prog_CPP+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 # Double quotes because CPP needs to be expanded
3694 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3697 for ac_c_preproc_warn_flag
in '' yes
3699 # Use a header file that comes with gcc, so configuring glibc
3700 # with a fresh cross-compiler works.
3701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3702 # <limits.h> exists even on freestanding compilers.
3703 # On the NeXT, cc -E runs the code through the compiler's parser,
3704 # not just through cpp. "Syntax error" is here to catch this case.
3705 cat >conftest.
$ac_ext <<_ACEOF
3708 cat confdefs.h
>>conftest.
$ac_ext
3709 cat >>conftest.
$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3712 # include <limits.h>
3714 # include <assert.h>
3718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3719 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3721 grep -v '^ *+' conftest.er1
>conftest.err
3723 cat conftest.err
>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } >/dev
/null
; then
3726 if test -s conftest.err
; then
3727 ac_cpp_err
=$ac_c_preproc_warn_flag
3728 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3735 if test -z "$ac_cpp_err"; then
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.
$ac_ext >&5
3741 # Broken: fails on valid input.
3744 rm -f conftest.err conftest.
$ac_ext
3746 # OK, works on sane cases. Now check whether non-existent headers
3747 # can be detected and how.
3748 cat >conftest.
$ac_ext <<_ACEOF
3751 cat confdefs.h
>>conftest.
$ac_ext
3752 cat >>conftest.
$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 #include <ac_nonexistent.h>
3756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3757 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3759 grep -v '^ *+' conftest.er1
>conftest.err
3761 cat conftest.err
>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } >/dev
/null
; then
3764 if test -s conftest.err
; then
3765 ac_cpp_err
=$ac_c_preproc_warn_flag
3766 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3773 if test -z "$ac_cpp_err"; then
3774 # Broken: success on invalid input.
3777 echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.
$ac_ext >&5
3780 # Passes both tests.
3784 rm -f conftest.err conftest.
$ac_ext
3787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3788 rm -f conftest.err conftest.
$ac_ext
3789 if $ac_preproc_ok; then
3801 echo "$as_me:$LINENO: result: $CPP" >&5
3802 echo "${ECHO_T}$CPP" >&6
3804 for ac_c_preproc_warn_flag
in '' yes
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3819 # include <limits.h>
3821 # include <assert.h>
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3828 grep -v '^ *+' conftest.er1
>conftest.err
3830 cat conftest.err
>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev
/null
; then
3833 if test -s conftest.err
; then
3834 ac_cpp_err
=$ac_c_preproc_warn_flag
3835 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3842 if test -z "$ac_cpp_err"; then
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.
$ac_ext >&5
3848 # Broken: fails on valid input.
3851 rm -f conftest.err conftest.
$ac_ext
3853 # OK, works on sane cases. Now check whether non-existent headers
3854 # can be detected and how.
3855 cat >conftest.
$ac_ext <<_ACEOF
3858 cat confdefs.h
>>conftest.
$ac_ext
3859 cat >>conftest.
$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3866 grep -v '^ *+' conftest.er1
>conftest.err
3868 cat conftest.err
>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } >/dev
/null
; then
3871 if test -s conftest.err
; then
3872 ac_cpp_err
=$ac_c_preproc_warn_flag
3873 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3880 if test -z "$ac_cpp_err"; then
3881 # Broken: success on invalid input.
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.
$ac_ext >&5
3887 # Passes both tests.
3891 rm -f conftest.err conftest.
$ac_ext
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.err conftest.
$ac_ext
3896 if $ac_preproc_ok; then
3899 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&5
3901 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3902 See \`config.log' for more details." >&2;}
3903 { (exit 1); exit 1; }; }
3907 ac_cpp
='$CPP $CPPFLAGS'
3908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3913 echo "$as_me:$LINENO: checking for egrep" >&5
3914 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3915 if test "${ac_cv_prog_egrep+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3919 then ac_cv_prog_egrep
='grep -E'
3920 else ac_cv_prog_egrep
='egrep'
3923 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3924 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3925 EGREP
=$ac_cv_prog_egrep
3929 echo "$as_me:$LINENO: checking for AIX" >&5
3930 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3931 cat >conftest.
$ac_ext <<_ACEOF
3934 cat confdefs.h
>>conftest.
$ac_ext
3935 cat >>conftest.
$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "yes" >/dev
/null
2>&1; then
3944 echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6
3946 cat >>confdefs.h
<<\_ACEOF
3947 #define _ALL_SOURCE 1
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3958 cat >>confdefs.h
<<\_ACEOF
3959 #define _GNU_SOURCE 1
3964 ### Use -Wno-pointer-sign if the compiler supports it
3965 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3966 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3967 SAVE_CFLAGS
="$CFLAGS"
3968 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3969 cat >conftest.
$ac_ext <<_ACEOF
3972 cat confdefs.h
>>conftest.
$ac_ext
3973 cat >>conftest.
$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3984 rm -f conftest.
$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3988 grep -v '^ *+' conftest.er1
>conftest.err
3990 cat conftest.err
>&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try
='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try
='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.
$ac_ext >&5
4013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4014 if test $has_option = yes; then
4015 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4017 echo "$as_me:$LINENO: result: $has_option" >&5
4018 echo "${ECHO_T}$has_option" >&6
4019 CFLAGS
="$SAVE_CFLAGS"
4023 #### Some other nice autoconf tests.
4025 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4026 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4028 if test "$LN_S" = "ln -s"; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030 echo "${ECHO_T}yes" >&6
4032 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4033 echo "${ECHO_T}no, using $LN_S" >&6
4037 ac_cpp
='$CPP $CPPFLAGS'
4038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4041 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4042 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4043 # On Suns, sometimes $CPP names a directory.
4044 if test -n "$CPP" && test -d "$CPP"; then
4047 if test -z "$CPP"; then
4048 if test "${ac_cv_prog_CPP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 # Double quotes because CPP needs to be expanded
4052 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4055 for ac_c_preproc_warn_flag
in '' yes
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat >conftest.
$ac_ext <<_ACEOF
4066 cat confdefs.h
>>conftest.
$ac_ext
4067 cat >>conftest.
$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4070 # include <limits.h>
4072 # include <assert.h>
4076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4077 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4079 grep -v '^ *+' conftest.er1
>conftest.err
4081 cat conftest.err
>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } >/dev
/null
; then
4084 if test -s conftest.err
; then
4085 ac_cpp_err
=$ac_c_preproc_warn_flag
4086 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4093 if test -z "$ac_cpp_err"; then
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.
$ac_ext >&5
4099 # Broken: fails on valid input.
4102 rm -f conftest.err conftest.
$ac_ext
4104 # OK, works on sane cases. Now check whether non-existent headers
4105 # can be detected and how.
4106 cat >conftest.
$ac_ext <<_ACEOF
4109 cat confdefs.h
>>conftest.
$ac_ext
4110 cat >>conftest.
$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4115 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4117 grep -v '^ *+' conftest.er1
>conftest.err
4119 cat conftest.err
>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } >/dev
/null
; then
4122 if test -s conftest.err
; then
4123 ac_cpp_err
=$ac_c_preproc_warn_flag
4124 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4131 if test -z "$ac_cpp_err"; then
4132 # Broken: success on invalid input.
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.
$ac_ext >&5
4138 # Passes both tests.
4142 rm -f conftest.err conftest.
$ac_ext
4145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146 rm -f conftest.err conftest.
$ac_ext
4147 if $ac_preproc_ok; then
4159 echo "$as_me:$LINENO: result: $CPP" >&5
4160 echo "${ECHO_T}$CPP" >&6
4162 for ac_c_preproc_warn_flag
in '' yes
4164 # Use a header file that comes with gcc, so configuring glibc
4165 # with a fresh cross-compiler works.
4166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167 # <limits.h> exists even on freestanding compilers.
4168 # On the NeXT, cc -E runs the code through the compiler's parser,
4169 # not just through cpp. "Syntax error" is here to catch this case.
4170 cat >conftest.
$ac_ext <<_ACEOF
4173 cat confdefs.h
>>conftest.
$ac_ext
4174 cat >>conftest.
$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4177 # include <limits.h>
4179 # include <assert.h>
4183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4184 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4186 grep -v '^ *+' conftest.er1
>conftest.err
4188 cat conftest.err
>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } >/dev
/null
; then
4191 if test -s conftest.err
; then
4192 ac_cpp_err
=$ac_c_preproc_warn_flag
4193 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4200 if test -z "$ac_cpp_err"; then
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4206 # Broken: fails on valid input.
4209 rm -f conftest.err conftest.
$ac_ext
4211 # OK, works on sane cases. Now check whether non-existent headers
4212 # can be detected and how.
4213 cat >conftest.
$ac_ext <<_ACEOF
4216 cat confdefs.h
>>conftest.
$ac_ext
4217 cat >>conftest.
$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4222 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4224 grep -v '^ *+' conftest.er1
>conftest.err
4226 cat conftest.err
>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev
/null
; then
4229 if test -s conftest.err
; then
4230 ac_cpp_err
=$ac_c_preproc_warn_flag
4231 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4238 if test -z "$ac_cpp_err"; then
4239 # Broken: success on invalid input.
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.
$ac_ext >&5
4245 # Passes both tests.
4249 rm -f conftest.err conftest.
$ac_ext
4252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4253 rm -f conftest.err conftest.
$ac_ext
4254 if $ac_preproc_ok; then
4257 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details." >&5
4259 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4260 See \`config.log' for more details." >&2;}
4261 { (exit 1); exit 1; }; }
4265 ac_cpp
='$CPP $CPPFLAGS'
4266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4270 # Find a good install program. We prefer a C program (faster),
4271 # so one script is as good as another. But avoid the broken or
4272 # incompatible versions:
4273 # SysV /etc/install, /usr/sbin/install
4274 # SunOS /usr/etc/install
4275 # IRIX /sbin/install
4277 # AmigaOS /C/install, which installs bootblocks on floppy discs
4278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4281 # OS/2's system install, which has a completely different semantic
4282 # ./install, which can be erroneously created by make from ./install.sh.
4283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4285 if test -z "$INSTALL"; then
4286 if test "${ac_cv_path_install+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir
=.
4294 # Account for people who put trailing slashes in PATH elements.
4296 .
/ | .
// |
/cC
/* | \
4297 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4298 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4301 # OSF1 and SCO ODT 3.0 have their own names for install.
4302 # Don't use installbsd from OSF since it installs stuff as root
4304 for ac_prog
in ginstall scoinst
install; do
4305 for ac_exec_ext
in '' $ac_executable_extensions; do
4306 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4307 if test $ac_prog = install &&
4308 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4309 # AIX install. It has an incompatible calling convention.
4311 elif test $ac_prog = install &&
4312 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4313 # program-specific install script used by HP pwplus--don't use.
4316 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4328 if test "${ac_cv_path_install+set}" = set; then
4329 INSTALL
=$ac_cv_path_install
4331 # As a last resort, use the slow shell script. We don't cache a
4332 # path for INSTALL within a source directory, because that will
4333 # break other packages using the cache if that directory is
4334 # removed, or if the path is relative.
4335 INSTALL
=$ac_install_sh
4338 echo "$as_me:$LINENO: result: $INSTALL" >&5
4339 echo "${ECHO_T}$INSTALL" >&6
4341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4342 # It thinks the first close brace ends the variable substitution.
4343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4347 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4349 if test "x$RANLIB" = x
; then
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4352 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_RANLIB+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 if test -n "$RANLIB"; then
4359 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir
=.
4366 for ac_exec_ext
in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 RANLIB
=$ac_cv_prog_RANLIB
4378 if test -n "$RANLIB"; then
4379 echo "$as_me:$LINENO: result: $RANLIB" >&5
4380 echo "${ECHO_T}$RANLIB" >&6
4382 echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4387 if test -z "$ac_cv_prog_RANLIB"; then
4388 ac_ct_RANLIB
=$RANLIB
4389 # Extract the first word of "ranlib", so it can be a program name with args.
4390 set dummy ranlib
; ac_word
=$2
4391 echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test -n "$ac_ct_RANLIB"; then
4397 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir
=.
4404 for ac_exec_ext
in '' $ac_executable_extensions; do
4405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4416 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4417 if test -n "$ac_ct_RANLIB"; then
4418 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4421 echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4425 RANLIB
=$ac_ct_RANLIB
4427 RANLIB
="$ac_cv_prog_RANLIB"
4431 # Extract the first word of "install-info", so it can be a program name with args.
4432 set dummy install-info
; ac_word
=$2
4433 echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4435 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 case $INSTALL_INFO in
4440 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir
=.
4448 for ac_exec_ext
in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4462 if test -n "$INSTALL_INFO"; then
4463 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4464 echo "${ECHO_T}$INSTALL_INFO" >&6
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 # Extract the first word of "install-info", so it can be a program name with args.
4471 set dummy install-info
; ac_word
=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 case $INSTALL_INFO in
4479 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4483 for as_dir
in /usr
/sbin
4486 test -z "$as_dir" && as_dir
=.
4487 for ac_exec_ext
in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4501 if test -n "$INSTALL_INFO"; then
4502 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4503 echo "${ECHO_T}$INSTALL_INFO" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "install-info", so it can be a program name with args.
4510 set dummy install-info
; ac_word
=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 case $INSTALL_INFO in
4518 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir
=.
4526 for ac_exec_ext
in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4539 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4541 if test -n "$INSTALL_INFO"; then
4542 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4543 echo "${ECHO_T}$INSTALL_INFO" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 # Extract the first word of "gzip", so it can be a program name with args.
4550 set dummy
gzip; ac_word
=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir
=.
4566 for ac_exec_ext
in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4580 if test -n "$GZIP_PROG"; then
4581 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4582 echo "${ECHO_T}$GZIP_PROG" >&6
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4590 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4592 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4595 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4597 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4601 late_LDFLAGS
=$LDFLAGS
4602 if test "$GCC" = yes; then
4603 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4605 LDFLAGS
="$LDFLAGS -znocombreloc"
4608 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4609 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4610 cat >conftest.
$ac_ext <<_ACEOF
4613 rm -f conftest.
$ac_objext conftest
$ac_exeext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615 (eval $ac_link) 2>conftest.er1
4617 grep -v '^ *+' conftest.er1
>conftest.err
4619 cat conftest.err
>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try
='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try
='test -s conftest$ac_exeext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.
$ac_ext >&5
4641 LDFLAGS
=$late_LDFLAGS
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4645 rm -f conftest.err conftest.
$ac_objext \
4646 conftest
$ac_exeext conftest.
$ac_ext
4648 #### Extract some information from the operating system and machine files.
4650 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4651 - which libraries the lib-src programs will want, and
4652 - whether the GNU malloc routines are usable..." >&5
4653 echo "$as_me: checking the machine- and system-dependent files to find out
4654 - which libraries the lib-src programs will want, and
4655 - whether the GNU malloc routines are usable..." >&6;}
4657 ### First figure out CFLAGS (which we use for running the compiler here)
4658 ### and REAL_CFLAGS (which we use for real compilation).
4659 ### The two are the same except on a few systems, where they are made
4660 ### different to work around various lossages. For example,
4661 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4662 ### as implying static linking.
4664 ### If the CFLAGS env var is specified, we use that value
4665 ### instead of the default.
4667 ### It's not important that this name contain the PID; you can't run
4668 ### two configures in the same directory and have anything work
4670 tempcname
="conftest.c"
4673 #include "'${srcdir}'/src/'${opsysfile}'"
4674 #include "'${srcdir}'/src/'${machfile}'"
4675 #ifndef LIBS_MACHINE
4676 #define LIBS_MACHINE
4681 #ifndef C_SWITCH_SYSTEM
4682 #define C_SWITCH_SYSTEM
4684 #ifndef C_SWITCH_MACHINE
4685 #define C_SWITCH_MACHINE
4687 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4688 configure___ c_switch_system=C_SWITCH_SYSTEM
4689 configure___ c_switch_machine=C_SWITCH_MACHINE
4692 #define LIB_X11_LIB -lX11
4695 #ifndef LIBX11_MACHINE
4696 #define LIBX11_MACHINE
4699 #ifndef LIBX11_SYSTEM
4700 #define LIBX11_SYSTEM
4702 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4705 configure___ unexec=UNEXEC
4707 configure___ unexec=unexec.o
4710 #ifdef SYSTEM_MALLOC
4711 configure___ system_malloc=yes
4713 configure___ system_malloc=no
4716 #ifdef USE_MMAP_FOR_BUFFERS
4717 configure___ use_mmap_for_buffers=yes
4719 configure___ use_mmap_for_buffers=no
4722 #ifndef C_DEBUG_SWITCH
4723 #define C_DEBUG_SWITCH -g
4726 #ifndef C_OPTIMIZE_SWITCH
4728 #define C_OPTIMIZE_SWITCH -O2
4730 #define C_OPTIMIZE_SWITCH -O
4734 #ifndef C_WARNINGS_SWITCH
4735 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4738 #ifndef LD_SWITCH_MACHINE
4739 #define LD_SWITCH_MACHINE
4742 #ifndef LD_SWITCH_SYSTEM
4743 #define LD_SWITCH_SYSTEM
4746 #ifndef LD_SWITCH_X_SITE_AUX
4747 #define LD_SWITCH_X_SITE_AUX
4750 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4751 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4753 #ifdef THIS_IS_CONFIGURE
4755 /* Get the CFLAGS for tests in configure. */
4757 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4759 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4762 #else /* not THIS_IS_CONFIGURE */
4764 /* Get the CFLAGS for real compilation. */
4766 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4768 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4771 #endif /* not THIS_IS_CONFIGURE */
4774 # The value of CPP is a quoted variable reference, so we need to do this
4775 # to get its actual value...
4776 CPP
=`eval "echo $CPP"`
4777 eval `${CPP} -Isrc ${tempcname} \
4778 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4779 if test "x$SPECIFIED_CFLAGS" = x
; then
4780 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4781 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4783 REAL_CFLAGS
="$CFLAGS"
4787 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4789 ### Make sure subsequent tests use flags consistent with the build flags.
4791 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4792 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4794 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4799 # Check whether --enable-largefile or --disable-largefile was given.
4800 if test "${enable_largefile+set}" = set; then
4801 enableval
="$enable_largefile"
4804 if test "$enable_largefile" != no
; then
4806 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4807 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4808 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 ac_cv_sys_largefile_CC
=no
4812 if test "$GCC" != yes; then
4815 # IRIX 6.2 and later do not support large files by default,
4816 # so use the C compiler's -n32 option if that helps.
4817 cat >conftest.
$ac_ext <<_ACEOF
4820 cat confdefs.h
>>conftest.
$ac_ext
4821 cat >>conftest.
$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <sys/types.h>
4824 /* Check that off_t can represent 2**63 - 1 correctly.
4825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4826 since some C++ compilers masquerading as C compilers
4827 incorrectly reject 9223372036854775807. */
4828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4830 && LARGE_OFF_T % 2147483647 == 1)
4840 rm -f conftest.
$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>conftest.er1
4844 grep -v '^ *+' conftest.er1
>conftest.err
4846 cat conftest.err
>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try
='test -z "$ac_c_werror_flag"
4850 || test ! -s conftest.err'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; } &&
4856 { ac_try
='test -s conftest.$ac_objext'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.
$ac_ext >&5
4868 rm -f conftest.err conftest.
$ac_objext
4870 rm -f conftest.
$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>conftest.er1
4874 grep -v '^ *+' conftest.er1
>conftest.err
4876 cat conftest.err
>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try
='test -z "$ac_c_werror_flag"
4880 || test ! -s conftest.err'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; } &&
4886 { ac_try
='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_sys_largefile_CC
=' -n32'; break
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.
$ac_ext >&5
4898 rm -f conftest.err conftest.
$ac_objext
4902 rm -f conftest.
$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4906 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4907 if test "$ac_cv_sys_largefile_CC" != no
; then
4908 CC
=$CC$ac_cv_sys_largefile_CC
4911 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4912 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4913 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 ac_cv_sys_file_offset_bits
=no
4918 cat >conftest.
$ac_ext <<_ACEOF
4921 cat confdefs.h
>>conftest.
$ac_ext
4922 cat >>conftest.
$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 #include <sys/types.h>
4925 /* Check that off_t can represent 2**63 - 1 correctly.
4926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4927 since some C++ compilers masquerading as C compilers
4928 incorrectly reject 9223372036854775807. */
4929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4931 && LARGE_OFF_T % 2147483647 == 1)
4941 rm -f conftest.
$ac_objext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>conftest.er1
4945 grep -v '^ *+' conftest.er1
>conftest.err
4947 cat conftest.err
>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try
='test -z "$ac_c_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try
='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.
$ac_ext >&5
4969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4970 cat >conftest.
$ac_ext <<_ACEOF
4973 cat confdefs.h
>>conftest.
$ac_ext
4974 cat >>conftest.
$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #define _FILE_OFFSET_BITS 64
4977 #include <sys/types.h>
4978 /* Check that off_t can represent 2**63 - 1 correctly.
4979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4980 since some C++ compilers masquerading as C compilers
4981 incorrectly reject 9223372036854775807. */
4982 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4984 && LARGE_OFF_T % 2147483647 == 1)
4994 rm -f conftest.
$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4998 grep -v '^ *+' conftest.er1
>conftest.err
5000 cat conftest.err
>&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try
='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try
='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_sys_file_offset_bits
=64; break
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.
$ac_ext >&5
5022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5026 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5027 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5028 if test "$ac_cv_sys_file_offset_bits" != no
; then
5030 cat >>confdefs.h
<<_ACEOF
5031 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5036 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5037 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5038 if test "${ac_cv_sys_large_files+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 ac_cv_sys_large_files
=no
5043 cat >conftest.
$ac_ext <<_ACEOF
5046 cat confdefs.h
>>conftest.
$ac_ext
5047 cat >>conftest.
$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #include <sys/types.h>
5050 /* Check that off_t can represent 2**63 - 1 correctly.
5051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5052 since some C++ compilers masquerading as C compilers
5053 incorrectly reject 9223372036854775807. */
5054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5056 && LARGE_OFF_T % 2147483647 == 1)
5066 rm -f conftest.
$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1
>conftest.err
5072 cat conftest.err
>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try
='test -z "$ac_c_werror_flag"
5076 || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try
='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.
$ac_ext >&5
5094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5095 cat >conftest.
$ac_ext <<_ACEOF
5098 cat confdefs.h
>>conftest.
$ac_ext
5099 cat >>conftest.
$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #define _LARGE_FILES 1
5102 #include <sys/types.h>
5103 /* Check that off_t can represent 2**63 - 1 correctly.
5104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5105 since some C++ compilers masquerading as C compilers
5106 incorrectly reject 9223372036854775807. */
5107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5109 && LARGE_OFF_T % 2147483647 == 1)
5119 rm -f conftest.
$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1
>conftest.err
5125 cat conftest.err
>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try
='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try
='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_sys_large_files
=1; break
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.
$ac_ext >&5
5147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5152 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5153 if test "$ac_cv_sys_large_files" != no
; then
5155 cat >>confdefs.h
<<_ACEOF
5156 #define _LARGE_FILES $ac_cv_sys_large_files
5164 if test "${with_sound}" != "no"; then
5165 # Sound support for GNU/Linux and the free BSDs.
5166 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5168 if test "${ac_cv_header_stdc+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 cat >conftest.
$ac_ext <<_ACEOF
5174 cat confdefs.h
>>conftest.
$ac_ext
5175 cat >>conftest.
$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5190 rm -f conftest.
$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>conftest.er1
5194 grep -v '^ *+' conftest.er1
>conftest.err
5196 cat conftest.err
>&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try
='test -z "$ac_c_werror_flag"
5200 || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try
='test -s conftest.$ac_objext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_cv_header_stdc
=yes
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.
$ac_ext >&5
5217 ac_cv_header_stdc
=no
5219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5221 if test $ac_cv_header_stdc = yes; then
5222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5223 cat >conftest.
$ac_ext <<_ACEOF
5226 cat confdefs.h
>>conftest.
$ac_ext
5227 cat >>conftest.
$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233 $EGREP "memchr" >/dev
/null
2>&1; then
5236 ac_cv_header_stdc
=no
5242 if test $ac_cv_header_stdc = yes; then
5243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244 cat >conftest.
$ac_ext <<_ACEOF
5247 cat confdefs.h
>>conftest.
$ac_ext
5248 cat >>conftest.
$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "free" >/dev
/null
2>&1; then
5257 ac_cv_header_stdc
=no
5263 if test $ac_cv_header_stdc = yes; then
5264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265 if test "$cross_compiling" = yes; then
5268 cat >conftest.
$ac_ext <<_ACEOF
5271 cat confdefs.h
>>conftest.
$ac_ext
5272 cat >>conftest.
$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5275 #if ((' ' & 0x0FF) == 0x020)
5276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5279 # define ISLOWER(c) \
5280 (('a' <= (c) && (c) <= 'i') \
5281 || ('j' <= (c) && (c) <= 'r') \
5282 || ('s' <= (c) && (c) <= 'z'))
5283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5291 for (i = 0; i < 256; i++)
5292 if (XOR (islower (i), ISLOWER (i))
5293 || toupper (i) != TOUPPER (i))
5298 rm -f conftest
$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5311 echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.
$ac_ext >&5
5316 ac_cv_header_stdc
=no
5318 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5324 if test $ac_cv_header_stdc = yes; then
5326 cat >>confdefs.h
<<\_ACEOF
5327 #define STDC_HEADERS 1
5332 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5343 inttypes.h stdint.h unistd.h
5345 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 cat >conftest.
$ac_ext <<_ACEOF
5354 cat confdefs.h
>>conftest.
$ac_ext
5355 cat >>conftest.
$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5359 #include <$ac_header>
5361 rm -f conftest.
$ac_objext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363 (eval $ac_compile) 2>conftest.er1
5365 grep -v '^ *+' conftest.er1
>conftest.err
5367 cat conftest.err
>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try
='test -z "$ac_c_werror_flag"
5371 || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try
='test -s conftest.$ac_objext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_Header=yes"
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.
$ac_ext >&5
5388 eval "$as_ac_Header=no"
5390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395 cat >>confdefs.h
<<_ACEOF
5396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5409 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5411 echo "$as_me:$LINENO: checking for $ac_header" >&5
5412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5419 # Is the header compilable?
5420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5422 cat >conftest.
$ac_ext <<_ACEOF
5425 cat confdefs.h
>>conftest.
$ac_ext
5426 cat >>conftest.
$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 $ac_includes_default
5429 #include <$ac_header>
5431 rm -f conftest.
$ac_objext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433 (eval $ac_compile) 2>conftest.er1
5435 grep -v '^ *+' conftest.er1
>conftest.err
5437 cat conftest.err
>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try
='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try
='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_header_compiler
=yes
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.
$ac_ext >&5
5458 ac_header_compiler
=no
5460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5462 echo "${ECHO_T}$ac_header_compiler" >&6
5464 # Is the header present?
5465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5467 cat >conftest.
$ac_ext <<_ACEOF
5470 cat confdefs.h
>>conftest.
$ac_ext
5471 cat >>conftest.
$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #include <$ac_header>
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1
>conftest.err
5480 cat conftest.err
>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } >/dev
/null
; then
5483 if test -s conftest.err
; then
5484 ac_cpp_err
=$ac_c_preproc_warn_flag
5485 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5492 if test -z "$ac_cpp_err"; then
5493 ac_header_preproc
=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.
$ac_ext >&5
5498 ac_header_preproc
=no
5500 rm -f conftest.err conftest.
$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502 echo "${ECHO_T}$ac_header_preproc" >&6
5504 # So? What about this header?
5505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5511 ac_header_preproc
=yes
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5528 ## ------------------------------------------ ##
5529 ## Report this to the AC_PACKAGE_NAME lists. ##
5530 ## ------------------------------------------ ##
5533 sed "s/^/$as_me: WARNING: /" >&2
5536 echo "$as_me:$LINENO: checking for $ac_header" >&5
5537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 eval "$as_ac_Header=\$ac_header_preproc"
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h
<<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5556 # Emulation library used on NetBSD.
5557 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5558 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5559 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 ac_check_lib_save_LIBS
=$LIBS
5563 LIBS
="-lossaudio $LIBS"
5564 cat >conftest.
$ac_ext <<_ACEOF
5567 cat confdefs.h
>>conftest.
$ac_ext
5568 cat >>conftest.
$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5571 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5586 rm -f conftest.
$ac_objext conftest
$ac_exeext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>conftest.er1
5590 grep -v '^ *+' conftest.er1
>conftest.err
5592 cat conftest.err
>&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try
='test -z "$ac_c_werror_flag"
5596 || test ! -s conftest.err'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; } &&
5602 { ac_try
='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_lib_ossaudio__oss_ioctl
=yes
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.
$ac_ext >&5
5613 ac_cv_lib_ossaudio__oss_ioctl
=no
5615 rm -f conftest.err conftest.
$ac_objext \
5616 conftest
$ac_exeext conftest.
$ac_ext
5617 LIBS
=$ac_check_lib_save_LIBS
5619 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5620 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5621 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5655 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5656 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5657 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5658 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5661 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663 echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671 # Is the header compilable?
5672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5674 cat >conftest.
$ac_ext <<_ACEOF
5677 cat confdefs.h
>>conftest.
$ac_ext
5678 cat >>conftest.
$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 #include <$ac_header>
5683 rm -f conftest.
$ac_objext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>conftest.er1
5687 grep -v '^ *+' conftest.er1
>conftest.err
5689 cat conftest.err
>&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try
='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try
='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_header_compiler
=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.
$ac_ext >&5
5710 ac_header_compiler
=no
5712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5714 echo "${ECHO_T}$ac_header_compiler" >&6
5716 # Is the header present?
5717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5719 cat >conftest.
$ac_ext <<_ACEOF
5722 cat confdefs.h
>>conftest.
$ac_ext
5723 cat >>conftest.
$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #include <$ac_header>
5727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5730 grep -v '^ *+' conftest.er1
>conftest.err
5732 cat conftest.err
>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev
/null
; then
5735 if test -s conftest.err
; then
5736 ac_cpp_err
=$ac_c_preproc_warn_flag
5737 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5744 if test -z "$ac_cpp_err"; then
5745 ac_header_preproc
=yes
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.
$ac_ext >&5
5750 ac_header_preproc
=no
5752 rm -f conftest.err conftest.
$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5754 echo "${ECHO_T}$ac_header_preproc" >&6
5756 # So? What about this header?
5757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5763 ac_header_preproc
=yes
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5780 ## ------------------------------------------ ##
5781 ## Report this to the AC_PACKAGE_NAME lists. ##
5782 ## ------------------------------------------ ##
5785 sed "s/^/$as_me: WARNING: /" >&2
5788 echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 eval "$as_ac_Header=\$ac_header_preproc"
5795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5800 cat >>confdefs.h
<<_ACEOF
5801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5810 echo $ECHO_N "checking if personality LINUX32 can be set... $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 #include <sys/personality.h>
5821 personality (PER_LINUX32)
5826 rm -f conftest.
$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1
>conftest.err
5832 cat conftest.err
>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try
='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try
='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 emacs_cv_personality_linux32
=yes
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.
$ac_ext >&5
5853 emacs_cv_personality_linux32
=no
5855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5856 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5857 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5859 if test $emacs_cv_personality_linux32 = yes; then
5861 cat >>confdefs.h
<<\_ACEOF
5862 #define HAVE_PERSONALITY_LINUX32 1
5868 for ac_header
in term.h
5870 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5871 echo "$as_me:$LINENO: checking for $ac_header" >&5
5872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.
$ac_ext <<_ACEOF
5879 cat confdefs.h
>>conftest.
$ac_ext
5880 cat >>conftest.
$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <$ac_header>
5884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5885 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5887 grep -v '^ *+' conftest.er1
>conftest.err
5889 cat conftest.err
>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev
/null
; then
5892 if test -s conftest.err
; then
5893 ac_cpp_err
=$ac_c_preproc_warn_flag
5894 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5901 if test -z "$ac_cpp_err"; then
5902 eval "$as_ac_Header=yes"
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.
$ac_ext >&5
5907 eval "$as_ac_Header=no"
5909 rm -f conftest.err conftest.
$ac_ext
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5914 cat >>confdefs.h
<<_ACEOF
5915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5924 if test "${ac_cv_header_stdc+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 cat >conftest.
$ac_ext <<_ACEOF
5930 cat confdefs.h
>>conftest.
$ac_ext
5931 cat >>conftest.
$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5946 rm -f conftest.
$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_header_stdc
=yes
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5973 ac_cv_header_stdc
=no
5975 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 if test $ac_cv_header_stdc = yes; then
5978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5979 cat >conftest.
$ac_ext <<_ACEOF
5982 cat confdefs.h
>>conftest.
$ac_ext
5983 cat >>conftest.
$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5989 $EGREP "memchr" >/dev
/null
2>&1; then
5992 ac_cv_header_stdc
=no
5998 if test $ac_cv_header_stdc = yes; then
5999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6000 cat >conftest.
$ac_ext <<_ACEOF
6003 cat confdefs.h
>>conftest.
$ac_ext
6004 cat >>conftest.
$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "free" >/dev
/null
2>&1; then
6013 ac_cv_header_stdc
=no
6019 if test $ac_cv_header_stdc = yes; then
6020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6021 if test "$cross_compiling" = yes; then
6024 cat >conftest.
$ac_ext <<_ACEOF
6027 cat confdefs.h
>>conftest.
$ac_ext
6028 cat >>conftest.
$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6031 #if ((' ' & 0x0FF) == 0x020)
6032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6035 # define ISLOWER(c) \
6036 (('a' <= (c) && (c) <= 'i') \
6037 || ('j' <= (c) && (c) <= 'r') \
6038 || ('s' <= (c) && (c) <= 'z'))
6039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6047 for (i = 0; i < 256; i++)
6048 if (XOR (islower (i), ISLOWER (i))
6049 || toupper (i) != TOUPPER (i))
6054 rm -f conftest
$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6067 echo "$as_me: program exited with status $ac_status" >&5
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.
$ac_ext >&5
6072 ac_cv_header_stdc
=no
6074 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6079 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6080 if test $ac_cv_header_stdc = yes; then
6082 cat >>confdefs.h
<<\_ACEOF
6083 #define STDC_HEADERS 1
6088 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6089 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6090 if test "${ac_cv_header_time+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 cat >conftest.
$ac_ext <<_ACEOF
6096 cat confdefs.h
>>conftest.
$ac_ext
6097 cat >>conftest.
$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6100 #include <sys/time.h>
6106 if ((struct tm *) 0)
6112 rm -f conftest.
$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6116 grep -v '^ *+' conftest.er1
>conftest.err
6118 cat conftest.err
>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try
='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try
='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_header_time
=yes
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.
$ac_ext >&5
6139 ac_cv_header_time
=no
6141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6144 echo "${ECHO_T}$ac_cv_header_time" >&6
6145 if test $ac_cv_header_time = yes; then
6147 cat >>confdefs.h
<<\_ACEOF
6148 #define TIME_WITH_SYS_TIME 1
6153 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6154 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6155 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 cat >conftest.
$ac_ext <<_ACEOF
6161 cat confdefs.h
>>conftest.
$ac_ext
6162 cat >>conftest.
$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 $ac_includes_default
6169 char *p = (char *) sys_siglist;
6176 rm -f conftest.
$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1
>conftest.err
6182 cat conftest.err
>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try
='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try
='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_have_decl_sys_siglist
=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.
$ac_ext >&5
6203 ac_cv_have_decl_sys_siglist
=no
6205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6207 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6208 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6209 if test $ac_cv_have_decl_sys_siglist = yes; then
6211 cat >>confdefs.h
<<_ACEOF
6212 #define HAVE_DECL_SYS_SIGLIST 1
6217 cat >>confdefs.h
<<_ACEOF
6218 #define HAVE_DECL_SYS_SIGLIST 0
6225 if test $ac_cv_have_decl_sys_siglist != yes; then
6226 # For Tru64, at least:
6227 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6228 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6229 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 cat >conftest.
$ac_ext <<_ACEOF
6235 cat confdefs.h
>>conftest.
$ac_ext
6236 cat >>conftest.
$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6242 #ifndef __sys_siglist
6243 char *p = (char *) __sys_siglist;
6250 rm -f conftest.
$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>conftest.er1
6254 grep -v '^ *+' conftest.er1
>conftest.err
6256 cat conftest.err
>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try
='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try
='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_cv_have_decl___sys_siglist
=yes
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.
$ac_ext >&5
6277 ac_cv_have_decl___sys_siglist
=no
6279 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6281 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6282 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6283 if test $ac_cv_have_decl___sys_siglist = yes; then
6285 cat >>confdefs.h
<<_ACEOF
6286 #define HAVE_DECL___SYS_SIGLIST 1
6291 cat >>confdefs.h
<<_ACEOF
6292 #define HAVE_DECL___SYS_SIGLIST 0
6299 if test $ac_cv_have_decl___sys_siglist = yes; then
6301 cat >>confdefs.h
<<\_ACEOF
6302 #define sys_siglist __sys_siglist
6307 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6308 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6309 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 cat >conftest.
$ac_ext <<_ACEOF
6315 cat confdefs.h
>>conftest.
$ac_ext
6316 cat >>conftest.
$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 #include <sys/types.h>
6319 #include <sys/wait.h>
6321 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6324 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6332 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6337 rm -f conftest.
$ac_objext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339 (eval $ac_compile) 2>conftest.er1
6341 grep -v '^ *+' conftest.er1
>conftest.err
6343 cat conftest.err
>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try
='test -z "$ac_c_werror_flag"
6347 || test ! -s conftest.err'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try
='test -s conftest.$ac_objext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_header_sys_wait_h
=yes
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.
$ac_ext >&5
6364 ac_cv_header_sys_wait_h
=no
6366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6369 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6370 if test $ac_cv_header_sys_wait_h = yes; then
6372 cat >>confdefs.h
<<\_ACEOF
6373 #define HAVE_SYS_WAIT_H 1
6379 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6380 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6381 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat >conftest.
$ac_ext <<_ACEOF
6387 cat confdefs.h
>>conftest.
$ac_ext
6388 cat >>conftest.
$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 #ifdef TIME_WITH_SYS_TIME
6391 #include <sys/time.h>
6394 #ifdef HAVE_SYS_TIME_H
6395 #include <sys/time.h>
6406 static struct utimbuf x; x.actime = x.modtime;
6411 rm -f conftest.
$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1
>conftest.err
6417 cat conftest.err
>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try
='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 emacs_cv_struct_utimbuf
=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.
$ac_ext >&5
6438 emacs_cv_struct_utimbuf
=no
6440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6443 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6444 if test $emacs_cv_struct_utimbuf = yes; then
6446 cat >>confdefs.h
<<\_ACEOF
6447 #define HAVE_STRUCT_UTIMBUF 1
6452 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6453 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6454 if test "${ac_cv_type_signal+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 cat >conftest.
$ac_ext <<_ACEOF
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 #include <sys/types.h>
6469 extern "C" void (*signal (int, void (*)(int)))(int);
6471 void (*signal ()) ();
6482 rm -f conftest.
$ac_objext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>conftest.er1
6486 grep -v '^ *+' conftest.er1
>conftest.err
6488 cat conftest.err
>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try
='test -z "$ac_c_werror_flag"
6492 || test ! -s conftest.err'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try
='test -s conftest.$ac_objext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_type_signal
=void
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.
$ac_ext >&5
6509 ac_cv_type_signal
=int
6511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6513 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6514 echo "${ECHO_T}$ac_cv_type_signal" >&6
6516 cat >>confdefs.h
<<_ACEOF
6517 #define RETSIGTYPE $ac_cv_type_signal
6522 echo "$as_me:$LINENO: checking for speed_t" >&5
6523 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6524 if test "${emacs_cv_speed_t+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 cat >conftest.
$ac_ext <<_ACEOF
6530 cat confdefs.h
>>conftest.
$ac_ext
6531 cat >>conftest.
$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <termios.h>
6542 rm -f conftest.
$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1
>conftest.err
6548 cat conftest.err
>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try
='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try
='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 emacs_cv_speed_t
=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.
$ac_ext >&5
6571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6573 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6574 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6575 if test $emacs_cv_speed_t = yes; then
6577 cat >>confdefs.h
<<\_ACEOF
6578 #define HAVE_SPEED_T 1
6583 echo "$as_me:$LINENO: checking for struct timeval" >&5
6584 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6585 if test "${emacs_cv_struct_timeval+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 cat >conftest.
$ac_ext <<_ACEOF
6591 cat confdefs.h
>>conftest.
$ac_ext
6592 cat >>conftest.
$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #ifdef TIME_WITH_SYS_TIME
6595 #include <sys/time.h>
6598 #ifdef HAVE_SYS_TIME_H
6599 #include <sys/time.h>
6607 static struct timeval x; x.tv_sec = x.tv_usec;
6612 rm -f conftest.
$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>conftest.er1
6616 grep -v '^ *+' conftest.er1
>conftest.err
6618 cat conftest.err
>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try
='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try
='test -s conftest.$ac_objext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 emacs_cv_struct_timeval
=yes
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.
$ac_ext >&5
6639 emacs_cv_struct_timeval
=no
6641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6643 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6644 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6645 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6646 if test $emacs_cv_struct_timeval = yes; then
6648 cat >>confdefs.h
<<\_ACEOF
6649 #define HAVE_TIMEVAL 1
6654 echo "$as_me:$LINENO: checking for struct exception" >&5
6655 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6656 if test "${emacs_cv_struct_exception+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 cat >conftest.
$ac_ext <<_ACEOF
6662 cat confdefs.h
>>conftest.
$ac_ext
6663 cat >>conftest.
$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6669 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6674 rm -f conftest.
$ac_objext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676 (eval $ac_compile) 2>conftest.er1
6678 grep -v '^ *+' conftest.er1
>conftest.err
6680 cat conftest.err
>&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try
='test -z "$ac_c_werror_flag"
6684 || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try
='test -s conftest.$ac_objext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 emacs_cv_struct_exception
=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.
$ac_ext >&5
6701 emacs_cv_struct_exception
=no
6703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6705 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6706 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6707 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6708 if test $emacs_cv_struct_exception != yes; then
6710 cat >>confdefs.h
<<\_ACEOF
6711 #define NO_MATHERR 1
6717 for ac_header
in sys
/socket.h
6719 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6721 echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6729 # Is the header compilable?
6730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6732 cat >conftest.
$ac_ext <<_ACEOF
6735 cat confdefs.h
>>conftest.
$ac_ext
6736 cat >>conftest.
$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 $ac_includes_default
6739 #include <$ac_header>
6741 rm -f conftest.
$ac_objext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743 (eval $ac_compile) 2>conftest.er1
6745 grep -v '^ *+' conftest.er1
>conftest.err
6747 cat conftest.err
>&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try
='test -z "$ac_c_werror_flag"
6751 || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try
='test -s conftest.$ac_objext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_header_compiler
=yes
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.
$ac_ext >&5
6768 ac_header_compiler
=no
6770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6772 echo "${ECHO_T}$ac_header_compiler" >&6
6774 # Is the header present?
6775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6777 cat >conftest.
$ac_ext <<_ACEOF
6780 cat confdefs.h
>>conftest.
$ac_ext
6781 cat >>conftest.
$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <$ac_header>
6785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6788 grep -v '^ *+' conftest.er1
>conftest.err
6790 cat conftest.err
>&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } >/dev
/null
; then
6793 if test -s conftest.err
; then
6794 ac_cpp_err
=$ac_c_preproc_warn_flag
6795 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6802 if test -z "$ac_cpp_err"; then
6803 ac_header_preproc
=yes
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.
$ac_ext >&5
6808 ac_header_preproc
=no
6810 rm -f conftest.err conftest.
$ac_ext
6811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6812 echo "${ECHO_T}$ac_header_preproc" >&6
6814 # So? What about this header?
6815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6821 ac_header_preproc
=yes
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6838 ## ------------------------------------------ ##
6839 ## Report this to the AC_PACKAGE_NAME lists. ##
6840 ## ------------------------------------------ ##
6843 sed "s/^/$as_me: WARNING: /" >&2
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 eval "$as_ac_Header=\$ac_header_preproc"
6853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858 cat >>confdefs.h
<<_ACEOF
6859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6867 for ac_header
in net
/if.h
6869 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6870 echo "$as_me:$LINENO: checking for $ac_header" >&5
6871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 cat >conftest.
$ac_ext <<_ACEOF
6878 cat confdefs.h
>>conftest.
$ac_ext
6879 cat >>conftest.
$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6882 #if HAVE_SYS_SOCKET_H
6883 #include <sys/socket.h>
6886 #include <$ac_header>
6888 rm -f conftest.
$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try
='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try
='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 eval "$as_ac_Header=yes"
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.
$ac_ext >&5
6915 eval "$as_ac_Header=no"
6917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6922 cat >>confdefs.h
<<_ACEOF
6923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6931 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6932 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6933 if test "${ac_cv_struct_tm+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 cat >conftest.
$ac_ext <<_ACEOF
6939 cat confdefs.h
>>conftest.
$ac_ext
6940 cat >>conftest.
$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <sys/types.h>
6948 struct tm *tp; tp->tm_sec;
6953 rm -f conftest.
$ac_objext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>conftest.er1
6957 grep -v '^ *+' conftest.er1
>conftest.err
6959 cat conftest.err
>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try
='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try
='test -s conftest.$ac_objext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_cv_struct_tm
=time.h
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.
$ac_ext >&5
6980 ac_cv_struct_tm
=sys
/time.h
6982 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6984 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6985 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6986 if test $ac_cv_struct_tm = sys
/time.h
; then
6988 cat >>confdefs.h
<<\_ACEOF
6989 #define TM_IN_SYS_TIME 1
6994 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6995 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6996 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 cat >conftest.
$ac_ext <<_ACEOF
7002 cat confdefs.h
>>conftest.
$ac_ext
7003 cat >>conftest.
$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 #include <sys/types.h>
7006 #include <$ac_cv_struct_tm>
7012 static struct tm ac_aggr;
7013 if (ac_aggr.tm_zone)
7019 rm -f conftest.
$ac_objext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021 (eval $ac_compile) 2>conftest.er1
7023 grep -v '^ *+' conftest.er1
>conftest.err
7025 cat conftest.err
>&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try
='test -z "$ac_c_werror_flag"
7029 || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try
='test -s conftest.$ac_objext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_cv_member_struct_tm_tm_zone
=yes
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.
$ac_ext >&5
7046 cat >conftest.
$ac_ext <<_ACEOF
7049 cat confdefs.h
>>conftest.
$ac_ext
7050 cat >>conftest.
$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 #include <sys/types.h>
7053 #include <$ac_cv_struct_tm>
7059 static struct tm ac_aggr;
7060 if (sizeof ac_aggr.tm_zone)
7066 rm -f conftest.
$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7070 grep -v '^ *+' conftest.er1
>conftest.err
7072 cat conftest.err
>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try
='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try
='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_cv_member_struct_tm_tm_zone
=yes
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.
$ac_ext >&5
7093 ac_cv_member_struct_tm_tm_zone
=no
7095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7099 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7100 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7101 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7103 cat >>confdefs.h
<<_ACEOF
7104 #define HAVE_STRUCT_TM_TM_ZONE 1
7110 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7112 cat >>confdefs.h
<<\_ACEOF
7113 #define HAVE_TM_ZONE 1
7117 echo "$as_me:$LINENO: checking for tzname" >&5
7118 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7119 if test "${ac_cv_var_tzname+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.
$ac_ext <<_ACEOF
7125 cat confdefs.h
>>conftest.
$ac_ext
7126 cat >>conftest.
$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7129 #ifndef tzname /* For SGI. */
7130 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7141 rm -f conftest.
$ac_objext conftest
$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>conftest.er1
7145 grep -v '^ *+' conftest.er1
>conftest.err
7147 cat conftest.err
>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try
='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try
='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_var_tzname
=yes
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.
$ac_ext >&5
7170 rm -f conftest.err conftest.
$ac_objext \
7171 conftest
$ac_exeext conftest.
$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7174 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7175 if test $ac_cv_var_tzname = yes; then
7177 cat >>confdefs.h
<<\_ACEOF
7178 #define HAVE_TZNAME 1
7184 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7185 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7186 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 cat >conftest.
$ac_ext <<_ACEOF
7192 cat confdefs.h
>>conftest.
$ac_ext
7193 cat >>conftest.
$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7200 static struct tm ac_aggr;
7201 if (ac_aggr.tm_gmtoff)
7207 rm -f conftest.
$ac_objext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>conftest.er1
7211 grep -v '^ *+' conftest.er1
>conftest.err
7213 cat conftest.err
>&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try
='test -z "$ac_c_werror_flag"
7217 || test ! -s conftest.err'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try
='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_cv_member_struct_tm_tm_gmtoff
=yes
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.
$ac_ext >&5
7234 cat >conftest.
$ac_ext <<_ACEOF
7237 cat confdefs.h
>>conftest.
$ac_ext
7238 cat >>conftest.
$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7245 static struct tm ac_aggr;
7246 if (sizeof ac_aggr.tm_gmtoff)
7252 rm -f conftest.
$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7256 grep -v '^ *+' conftest.er1
>conftest.err
7258 cat conftest.err
>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try
='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try
='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 ac_cv_member_struct_tm_tm_gmtoff
=yes
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.
$ac_ext >&5
7279 ac_cv_member_struct_tm_tm_gmtoff
=no
7281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7285 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7286 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7287 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7289 cat >>confdefs.h
<<\_ACEOF
7290 #define HAVE_TM_GMTOFF 1
7295 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7296 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7297 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 cat >conftest.
$ac_ext <<_ACEOF
7303 cat confdefs.h
>>conftest.
$ac_ext
7304 cat >>conftest.
$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7307 #if HAVE_SYS_SOCKET_H
7308 #include <sys/socket.h>
7317 static struct ifreq ac_aggr;
7318 if (ac_aggr.ifr_flags)
7324 rm -f conftest.
$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 (eval $ac_compile) 2>conftest.er1
7328 grep -v '^ *+' conftest.er1
>conftest.err
7330 cat conftest.err
>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try
='test -z "$ac_c_werror_flag"
7334 || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try
='test -s conftest.$ac_objext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_cv_member_struct_ifreq_ifr_flags
=yes
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.
$ac_ext >&5
7351 cat >conftest.
$ac_ext <<_ACEOF
7354 cat confdefs.h
>>conftest.
$ac_ext
7355 cat >>conftest.
$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 $ac_includes_default
7358 #if HAVE_SYS_SOCKET_H
7359 #include <sys/socket.h>
7368 static struct ifreq ac_aggr;
7369 if (sizeof ac_aggr.ifr_flags)
7375 rm -f conftest.
$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7379 grep -v '^ *+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try
='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try
='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_member_struct_ifreq_ifr_flags
=yes
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.
$ac_ext >&5
7402 ac_cv_member_struct_ifreq_ifr_flags
=no
7404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7409 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7410 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7412 cat >>confdefs.h
<<_ACEOF
7413 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7418 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7419 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7420 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.
$ac_ext <<_ACEOF
7426 cat confdefs.h
>>conftest.
$ac_ext
7427 cat >>conftest.
$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7430 #if HAVE_SYS_SOCKET_H
7431 #include <sys/socket.h>
7440 static struct ifreq ac_aggr;
7441 if (ac_aggr.ifr_hwaddr)
7447 rm -f conftest.
$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7451 grep -v '^ *+' conftest.er1
>conftest.err
7453 cat conftest.err
>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try
='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try
='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.
$ac_ext >&5
7474 cat >conftest.
$ac_ext <<_ACEOF
7477 cat confdefs.h
>>conftest.
$ac_ext
7478 cat >>conftest.
$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 #if HAVE_SYS_SOCKET_H
7482 #include <sys/socket.h>
7491 static struct ifreq ac_aggr;
7492 if (sizeof ac_aggr.ifr_hwaddr)
7498 rm -f conftest.
$ac_objext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500 (eval $ac_compile) 2>conftest.er1
7502 grep -v '^ *+' conftest.er1
>conftest.err
7504 cat conftest.err
>&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try
='test -z "$ac_c_werror_flag"
7508 || test ! -s conftest.err'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try
='test -s conftest.$ac_objext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.
$ac_ext >&5
7525 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7531 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7532 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7533 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7535 cat >>confdefs.h
<<_ACEOF
7536 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7541 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7542 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7543 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 cat >conftest.
$ac_ext <<_ACEOF
7549 cat confdefs.h
>>conftest.
$ac_ext
7550 cat >>conftest.
$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 #if HAVE_SYS_SOCKET_H
7554 #include <sys/socket.h>
7563 static struct ifreq ac_aggr;
7564 if (ac_aggr.ifr_netmask)
7570 rm -f conftest.
$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1
>conftest.err
7576 cat conftest.err
>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try
='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try
='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 cat >conftest.
$ac_ext <<_ACEOF
7600 cat confdefs.h
>>conftest.
$ac_ext
7601 cat >>conftest.
$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7604 #if HAVE_SYS_SOCKET_H
7605 #include <sys/socket.h>
7614 static struct ifreq ac_aggr;
7615 if (sizeof ac_aggr.ifr_netmask)
7621 rm -f conftest.
$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1
>conftest.err
7627 cat conftest.err
>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try
='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try
='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.
$ac_ext >&5
7648 ac_cv_member_struct_ifreq_ifr_netmask
=no
7650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7656 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7658 cat >>confdefs.h
<<_ACEOF
7659 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7664 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7665 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7666 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7672 cat confdefs.h
>>conftest.
$ac_ext
7673 cat >>conftest.
$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 #if HAVE_SYS_SOCKET_H
7677 #include <sys/socket.h>
7686 static struct ifreq ac_aggr;
7687 if (ac_aggr.ifr_broadaddr)
7693 rm -f conftest.
$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7697 grep -v '^ *+' conftest.er1
>conftest.err
7699 cat conftest.err
>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try
='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try
='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.
$ac_ext >&5
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #if HAVE_SYS_SOCKET_H
7728 #include <sys/socket.h>
7737 static struct ifreq ac_aggr;
7738 if (sizeof ac_aggr.ifr_broadaddr)
7744 rm -f conftest.
$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7748 grep -v '^ *+' conftest.er1
>conftest.err
7750 cat conftest.err
>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try
='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try
='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7771 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7778 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7779 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7781 cat >>confdefs.h
<<_ACEOF
7782 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7787 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7788 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7789 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 cat >conftest.
$ac_ext <<_ACEOF
7795 cat confdefs.h
>>conftest.
$ac_ext
7796 cat >>conftest.
$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 #if HAVE_SYS_SOCKET_H
7800 #include <sys/socket.h>
7809 static struct ifreq ac_aggr;
7810 if (ac_aggr.ifr_addr)
7816 rm -f conftest.
$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1
>conftest.err
7822 cat conftest.err
>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try
='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try
='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_member_struct_ifreq_ifr_addr
=yes
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7843 cat >conftest.
$ac_ext <<_ACEOF
7846 cat confdefs.h
>>conftest.
$ac_ext
7847 cat >>conftest.
$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 #if HAVE_SYS_SOCKET_H
7851 #include <sys/socket.h>
7860 static struct ifreq ac_aggr;
7861 if (sizeof ac_aggr.ifr_addr)
7867 rm -f conftest.
$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1
>conftest.err
7873 cat conftest.err
>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try
='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try
='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_member_struct_ifreq_ifr_addr
=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.
$ac_ext >&5
7894 ac_cv_member_struct_ifreq_ifr_addr
=no
7896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7900 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7901 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7902 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7904 cat >>confdefs.h
<<_ACEOF
7905 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7913 echo "$as_me:$LINENO: checking for function prototypes" >&5
7914 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7915 if test "$ac_cv_prog_cc_stdc" != no
; then
7916 echo "$as_me:$LINENO: result: yes" >&5
7917 echo "${ECHO_T}yes" >&6
7919 cat >>confdefs.h
<<\_ACEOF
7920 #define PROTOTYPES 1
7924 cat >>confdefs.h
<<\_ACEOF
7925 #define __PROTOTYPES 1
7929 echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7933 echo "$as_me:$LINENO: checking for working volatile" >&5
7934 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7935 if test "${ac_cv_c_volatile+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.
$ac_ext <<_ACEOF
7941 cat confdefs.h
>>conftest.
$ac_ext
7942 cat >>conftest.
$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7955 rm -f conftest.
$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>conftest.er1
7959 grep -v '^ *+' conftest.er1
>conftest.err
7961 cat conftest.err
>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try
='test -z "$ac_c_werror_flag"
7965 || test ! -s conftest.err'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try
='test -s conftest.$ac_objext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_cv_c_volatile
=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.
$ac_ext >&5
7984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7987 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7988 if test $ac_cv_c_volatile = no
; then
7990 cat >>confdefs.h
<<\_ACEOF
7996 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7997 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7998 if test "${ac_cv_c_const+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 cat >conftest.
$ac_ext <<_ACEOF
8004 cat confdefs.h
>>conftest.
$ac_ext
8005 cat >>conftest.
$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8011 /* FIXME: Include the comments suggested by Paul. */
8013 /* Ultrix mips cc rejects this. */
8014 typedef int charset[2];
8016 /* SunOS 4.1.1 cc rejects this. */
8017 char const *const *ccp;
8019 /* NEC SVR4.0.2 mips cc rejects this. */
8020 struct point {int x, y;};
8021 static struct point const zero = {0,0};
8022 /* AIX XL C 1.02.0.0 rejects this.
8023 It does not let you subtract one const X* pointer from another in
8024 an arm of an if-expression whose if-part is not a constant
8026 const char *g = "string";
8027 ccp = &g + (g ? g-g : 0);
8028 /* HPUX 7.0 cc rejects these. */
8031 ccp = (char const *const *) p;
8032 { /* SCO 3.2v4 cc rejects this. */
8034 char const *s = 0 ? (char *) 0 : (char const *) 0;
8038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8040 const int *foo = &x[0];
8043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8044 typedef const int *iptr;
8048 { /* AIX XL C 1.02.0.0 rejects this saying
8049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8050 struct s { int j; const int *ap[3]; };
8051 struct s *b; b->j = 5;
8053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8062 rm -f conftest.
$ac_objext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>conftest.er1
8066 grep -v '^ *+' conftest.er1
>conftest.err
8068 cat conftest.err
>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try
='test -z "$ac_c_werror_flag"
8072 || test ! -s conftest.err'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; } &&
8078 { ac_try
='test -s conftest.$ac_objext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.
$ac_ext >&5
8091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8094 echo "${ECHO_T}$ac_cv_c_const" >&6
8095 if test $ac_cv_c_const = no
; then
8097 cat >>confdefs.h
<<\_ACEOF
8103 echo "$as_me:$LINENO: checking for void * support" >&5
8104 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8105 if test "${emacs_cv_void_star+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.
$ac_ext <<_ACEOF
8111 cat confdefs.h
>>conftest.
$ac_ext
8112 cat >>conftest.
$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8123 rm -f conftest.
$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1
>conftest.err
8129 cat conftest.err
>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try
='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try
='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 emacs_cv_void_star
=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.
$ac_ext >&5
8150 emacs_cv_void_star
=no
8152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8154 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8155 echo "${ECHO_T}$emacs_cv_void_star" >&6
8156 if test $emacs_cv_void_star = yes; then
8157 cat >>confdefs.h
<<\_ACEOF
8158 #define POINTER_TYPE void
8162 cat >>confdefs.h
<<\_ACEOF
8163 #define POINTER_TYPE char
8172 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8173 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8174 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8175 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 cat >conftest.
make <<\_ACEOF
8180 @
echo 'ac_maketemp="$(MAKE)"'
8182 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8183 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8184 if test -n "$ac_maketemp"; then
8185 eval ac_cv_prog_make_
${ac_make}_set
=yes
8187 eval ac_cv_prog_make_
${ac_make}_set
=no
8191 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8192 echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8198 SET_MAKE
="MAKE=${MAKE-make}"
8202 echo "$as_me:$LINENO: checking for long file names" >&5
8203 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8204 if test "${ac_cv_sys_long_file_names+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_sys_long_file_names
=yes
8208 # Test for long file names in all the places we know might matter:
8209 # . the current directory, where building will happen
8210 # $prefix/lib where we will be installing things
8211 # $exec_prefix/lib likewise
8212 # eval it to expand exec_prefix.
8213 # $TMPDIR if set, where it might want to write temporary files
8214 # if $TMPDIR is not set:
8215 # /tmp where it might want to write temporary files
8218 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8221 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8223 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8224 test -d $ac_dir ||
continue
8225 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8226 ac_xdir
=$ac_dir/cf$$
8227 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8228 ac_tf1
=$ac_xdir/conftest9012345
8229 ac_tf2
=$ac_xdir/conftest9012346
8230 (echo 1 >$ac_tf1) 2>/dev
/null
8231 (echo 2 >$ac_tf2) 2>/dev
/null
8232 ac_val
=`cat $ac_tf1 2>/dev/null`
8233 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8234 ac_cv_sys_long_file_names
=no
8235 rm -rf $ac_xdir 2>/dev
/null
8238 rm -rf $ac_xdir 2>/dev
/null
8241 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8242 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8243 if test $ac_cv_sys_long_file_names = yes; then
8245 cat >>confdefs.h
<<\_ACEOF
8246 #define HAVE_LONG_FILE_NAMES 1
8252 #### Choose a window system.
8254 echo "$as_me:$LINENO: checking for X" >&5
8255 echo $ECHO_N "checking for X... $ECHO_C" >&6
8258 # Check whether --with-x or --without-x was given.
8259 if test "${with_x+set}" = set; then
8263 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8264 if test "x$with_x" = xno
; then
8265 # The user explicitly disabled X.
8268 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8269 # Both variables are already set.
8272 if test "${ac_cv_have_x+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 # One or both of the vars are not set, and there is no cached value.
8276 ac_x_includes
=no ac_x_libraries
=no
8278 if mkdir conftest.dir
; then
8280 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8281 cat >Imakefile
<<'_ACEOF'
8283 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8285 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8286 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8287 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8288 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8289 for ac_extension
in a so sl
; do
8290 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8291 test -f $ac_im_libdir/libX11.
$ac_extension; then
8292 ac_im_usrlibdir
=$ac_im_libdir; break
8295 # Screen out bogus values from the imake configuration. They are
8296 # bogus both because they are the default anyway, and because
8297 # using them would break gcc on systems where it needs fixed includes.
8298 case $ac_im_incroot in
8300 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8302 case $ac_im_usrlibdir in
8304 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8311 # Standard set of common directories for X headers.
8312 # Check X11 before X11Rn because it is often a symlink to the current release.
8324 /usr/local/X11/include
8325 /usr/local/X11R6/include
8326 /usr/local/X11R5/include
8327 /usr/local/X11R4/include
8329 /usr/local/include/X11
8330 /usr/local/include/X11R6
8331 /usr/local/include/X11R5
8332 /usr/local/include/X11R4
8336 /usr/XFree86/include/X11
8340 /usr/unsupported/include
8342 /usr/local/x11r5/include
8343 /usr/lpp/Xamples/include
8345 /usr/openwin/include
8346 /usr/openwin/share/include'
8348 if test "$ac_x_includes" = no
; then
8349 # Guess where to find include files, by looking for Intrinsic.h.
8350 # First, try using that file with no special directory specified.
8351 cat >conftest.
$ac_ext <<_ACEOF
8354 cat confdefs.h
>>conftest.
$ac_ext
8355 cat >>conftest.
$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 #include <X11/Intrinsic.h>
8359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8360 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8362 grep -v '^ *+' conftest.er1
>conftest.err
8364 cat conftest.err
>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } >/dev
/null
; then
8367 if test -s conftest.err
; then
8368 ac_cpp_err
=$ac_c_preproc_warn_flag
8369 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8376 if test -z "$ac_cpp_err"; then
8377 # We can compile using X headers with no special include directory.
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.
$ac_ext >&5
8383 for ac_dir
in $ac_x_header_dirs; do
8384 if test -r "$ac_dir/X11/Intrinsic.h"; then
8385 ac_x_includes
=$ac_dir
8390 rm -f conftest.err conftest.
$ac_ext
8391 fi # $ac_x_includes = no
8393 if test "$ac_x_libraries" = no
; then
8394 # Check for the libraries.
8395 # See if we find them without any special options.
8396 # Don't add to $LIBS permanently.
8399 cat >conftest.
$ac_ext <<_ACEOF
8402 cat confdefs.h
>>conftest.
$ac_ext
8403 cat >>conftest.
$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #include <X11/Intrinsic.h>
8414 rm -f conftest.
$ac_objext conftest
$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1
>conftest.err
8420 cat conftest.err
>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try
='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try
='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8437 # We can link X programs with no special library path.
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.
$ac_ext >&5
8444 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8446 # Don't even attempt the hair of trying to link an X program!
8447 for ac_extension
in a so sl
; do
8448 if test -r $ac_dir/libXt.
$ac_extension; then
8449 ac_x_libraries
=$ac_dir
8455 rm -f conftest.err conftest.
$ac_objext \
8456 conftest
$ac_exeext conftest.
$ac_ext
8457 fi # $ac_x_libraries = no
8459 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8460 # Didn't find X anywhere. Cache the known absence of X.
8461 ac_cv_have_x
="have_x=no"
8463 # Record where we found X for the cache.
8464 ac_cv_have_x
="have_x=yes \
8465 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8470 eval "$ac_cv_have_x"
8473 if test "$have_x" != yes; then
8474 echo "$as_me:$LINENO: result: $have_x" >&5
8475 echo "${ECHO_T}$have_x" >&6
8478 # If each of the values was on the command line, it overrides each guess.
8479 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8480 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8481 # Update the cache value to reflect the command line values.
8482 ac_cv_have_x
="have_x=yes \
8483 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8484 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8485 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8488 if test "$no_x" = yes; then
8494 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8495 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8496 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8497 x_default_search_path
=""
8498 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8500 ${x_library}/X11/%L/%T/%N%C%S:\
8501 ${x_library}/X11/%l/%T/%N%C%S:\
8502 ${x_library}/X11/%T/%N%C%S:\
8503 ${x_library}/X11/%L/%T/%N%S:\
8504 ${x_library}/X11/%l/%T/%N%S:\
8505 ${x_library}/X11/%T/%N%S"
8506 if test x
"${x_default_search_path}" = x
; then
8507 x_default_search_path
=${x_search_path}
8509 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8513 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8514 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8517 if test x
"${x_includes}" = x
; then
8518 bitmapdir
=/usr
/include
/X11
/bitmaps
8520 # accumulate include directories that have X11 bitmap subdirectories
8522 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8523 if test -d "${bmd}/X11/bitmaps"; then
8524 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8526 if test -d "${bmd}/bitmaps"; then
8527 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8530 if test ${bmd_acc} != "dummyval"; then
8531 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8536 if test "${with_carbon}" != no
; then
8537 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8538 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8539 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8540 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8544 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8546 # Is the header compilable?
8547 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8548 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8549 cat >conftest.
$ac_ext <<_ACEOF
8552 cat confdefs.h
>>conftest.
$ac_ext
8553 cat >>conftest.
$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8556 #include <Carbon/Carbon.h>
8558 rm -f conftest.
$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1
>conftest.err
8564 cat conftest.err
>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try
='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try
='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_header_compiler
=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 ac_header_compiler
=no
8587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8589 echo "${ECHO_T}$ac_header_compiler" >&6
8591 # Is the header present?
8592 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8593 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8594 cat >conftest.
$ac_ext <<_ACEOF
8597 cat confdefs.h
>>conftest.
$ac_ext
8598 cat >>conftest.
$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 #include <Carbon/Carbon.h>
8602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8605 grep -v '^ *+' conftest.er1
>conftest.err
8607 cat conftest.err
>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } >/dev
/null
; then
8610 if test -s conftest.err
; then
8611 ac_cpp_err
=$ac_c_preproc_warn_flag
8612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8619 if test -z "$ac_cpp_err"; then
8620 ac_header_preproc
=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.
$ac_ext >&5
8625 ac_header_preproc
=no
8627 rm -f conftest.err conftest.
$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629 echo "${ECHO_T}$ac_header_preproc" >&6
8631 # So? What about this header?
8632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8634 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8635 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8637 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8638 ac_header_preproc
=yes
8641 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8646 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8648 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8652 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8655 ## ------------------------------------------ ##
8656 ## Report this to the AC_PACKAGE_NAME lists. ##
8657 ## ------------------------------------------ ##
8660 sed "s/^/$as_me: WARNING: /" >&2
8663 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8664 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8665 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8670 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8671 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8674 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8680 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8681 if test "${with_carbon+set}" != set \
8682 && test "${carbon_appdir_x+set}" != set; then
8686 if test "${HAVE_CARBON}" = yes; then
8690 case "${window_system}" in
8694 case "${with_x_toolkit}" in
8695 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8696 motif
) USE_X_TOOLKIT
=MOTIF
;;
8698 USE_X_TOOLKIT
=none
;;
8699 no
) USE_X_TOOLKIT
=none
;;
8700 * ) USE_X_TOOLKIT
=maybe
;;
8710 ### If we're using X11, we should use the X menu package.
8713 yes ) HAVE_MENUS
=yes ;;
8716 if test "${opsys}" = "hpux9"; then
8717 case "${x_libraries}" in
8719 opsysfile
="s/hpux9-x11r4.h"
8724 if test "${opsys}" = "hpux9shr"; then
8725 case "${x_libraries}" in
8727 opsysfile
="s/hpux9shxr4.h"
8732 ### Compute the unexec source name from the object name.
8733 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8735 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8736 # Assume not, until told otherwise.
8739 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8740 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8741 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 cat >conftest.
$ac_ext <<_ACEOF
8747 cat confdefs.h
>>conftest.
$ac_ext
8748 cat >>conftest.
$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8752 #define malloc_get_state innocuous_malloc_get_state
8754 /* System header to define __stub macros and hopefully few prototypes,
8755 which can conflict with char malloc_get_state (); below.
8756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8757 <limits.h> exists even on freestanding compilers. */
8760 # include <limits.h>
8762 # include <assert.h>
8765 #undef malloc_get_state
8767 /* Override any gcc2 internal prototype to avoid an error. */
8772 /* We use char because int might match the return type of a gcc2
8773 builtin and then its argument prototype would still apply. */
8774 char malloc_get_state ();
8775 /* The GNU C library defines this for functions which it implements
8776 to always fail with ENOSYS. Some functions are actually named
8777 something starting with __ and the normal name is an alias. */
8778 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8781 char (*f) () = malloc_get_state;
8790 return f != malloc_get_state;
8795 rm -f conftest.
$ac_objext conftest
$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1
>conftest.err
8801 cat conftest.err
>&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try
='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try
='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_func_malloc_get_state
=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.
$ac_ext >&5
8822 ac_cv_func_malloc_get_state
=no
8824 rm -f conftest.err conftest.
$ac_objext \
8825 conftest
$ac_exeext conftest.
$ac_ext
8827 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8828 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8829 if test $ac_cv_func_malloc_get_state = yes; then
8835 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8836 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8837 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 cat >conftest.
$ac_ext <<_ACEOF
8843 cat confdefs.h
>>conftest.
$ac_ext
8844 cat >>conftest.
$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8848 #define malloc_set_state innocuous_malloc_set_state
8850 /* System header to define __stub macros and hopefully few prototypes,
8851 which can conflict with char malloc_set_state (); below.
8852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8853 <limits.h> exists even on freestanding compilers. */
8856 # include <limits.h>
8858 # include <assert.h>
8861 #undef malloc_set_state
8863 /* Override any gcc2 internal prototype to avoid an error. */
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8870 char malloc_set_state ();
8871 /* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8877 char (*f) () = malloc_set_state;
8886 return f != malloc_set_state;
8891 rm -f conftest.
$ac_objext conftest
$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>conftest.er1
8895 grep -v '^ *+' conftest.er1
>conftest.err
8897 cat conftest.err
>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try
='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try
='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_func_malloc_set_state
=yes
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.
$ac_ext >&5
8918 ac_cv_func_malloc_set_state
=no
8920 rm -f conftest.err conftest.
$ac_objext \
8921 conftest
$ac_exeext conftest.
$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8924 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8925 if test $ac_cv_func_malloc_set_state = yes; then
8931 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8932 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8933 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.
$ac_ext <<_ACEOF
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 extern void (* __after_morecore_hook)();
8946 __after_morecore_hook = 0
8951 rm -f conftest.
$ac_objext conftest
$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>conftest.er1
8955 grep -v '^ *+' conftest.er1
>conftest.err
8957 cat conftest.err
>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try
='test -z "$ac_c_werror_flag"
8961 || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try
='test -s conftest$ac_exeext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 emacs_cv_var___after_morecore_hook
=yes
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.
$ac_ext >&5
8978 emacs_cv_var___after_morecore_hook
=no
8980 rm -f conftest.err conftest.
$ac_objext \
8981 conftest
$ac_exeext conftest.
$ac_ext
8983 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8984 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8985 if test $emacs_cv_var___after_morecore_hook = no
; then
8988 if test "${system_malloc}" = "yes"; then
8991 (The GNU allocators don't work with this system configuration.)"
8993 if test "$doug_lea_malloc" = "yes" ; then
8994 if test "$GNU_MALLOC" = yes ; then
8996 (Using Doug Lea's new malloc from the GNU C Library.)"
8999 cat >>confdefs.h
<<\_ACEOF
9000 #define DOUG_LEA_MALLOC 1
9005 if test x
"${REL_ALLOC}" = x
; then
9006 REL_ALLOC
=${GNU_MALLOC}
9012 for ac_header
in stdlib.h unistd.h
9014 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9016 echo "$as_me:$LINENO: checking for $ac_header" >&5
9017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 # Is the header compilable?
9025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9027 cat >conftest.
$ac_ext <<_ACEOF
9030 cat confdefs.h
>>conftest.
$ac_ext
9031 cat >>conftest.
$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $ac_includes_default
9034 #include <$ac_header>
9036 rm -f conftest.
$ac_objext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>conftest.er1
9040 grep -v '^ *+' conftest.er1
>conftest.err
9042 cat conftest.err
>&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try
='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try
='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_header_compiler
=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.
$ac_ext >&5
9063 ac_header_compiler
=no
9065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9067 echo "${ECHO_T}$ac_header_compiler" >&6
9069 # Is the header present?
9070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9072 cat >conftest.
$ac_ext <<_ACEOF
9075 cat confdefs.h
>>conftest.
$ac_ext
9076 cat >>conftest.
$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 #include <$ac_header>
9080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9083 grep -v '^ *+' conftest.er1
>conftest.err
9085 cat conftest.err
>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } >/dev
/null
; then
9088 if test -s conftest.err
; then
9089 ac_cpp_err
=$ac_c_preproc_warn_flag
9090 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9097 if test -z "$ac_cpp_err"; then
9098 ac_header_preproc
=yes
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.
$ac_ext >&5
9103 ac_header_preproc
=no
9105 rm -f conftest.err conftest.
$ac_ext
9106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9107 echo "${ECHO_T}$ac_header_preproc" >&6
9109 # So? What about this header?
9110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9116 ac_header_preproc
=yes
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9133 ## ------------------------------------------ ##
9134 ## Report this to the AC_PACKAGE_NAME lists. ##
9135 ## ------------------------------------------ ##
9138 sed "s/^/$as_me: WARNING: /" >&2
9141 echo "$as_me:$LINENO: checking for $ac_header" >&5
9142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 eval "$as_ac_Header=\$ac_header_preproc"
9148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9153 cat >>confdefs.h
<<_ACEOF
9154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9162 for ac_func
in getpagesize
9164 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9165 echo "$as_me:$LINENO: checking for $ac_func" >&5
9166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9167 if eval "test \"\${$as_ac_var+set}\" = set"; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 cat >conftest.
$ac_ext <<_ACEOF
9173 cat confdefs.h
>>conftest.
$ac_ext
9174 cat >>conftest.
$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9178 #define $ac_func innocuous_$ac_func
9180 /* System header to define __stub macros and hopefully few prototypes,
9181 which can conflict with char $ac_func (); below.
9182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9183 <limits.h> exists even on freestanding compilers. */
9186 # include <limits.h>
9188 # include <assert.h>
9193 /* Override any gcc2 internal prototype to avoid an error. */
9198 /* We use char because int might match the return type of a gcc2
9199 builtin and then its argument prototype would still apply. */
9201 /* The GNU C library defines this for functions which it implements
9202 to always fail with ENOSYS. Some functions are actually named
9203 something starting with __ and the normal name is an alias. */
9204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9207 char (*f) () = $ac_func;
9216 return f != $ac_func;
9221 rm -f conftest.
$ac_objext conftest
$ac_exeext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9223 (eval $ac_link) 2>conftest.er1
9225 grep -v '^ *+' conftest.er1
>conftest.err
9227 cat conftest.err
>&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try
='test -z "$ac_c_werror_flag"
9231 || test ! -s conftest.err'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; } &&
9237 { ac_try
='test -s conftest$ac_exeext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 eval "$as_ac_var=yes"
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9248 eval "$as_ac_var=no"
9250 rm -f conftest.err conftest.
$ac_objext \
9251 conftest
$ac_exeext conftest.
$ac_ext
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9255 if test `eval echo '${'$as_ac_var'}'` = yes; then
9256 cat >>confdefs.h
<<_ACEOF
9257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9263 echo "$as_me:$LINENO: checking for working mmap" >&5
9264 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9265 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 if test "$cross_compiling" = yes; then
9269 ac_cv_func_mmap_fixed_mapped
=no
9271 cat >conftest.
$ac_ext <<_ACEOF
9274 cat confdefs.h
>>conftest.
$ac_ext
9275 cat >>conftest.
$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 /* malloc might have been renamed as rpl_malloc. */
9281 /* Thanks to Mike Haertel and Jim Avera for this test.
9282 Here is a matrix of mmap possibilities:
9283 mmap private not fixed
9284 mmap private fixed at somewhere currently unmapped
9285 mmap private fixed at somewhere already mapped
9286 mmap shared not fixed
9287 mmap shared fixed at somewhere currently unmapped
9288 mmap shared fixed at somewhere already mapped
9289 For private mappings, we should verify that changes cannot be read()
9290 back from the file, nor mmap's back from the file at a different
9291 address. (There have been systems where private was not correctly
9292 implemented like the infamous i386 svr4.0, and systems where the
9293 VM page cache was not coherent with the file system buffer cache
9294 like early versions of FreeBSD and possibly contemporary NetBSD.)
9295 For shared mappings, we should conversely verify that changes get
9296 propagated back to all the places they're supposed to be.
9298 Grep wants private fixed already mapped.
9299 The main things grep needs to know about mmap are:
9300 * does it exist and is it safe to write into the mmap'd area
9301 * how to use it (BSD variants) */
9304 #include <sys/mman.h>
9306 #if !STDC_HEADERS && !HAVE_STDLIB_H
9310 /* This mess was copied from the GNU getpagesize.h. */
9311 #if !HAVE_GETPAGESIZE
9312 /* Assume that all systems that can run configure have sys/param.h. */
9313 # if !HAVE_SYS_PARAM_H
9314 # define HAVE_SYS_PARAM_H 1
9317 # ifdef _SC_PAGESIZE
9318 # define getpagesize() sysconf(_SC_PAGESIZE)
9319 # else /* no _SC_PAGESIZE */
9320 # if HAVE_SYS_PARAM_H
9321 # include <sys/param.h>
9322 # ifdef EXEC_PAGESIZE
9323 # define getpagesize() EXEC_PAGESIZE
9324 # else /* no EXEC_PAGESIZE */
9326 # define getpagesize() NBPG * CLSIZE
9329 # endif /* no CLSIZE */
9330 # else /* no NBPG */
9332 # define getpagesize() NBPC
9333 # else /* no NBPC */
9335 # define getpagesize() PAGESIZE
9336 # endif /* PAGESIZE */
9337 # endif /* no NBPC */
9338 # endif /* no NBPG */
9339 # endif /* no EXEC_PAGESIZE */
9340 # else /* no HAVE_SYS_PARAM_H */
9341 # define getpagesize() 8192 /* punt totally */
9342 # endif /* no HAVE_SYS_PARAM_H */
9343 # endif /* no _SC_PAGESIZE */
9345 #endif /* no HAVE_GETPAGESIZE */
9350 char *data, *data2, *data3;
9354 pagesize = getpagesize ();
9356 /* First, make a file with some known garbage in it. */
9357 data = (char *) malloc (pagesize);
9360 for (i = 0; i < pagesize; ++i)
9361 *(data + i) = rand ();
9363 fd = creat ("conftest.mmap", 0600);
9366 if (write (fd, data, pagesize) != pagesize)
9370 /* Next, try to mmap the file at a fixed address which already has
9371 something else allocated at it. If we can, also make sure that
9372 we see the same garbage. */
9373 fd = open ("conftest.mmap", O_RDWR);
9376 data2 = (char *) malloc (2 * pagesize);
9379 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9380 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9381 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9383 for (i = 0; i < pagesize; ++i)
9384 if (*(data + i) != *(data2 + i))
9387 /* Finally, make sure that changes to the mapped area do not
9388 percolate back to the file as seen by read(). (This is a bug on
9389 some variants of i386 svr4.0.) */
9390 for (i = 0; i < pagesize; ++i)
9391 *(data2 + i) = *(data2 + i) + 1;
9392 data3 = (char *) malloc (pagesize);
9395 if (read (fd, data3, pagesize) != pagesize)
9397 for (i = 0; i < pagesize; ++i)
9398 if (*(data + i) != *(data3 + i))
9404 rm -f conftest
$ac_exeext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 ac_cv_func_mmap_fixed_mapped
=yes
9417 echo "$as_me: program exited with status $ac_status" >&5
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.
$ac_ext >&5
9422 ac_cv_func_mmap_fixed_mapped
=no
9424 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9428 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9429 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9431 cat >>confdefs.h
<<\_ACEOF
9438 if test $use_mmap_for_buffers = yes; then
9442 LIBS
="$libsrc_libs $LIBS"
9445 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9446 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9447 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 ac_check_lib_save_LIBS
=$LIBS
9452 cat >conftest.
$ac_ext <<_ACEOF
9455 cat confdefs.h
>>conftest.
$ac_ext
9456 cat >>conftest.
$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9459 /* Override any gcc2 internal prototype to avoid an error. */
9463 /* We use char because int might match the return type of a gcc2
9464 builtin and then its argument prototype would still apply. */
9474 rm -f conftest.
$ac_objext conftest
$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476 (eval $ac_link) 2>conftest.er1
9478 grep -v '^ *+' conftest.er1
>conftest.err
9480 cat conftest.err
>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try
='test -z "$ac_c_werror_flag"
9484 || test ! -s conftest.err'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try
='test -s conftest$ac_exeext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_cv_lib_dnet_dnet_ntoa
=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.
$ac_ext >&5
9501 ac_cv_lib_dnet_dnet_ntoa
=no
9503 rm -f conftest.err conftest.
$ac_objext \
9504 conftest
$ac_exeext conftest.
$ac_ext
9505 LIBS
=$ac_check_lib_save_LIBS
9507 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9508 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9509 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9510 cat >>confdefs.h
<<_ACEOF
9511 #define HAVE_LIBDNET 1
9519 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9520 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9521 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 ac_check_lib_save_LIBS
=$LIBS
9526 cat >conftest.
$ac_ext <<_ACEOF
9529 cat confdefs.h
>>conftest.
$ac_ext
9530 cat >>conftest.
$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9542 rm -f conftest.
$ac_objext conftest
$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9546 grep -v '^ *+' conftest.er1
>conftest.err
9548 cat conftest.err
>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try
='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try
='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_lib_Xbsd_main
=yes
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.
$ac_ext >&5
9569 ac_cv_lib_Xbsd_main
=no
9571 rm -f conftest.err conftest.
$ac_objext \
9572 conftest
$ac_exeext conftest.
$ac_ext
9573 LIBS
=$ac_check_lib_save_LIBS
9575 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9576 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9577 if test $ac_cv_lib_Xbsd_main = yes; then
9578 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9583 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9584 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9585 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 ac_check_lib_save_LIBS
=$LIBS
9589 LIBS
="-lpthreads $LIBS"
9590 cat >conftest.
$ac_ext <<_ACEOF
9593 cat confdefs.h
>>conftest.
$ac_ext
9594 cat >>conftest.
$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 /* Override any gcc2 internal prototype to avoid an error. */
9601 /* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9612 rm -f conftest.
$ac_objext conftest
$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
9616 grep -v '^ *+' conftest.er1
>conftest.err
9618 cat conftest.err
>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try
='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try
='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_lib_pthreads_cma_open
=yes
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.
$ac_ext >&5
9639 ac_cv_lib_pthreads_cma_open
=no
9641 rm -f conftest.err conftest.
$ac_objext \
9642 conftest
$ac_exeext conftest.
$ac_ext
9643 LIBS
=$ac_check_lib_save_LIBS
9645 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9646 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9647 if test $ac_cv_lib_pthreads_cma_open = yes; then
9648 cat >>confdefs.h
<<_ACEOF
9649 #define HAVE_LIBPTHREADS 1
9652 LIBS
="-lpthreads $LIBS"
9657 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9658 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9659 if test -d /usr
/X386
/include
; then
9661 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9665 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9666 echo "${ECHO_T}$HAVE_XFREE386" >&6
9671 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9672 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9673 if test "${gdb_cv_bigtoc+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9679 *) gdb_cv_bigtoc
=-bbigtoc ;;
9682 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9683 cat >conftest.
$ac_ext <<_ACEOF
9686 cat confdefs.h
>>conftest.
$ac_ext
9687 cat >>conftest.
$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9698 rm -f conftest.
$ac_objext conftest
$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9702 grep -v '^ *+' conftest.er1
>conftest.err
9704 cat conftest.err
>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try
='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try
='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.
$ac_ext >&5
9727 rm -f conftest.err conftest.
$ac_objext \
9728 conftest
$ac_exeext conftest.
$ac_ext
9731 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9732 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9736 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9737 # used for the tests that follow. We set them back to REAL_CFLAGS and
9738 # REAL_CPPFLAGS later on.
9740 REAL_CPPFLAGS
="$CPPFLAGS"
9742 if test "${HAVE_X11}" = "yes"; then
9743 DEFS
="$C_SWITCH_X_SITE $DEFS"
9744 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9746 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9747 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9749 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9750 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9751 # but it's more convenient here to set LD_RUN_PATH
9752 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9753 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9754 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9758 if test "${opsys}" = "gnu-linux"; then
9759 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9760 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9761 cat >conftest.
$ac_ext <<_ACEOF
9764 cat confdefs.h
>>conftest.
$ac_ext
9765 cat >>conftest.
$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9771 XOpenDisplay ("foo");
9776 rm -f conftest.
$ac_objext conftest
$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9780 grep -v '^ *+' conftest.er1
>conftest.err
9782 cat conftest.err
>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try
='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try
='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 xlinux_first_failure
=no
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.
$ac_ext >&5
9803 xlinux_first_failure
=yes
9805 rm -f conftest.err conftest.
$ac_objext \
9806 conftest
$ac_exeext conftest.
$ac_ext
9807 if test "${xlinux_first_failure}" = "yes"; then
9808 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9809 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9810 OLD_CPPFLAGS
="$CPPFLAGS"
9812 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9813 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9814 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9815 LIBS
="$LIBS -b i486-linuxaout"
9816 cat >conftest.
$ac_ext <<_ACEOF
9819 cat confdefs.h
>>conftest.
$ac_ext
9820 cat >>conftest.
$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9826 XOpenDisplay ("foo");
9831 rm -f conftest.
$ac_objext conftest
$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try
='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try
='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 xlinux_second_failure
=no
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.
$ac_ext >&5
9858 xlinux_second_failure
=yes
9860 rm -f conftest.err conftest.
$ac_objext \
9861 conftest
$ac_exeext conftest.
$ac_ext
9862 if test "${xlinux_second_failure}" = "yes"; then
9863 # If we get the same failure with -b, there is no use adding -b.
9864 # So take it out. This plays safe.
9865 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9866 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9867 CPPFLAGS
="$OLD_CPPFLAGS"
9869 echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6
9872 echo "$as_me:$LINENO: result: yes" >&5
9873 echo "${ECHO_T}yes" >&6
9876 echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6
9881 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9882 # header files included from there.
9883 echo "$as_me:$LINENO: checking for Xkb" >&5
9884 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <X11/Xlib.h>
9892 #include <X11/XKBlib.h>
9896 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9901 rm -f conftest.
$ac_objext conftest
$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9905 grep -v '^ *+' conftest.er1
>conftest.err
9907 cat conftest.err
>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try
='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try
='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.
$ac_ext >&5
9930 rm -f conftest.err conftest.
$ac_objext \
9931 conftest
$ac_exeext conftest.
$ac_ext
9932 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9933 echo "${ECHO_T}$emacs_xkb" >&6
9934 if test $emacs_xkb = yes; then
9936 cat >>confdefs.h
<<\_ACEOF
9937 #define HAVE_XKBGETKEYBOARD 1
9946 for ac_func
in XrmSetDatabase XScreenResourceString \
9947 XScreenNumberOfScreen XSetWMProtocols
9949 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9950 echo "$as_me:$LINENO: checking for $ac_func" >&5
9951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9952 if eval "test \"\${$as_ac_var+set}\" = set"; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.
$ac_ext <<_ACEOF
9958 cat confdefs.h
>>conftest.
$ac_ext
9959 cat >>conftest.
$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9963 #define $ac_func innocuous_$ac_func
9965 /* System header to define __stub macros and hopefully few prototypes,
9966 which can conflict with char $ac_func (); below.
9967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9968 <limits.h> exists even on freestanding compilers. */
9971 # include <limits.h>
9973 # include <assert.h>
9978 /* Override any gcc2 internal prototype to avoid an error. */
9983 /* We use char because int might match the return type of a gcc2
9984 builtin and then its argument prototype would still apply. */
9986 /* The GNU C library defines this for functions which it implements
9987 to always fail with ENOSYS. Some functions are actually named
9988 something starting with __ and the normal name is an alias. */
9989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9992 char (*f) () = $ac_func;
10001 return f != $ac_func;
10006 rm -f conftest.
$ac_objext conftest
$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>conftest.er1
10010 grep -v '^ *+' conftest.er1
>conftest.err
10012 cat conftest.err
>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try
='test -z "$ac_c_werror_flag"
10016 || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try
='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 eval "$as_ac_var=yes"
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.
$ac_ext >&5
10033 eval "$as_ac_var=no"
10035 rm -f conftest.err conftest.
$ac_objext \
10036 conftest
$ac_exeext conftest.
$ac_ext
10038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10040 if test `eval echo '${'$as_ac_var'}'` = yes; then
10041 cat >>confdefs.h
<<_ACEOF
10042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10050 if test "${window_system}" = "x11"; then
10051 echo "$as_me:$LINENO: checking X11 version 6" >&5
10052 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10053 if test "${emacs_cv_x11_version_6+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 cat >conftest.
$ac_ext <<_ACEOF
10059 cat confdefs.h
>>conftest.
$ac_ext
10060 cat >>conftest.
$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 #include <X11/Xlib.h>
10066 #if XlibSpecificationRelease < 6
10074 rm -f conftest.
$ac_objext conftest
$ac_exeext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10076 (eval $ac_link) 2>conftest.er1
10078 grep -v '^ *+' conftest.er1
>conftest.err
10080 cat conftest.err
>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try
='test -z "$ac_c_werror_flag"
10084 || test ! -s conftest.err'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try
='test -s conftest$ac_exeext'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 emacs_cv_x11_version_6
=yes
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.
$ac_ext >&5
10101 emacs_cv_x11_version_6
=no
10103 rm -f conftest.err conftest.
$ac_objext \
10104 conftest
$ac_exeext conftest.
$ac_ext
10107 if test $emacs_cv_x11_version_6 = yes; then
10108 echo "$as_me:$LINENO: result: 6 or newer" >&5
10109 echo "${ECHO_T}6 or newer" >&6
10111 cat >>confdefs.h
<<\_ACEOF
10112 #define HAVE_X11R6 1
10116 echo "$as_me:$LINENO: result: before 6" >&5
10117 echo "${ECHO_T}before 6" >&6
10121 if test "${window_system}" = "x11"; then
10122 echo "$as_me:$LINENO: checking X11 version 5" >&5
10123 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10124 if test "${emacs_cv_x11_version_5+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 cat >conftest.
$ac_ext <<_ACEOF
10130 cat confdefs.h
>>conftest.
$ac_ext
10131 cat >>conftest.
$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <X11/Xlib.h>
10137 #if XlibSpecificationRelease < 5
10145 rm -f conftest.
$ac_objext conftest
$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10149 grep -v '^ *+' conftest.er1
>conftest.err
10151 cat conftest.err
>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try
='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try
='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 emacs_cv_x11_version_5
=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.
$ac_ext >&5
10172 emacs_cv_x11_version_5
=no
10174 rm -f conftest.err conftest.
$ac_objext \
10175 conftest
$ac_exeext conftest.
$ac_ext
10178 if test $emacs_cv_x11_version_5 = yes; then
10179 echo "$as_me:$LINENO: result: 5 or newer" >&5
10180 echo "${ECHO_T}5 or newer" >&6
10183 cat >>confdefs.h
<<\_ACEOF
10184 #define HAVE_X11R5 1
10189 echo "$as_me:$LINENO: result: before 5" >&5
10190 echo "${ECHO_T}before 5" >&6
10197 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10198 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10199 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10200 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10201 { (exit 1); exit 1; }; };
10203 GLIB_REQUIRED
=2.0.1
10205 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10207 if test "X${with_pkg_config_prog}" != X
; then
10208 PKG_CONFIG
="${with_pkg_config_prog}"
10213 if test -z "$PKG_CONFIG"; then
10214 # Extract the first word of "pkg-config", so it can be a program name with args.
10215 set dummy pkg-config
; ac_word
=$2
10216 echo "$as_me:$LINENO: checking for $ac_word" >&5
10217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 case $PKG_CONFIG in
10223 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10227 for as_dir
in $PATH
10230 test -z "$as_dir" && as_dir
=.
10231 for ac_exec_ext
in '' $ac_executable_extensions; do
10232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10244 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10246 if test -n "$PKG_CONFIG"; then
10247 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10248 echo "${ECHO_T}$PKG_CONFIG" >&6
10250 echo "$as_me:$LINENO: result: no" >&5
10251 echo "${ECHO_T}no" >&6
10256 if test "$PKG_CONFIG" = "no" ; then
10257 echo "*** The pkg-config script could not be found. Make sure it is"
10258 echo "*** in your path, or give the full path to pkg-config with"
10259 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10260 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10262 PKG_CONFIG_MIN_VERSION
=0.9.0
10263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10264 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10265 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10267 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10268 echo "$as_me:$LINENO: result: yes" >&5
10269 echo "${ECHO_T}yes" >&6
10272 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10273 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10274 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10275 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10276 echo "${ECHO_T}$GTK_CFLAGS" >&6
10278 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10279 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10280 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10281 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10282 echo "${ECHO_T}$GTK_LIBS" >&6
10286 ## If we have a custom action on failure, don't print errors, but
10287 ## do set a variable so people can do so.
10288 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10289 echo $GTK_PKG_ERRORS
10295 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10296 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10300 if test $succeeded = yes; then
10303 { { 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
10304 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;}
10305 { (exit 1); exit 1; }; }
10310 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10311 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10312 LIBS
="$GTK_LIBS $LIBS"
10315 cat >>confdefs.h
<<\_ACEOF
10321 if test "$with_toolkit_scroll_bars" != no
; then
10322 with_toolkit_scroll_bars
=yes
10325 HAVE_GTK_MULTIDISPLAY
=no
10327 for ac_func
in gdk_display_open
10329 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10330 echo "$as_me:$LINENO: checking for $ac_func" >&5
10331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10332 if eval "test \"\${$as_ac_var+set}\" = set"; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 cat >conftest.
$ac_ext <<_ACEOF
10338 cat confdefs.h
>>conftest.
$ac_ext
10339 cat >>conftest.
$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10343 #define $ac_func innocuous_$ac_func
10345 /* System header to define __stub macros and hopefully few prototypes,
10346 which can conflict with char $ac_func (); below.
10347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348 <limits.h> exists even on freestanding compilers. */
10351 # include <limits.h>
10353 # include <assert.h>
10358 /* Override any gcc2 internal prototype to avoid an error. */
10363 /* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10366 /* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372 char (*f) () = $ac_func;
10381 return f != $ac_func;
10386 rm -f conftest.
$ac_objext conftest
$ac_exeext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388 (eval $ac_link) 2>conftest.er1
10390 grep -v '^ *+' conftest.er1
>conftest.err
10392 cat conftest.err
>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try
='test -z "$ac_c_werror_flag"
10396 || test ! -s conftest.err'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; } &&
10402 { ac_try
='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.
$ac_ext >&5
10413 eval "$as_ac_var=no"
10415 rm -f conftest.err conftest.
$ac_objext \
10416 conftest
$ac_exeext conftest.
$ac_ext
10418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10420 if test `eval echo '${'$as_ac_var'}'` = yes; then
10421 cat >>confdefs.h
<<_ACEOF
10422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10424 HAVE_GTK_MULTIDISPLAY
=yes
10428 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10430 cat >>confdefs.h
<<\_ACEOF
10431 #define HAVE_GTK_MULTIDISPLAY 1
10435 HAVE_GTK_FILE_SELECTION
=no
10437 for ac_func
in gtk_file_selection_new
10439 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10440 echo "$as_me:$LINENO: checking for $ac_func" >&5
10441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10442 if eval "test \"\${$as_ac_var+set}\" = set"; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 cat >conftest.
$ac_ext <<_ACEOF
10448 cat confdefs.h
>>conftest.
$ac_ext
10449 cat >>conftest.
$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10453 #define $ac_func innocuous_$ac_func
10455 /* System header to define __stub macros and hopefully few prototypes,
10456 which can conflict with char $ac_func (); below.
10457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10458 <limits.h> exists even on freestanding compilers. */
10461 # include <limits.h>
10463 # include <assert.h>
10468 /* Override any gcc2 internal prototype to avoid an error. */
10473 /* We use char because int might match the return type of a gcc2
10474 builtin and then its argument prototype would still apply. */
10476 /* The GNU C library defines this for functions which it implements
10477 to always fail with ENOSYS. Some functions are actually named
10478 something starting with __ and the normal name is an alias. */
10479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10482 char (*f) () = $ac_func;
10491 return f != $ac_func;
10496 rm -f conftest.
$ac_objext conftest
$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10500 grep -v '^ *+' conftest.er1
>conftest.err
10502 cat conftest.err
>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try
='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try
='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 eval "$as_ac_var=yes"
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.
$ac_ext >&5
10523 eval "$as_ac_var=no"
10525 rm -f conftest.err conftest.
$ac_objext \
10526 conftest
$ac_exeext conftest.
$ac_ext
10528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10530 if test `eval echo '${'$as_ac_var'}'` = yes; then
10531 cat >>confdefs.h
<<_ACEOF
10532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10534 HAVE_GTK_FILE_SELECTION
=yes
10539 HAVE_GTK_FILE_CHOOSER
=no
10541 for ac_func
in gtk_file_chooser_dialog_new
10543 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10544 echo "$as_me:$LINENO: checking for $ac_func" >&5
10545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10546 if eval "test \"\${$as_ac_var+set}\" = set"; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 cat >conftest.
$ac_ext <<_ACEOF
10552 cat confdefs.h
>>conftest.
$ac_ext
10553 cat >>conftest.
$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10557 #define $ac_func innocuous_$ac_func
10559 /* System header to define __stub macros and hopefully few prototypes,
10560 which can conflict with char $ac_func (); below.
10561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562 <limits.h> exists even on freestanding compilers. */
10565 # include <limits.h>
10567 # include <assert.h>
10572 /* Override any gcc2 internal prototype to avoid an error. */
10577 /* We use char because int might match the return type of a gcc2
10578 builtin and then its argument prototype would still apply. */
10580 /* The GNU C library defines this for functions which it implements
10581 to always fail with ENOSYS. Some functions are actually named
10582 something starting with __ and the normal name is an alias. */
10583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10586 char (*f) () = $ac_func;
10595 return f != $ac_func;
10600 rm -f conftest.
$ac_objext conftest
$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>conftest.er1
10604 grep -v '^ *+' conftest.er1
>conftest.err
10606 cat conftest.err
>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try
='test -z "$ac_c_werror_flag"
10610 || test ! -s conftest.err'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try
='test -s conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 eval "$as_ac_var=yes"
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.
$ac_ext >&5
10627 eval "$as_ac_var=no"
10629 rm -f conftest.err conftest.
$ac_objext \
10630 conftest
$ac_exeext conftest.
$ac_ext
10632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10634 if test `eval echo '${'$as_ac_var'}'` = yes; then
10635 cat >>confdefs.h
<<_ACEOF
10636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 HAVE_GTK_FILE_CHOOSER
=yes
10643 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10644 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10646 cat >>confdefs.h
<<\_ACEOF
10647 #define HAVE_GTK_FILE_BOTH 1
10652 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10653 HAVE_GTK_AND_PTHREAD
=no
10655 for ac_header
in pthread.h
10657 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10659 echo "$as_me:$LINENO: checking for $ac_header" >&5
10660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10667 # Is the header compilable?
10668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10670 cat >conftest.
$ac_ext <<_ACEOF
10673 cat confdefs.h
>>conftest.
$ac_ext
10674 cat >>conftest.
$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 $ac_includes_default
10677 #include <$ac_header>
10679 rm -f conftest.
$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>conftest.er1
10683 grep -v '^ *+' conftest.er1
>conftest.err
10685 cat conftest.err
>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try
='test -z "$ac_c_werror_flag"
10689 || test ! -s conftest.err'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try
='test -s conftest.$ac_objext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_header_compiler
=yes
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.
$ac_ext >&5
10706 ac_header_compiler
=no
10708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10710 echo "${ECHO_T}$ac_header_compiler" >&6
10712 # Is the header present?
10713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10715 cat >conftest.
$ac_ext <<_ACEOF
10718 cat confdefs.h
>>conftest.
$ac_ext
10719 cat >>conftest.
$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 #include <$ac_header>
10723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10726 grep -v '^ *+' conftest.er1
>conftest.err
10728 cat conftest.err
>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } >/dev
/null
; then
10731 if test -s conftest.err
; then
10732 ac_cpp_err
=$ac_c_preproc_warn_flag
10733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10740 if test -z "$ac_cpp_err"; then
10741 ac_header_preproc
=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.
$ac_ext >&5
10746 ac_header_preproc
=no
10748 rm -f conftest.err conftest.
$ac_ext
10749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10750 echo "${ECHO_T}$ac_header_preproc" >&6
10752 # So? What about this header?
10753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10759 ac_header_preproc
=yes
10762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10776 ## ------------------------------------------ ##
10777 ## Report this to the AC_PACKAGE_NAME lists. ##
10778 ## ------------------------------------------ ##
10781 sed "s/^/$as_me: WARNING: /" >&2
10784 echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 eval "$as_ac_Header=\$ac_header_preproc"
10791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10796 cat >>confdefs.h
<<_ACEOF
10797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10804 if test "$ac_cv_header_pthread_h"; then
10805 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10806 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10807 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 ac_check_lib_save_LIBS
=$LIBS
10811 LIBS
="-lpthread $LIBS"
10812 cat >conftest.
$ac_ext <<_ACEOF
10815 cat confdefs.h
>>conftest.
$ac_ext
10816 cat >>conftest.
$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10819 /* Override any gcc2 internal prototype to avoid an error. */
10823 /* We use char because int might match the return type of a gcc2
10824 builtin and then its argument prototype would still apply. */
10825 char pthread_self ();
10834 rm -f conftest.
$ac_objext conftest
$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>conftest.er1
10838 grep -v '^ *+' conftest.er1
>conftest.err
10840 cat conftest.err
>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try
='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try
='test -s conftest$ac_exeext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 ac_cv_lib_pthread_pthread_self
=yes
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.
$ac_ext >&5
10861 ac_cv_lib_pthread_pthread_self
=no
10863 rm -f conftest.err conftest.
$ac_objext \
10864 conftest
$ac_exeext conftest.
$ac_ext
10865 LIBS
=$ac_check_lib_save_LIBS
10867 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10868 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10869 if test $ac_cv_lib_pthread_pthread_self = yes; then
10870 HAVE_GTK_AND_PTHREAD
=yes
10874 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10875 GTK_LIBS
="$GTK_LIBS -lpthread"
10877 cat >>confdefs.h
<<\_ACEOF
10878 #define HAVE_GTK_AND_PTHREAD 1
10885 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10886 if test x
"${HAVE_X11R5}" = xyes
; then
10887 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10888 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10889 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 cat >conftest.
$ac_ext <<_ACEOF
10895 cat confdefs.h
>>conftest.
$ac_ext
10896 cat >>conftest.
$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10899 #include <X11/Intrinsic.h>
10900 #include <X11/Xaw/Simple.h>
10909 rm -f conftest.
$ac_objext conftest
$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>conftest.er1
10913 grep -v '^ *+' conftest.er1
>conftest.err
10915 cat conftest.err
>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try
='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try
='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 emacs_cv_x11_version_5_with_xaw
=yes
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.
$ac_ext >&5
10936 emacs_cv_x11_version_5_with_xaw
=no
10938 rm -f conftest.err conftest.
$ac_objext \
10939 conftest
$ac_exeext conftest.
$ac_ext
10942 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10943 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10944 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10945 USE_X_TOOLKIT
=LUCID
10947 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10948 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10956 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10958 if test "${USE_X_TOOLKIT}" != "none"; then
10959 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10960 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10961 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 cat >conftest.
$ac_ext <<_ACEOF
10967 cat confdefs.h
>>conftest.
$ac_ext
10968 cat >>conftest.
$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <X11/Intrinsic.h>
10974 #if XtSpecificationRelease < 6
10982 rm -f conftest.
$ac_objext conftest
$ac_exeext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984 (eval $ac_link) 2>conftest.er1
10986 grep -v '^ *+' conftest.er1
>conftest.err
10988 cat conftest.err
>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try
='test -z "$ac_c_werror_flag"
10992 || test ! -s conftest.err'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try
='test -s conftest$ac_exeext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 emacs_cv_x11_toolkit_version_6
=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.
$ac_ext >&5
11009 emacs_cv_x11_toolkit_version_6
=no
11011 rm -f conftest.err conftest.
$ac_objext \
11012 conftest
$ac_exeext conftest.
$ac_ext
11015 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11016 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11017 echo "$as_me:$LINENO: result: 6 or newer" >&5
11018 echo "${ECHO_T}6 or newer" >&6
11020 cat >>confdefs.h
<<\_ACEOF
11021 #define HAVE_X11XTR6 1
11025 echo "$as_me:$LINENO: result: before 6" >&5
11026 echo "${ECHO_T}before 6" >&6
11030 if test x
$HAVE_X11XTR6 = xyes
; then
11031 LIBS
="-lXt -lSM -lICE $LIBS"
11036 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11037 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11038 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 ac_check_lib_save_LIBS
=$LIBS
11043 cat >conftest.
$ac_ext <<_ACEOF
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 /* Override any gcc2 internal prototype to avoid an error. */
11054 /* We use char because int might match the return type of a gcc2
11055 builtin and then its argument prototype would still apply. */
11056 char XmuConvertStandardSelection ();
11060 XmuConvertStandardSelection ();
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 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.
$ac_ext >&5
11092 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11094 rm -f conftest.err conftest.
$ac_objext \
11095 conftest
$ac_exeext conftest.
$ac_ext
11096 LIBS
=$ac_check_lib_save_LIBS
11098 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11099 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11100 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11101 cat >>confdefs.h
<<_ACEOF
11102 #define HAVE_LIBXMU 1
11109 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11112 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11113 if test "${HAVE_X11}" = "yes"; then
11114 if test "${USE_X_TOOLKIT}" != "none"; then
11116 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11117 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11118 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 ac_check_lib_save_LIBS
=$LIBS
11122 LIBS
="-lXext $LIBS"
11123 cat >conftest.
$ac_ext <<_ACEOF
11126 cat confdefs.h
>>conftest.
$ac_ext
11127 cat >>conftest.
$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11130 /* Override any gcc2 internal prototype to avoid an error. */
11134 /* We use char because int might match the return type of a gcc2
11135 builtin and then its argument prototype would still apply. */
11136 char XShapeQueryExtension ();
11140 XShapeQueryExtension ();
11145 rm -f conftest.
$ac_objext conftest
$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>conftest.er1
11149 grep -v '^ *+' conftest.er1
>conftest.err
11151 cat conftest.err
>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try
='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try
='test -s conftest$ac_exeext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.
$ac_ext >&5
11172 ac_cv_lib_Xext_XShapeQueryExtension
=no
11174 rm -f conftest.err conftest.
$ac_objext \
11175 conftest
$ac_exeext conftest.
$ac_ext
11176 LIBS
=$ac_check_lib_save_LIBS
11178 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11179 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11180 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11181 cat >>confdefs.h
<<_ACEOF
11182 #define HAVE_LIBXEXT 1
11185 LIBS
="-lXext $LIBS"
11192 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11193 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11194 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11195 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 cat >conftest.
$ac_ext <<_ACEOF
11201 cat confdefs.h
>>conftest.
$ac_ext
11202 cat >>conftest.
$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11208 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11211 Motif version prior to 2.1.
11217 rm -f conftest.
$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11221 grep -v '^ *+' conftest.er1
>conftest.err
11223 cat conftest.err
>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try
='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try
='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 emacs_cv_motif_version_2_1
=yes
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.
$ac_ext >&5
11244 emacs_cv_motif_version_2_1
=no
11246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11248 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11249 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11250 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11251 if test $emacs_cv_motif_version_2_1 = yes; then
11254 cat >>confdefs.h
<<\_ACEOF
11255 #define HAVE_MOTIF_2_1 1
11258 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11259 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11260 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 ac_check_lib_save_LIBS
=$LIBS
11265 cat >conftest.
$ac_ext <<_ACEOF
11268 cat confdefs.h
>>conftest.
$ac_ext
11269 cat >>conftest.
$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11272 /* Override any gcc2 internal prototype to avoid an error. */
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278 char XpCreateContext ();
11282 XpCreateContext ();
11287 rm -f conftest.
$ac_objext conftest
$ac_exeext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>conftest.er1
11291 grep -v '^ *+' conftest.er1
>conftest.err
11293 cat conftest.err
>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try
='test -z "$ac_c_werror_flag"
11297 || test ! -s conftest.err'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try
='test -s conftest$ac_exeext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_cv_lib_Xp_XpCreateContext
=yes
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.
$ac_ext >&5
11314 ac_cv_lib_Xp_XpCreateContext
=no
11316 rm -f conftest.err conftest.
$ac_objext \
11317 conftest
$ac_exeext conftest.
$ac_ext
11318 LIBS
=$ac_check_lib_save_LIBS
11320 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11321 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11322 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11326 if test ${HAVE_LIBXP} = yes; then
11328 cat >>confdefs.h
<<\_ACEOF
11329 #define HAVE_LIBXP 1
11334 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11335 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11336 if test "${emacs_cv_lesstif+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 # We put this in CFLAGS temporarily to precede other -I options
11340 # that might be in CFLAGS temporarily.
11341 # We put this in CPPFLAGS where it precedes the other -I options.
11342 OLD_CPPFLAGS
=$CPPFLAGS
11344 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11345 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11346 cat >conftest.
$ac_ext <<_ACEOF
11349 cat confdefs.h
>>conftest.
$ac_ext
11350 cat >>conftest.
$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11361 rm -f conftest.
$ac_objext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>conftest.er1
11365 grep -v '^ *+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try
='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try
='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 emacs_cv_lesstif
=yes
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.
$ac_ext >&5
11388 emacs_cv_lesstif
=no
11390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11392 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11393 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11394 if test $emacs_cv_lesstif = yes; then
11395 # Make sure this -I option remains in CPPFLAGS after it is set
11396 # back to REAL_CPPFLAGS.
11397 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11398 # have those other -I options anyway. Ultimately, having this
11399 # directory ultimately in CPPFLAGS will be enough.
11400 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11401 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11404 CPPFLAGS
=$OLD_CPPFLAGS
11409 ### Is -lXaw3d available?
11411 if test "${HAVE_X11}" = "yes"; then
11412 if test "${USE_X_TOOLKIT}" != "none"; then
11413 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11414 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11415 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 cat >conftest.
$ac_ext <<_ACEOF
11421 cat confdefs.h
>>conftest.
$ac_ext
11422 cat >>conftest.
$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <X11/Xaw3d/Scrollbar.h>
11426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11427 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11429 grep -v '^ *+' conftest.er1
>conftest.err
11431 cat conftest.err
>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } >/dev
/null
; then
11434 if test -s conftest.err
; then
11435 ac_cpp_err
=$ac_c_preproc_warn_flag
11436 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11443 if test -z "$ac_cpp_err"; then
11444 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.
$ac_ext >&5
11449 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11451 rm -f conftest.err conftest.
$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11454 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11455 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11456 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11457 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11458 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 ac_check_lib_save_LIBS
=$LIBS
11462 LIBS
="-lXaw3d $LIBS"
11463 cat >conftest.
$ac_ext <<_ACEOF
11466 cat confdefs.h
>>conftest.
$ac_ext
11467 cat >>conftest.
$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 /* Override any gcc2 internal prototype to avoid an error. */
11474 /* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11476 char XawScrollbarSetThumb ();
11480 XawScrollbarSetThumb ();
11485 rm -f conftest.
$ac_objext conftest
$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>conftest.er1
11489 grep -v '^ *+' conftest.er1
>conftest.err
11491 cat conftest.err
>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try
='test -z "$ac_c_werror_flag"
11495 || test ! -s conftest.err'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try
='test -s conftest$ac_exeext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.
$ac_ext >&5
11512 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11514 rm -f conftest.err conftest.
$ac_objext \
11515 conftest
$ac_exeext conftest.
$ac_ext
11516 LIBS
=$ac_check_lib_save_LIBS
11518 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11519 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11520 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11527 if test "${HAVE_XAW3D}" = "yes"; then
11529 cat >>confdefs.h
<<\_ACEOF
11530 #define HAVE_XAW3D 1
11539 USE_TOOLKIT_SCROLL_BARS
=no
11540 if test "${with_toolkit_scroll_bars}" != "no"; then
11541 if test "${USE_X_TOOLKIT}" != "none"; then
11542 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11543 cat >>confdefs.h
<<\_ACEOF
11544 #define USE_TOOLKIT_SCROLL_BARS 1
11548 USE_TOOLKIT_SCROLL_BARS
=yes
11549 elif test "${HAVE_XAW3D}" = "yes"; then
11550 cat >>confdefs.h
<<\_ACEOF
11551 #define USE_TOOLKIT_SCROLL_BARS 1
11554 USE_TOOLKIT_SCROLL_BARS
=yes
11556 elif test "${HAVE_GTK}" = "yes"; then
11557 cat >>confdefs.h
<<\_ACEOF
11558 #define USE_TOOLKIT_SCROLL_BARS 1
11561 USE_TOOLKIT_SCROLL_BARS
=yes
11562 elif test "${HAVE_CARBON}" = "yes"; then
11563 cat >>confdefs.h
<<\_ACEOF
11564 #define USE_TOOLKIT_SCROLL_BARS 1
11567 USE_TOOLKIT_SCROLL_BARS
=yes
11571 cat >conftest.
$ac_ext <<_ACEOF
11574 cat confdefs.h
>>conftest.
$ac_ext
11575 cat >>conftest.
$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11578 #include <X11/Xlib.h>
11579 #include <X11/Xresource.h>
11588 rm -f conftest.
$ac_objext
11589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>conftest.er1
11592 grep -v '^ *+' conftest.er1
>conftest.err
11594 cat conftest.err
>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try
='test -z "$ac_c_werror_flag"
11598 || test ! -s conftest.err'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try
='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11612 cat >>confdefs.h
<<\_ACEOF
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.
$ac_ext >&5
11622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11625 if test "${with_xim}" != "no"; then
11627 cat >>confdefs.h
<<\_ACEOF
11634 if test "${HAVE_XIM}" != "no"; then
11635 late_CFLAGS
=$CFLAGS
11636 if test "$GCC" = yes; then
11637 CFLAGS
="$CFLAGS --pedantic-errors"
11639 cat >conftest.
$ac_ext <<_ACEOF
11642 cat confdefs.h
>>conftest.
$ac_ext
11643 cat >>conftest.
$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11646 #include <X11/Xlib.h>
11647 #include <X11/Xresource.h>
11656 XPointer *client_data;
11658 /* If we're not using GCC, it's probably not XFree86, and this is
11659 probably right, but we can't use something like --pedantic-errors. */
11660 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11661 char*, XIMProc, XPointer*);
11663 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11669 rm -f conftest.
$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>conftest.er1
11673 grep -v '^ *+' conftest.er1
>conftest.err
11675 cat conftest.err
>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try
='test -z "$ac_c_werror_flag"
11679 || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try
='test -s conftest.$ac_objext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 emacs_cv_arg6_star
=yes
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.
$ac_ext >&5
11697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11699 if test "$emacs_cv_arg6_star" = yes; then
11700 cat >>confdefs.h
<<\_ACEOF
11701 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11705 cat >>confdefs.h
<<\_ACEOF
11706 #define XRegisterIMInstantiateCallback_arg6 XPointer
11710 CFLAGS
=$late_CFLAGS
11713 ### Use -lXpm if available, unless `--with-xpm=no'.
11715 if test "${HAVE_X11}" = "yes"; then
11716 if test "${with_xpm}" != "no"; then
11717 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11718 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11719 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11724 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11726 # Is the header compilable?
11727 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11728 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11729 cat >conftest.
$ac_ext <<_ACEOF
11732 cat confdefs.h
>>conftest.
$ac_ext
11733 cat >>conftest.
$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 $ac_includes_default
11736 #include <X11/xpm.h>
11738 rm -f conftest.
$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11742 grep -v '^ *+' conftest.er1
>conftest.err
11744 cat conftest.err
>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try
='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
11760 ac_header_compiler
=yes
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.
$ac_ext >&5
11765 ac_header_compiler
=no
11767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11769 echo "${ECHO_T}$ac_header_compiler" >&6
11771 # Is the header present?
11772 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11773 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11774 cat >conftest.
$ac_ext <<_ACEOF
11777 cat confdefs.h
>>conftest.
$ac_ext
11778 cat >>conftest.
$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 #include <X11/xpm.h>
11782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11783 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11785 grep -v '^ *+' conftest.er1
>conftest.err
11787 cat conftest.err
>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } >/dev
/null
; then
11790 if test -s conftest.err
; then
11791 ac_cpp_err
=$ac_c_preproc_warn_flag
11792 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11799 if test -z "$ac_cpp_err"; then
11800 ac_header_preproc
=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.
$ac_ext >&5
11805 ac_header_preproc
=no
11807 rm -f conftest.err conftest.
$ac_ext
11808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809 echo "${ECHO_T}$ac_header_preproc" >&6
11811 # So? What about this header?
11812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11815 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11817 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11818 ac_header_preproc
=yes
11821 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11822 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11824 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11826 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11828 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11830 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11832 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11835 ## ------------------------------------------ ##
11836 ## Report this to the AC_PACKAGE_NAME lists. ##
11837 ## ------------------------------------------ ##
11840 sed "s/^/$as_me: WARNING: /" >&2
11843 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11844 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11845 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11850 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11851 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11854 if test $ac_cv_header_X11_xpm_h = yes; then
11855 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11856 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11857 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 ac_check_lib_save_LIBS
=$LIBS
11861 LIBS
="-lXpm -lX11 $LIBS"
11862 cat >conftest.
$ac_ext <<_ACEOF
11865 cat confdefs.h
>>conftest.
$ac_ext
11866 cat >>conftest.
$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11869 /* Override any gcc2 internal prototype to avoid an error. */
11873 /* We use char because int might match the return type of a gcc2
11874 builtin and then its argument prototype would still apply. */
11875 char XpmReadFileToPixmap ();
11879 XpmReadFileToPixmap ();
11884 rm -f conftest.
$ac_objext conftest
$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>conftest.er1
11888 grep -v '^ *+' conftest.er1
>conftest.err
11890 cat conftest.err
>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try
='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try
='test -s conftest$ac_exeext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.
$ac_ext >&5
11911 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11913 rm -f conftest.err conftest.
$ac_objext \
11914 conftest
$ac_exeext conftest.
$ac_ext
11915 LIBS
=$ac_check_lib_save_LIBS
11917 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11918 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11919 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11926 if test "${HAVE_XPM}" = "yes"; then
11927 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11928 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11929 cat >conftest.
$ac_ext <<_ACEOF
11932 cat confdefs.h
>>conftest.
$ac_ext
11933 cat >>conftest.
$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include "X11/xpm.h"
11936 #ifndef XpmReturnAllocPixels
11937 no_return_alloc_pixels
11941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11942 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11950 if test "${HAVE_XPM}" = "yes"; then
11951 echo "$as_me:$LINENO: result: yes" >&5
11952 echo "${ECHO_T}yes" >&6
11954 echo "$as_me:$LINENO: result: no" >&5
11955 echo "${ECHO_T}no" >&6
11960 if test "${HAVE_XPM}" = "yes"; then
11962 cat >>confdefs.h
<<\_ACEOF
11969 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11971 if test "${HAVE_X11}" = "yes"; then
11972 if test "${with_jpeg}" != "no"; then
11973 if test "${ac_cv_header_jerror_h+set}" = set; then
11974 echo "$as_me:$LINENO: checking for jerror.h" >&5
11975 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11976 if test "${ac_cv_header_jerror_h+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11980 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11982 # Is the header compilable?
11983 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11984 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11985 cat >conftest.
$ac_ext <<_ACEOF
11988 cat confdefs.h
>>conftest.
$ac_ext
11989 cat >>conftest.
$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 $ac_includes_default
11992 #include <jerror.h>
11994 rm -f conftest.
$ac_objext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11996 (eval $ac_compile) 2>conftest.er1
11998 grep -v '^ *+' conftest.er1
>conftest.err
12000 cat conftest.err
>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try
='test -z "$ac_c_werror_flag"
12004 || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try
='test -s conftest.$ac_objext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_header_compiler
=yes
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.
$ac_ext >&5
12021 ac_header_compiler
=no
12023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12025 echo "${ECHO_T}$ac_header_compiler" >&6
12027 # Is the header present?
12028 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12029 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12030 cat >conftest.
$ac_ext <<_ACEOF
12033 cat confdefs.h
>>conftest.
$ac_ext
12034 cat >>conftest.
$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 #include <jerror.h>
12038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12039 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12041 grep -v '^ *+' conftest.er1
>conftest.err
12043 cat conftest.err
>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } >/dev
/null
; then
12046 if test -s conftest.err
; then
12047 ac_cpp_err
=$ac_c_preproc_warn_flag
12048 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12055 if test -z "$ac_cpp_err"; then
12056 ac_header_preproc
=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.
$ac_ext >&5
12061 ac_header_preproc
=no
12063 rm -f conftest.err conftest.
$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12065 echo "${ECHO_T}$ac_header_preproc" >&6
12067 # So? What about this header?
12068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12070 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12071 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12073 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12074 ac_header_preproc
=yes
12077 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12078 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12080 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12082 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12084 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12086 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12088 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12091 ## ------------------------------------------ ##
12092 ## Report this to the AC_PACKAGE_NAME lists. ##
12093 ## ------------------------------------------ ##
12096 sed "s/^/$as_me: WARNING: /" >&2
12099 echo "$as_me:$LINENO: checking for jerror.h" >&5
12100 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12101 if test "${ac_cv_header_jerror_h+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 ac_cv_header_jerror_h
=$ac_header_preproc
12106 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12107 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12110 if test $ac_cv_header_jerror_h = yes; then
12111 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12112 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12113 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 ac_check_lib_save_LIBS
=$LIBS
12117 LIBS
="-ljpeg $LIBS"
12118 cat >conftest.
$ac_ext <<_ACEOF
12121 cat confdefs.h
>>conftest.
$ac_ext
12122 cat >>conftest.
$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12125 /* Override any gcc2 internal prototype to avoid an error. */
12129 /* We use char because int might match the return type of a gcc2
12130 builtin and then its argument prototype would still apply. */
12131 char jpeg_destroy_compress ();
12135 jpeg_destroy_compress ();
12140 rm -f conftest.
$ac_objext conftest
$ac_exeext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142 (eval $ac_link) 2>conftest.er1
12144 grep -v '^ *+' conftest.er1
>conftest.err
12146 cat conftest.err
>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try
='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try
='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.
$ac_ext >&5
12167 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12169 rm -f conftest.err conftest.
$ac_objext \
12170 conftest
$ac_exeext conftest.
$ac_ext
12171 LIBS
=$ac_check_lib_save_LIBS
12173 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12174 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12175 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12185 if test "${HAVE_JPEG}" = "yes"; then
12186 cat >>confdefs.h
<<\_ACEOF
12187 #define HAVE_JPEG 1
12190 cat >conftest.
$ac_ext <<_ACEOF
12193 cat confdefs.h
>>conftest.
$ac_ext
12194 cat >>conftest.
$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <jpeglib.h>
12197 version=JPEG_LIB_VERSION
12200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12201 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12202 cat >>confdefs.h
<<\_ACEOF
12203 #define HAVE_JPEG 1
12207 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12208 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12216 ### Use -lpng if available, unless `--with-png=no'.
12218 if test "${HAVE_X11}" = "yes"; then
12219 if test "${with_png}" != "no"; then
12220 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12221 # in /usr/include/libpng.
12224 for ac_header
in png.h libpng
/png.h
12226 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12228 echo "$as_me:$LINENO: checking for $ac_header" >&5
12229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12236 # Is the header compilable?
12237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12239 cat >conftest.
$ac_ext <<_ACEOF
12242 cat confdefs.h
>>conftest.
$ac_ext
12243 cat >>conftest.
$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 $ac_includes_default
12246 #include <$ac_header>
12248 rm -f conftest.
$ac_objext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1
>conftest.err
12254 cat conftest.err
>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try
='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try
='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_header_compiler
=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.
$ac_ext >&5
12275 ac_header_compiler
=no
12277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279 echo "${ECHO_T}$ac_header_compiler" >&6
12281 # Is the header present?
12282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <$ac_header>
12292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12293 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12295 grep -v '^ *+' conftest.er1
>conftest.err
12297 cat conftest.err
>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev
/null
; then
12300 if test -s conftest.err
; then
12301 ac_cpp_err
=$ac_c_preproc_warn_flag
12302 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12309 if test -z "$ac_cpp_err"; then
12310 ac_header_preproc
=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.
$ac_ext >&5
12315 ac_header_preproc
=no
12317 rm -f conftest.err conftest.
$ac_ext
12318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12319 echo "${ECHO_T}$ac_header_preproc" >&6
12321 # So? What about this header?
12322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12328 ac_header_preproc
=yes
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12345 ## ------------------------------------------ ##
12346 ## Report this to the AC_PACKAGE_NAME lists. ##
12347 ## ------------------------------------------ ##
12350 sed "s/^/$as_me: WARNING: /" >&2
12353 echo "$as_me:$LINENO: checking for $ac_header" >&5
12354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 eval "$as_ac_Header=\$ac_header_preproc"
12360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12365 cat >>confdefs.h
<<_ACEOF
12366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12373 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12374 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12375 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12376 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 ac_check_lib_save_LIBS
=$LIBS
12380 LIBS
="-lpng -lz -lm $LIBS"
12381 cat >conftest.
$ac_ext <<_ACEOF
12384 cat confdefs.h
>>conftest.
$ac_ext
12385 cat >>conftest.
$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char png_get_channels ();
12398 png_get_channels ();
12403 rm -f conftest.
$ac_objext conftest
$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12407 grep -v '^ *+' conftest.er1
>conftest.err
12409 cat conftest.err
>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try
='test -z "$ac_c_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try
='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_lib_png_png_get_channels
=yes
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.
$ac_ext >&5
12430 ac_cv_lib_png_png_get_channels
=no
12432 rm -f conftest.err conftest.
$ac_objext \
12433 conftest
$ac_exeext conftest.
$ac_ext
12434 LIBS
=$ac_check_lib_save_LIBS
12436 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12437 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12438 if test $ac_cv_lib_png_png_get_channels = yes; then
12445 if test "${HAVE_PNG}" = "yes"; then
12447 cat >>confdefs.h
<<\_ACEOF
12454 ### Use -ltiff if available, unless `--with-tiff=no'.
12456 if test "${HAVE_X11}" = "yes"; then
12457 if test "${with_tiff}" != "no"; then
12458 if test "${ac_cv_header_tiffio_h+set}" = set; then
12459 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12460 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12461 if test "${ac_cv_header_tiffio_h+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12465 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12467 # Is the header compilable?
12468 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12469 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12470 cat >conftest.
$ac_ext <<_ACEOF
12473 cat confdefs.h
>>conftest.
$ac_ext
12474 cat >>conftest.
$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 $ac_includes_default
12477 #include <tiffio.h>
12479 rm -f conftest.
$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>conftest.er1
12483 grep -v '^ *+' conftest.er1
>conftest.err
12485 cat conftest.err
>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try
='test -z "$ac_c_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try
='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_header_compiler
=yes
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.
$ac_ext >&5
12506 ac_header_compiler
=no
12508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12510 echo "${ECHO_T}$ac_header_compiler" >&6
12512 # Is the header present?
12513 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12514 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12515 cat >conftest.
$ac_ext <<_ACEOF
12518 cat confdefs.h
>>conftest.
$ac_ext
12519 cat >>conftest.
$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 #include <tiffio.h>
12523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12524 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12526 grep -v '^ *+' conftest.er1
>conftest.err
12528 cat conftest.err
>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } >/dev
/null
; then
12531 if test -s conftest.err
; then
12532 ac_cpp_err
=$ac_c_preproc_warn_flag
12533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12540 if test -z "$ac_cpp_err"; then
12541 ac_header_preproc
=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.
$ac_ext >&5
12546 ac_header_preproc
=no
12548 rm -f conftest.err conftest.
$ac_ext
12549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12550 echo "${ECHO_T}$ac_header_preproc" >&6
12552 # So? What about this header?
12553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12555 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12556 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12558 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12559 ac_header_preproc
=yes
12562 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12563 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12565 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12566 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12567 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12569 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12571 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12573 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12576 ## ------------------------------------------ ##
12577 ## Report this to the AC_PACKAGE_NAME lists. ##
12578 ## ------------------------------------------ ##
12581 sed "s/^/$as_me: WARNING: /" >&2
12584 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12585 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12586 if test "${ac_cv_header_tiffio_h+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 ac_cv_header_tiffio_h
=$ac_header_preproc
12591 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12592 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12595 if test $ac_cv_header_tiffio_h = yes; then
12597 # At least one tiff package requires the jpeg library.
12598 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12599 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12600 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12601 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 ac_check_lib_save_LIBS
=$LIBS
12605 LIBS
="-ltiff $tifflibs $LIBS"
12606 cat >conftest.
$ac_ext <<_ACEOF
12609 cat confdefs.h
>>conftest.
$ac_ext
12610 cat >>conftest.
$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 /* Override any gcc2 internal prototype to avoid an error. */
12617 /* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12619 char TIFFGetVersion ();
12628 rm -f conftest.
$ac_objext conftest
$ac_exeext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630 (eval $ac_link) 2>conftest.er1
12632 grep -v '^ *+' conftest.er1
>conftest.err
12634 cat conftest.err
>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try
='test -z "$ac_c_werror_flag"
12638 || test ! -s conftest.err'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try
='test -s conftest$ac_exeext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_lib_tiff_TIFFGetVersion
=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.
$ac_ext >&5
12655 ac_cv_lib_tiff_TIFFGetVersion
=no
12657 rm -f conftest.err conftest.
$ac_objext \
12658 conftest
$ac_exeext conftest.
$ac_ext
12659 LIBS
=$ac_check_lib_save_LIBS
12661 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12662 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12663 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12672 if test "${HAVE_TIFF}" = "yes"; then
12674 cat >>confdefs.h
<<\_ACEOF
12675 #define HAVE_TIFF 1
12681 ### Use -lgif if available, unless `--with-gif=no'.
12683 if test "${HAVE_X11}" = "yes"; then
12684 if test "${with_gif}" != "no"; then
12685 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12686 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12687 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12692 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12694 # Is the header compilable?
12695 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12696 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12697 cat >conftest.
$ac_ext <<_ACEOF
12700 cat confdefs.h
>>conftest.
$ac_ext
12701 cat >>conftest.
$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 $ac_includes_default
12704 #include <gif_lib.h>
12706 rm -f conftest.
$ac_objext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12710 grep -v '^ *+' conftest.er1
>conftest.err
12712 cat conftest.err
>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try
='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try
='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_header_compiler
=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.
$ac_ext >&5
12733 ac_header_compiler
=no
12735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12737 echo "${ECHO_T}$ac_header_compiler" >&6
12739 # Is the header present?
12740 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12741 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12742 cat >conftest.
$ac_ext <<_ACEOF
12745 cat confdefs.h
>>conftest.
$ac_ext
12746 cat >>conftest.
$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12748 #include <gif_lib.h>
12750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12753 grep -v '^ *+' conftest.er1
>conftest.err
12755 cat conftest.err
>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } >/dev
/null
; then
12758 if test -s conftest.err
; then
12759 ac_cpp_err
=$ac_c_preproc_warn_flag
12760 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12767 if test -z "$ac_cpp_err"; then
12768 ac_header_preproc
=yes
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.
$ac_ext >&5
12773 ac_header_preproc
=no
12775 rm -f conftest.err conftest.
$ac_ext
12776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12777 echo "${ECHO_T}$ac_header_preproc" >&6
12779 # So? What about this header?
12780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12783 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12785 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12786 ac_header_preproc
=yes
12789 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12790 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12792 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12794 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12796 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12798 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12800 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12803 ## ------------------------------------------ ##
12804 ## Report this to the AC_PACKAGE_NAME lists. ##
12805 ## ------------------------------------------ ##
12808 sed "s/^/$as_me: WARNING: /" >&2
12811 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12812 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12813 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 ac_cv_header_gif_lib_h
=$ac_header_preproc
12818 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12819 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12822 if test $ac_cv_header_gif_lib_h = yes; then
12823 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12824 # Earlier versions can crash Emacs.
12825 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12826 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12827 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 ac_check_lib_save_LIBS
=$LIBS
12831 LIBS
="-lungif $LIBS"
12832 cat >conftest.
$ac_ext <<_ACEOF
12835 cat confdefs.h
>>conftest.
$ac_ext
12836 cat >>conftest.
$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12839 /* Override any gcc2 internal prototype to avoid an error. */
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char EGifPutExtensionLast ();
12849 EGifPutExtensionLast ();
12854 rm -f conftest.
$ac_objext conftest
$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>conftest.er1
12858 grep -v '^ *+' conftest.er1
>conftest.err
12860 cat conftest.err
>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try
='test -z "$ac_c_werror_flag"
12864 || test ! -s conftest.err'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try
='test -s conftest$ac_exeext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.
$ac_ext >&5
12881 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12883 rm -f conftest.err conftest.
$ac_objext \
12884 conftest
$ac_exeext conftest.
$ac_ext
12885 LIBS
=$ac_check_lib_save_LIBS
12887 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12888 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12889 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12898 if test "${HAVE_GIF}" = "yes"; then
12900 cat >>confdefs.h
<<\_ACEOF
12907 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12908 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12909 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12910 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12914 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12916 # Is the header compilable?
12917 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12918 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12919 cat >conftest.
$ac_ext <<_ACEOF
12922 cat confdefs.h
>>conftest.
$ac_ext
12923 cat >>conftest.
$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12926 #include <malloc/malloc.h>
12928 rm -f conftest.
$ac_objext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>conftest.er1
12932 grep -v '^ *+' conftest.er1
>conftest.err
12934 cat conftest.err
>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try
='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try
='test -s conftest.$ac_objext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_header_compiler
=yes
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.
$ac_ext >&5
12955 ac_header_compiler
=no
12957 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12959 echo "${ECHO_T}$ac_header_compiler" >&6
12961 # Is the header present?
12962 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12963 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12964 cat >conftest.
$ac_ext <<_ACEOF
12967 cat confdefs.h
>>conftest.
$ac_ext
12968 cat >>conftest.
$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <malloc/malloc.h>
12972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12973 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12975 grep -v '^ *+' conftest.er1
>conftest.err
12977 cat conftest.err
>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } >/dev
/null
; then
12980 if test -s conftest.err
; then
12981 ac_cpp_err
=$ac_c_preproc_warn_flag
12982 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12989 if test -z "$ac_cpp_err"; then
12990 ac_header_preproc
=yes
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.
$ac_ext >&5
12995 ac_header_preproc
=no
12997 rm -f conftest.err conftest.
$ac_ext
12998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12999 echo "${ECHO_T}$ac_header_preproc" >&6
13001 # So? What about this header?
13002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13004 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13005 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13007 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13008 ac_header_preproc
=yes
13011 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13012 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13014 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13016 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13018 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13020 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13021 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13022 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13025 ## ------------------------------------------ ##
13026 ## Report this to the AC_PACKAGE_NAME lists. ##
13027 ## ------------------------------------------ ##
13030 sed "s/^/$as_me: WARNING: /" >&2
13033 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13034 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13035 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13040 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13041 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13044 if test $ac_cv_header_malloc_malloc_h = yes; then
13046 cat >>confdefs.h
<<\_ACEOF
13047 #define HAVE_MALLOC_MALLOC_H 1
13054 ### Use Mac OS X Carbon API to implement GUI.
13055 if test "${HAVE_CARBON}" = "yes"; then
13057 cat >>confdefs.h
<<\_ACEOF
13058 #define HAVE_CARBON 1
13061 ## Specify the install directory
13063 if test "${carbon_appdir_x}" != ""; then
13064 case ${carbon_appdir_x} in
13065 y | ye |
yes) carbon_appdir
=/Applications
;;
13066 * ) carbon_appdir
=${carbon_appdir_x} ;;
13069 # We also have mouse menus.
13072 tmp_CFLAGS
="$CFLAGS"
13073 CFLAGS
="$CFLAGS -framework Carbon"
13074 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13075 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13076 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 cat >conftest.
$ac_ext <<_ACEOF
13082 cat confdefs.h
>>conftest.
$ac_ext
13083 cat >>conftest.
$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13087 #define CancelMenuTracking innocuous_CancelMenuTracking
13089 /* System header to define __stub macros and hopefully few prototypes,
13090 which can conflict with char CancelMenuTracking (); below.
13091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13092 <limits.h> exists even on freestanding compilers. */
13095 # include <limits.h>
13097 # include <assert.h>
13100 #undef CancelMenuTracking
13102 /* Override any gcc2 internal prototype to avoid an error. */
13107 /* We use char because int might match the return type of a gcc2
13108 builtin and then its argument prototype would still apply. */
13109 char CancelMenuTracking ();
13110 /* The GNU C library defines this for functions which it implements
13111 to always fail with ENOSYS. Some functions are actually named
13112 something starting with __ and the normal name is an alias. */
13113 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13116 char (*f) () = CancelMenuTracking;
13125 return f != CancelMenuTracking;
13130 rm -f conftest.
$ac_objext conftest
$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>conftest.er1
13134 grep -v '^ *+' conftest.er1
>conftest.err
13136 cat conftest.err
>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try
='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try
='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_func_CancelMenuTracking
=yes
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.
$ac_ext >&5
13157 ac_cv_func_CancelMenuTracking
=no
13159 rm -f conftest.err conftest.
$ac_objext \
13160 conftest
$ac_exeext conftest.
$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13163 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13164 if test $ac_cv_func_CancelMenuTracking = yes; then
13170 if test "$have_cmt" = yes; then
13172 cat >>confdefs.h
<<\_ACEOF
13173 #define HAVE_CANCELMENUTRACKING 1
13177 CFLAGS
="$tmp_CFLAGS"
13180 ### Use session management (-lSM -lICE) if available
13182 if test "${HAVE_X11}" = "yes"; then
13183 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13184 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13185 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13186 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13190 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13192 # Is the header compilable?
13193 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13194 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13195 cat >conftest.
$ac_ext <<_ACEOF
13198 cat confdefs.h
>>conftest.
$ac_ext
13199 cat >>conftest.
$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 $ac_includes_default
13202 #include <X11/SM/SMlib.h>
13204 rm -f conftest.
$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>conftest.er1
13208 grep -v '^ *+' conftest.er1
>conftest.err
13210 cat conftest.err
>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try
='test -z "$ac_c_werror_flag"
13214 || test ! -s conftest.err'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try
='test -s conftest.$ac_objext'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_header_compiler
=yes
13228 echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.
$ac_ext >&5
13231 ac_header_compiler
=no
13233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13235 echo "${ECHO_T}$ac_header_compiler" >&6
13237 # Is the header present?
13238 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13239 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13240 cat >conftest.
$ac_ext <<_ACEOF
13243 cat confdefs.h
>>conftest.
$ac_ext
13244 cat >>conftest.
$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <X11/SM/SMlib.h>
13248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13249 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13251 grep -v '^ *+' conftest.er1
>conftest.err
13253 cat conftest.err
>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } >/dev
/null
; then
13256 if test -s conftest.err
; then
13257 ac_cpp_err
=$ac_c_preproc_warn_flag
13258 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13265 if test -z "$ac_cpp_err"; then
13266 ac_header_preproc
=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 ac_header_preproc
=no
13273 rm -f conftest.err conftest.
$ac_ext
13274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13275 echo "${ECHO_T}$ac_header_preproc" >&6
13277 # So? What about this header?
13278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13280 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13281 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13283 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13284 ac_header_preproc
=yes
13287 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13288 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13290 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13292 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13294 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13296 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13298 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13301 ## ------------------------------------------ ##
13302 ## Report this to the AC_PACKAGE_NAME lists. ##
13303 ## ------------------------------------------ ##
13306 sed "s/^/$as_me: WARNING: /" >&2
13309 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13310 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13316 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13317 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13320 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13321 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13322 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13323 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 ac_check_lib_save_LIBS
=$LIBS
13327 LIBS
="-lSM -lICE $LIBS"
13328 cat >conftest.
$ac_ext <<_ACEOF
13331 cat confdefs.h
>>conftest.
$ac_ext
13332 cat >>conftest.
$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13335 /* Override any gcc2 internal prototype to avoid an error. */
13339 /* We use char because int might match the return type of a gcc2
13340 builtin and then its argument prototype would still apply. */
13341 char SmcOpenConnection ();
13345 SmcOpenConnection ();
13350 rm -f conftest.
$ac_objext conftest
$ac_exeext
13351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13352 (eval $ac_link) 2>conftest.er1
13354 grep -v '^ *+' conftest.er1
>conftest.err
13356 cat conftest.err
>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try
='test -z "$ac_c_werror_flag"
13360 || test ! -s conftest.err'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try
='test -s conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_cv_lib_SM_SmcOpenConnection
=yes
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.
$ac_ext >&5
13377 ac_cv_lib_SM_SmcOpenConnection
=no
13379 rm -f conftest.err conftest.
$ac_objext \
13380 conftest
$ac_exeext conftest.
$ac_ext
13381 LIBS
=$ac_check_lib_save_LIBS
13383 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13384 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13385 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13393 if test "${HAVE_X_SM}" = "yes"; then
13395 cat >>confdefs.h
<<\_ACEOF
13396 #define HAVE_X_SM 1
13401 *) LIBS
="-lSM -lICE $LIBS" ;;
13406 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13407 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13408 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13409 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 cat >conftest.
$ac_ext <<_ACEOF
13415 cat confdefs.h
>>conftest.
$ac_ext
13416 cat >>conftest.
$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13427 rm -f conftest.
$ac_objext conftest
$ac_exeext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13429 (eval $ac_link) 2>conftest.er1
13431 grep -v '^ *+' conftest.er1
>conftest.err
13433 cat conftest.err
>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try
='test -z "$ac_c_werror_flag"
13437 || test ! -s conftest.err'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; } &&
13443 { ac_try
='test -s conftest$ac_exeext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 emacs_cv_netdb_declares_h_errno
=yes
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.
$ac_ext >&5
13454 emacs_cv_netdb_declares_h_errno
=no
13456 rm -f conftest.err conftest.
$ac_objext \
13457 conftest
$ac_exeext conftest.
$ac_ext
13459 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13460 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13461 if test $emacs_cv_netdb_declares_h_errno = yes; then
13463 cat >>confdefs.h
<<\_ACEOF
13464 #define HAVE_H_ERRNO 1
13469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13470 # for constant arguments. Useless!
13471 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13472 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13473 if test "${ac_cv_working_alloca_h+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 cat >conftest.
$ac_ext <<_ACEOF
13479 cat confdefs.h
>>conftest.
$ac_ext
13480 cat >>conftest.
$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <alloca.h>
13486 char *p = (char *) alloca (2 * sizeof (int));
13491 rm -f conftest.
$ac_objext conftest
$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>conftest.er1
13495 grep -v '^ *+' conftest.er1
>conftest.err
13497 cat conftest.err
>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try
='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try
='test -s conftest$ac_exeext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_cv_working_alloca_h
=yes
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.
$ac_ext >&5
13518 ac_cv_working_alloca_h
=no
13520 rm -f conftest.err conftest.
$ac_objext \
13521 conftest
$ac_exeext conftest.
$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13524 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13525 if test $ac_cv_working_alloca_h = yes; then
13527 cat >>confdefs.h
<<\_ACEOF
13528 #define HAVE_ALLOCA_H 1
13533 echo "$as_me:$LINENO: checking for alloca" >&5
13534 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13535 if test "${ac_cv_func_alloca_works+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 cat >conftest.
$ac_ext <<_ACEOF
13541 cat confdefs.h
>>conftest.
$ac_ext
13542 cat >>conftest.
$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 # define alloca __builtin_alloca
13548 # include <malloc.h>
13549 # define alloca _alloca
13552 # include <alloca.h>
13557 # ifndef alloca /* predefined by HP cc +Olibcalls */
13568 char *p = (char *) alloca (1);
13573 rm -f conftest.
$ac_objext conftest
$ac_exeext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13575 (eval $ac_link) 2>conftest.er1
13577 grep -v '^ *+' conftest.er1
>conftest.err
13579 cat conftest.err
>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try
='test -z "$ac_c_werror_flag"
13583 || test ! -s conftest.err'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; } &&
13589 { ac_try
='test -s conftest$ac_exeext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_func_alloca_works
=yes
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.
$ac_ext >&5
13600 ac_cv_func_alloca_works
=no
13602 rm -f conftest.err conftest.
$ac_objext \
13603 conftest
$ac_exeext conftest.
$ac_ext
13605 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13606 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13608 if test $ac_cv_func_alloca_works = yes; then
13610 cat >>confdefs.h
<<\_ACEOF
13611 #define HAVE_ALLOCA 1
13615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13616 # that cause trouble. Some versions do not even contain alloca or
13617 # contain a buggy version. If you still want to use their alloca,
13618 # use ar to extract alloca.o from them instead of compiling alloca.c.
13620 ALLOCA
=alloca.
$ac_objext
13622 cat >>confdefs.h
<<\_ACEOF
13627 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13628 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13629 if test "${ac_cv_os_cray+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 cat >conftest.
$ac_ext <<_ACEOF
13635 cat confdefs.h
>>conftest.
$ac_ext
13636 cat >>conftest.
$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 #if defined(CRAY) && ! defined(CRAY2)
13645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13646 $EGREP "webecray" >/dev
/null
2>&1; then
13654 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13655 echo "${ECHO_T}$ac_cv_os_cray" >&6
13656 if test $ac_cv_os_cray = yes; then
13657 for ac_func
in _getb67 GETB67 getb67
; do
13658 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13659 echo "$as_me:$LINENO: checking for $ac_func" >&5
13660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13661 if eval "test \"\${$as_ac_var+set}\" = set"; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 cat >conftest.
$ac_ext <<_ACEOF
13667 cat confdefs.h
>>conftest.
$ac_ext
13668 cat >>conftest.
$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13672 #define $ac_func innocuous_$ac_func
13674 /* System header to define __stub macros and hopefully few prototypes,
13675 which can conflict with char $ac_func (); below.
13676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13677 <limits.h> exists even on freestanding compilers. */
13680 # include <limits.h>
13682 # include <assert.h>
13687 /* Override any gcc2 internal prototype to avoid an error. */
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13695 /* The GNU C library defines this for functions which it implements
13696 to always fail with ENOSYS. Some functions are actually named
13697 something starting with __ and the normal name is an alias. */
13698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13701 char (*f) () = $ac_func;
13710 return f != $ac_func;
13715 rm -f conftest.
$ac_objext conftest
$ac_exeext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>conftest.er1
13719 grep -v '^ *+' conftest.er1
>conftest.err
13721 cat conftest.err
>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try
='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try
='test -s conftest$ac_exeext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 eval "$as_ac_var=yes"
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.
$ac_ext >&5
13742 eval "$as_ac_var=no"
13744 rm -f conftest.err conftest.
$ac_objext \
13745 conftest
$ac_exeext conftest.
$ac_ext
13747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13749 if test `eval echo '${'$as_ac_var'}'` = yes; then
13751 cat >>confdefs.h
<<_ACEOF
13752 #define CRAY_STACKSEG_END $ac_func
13761 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13762 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13763 if test "${ac_cv_c_stack_direction+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 if test "$cross_compiling" = yes; then
13767 ac_cv_c_stack_direction
=0
13769 cat >conftest.
$ac_ext <<_ACEOF
13772 cat confdefs.h
>>conftest.
$ac_ext
13773 cat >>conftest.
$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 find_stack_direction ()
13778 static char *addr = 0;
13783 return find_stack_direction ();
13786 return (&dummy > addr) ? 1 : -1;
13792 exit (find_stack_direction () < 0);
13795 rm -f conftest
$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797 (eval $ac_link) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_c_stack_direction
=1
13808 echo "$as_me: program exited with status $ac_status" >&5
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.
$ac_ext >&5
13812 ( exit $ac_status )
13813 ac_cv_c_stack_direction
=-1
13815 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13819 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13821 cat >>confdefs.h
<<_ACEOF
13822 #define STACK_DIRECTION $ac_cv_c_stack_direction
13829 # fmod, logb, and frexp are found in -lm on most systems.
13830 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13832 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13833 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13834 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 ac_check_lib_save_LIBS
=$LIBS
13839 cat >conftest.
$ac_ext <<_ACEOF
13842 cat confdefs.h
>>conftest.
$ac_ext
13843 cat >>conftest.
$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13846 /* Override any gcc2 internal prototype to avoid an error. */
13850 /* We use char because int might match the return type of a gcc2
13851 builtin and then its argument prototype would still apply. */
13861 rm -f conftest.
$ac_objext conftest
$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 (eval $ac_link) 2>conftest.er1
13865 grep -v '^ *+' conftest.er1
>conftest.err
13867 cat conftest.err
>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try
='test -z "$ac_c_werror_flag"
13871 || test ! -s conftest.err'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try
='test -s conftest$ac_exeext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 ac_cv_lib_m_sqrt
=yes
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.
$ac_ext >&5
13888 ac_cv_lib_m_sqrt
=no
13890 rm -f conftest.err conftest.
$ac_objext \
13891 conftest
$ac_exeext conftest.
$ac_ext
13892 LIBS
=$ac_check_lib_save_LIBS
13894 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13895 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13896 if test $ac_cv_lib_m_sqrt = yes; then
13897 cat >>confdefs.h
<<_ACEOF
13898 #define HAVE_LIBM 1
13906 # Check for mail-locking functions in a "mail" library. Probably this should
13907 # have the same check as for liblockfile below.
13909 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13910 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13911 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 ac_check_lib_save_LIBS
=$LIBS
13915 LIBS
="-lmail $LIBS"
13916 cat >conftest.
$ac_ext <<_ACEOF
13919 cat confdefs.h
>>conftest.
$ac_ext
13920 cat >>conftest.
$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13923 /* Override any gcc2 internal prototype to avoid an error. */
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13938 rm -f conftest.
$ac_objext conftest
$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>conftest.er1
13942 grep -v '^ *+' conftest.er1
>conftest.err
13944 cat conftest.err
>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try
='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try
='test -s conftest$ac_exeext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_lib_mail_maillock
=yes
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.
$ac_ext >&5
13965 ac_cv_lib_mail_maillock
=no
13967 rm -f conftest.err conftest.
$ac_objext \
13968 conftest
$ac_exeext conftest.
$ac_ext
13969 LIBS
=$ac_check_lib_save_LIBS
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13972 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13973 if test $ac_cv_lib_mail_maillock = yes; then
13974 cat >>confdefs.h
<<_ACEOF
13975 #define HAVE_LIBMAIL 1
13978 LIBS
="-lmail $LIBS"
13983 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13984 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13985 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 ac_check_lib_save_LIBS
=$LIBS
13989 LIBS
="-llockfile $LIBS"
13990 cat >conftest.
$ac_ext <<_ACEOF
13993 cat confdefs.h
>>conftest.
$ac_ext
13994 cat >>conftest.
$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13997 /* Override any gcc2 internal prototype to avoid an error. */
14001 /* We use char because int might match the return type of a gcc2
14002 builtin and then its argument prototype would still apply. */
14012 rm -f conftest.
$ac_objext conftest
$ac_exeext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14014 (eval $ac_link) 2>conftest.er1
14016 grep -v '^ *+' conftest.er1
>conftest.err
14018 cat conftest.err
>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try
='test -z "$ac_c_werror_flag"
14022 || test ! -s conftest.err'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; } &&
14028 { ac_try
='test -s conftest$ac_exeext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_lib_lockfile_maillock
=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.
$ac_ext >&5
14039 ac_cv_lib_lockfile_maillock
=no
14041 rm -f conftest.err conftest.
$ac_objext \
14042 conftest
$ac_exeext conftest.
$ac_ext
14043 LIBS
=$ac_check_lib_save_LIBS
14045 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14046 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14047 if test $ac_cv_lib_lockfile_maillock = yes; then
14048 cat >>confdefs.h
<<_ACEOF
14049 #define HAVE_LIBLOCKFILE 1
14052 LIBS
="-llockfile $LIBS"
14056 # If we have the shared liblockfile, assume we must use it for mail
14057 # locking (e.g. Debian). If we couldn't link against liblockfile
14058 # (no liblockfile.a installed), ensure that we don't need to.
14059 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14060 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14061 set dummy liblockfile.so
; ac_word
=$2
14062 echo "$as_me:$LINENO: checking for $ac_word" >&5
14063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14064 if test "${ac_cv_prog_liblockfile+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 if test -n "$liblockfile"; then
14068 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14071 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14072 for as_dir
in $as_dummy
14075 test -z "$as_dir" && as_dir
=.
14076 for ac_exec_ext
in '' $ac_executable_extensions; do
14077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078 ac_cv_prog_liblockfile
="yes"
14079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14088 liblockfile
=$ac_cv_prog_liblockfile
14089 if test -n "$liblockfile"; then
14090 echo "$as_me:$LINENO: result: $liblockfile" >&5
14091 echo "${ECHO_T}$liblockfile" >&6
14093 echo "$as_me:$LINENO: result: no" >&5
14094 echo "${ECHO_T}no" >&6
14097 if test $ac_cv_prog_liblockfile = yes; then
14098 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14099 This probably means that movemail could lose mail.
14100 There may be a \`development' package to install containing liblockfile." >&5
14101 echo "$as_me: error: Shared liblockfile found but can't link against it.
14102 This probably means that movemail could lose mail.
14103 There may be a \`development' package to install containing liblockfile." >&2;}
14104 { (exit 1); exit 1; }; }
14109 for ac_func
in touchlock
14111 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14114 if eval "test \"\${$as_ac_var+set}\" = set"; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.
$ac_ext <<_ACEOF
14120 cat confdefs.h
>>conftest.
$ac_ext
14121 cat >>conftest.
$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14125 #define $ac_func innocuous_$ac_func
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func (); below.
14129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130 <limits.h> exists even on freestanding compilers. */
14133 # include <limits.h>
14135 # include <assert.h>
14140 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14148 /* The GNU C library defines this for functions which it implements
14149 to always fail with ENOSYS. Some functions are actually named
14150 something starting with __ and the normal name is an alias. */
14151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14154 char (*f) () = $ac_func;
14163 return f != $ac_func;
14168 rm -f conftest.
$ac_objext conftest
$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>conftest.er1
14172 grep -v '^ *+' conftest.er1
>conftest.err
14174 cat conftest.err
>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try
='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try
='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.
$ac_ext >&5
14195 eval "$as_ac_var=no"
14197 rm -f conftest.err conftest.
$ac_objext \
14198 conftest
$ac_exeext conftest.
$ac_ext
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14202 if test `eval echo '${'$as_ac_var'}'` = yes; then
14203 cat >>confdefs.h
<<_ACEOF
14204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14211 for ac_header
in maillock.h
14213 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14215 echo "$as_me:$LINENO: checking for $ac_header" >&5
14216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223 # Is the header compilable?
14224 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14226 cat >conftest.
$ac_ext <<_ACEOF
14229 cat confdefs.h
>>conftest.
$ac_ext
14230 cat >>conftest.
$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14233 #include <$ac_header>
14235 rm -f conftest.
$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>conftest.er1
14239 grep -v '^ *+' conftest.er1
>conftest.err
14241 cat conftest.err
>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try
='test -z "$ac_c_werror_flag"
14245 || test ! -s conftest.err'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try
='test -s conftest.$ac_objext'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14257 ac_header_compiler
=yes
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.
$ac_ext >&5
14262 ac_header_compiler
=no
14264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14266 echo "${ECHO_T}$ac_header_compiler" >&6
14268 # Is the header present?
14269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14271 cat >conftest.
$ac_ext <<_ACEOF
14274 cat confdefs.h
>>conftest.
$ac_ext
14275 cat >>conftest.
$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <$ac_header>
14279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14280 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14282 grep -v '^ *+' conftest.er1
>conftest.err
14284 cat conftest.err
>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } >/dev
/null
; then
14287 if test -s conftest.err
; then
14288 ac_cpp_err
=$ac_c_preproc_warn_flag
14289 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14296 if test -z "$ac_cpp_err"; then
14297 ac_header_preproc
=yes
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.
$ac_ext >&5
14302 ac_header_preproc
=no
14304 rm -f conftest.err conftest.
$ac_ext
14305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14306 echo "${ECHO_T}$ac_header_preproc" >&6
14308 # So? What about this header?
14309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14315 ac_header_preproc
=yes
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14332 ## ------------------------------------------ ##
14333 ## Report this to the AC_PACKAGE_NAME lists. ##
14334 ## ------------------------------------------ ##
14337 sed "s/^/$as_me: WARNING: /" >&2
14340 echo "$as_me:$LINENO: checking for $ac_header" >&5
14341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 eval "$as_ac_Header=\$ac_header_preproc"
14347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14352 cat >>confdefs.h
<<_ACEOF
14353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14429 for ac_func
in gethostname getdomainname dup2 \
14430 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14431 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14432 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14433 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14434 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14435 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14436 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14437 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14439 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14440 echo "$as_me:$LINENO: checking for $ac_func" >&5
14441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14442 if eval "test \"\${$as_ac_var+set}\" = set"; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 cat >conftest.
$ac_ext <<_ACEOF
14448 cat confdefs.h
>>conftest.
$ac_ext
14449 cat >>conftest.
$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14453 #define $ac_func innocuous_$ac_func
14455 /* System header to define __stub macros and hopefully few prototypes,
14456 which can conflict with char $ac_func (); below.
14457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14458 <limits.h> exists even on freestanding compilers. */
14461 # include <limits.h>
14463 # include <assert.h>
14468 /* Override any gcc2 internal prototype to avoid an error. */
14473 /* We use char because int might match the return type of a gcc2
14474 builtin and then its argument prototype would still apply. */
14476 /* The GNU C library defines this for functions which it implements
14477 to always fail with ENOSYS. Some functions are actually named
14478 something starting with __ and the normal name is an alias. */
14479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14482 char (*f) () = $ac_func;
14491 return f != $ac_func;
14496 rm -f conftest.
$ac_objext conftest
$ac_exeext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14498 (eval $ac_link) 2>conftest.er1
14500 grep -v '^ *+' conftest.er1
>conftest.err
14502 cat conftest.err
>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try
='test -z "$ac_c_werror_flag"
14506 || test ! -s conftest.err'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try
='test -s conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 eval "$as_ac_var=yes"
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.
$ac_ext >&5
14523 eval "$as_ac_var=no"
14525 rm -f conftest.err conftest.
$ac_objext \
14526 conftest
$ac_exeext conftest.
$ac_ext
14528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14530 if test `eval echo '${'$as_ac_var'}'` = yes; then
14531 cat >>confdefs.h
<<_ACEOF
14532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14540 for ac_header
in sys
/un.h
14542 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14544 echo "$as_me:$LINENO: checking for $ac_header" >&5
14545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14552 # Is the header compilable?
14553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14555 cat >conftest.
$ac_ext <<_ACEOF
14558 cat confdefs.h
>>conftest.
$ac_ext
14559 cat >>conftest.
$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 $ac_includes_default
14562 #include <$ac_header>
14564 rm -f conftest.
$ac_objext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14566 (eval $ac_compile) 2>conftest.er1
14568 grep -v '^ *+' conftest.er1
>conftest.err
14570 cat conftest.err
>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try
='test -z "$ac_c_werror_flag"
14574 || test ! -s conftest.err'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try
='test -s conftest.$ac_objext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_header_compiler
=yes
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.
$ac_ext >&5
14591 ac_header_compiler
=no
14593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595 echo "${ECHO_T}$ac_header_compiler" >&6
14597 # Is the header present?
14598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14600 cat >conftest.
$ac_ext <<_ACEOF
14603 cat confdefs.h
>>conftest.
$ac_ext
14604 cat >>conftest.
$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <$ac_header>
14608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14609 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14611 grep -v '^ *+' conftest.er1
>conftest.err
14613 cat conftest.err
>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } >/dev
/null
; then
14616 if test -s conftest.err
; then
14617 ac_cpp_err
=$ac_c_preproc_warn_flag
14618 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14625 if test -z "$ac_cpp_err"; then
14626 ac_header_preproc
=yes
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.
$ac_ext >&5
14631 ac_header_preproc
=no
14633 rm -f conftest.err conftest.
$ac_ext
14634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14635 echo "${ECHO_T}$ac_header_preproc" >&6
14637 # So? What about this header?
14638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14644 ac_header_preproc
=yes
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14661 ## ------------------------------------------ ##
14662 ## Report this to the AC_PACKAGE_NAME lists. ##
14663 ## ------------------------------------------ ##
14666 sed "s/^/$as_me: WARNING: /" >&2
14669 echo "$as_me:$LINENO: checking for $ac_header" >&5
14670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 eval "$as_ac_Header=\$ac_header_preproc"
14676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14681 cat >>confdefs.h
<<_ACEOF
14682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14693 for ac_header
in stdlib.h sys
/time.h unistd.h
14695 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14697 echo "$as_me:$LINENO: checking for $ac_header" >&5
14698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14705 # Is the header compilable?
14706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14708 cat >conftest.
$ac_ext <<_ACEOF
14711 cat confdefs.h
>>conftest.
$ac_ext
14712 cat >>conftest.
$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 $ac_includes_default
14715 #include <$ac_header>
14717 rm -f conftest.
$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719 (eval $ac_compile) 2>conftest.er1
14721 grep -v '^ *+' conftest.er1
>conftest.err
14723 cat conftest.err
>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try
='test -z "$ac_c_werror_flag"
14727 || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try
='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_header_compiler
=yes
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.
$ac_ext >&5
14744 ac_header_compiler
=no
14746 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14748 echo "${ECHO_T}$ac_header_compiler" >&6
14750 # Is the header present?
14751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14753 cat >conftest.
$ac_ext <<_ACEOF
14756 cat confdefs.h
>>conftest.
$ac_ext
14757 cat >>conftest.
$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <$ac_header>
14761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14764 grep -v '^ *+' conftest.er1
>conftest.err
14766 cat conftest.err
>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } >/dev
/null
; then
14769 if test -s conftest.err
; then
14770 ac_cpp_err
=$ac_c_preproc_warn_flag
14771 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14778 if test -z "$ac_cpp_err"; then
14779 ac_header_preproc
=yes
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.
$ac_ext >&5
14784 ac_header_preproc
=no
14786 rm -f conftest.err conftest.
$ac_ext
14787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14788 echo "${ECHO_T}$ac_header_preproc" >&6
14790 # So? What about this header?
14791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14797 ac_header_preproc
=yes
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14814 ## ------------------------------------------ ##
14815 ## Report this to the AC_PACKAGE_NAME lists. ##
14816 ## ------------------------------------------ ##
14819 sed "s/^/$as_me: WARNING: /" >&2
14822 echo "$as_me:$LINENO: checking for $ac_header" >&5
14823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 eval "$as_ac_Header=\$ac_header_preproc"
14829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14834 cat >>confdefs.h
<<_ACEOF
14835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14843 for ac_func
in alarm
14845 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14846 echo "$as_me:$LINENO: checking for $ac_func" >&5
14847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_var+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 cat >conftest.
$ac_ext <<_ACEOF
14854 cat confdefs.h
>>conftest.
$ac_ext
14855 cat >>conftest.
$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14859 #define $ac_func innocuous_$ac_func
14861 /* System header to define __stub macros and hopefully few prototypes,
14862 which can conflict with char $ac_func (); below.
14863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14864 <limits.h> exists even on freestanding compilers. */
14867 # include <limits.h>
14869 # include <assert.h>
14874 /* Override any gcc2 internal prototype to avoid an error. */
14879 /* We use char because int might match the return type of a gcc2
14880 builtin and then its argument prototype would still apply. */
14882 /* The GNU C library defines this for functions which it implements
14883 to always fail with ENOSYS. Some functions are actually named
14884 something starting with __ and the normal name is an alias. */
14885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14888 char (*f) () = $ac_func;
14897 return f != $ac_func;
14902 rm -f conftest.
$ac_objext conftest
$ac_exeext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14904 (eval $ac_link) 2>conftest.er1
14906 grep -v '^ *+' conftest.er1
>conftest.err
14908 cat conftest.err
>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try
='test -z "$ac_c_werror_flag"
14912 || test ! -s conftest.err'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try
='test -s conftest$ac_exeext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 eval "$as_ac_var=yes"
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.
$ac_ext >&5
14929 eval "$as_ac_var=no"
14931 rm -f conftest.err conftest.
$ac_objext \
14932 conftest
$ac_exeext conftest.
$ac_ext
14934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14936 if test `eval echo '${'$as_ac_var'}'` = yes; then
14937 cat >>confdefs.h
<<_ACEOF
14938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14944 echo "$as_me:$LINENO: checking for working mktime" >&5
14945 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14946 if test "${ac_cv_func_working_mktime+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 if test "$cross_compiling" = yes; then
14950 ac_cv_func_working_mktime
=no
14952 cat >conftest.
$ac_ext <<_ACEOF
14955 cat confdefs.h
>>conftest.
$ac_ext
14956 cat >>conftest.
$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 /* Test program from Paul Eggert and Tony Leneis. */
14959 #if TIME_WITH_SYS_TIME
14960 # include <sys/time.h>
14963 # if HAVE_SYS_TIME_H
14964 # include <sys/time.h>
14971 # include <stdlib.h>
14975 # include <unistd.h>
14979 # define alarm(X) /* empty */
14982 /* Work around redefinition to rpl_putenv by other config tests. */
14985 static time_t time_t_max;
14986 static time_t time_t_min;
14988 /* Values we'll use to set the TZ environment variable. */
14989 static char *tz_strings[] = {
14990 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14991 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14993 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14995 /* Fail if mktime fails to convert a date in the spring-forward gap.
14996 Based on a problem report from Andreas Jaeger. */
14998 spring_forward_gap ()
15000 /* glibc (up to about 1998-10-07) failed this test. */
15003 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15004 instead of "TZ=America/Vancouver" in order to detect the bug even
15005 on systems that don't support the Olson extension, or don't have the
15006 full zoneinfo tables installed. */
15007 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15016 if (mktime (&tm) == (time_t)-1)
15025 if ((lt = localtime (&now)) && mktime (lt) != now)
15033 mktime_test1 (now);
15034 mktime_test1 ((time_t) (time_t_max - now));
15035 mktime_test1 ((time_t) (time_t_min + now));
15041 /* Based on code from Ariel Faigon. */
15051 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15061 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15062 now = mktime (&tm);
15063 if (now != (time_t) -1)
15065 struct tm *lt = localtime (&now);
15067 && lt->tm_year == tm.tm_year
15068 && lt->tm_mon == tm.tm_mon
15069 && lt->tm_mday == tm.tm_mday
15070 && lt->tm_hour == tm.tm_hour
15071 && lt->tm_min == tm.tm_min
15072 && lt->tm_sec == tm.tm_sec
15073 && lt->tm_yday == tm.tm_yday
15074 && lt->tm_wday == tm.tm_wday
15075 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15076 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15087 /* This test makes some buggy mktime implementations loop.
15088 Give up after 60 seconds; a mktime slower than that
15089 isn't worth using anyway. */
15092 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15095 if ((time_t) -1 < 0)
15096 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15098 delta = time_t_max / 997; /* a suitable prime number */
15099 for (i = 0; i < N_STRINGS; i++)
15102 putenv (tz_strings[i]);
15104 for (t = 0; t <= time_t_max - delta; t += delta)
15106 mktime_test ((time_t) 1);
15107 mktime_test ((time_t) (60 * 60));
15108 mktime_test ((time_t) (60 * 60 * 24));
15110 for (j = 1; 0 < j; j *= 2)
15112 bigtime_test (j - 1);
15115 spring_forward_gap ();
15119 rm -f conftest
$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121 (eval $ac_link) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_cv_func_working_mktime
=yes
15132 echo "$as_me: program exited with status $ac_status" >&5
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.
$ac_ext >&5
15136 ( exit $ac_status )
15137 ac_cv_func_working_mktime
=no
15139 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15142 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15143 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15144 if test $ac_cv_func_working_mktime = no
; then
15146 "mktime.$ac_objext" | \
15147 *" mktime.$ac_objext" | \
15148 "mktime.$ac_objext "* | \
15149 *" mktime.$ac_objext "* ) ;;
15150 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15155 if test "$ac_cv_func_working_mktime" = no
; then
15157 cat >>confdefs.h
<<\_ACEOF
15158 #define BROKEN_MKTIME 1
15163 ac_have_func
=no
# yes means we've found a way to get the load average.
15165 # Make sure getloadavg.c is where it belongs, at configure-time.
15166 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15167 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15168 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15169 { (exit 1); exit 1; }; }
15173 # Check for getloadavg, but be sure not to touch the cache variable.
15174 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15175 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15176 if test "${ac_cv_func_getloadavg+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 cat >conftest.
$ac_ext <<_ACEOF
15182 cat confdefs.h
>>conftest.
$ac_ext
15183 cat >>conftest.
$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15187 #define getloadavg innocuous_getloadavg
15189 /* System header to define __stub macros and hopefully few prototypes,
15190 which can conflict with char getloadavg (); below.
15191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15192 <limits.h> exists even on freestanding compilers. */
15195 # include <limits.h>
15197 # include <assert.h>
15202 /* Override any gcc2 internal prototype to avoid an error. */
15207 /* We use char because int might match the return type of a gcc2
15208 builtin and then its argument prototype would still apply. */
15209 char getloadavg ();
15210 /* The GNU C library defines this for functions which it implements
15211 to always fail with ENOSYS. Some functions are actually named
15212 something starting with __ and the normal name is an alias. */
15213 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15216 char (*f) () = getloadavg;
15225 return f != getloadavg;
15230 rm -f conftest.
$ac_objext conftest
$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232 (eval $ac_link) 2>conftest.er1
15234 grep -v '^ *+' conftest.er1
>conftest.err
15236 cat conftest.err
>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try
='test -z "$ac_c_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try
='test -s conftest$ac_exeext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_cv_func_getloadavg
=yes
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.
$ac_ext >&5
15257 ac_cv_func_getloadavg
=no
15259 rm -f conftest.err conftest.
$ac_objext \
15260 conftest
$ac_exeext conftest.
$ac_ext
15262 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15263 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15264 if test $ac_cv_func_getloadavg = yes; then
15269 ) && ac_have_func
=yes
15271 # On HPUX9, an unprivileged user can get load averages through this function.
15273 for ac_func
in pstat_getdynamic
15275 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_var+set}\" = set"; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 cat >conftest.
$ac_ext <<_ACEOF
15284 cat confdefs.h
>>conftest.
$ac_ext
15285 cat >>conftest.
$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15297 # include <limits.h>
15299 # include <assert.h>
15304 /* Override any gcc2 internal prototype to avoid an error. */
15309 /* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15312 /* The GNU C library defines this for functions which it implements
15313 to always fail with ENOSYS. Some functions are actually named
15314 something starting with __ and the normal name is an alias. */
15315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15318 char (*f) () = $ac_func;
15327 return f != $ac_func;
15332 rm -f conftest.
$ac_objext conftest
$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>conftest.er1
15336 grep -v '^ *+' conftest.er1
>conftest.err
15338 cat conftest.err
>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try
='test -z "$ac_c_werror_flag"
15342 || test ! -s conftest.err'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try
='test -s conftest$ac_exeext'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 eval "$as_ac_var=yes"
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.
$ac_ext >&5
15359 eval "$as_ac_var=no"
15361 rm -f conftest.err conftest.
$ac_objext \
15362 conftest
$ac_exeext conftest.
$ac_ext
15364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15366 if test `eval echo '${'$as_ac_var'}'` = yes; then
15367 cat >>confdefs.h
<<_ACEOF
15368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15375 # Solaris has libkstat which does not require root.
15377 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15378 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15379 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 ac_check_lib_save_LIBS
=$LIBS
15383 LIBS
="-lkstat $LIBS"
15384 cat >conftest.
$ac_ext <<_ACEOF
15387 cat confdefs.h
>>conftest.
$ac_ext
15388 cat >>conftest.
$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15391 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15397 char kstat_open ();
15406 rm -f conftest.
$ac_objext conftest
$ac_exeext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15408 (eval $ac_link) 2>conftest.er1
15410 grep -v '^ *+' conftest.er1
>conftest.err
15412 cat conftest.err
>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try
='test -z "$ac_c_werror_flag"
15416 || test ! -s conftest.err'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try
='test -s conftest$ac_exeext'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_cv_lib_kstat_kstat_open
=yes
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.
$ac_ext >&5
15433 ac_cv_lib_kstat_kstat_open
=no
15435 rm -f conftest.err conftest.
$ac_objext \
15436 conftest
$ac_exeext conftest.
$ac_ext
15437 LIBS
=$ac_check_lib_save_LIBS
15439 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15440 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15441 if test $ac_cv_lib_kstat_kstat_open = yes; then
15442 cat >>confdefs.h
<<_ACEOF
15443 #define HAVE_LIBKSTAT 1
15446 LIBS
="-lkstat $LIBS"
15450 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15452 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15453 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15454 # to get the right answer into the cache.
15455 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15456 if test $ac_have_func = no
; then
15457 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15458 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15459 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 ac_check_lib_save_LIBS
=$LIBS
15464 cat >conftest.
$ac_ext <<_ACEOF
15467 cat confdefs.h
>>conftest.
$ac_ext
15468 cat >>conftest.
$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15471 /* Override any gcc2 internal prototype to avoid an error. */
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15486 rm -f conftest.
$ac_objext conftest
$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15490 grep -v '^ *+' conftest.er1
>conftest.err
15492 cat conftest.err
>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try
='test -z "$ac_c_werror_flag"
15496 || test ! -s conftest.err'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try
='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_cv_lib_elf_elf_begin
=yes
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.
$ac_ext >&5
15513 ac_cv_lib_elf_elf_begin
=no
15515 rm -f conftest.err conftest.
$ac_objext \
15516 conftest
$ac_exeext conftest.
$ac_ext
15517 LIBS
=$ac_check_lib_save_LIBS
15519 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15520 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15521 if test $ac_cv_lib_elf_elf_begin = yes; then
15526 if test $ac_have_func = no
; then
15527 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15528 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15529 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 ac_check_lib_save_LIBS
=$LIBS
15534 cat >conftest.
$ac_ext <<_ACEOF
15537 cat confdefs.h
>>conftest.
$ac_ext
15538 cat >>conftest.
$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any gcc2 internal prototype to avoid an error. */
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15556 rm -f conftest.
$ac_objext conftest
$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>conftest.er1
15560 grep -v '^ *+' conftest.er1
>conftest.err
15562 cat conftest.err
>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try
='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try
='test -s conftest$ac_exeext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_lib_kvm_kvm_open
=yes
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.
$ac_ext >&5
15583 ac_cv_lib_kvm_kvm_open
=no
15585 rm -f conftest.err conftest.
$ac_objext \
15586 conftest
$ac_exeext conftest.
$ac_ext
15587 LIBS
=$ac_check_lib_save_LIBS
15589 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15590 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15591 if test $ac_cv_lib_kvm_kvm_open = yes; then
15595 # Check for the 4.4BSD definition of getloadavg.
15596 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15597 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15598 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_check_lib_save_LIBS
=$LIBS
15602 LIBS
="-lutil $LIBS"
15603 cat >conftest.
$ac_ext <<_ACEOF
15606 cat confdefs.h
>>conftest.
$ac_ext
15607 cat >>conftest.
$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any gcc2 internal prototype to avoid an error. */
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15616 char getloadavg ();
15625 rm -f conftest.
$ac_objext conftest
$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>conftest.er1
15629 grep -v '^ *+' conftest.er1
>conftest.err
15631 cat conftest.err
>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try
='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try
='test -s conftest$ac_exeext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_cv_lib_util_getloadavg
=yes
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.
$ac_ext >&5
15652 ac_cv_lib_util_getloadavg
=no
15654 rm -f conftest.err conftest.
$ac_objext \
15655 conftest
$ac_exeext conftest.
$ac_ext
15656 LIBS
=$ac_check_lib_save_LIBS
15658 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15659 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15660 if test $ac_cv_lib_util_getloadavg = yes; then
15661 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15666 if test $ac_have_func = no
; then
15667 # There is a commonly available library for RS/6000 AIX.
15668 # Since it is not a standard part of AIX, it might be installed locally.
15669 ac_getloadavg_LIBS
=$LIBS
15670 LIBS
="-L/usr/local/lib $LIBS"
15671 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15672 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15673 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 ac_check_lib_save_LIBS
=$LIBS
15677 LIBS
="-lgetloadavg $LIBS"
15678 cat >conftest.
$ac_ext <<_ACEOF
15681 cat confdefs.h
>>conftest.
$ac_ext
15682 cat >>conftest.
$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15685 /* Override any gcc2 internal prototype to avoid an error. */
15689 /* We use char because int might match the return type of a gcc2
15690 builtin and then its argument prototype would still apply. */
15691 char getloadavg ();
15700 rm -f conftest.
$ac_objext conftest
$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15704 grep -v '^ *+' conftest.er1
>conftest.err
15706 cat conftest.err
>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try
='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try
='test -s conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_lib_getloadavg_getloadavg
=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.
$ac_ext >&5
15727 ac_cv_lib_getloadavg_getloadavg
=no
15729 rm -f conftest.err conftest.
$ac_objext \
15730 conftest
$ac_exeext conftest.
$ac_ext
15731 LIBS
=$ac_check_lib_save_LIBS
15733 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15734 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15735 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15736 LIBS
="-lgetloadavg $LIBS"
15738 LIBS
=$ac_getloadavg_LIBS
15743 # Make sure it is really in the library, if we think we found it,
15744 # otherwise set up the replacement function.
15746 for ac_func
in getloadavg
15748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15749 echo "$as_me:$LINENO: checking for $ac_func" >&5
15750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15751 if eval "test \"\${$as_ac_var+set}\" = set"; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 cat >conftest.
$ac_ext <<_ACEOF
15757 cat confdefs.h
>>conftest.
$ac_ext
15758 cat >>conftest.
$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15762 #define $ac_func innocuous_$ac_func
15764 /* System header to define __stub macros and hopefully few prototypes,
15765 which can conflict with char $ac_func (); below.
15766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15767 <limits.h> exists even on freestanding compilers. */
15770 # include <limits.h>
15772 # include <assert.h>
15777 /* Override any gcc2 internal prototype to avoid an error. */
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791 char (*f) () = $ac_func;
15800 return f != $ac_func;
15805 rm -f conftest.
$ac_objext conftest
$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>conftest.er1
15809 grep -v '^ *+' conftest.er1
>conftest.err
15811 cat conftest.err
>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try
='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try
='test -s conftest$ac_exeext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 eval "$as_ac_var=yes"
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.
$ac_ext >&5
15832 eval "$as_ac_var=no"
15834 rm -f conftest.err conftest.
$ac_objext \
15835 conftest
$ac_exeext conftest.
$ac_ext
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840 cat >>confdefs.h
<<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15846 "getloadavg.$ac_objext" | \
15847 *" getloadavg.$ac_objext" | \
15848 "getloadavg.$ac_objext "* | \
15849 *" getloadavg.$ac_objext "* ) ;;
15850 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15854 cat >>confdefs.h
<<\_ACEOF
15855 #define C_GETLOADAVG 1
15858 # Figure out what our getloadavg.c needs.
15860 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15861 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15862 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15863 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15867 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15869 # Is the header compilable?
15870 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15871 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15872 cat >conftest.
$ac_ext <<_ACEOF
15875 cat confdefs.h
>>conftest.
$ac_ext
15876 cat >>conftest.
$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <sys/dg_sys_info.h>
15881 rm -f conftest.
$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15885 grep -v '^ *+' conftest.er1
>conftest.err
15887 cat conftest.err
>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try
='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try
='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_header_compiler
=yes
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.
$ac_ext >&5
15908 ac_header_compiler
=no
15910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15912 echo "${ECHO_T}$ac_header_compiler" >&6
15914 # Is the header present?
15915 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15916 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15917 cat >conftest.
$ac_ext <<_ACEOF
15920 cat confdefs.h
>>conftest.
$ac_ext
15921 cat >>conftest.
$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 #include <sys/dg_sys_info.h>
15925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15926 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15928 grep -v '^ *+' conftest.er1
>conftest.err
15930 cat conftest.err
>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } >/dev
/null
; then
15933 if test -s conftest.err
; then
15934 ac_cpp_err
=$ac_c_preproc_warn_flag
15935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15942 if test -z "$ac_cpp_err"; then
15943 ac_header_preproc
=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.
$ac_ext >&5
15948 ac_header_preproc
=no
15950 rm -f conftest.err conftest.
$ac_ext
15951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15957 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15958 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15960 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc
=yes
15964 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15965 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15967 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15969 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15971 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15973 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15975 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15978 ## ------------------------------------------ ##
15979 ## Report this to the AC_PACKAGE_NAME lists. ##
15980 ## ------------------------------------------ ##
15983 sed "s/^/$as_me: WARNING: /" >&2
15986 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15987 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15988 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15994 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15997 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16000 cat >>confdefs.h
<<\_ACEOF
16005 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16006 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16007 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 ac_check_lib_save_LIBS
=$LIBS
16012 cat >conftest.
$ac_ext <<_ACEOF
16015 cat confdefs.h
>>conftest.
$ac_ext
16016 cat >>conftest.
$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16019 /* Override any gcc2 internal prototype to avoid an error. */
16023 /* We use char because int might match the return type of a gcc2
16024 builtin and then its argument prototype would still apply. */
16025 char dg_sys_info ();
16034 rm -f conftest.
$ac_objext conftest
$ac_exeext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16036 (eval $ac_link) 2>conftest.er1
16038 grep -v '^ *+' conftest.er1
>conftest.err
16040 cat conftest.err
>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try
='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try
='test -s conftest$ac_exeext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_lib_dgc_dg_sys_info
=yes
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.
$ac_ext >&5
16061 ac_cv_lib_dgc_dg_sys_info
=no
16063 rm -f conftest.err conftest.
$ac_objext \
16064 conftest
$ac_exeext conftest.
$ac_ext
16065 LIBS
=$ac_check_lib_save_LIBS
16067 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16068 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16069 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16070 cat >>confdefs.h
<<_ACEOF
16071 #define HAVE_LIBDGC 1
16082 if test "${ac_cv_header_locale_h+set}" = set; then
16083 echo "$as_me:$LINENO: checking for locale.h" >&5
16084 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16085 if test "${ac_cv_header_locale_h+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16089 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16091 # Is the header compilable?
16092 echo "$as_me:$LINENO: checking locale.h usability" >&5
16093 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16094 cat >conftest.
$ac_ext <<_ACEOF
16097 cat confdefs.h
>>conftest.
$ac_ext
16098 cat >>conftest.
$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 $ac_includes_default
16101 #include <locale.h>
16103 rm -f conftest.
$ac_objext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105 (eval $ac_compile) 2>conftest.er1
16107 grep -v '^ *+' conftest.er1
>conftest.err
16109 cat conftest.err
>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try
='test -z "$ac_c_werror_flag"
16113 || test ! -s conftest.err'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try
='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_header_compiler
=yes
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.
$ac_ext >&5
16130 ac_header_compiler
=no
16132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16134 echo "${ECHO_T}$ac_header_compiler" >&6
16136 # Is the header present?
16137 echo "$as_me:$LINENO: checking locale.h presence" >&5
16138 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16139 cat >conftest.
$ac_ext <<_ACEOF
16142 cat confdefs.h
>>conftest.
$ac_ext
16143 cat >>conftest.
$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 #include <locale.h>
16147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16148 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16150 grep -v '^ *+' conftest.er1
>conftest.err
16152 cat conftest.err
>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } >/dev
/null
; then
16155 if test -s conftest.err
; then
16156 ac_cpp_err
=$ac_c_preproc_warn_flag
16157 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16164 if test -z "$ac_cpp_err"; then
16165 ac_header_preproc
=yes
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.
$ac_ext >&5
16170 ac_header_preproc
=no
16172 rm -f conftest.err conftest.
$ac_ext
16173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16174 echo "${ECHO_T}$ac_header_preproc" >&6
16176 # So? What about this header?
16177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16179 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16180 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16182 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16183 ac_header_preproc
=yes
16186 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16187 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16189 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16191 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16193 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16195 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16197 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16200 ## ------------------------------------------ ##
16201 ## Report this to the AC_PACKAGE_NAME lists. ##
16202 ## ------------------------------------------ ##
16205 sed "s/^/$as_me: WARNING: /" >&2
16208 echo "$as_me:$LINENO: checking for locale.h" >&5
16209 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16210 if test "${ac_cv_header_locale_h+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 ac_cv_header_locale_h
=$ac_header_preproc
16215 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16216 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16222 for ac_func
in setlocale
16224 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16225 echo "$as_me:$LINENO: checking for $ac_func" >&5
16226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16227 if eval "test \"\${$as_ac_var+set}\" = set"; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 cat >conftest.
$ac_ext <<_ACEOF
16233 cat confdefs.h
>>conftest.
$ac_ext
16234 cat >>conftest.
$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16238 #define $ac_func innocuous_$ac_func
16240 /* System header to define __stub macros and hopefully few prototypes,
16241 which can conflict with char $ac_func (); below.
16242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16243 <limits.h> exists even on freestanding compilers. */
16246 # include <limits.h>
16248 # include <assert.h>
16253 /* Override any gcc2 internal prototype to avoid an error. */
16258 /* We use char because int might match the return type of a gcc2
16259 builtin and then its argument prototype would still apply. */
16261 /* The GNU C library defines this for functions which it implements
16262 to always fail with ENOSYS. Some functions are actually named
16263 something starting with __ and the normal name is an alias. */
16264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267 char (*f) () = $ac_func;
16276 return f != $ac_func;
16281 rm -f conftest.
$ac_objext conftest
$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>conftest.er1
16285 grep -v '^ *+' conftest.er1
>conftest.err
16287 cat conftest.err
>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
16290 { ac_try
='test -z "$ac_c_werror_flag"
16291 || test ! -s conftest.err'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; } &&
16297 { ac_try
='test -s conftest$ac_exeext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 eval "$as_ac_var=yes"
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.
$ac_ext >&5
16308 eval "$as_ac_var=no"
16310 rm -f conftest.err conftest.
$ac_objext \
16311 conftest
$ac_exeext conftest.
$ac_ext
16313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16315 if test `eval echo '${'$as_ac_var'}'` = yes; then
16316 cat >>confdefs.h
<<_ACEOF
16317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16324 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16325 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16326 # Irix 4.0.5F has the header but not the library.
16327 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16330 cat >>confdefs.h
<<\_ACEOF
16336 if test $ac_have_func = no
; then
16337 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16338 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16339 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16340 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16344 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16346 # Is the header compilable?
16347 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16348 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16349 cat >conftest.
$ac_ext <<_ACEOF
16352 cat confdefs.h
>>conftest.
$ac_ext
16353 cat >>conftest.
$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #include <inq_stats/cpustats.h>
16358 rm -f conftest.
$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>conftest.er1
16362 grep -v '^ *+' conftest.er1
>conftest.err
16364 cat conftest.err
>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try
='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try
='test -s conftest.$ac_objext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_header_compiler
=yes
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.
$ac_ext >&5
16385 ac_header_compiler
=no
16387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16389 echo "${ECHO_T}$ac_header_compiler" >&6
16391 # Is the header present?
16392 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16393 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16394 cat >conftest.
$ac_ext <<_ACEOF
16397 cat confdefs.h
>>conftest.
$ac_ext
16398 cat >>conftest.
$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 #include <inq_stats/cpustats.h>
16402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16405 grep -v '^ *+' conftest.er1
>conftest.err
16407 cat conftest.err
>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } >/dev
/null
; then
16410 if test -s conftest.err
; then
16411 ac_cpp_err
=$ac_c_preproc_warn_flag
16412 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16419 if test -z "$ac_cpp_err"; then
16420 ac_header_preproc
=yes
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.
$ac_ext >&5
16425 ac_header_preproc
=no
16427 rm -f conftest.err conftest.
$ac_ext
16428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16429 echo "${ECHO_T}$ac_header_preproc" >&6
16431 # So? What about this header?
16432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16434 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16435 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16437 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16438 ac_header_preproc
=yes
16441 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16442 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16444 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16446 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16448 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16450 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16452 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16455 ## ------------------------------------------ ##
16456 ## Report this to the AC_PACKAGE_NAME lists. ##
16457 ## ------------------------------------------ ##
16460 sed "s/^/$as_me: WARNING: /" >&2
16463 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16464 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16465 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16470 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16471 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16474 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16477 cat >>confdefs.h
<<\_ACEOF
16482 cat >>confdefs.h
<<\_ACEOF
16491 if test $ac_have_func = no
; then
16492 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16493 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16494 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16495 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16499 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16501 # Is the header compilable?
16502 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16503 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16504 cat >conftest.
$ac_ext <<_ACEOF
16507 cat confdefs.h
>>conftest.
$ac_ext
16508 cat >>conftest.
$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 $ac_includes_default
16511 #include <sys/cpustats.h>
16513 rm -f conftest.
$ac_objext
16514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515 (eval $ac_compile) 2>conftest.er1
16517 grep -v '^ *+' conftest.er1
>conftest.err
16519 cat conftest.err
>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try
='test -z "$ac_c_werror_flag"
16523 || test ! -s conftest.err'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; } &&
16529 { ac_try
='test -s conftest.$ac_objext'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16535 ac_header_compiler
=yes
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.
$ac_ext >&5
16540 ac_header_compiler
=no
16542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16544 echo "${ECHO_T}$ac_header_compiler" >&6
16546 # Is the header present?
16547 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16548 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16549 cat >conftest.
$ac_ext <<_ACEOF
16552 cat confdefs.h
>>conftest.
$ac_ext
16553 cat >>conftest.
$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 #include <sys/cpustats.h>
16557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16558 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16560 grep -v '^ *+' conftest.er1
>conftest.err
16562 cat conftest.err
>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } >/dev
/null
; then
16565 if test -s conftest.err
; then
16566 ac_cpp_err
=$ac_c_preproc_warn_flag
16567 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16574 if test -z "$ac_cpp_err"; then
16575 ac_header_preproc
=yes
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.
$ac_ext >&5
16580 ac_header_preproc
=no
16582 rm -f conftest.err conftest.
$ac_ext
16583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16584 echo "${ECHO_T}$ac_header_preproc" >&6
16586 # So? What about this header?
16587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16589 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16590 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16591 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16592 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16593 ac_header_preproc
=yes
16596 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16597 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16599 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16601 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16603 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16605 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16607 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16610 ## ------------------------------------------ ##
16611 ## Report this to the AC_PACKAGE_NAME lists. ##
16612 ## ------------------------------------------ ##
16615 sed "s/^/$as_me: WARNING: /" >&2
16618 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16619 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16620 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16626 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16629 if test $ac_cv_header_sys_cpustats_h = yes; then
16630 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16639 if test $ac_have_func = no
; then
16641 for ac_header
in mach
/mach.h
16643 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16645 echo "$as_me:$LINENO: checking for $ac_header" >&5
16646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16653 # Is the header compilable?
16654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16656 cat >conftest.
$ac_ext <<_ACEOF
16659 cat confdefs.h
>>conftest.
$ac_ext
16660 cat >>conftest.
$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 $ac_includes_default
16663 #include <$ac_header>
16665 rm -f conftest.
$ac_objext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>conftest.er1
16669 grep -v '^ *+' conftest.er1
>conftest.err
16671 cat conftest.err
>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try
='test -z "$ac_c_werror_flag"
16675 || test ! -s conftest.err'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try
='test -s conftest.$ac_objext'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_header_compiler
=yes
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.
$ac_ext >&5
16692 ac_header_compiler
=no
16694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16696 echo "${ECHO_T}$ac_header_compiler" >&6
16698 # Is the header present?
16699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16701 cat >conftest.
$ac_ext <<_ACEOF
16704 cat confdefs.h
>>conftest.
$ac_ext
16705 cat >>conftest.
$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <$ac_header>
16709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16710 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16712 grep -v '^ *+' conftest.er1
>conftest.err
16714 cat conftest.err
>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev
/null
; then
16717 if test -s conftest.err
; then
16718 ac_cpp_err
=$ac_c_preproc_warn_flag
16719 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16726 if test -z "$ac_cpp_err"; then
16727 ac_header_preproc
=yes
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.
$ac_ext >&5
16732 ac_header_preproc
=no
16734 rm -f conftest.err conftest.
$ac_ext
16735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16736 echo "${ECHO_T}$ac_header_preproc" >&6
16738 # So? What about this header?
16739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16745 ac_header_preproc
=yes
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16762 ## ------------------------------------------ ##
16763 ## Report this to the AC_PACKAGE_NAME lists. ##
16764 ## ------------------------------------------ ##
16767 sed "s/^/$as_me: WARNING: /" >&2
16770 echo "$as_me:$LINENO: checking for $ac_header" >&5
16771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 eval "$as_ac_Header=\$ac_header_preproc"
16777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16782 cat >>confdefs.h
<<_ACEOF
16783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16793 for ac_header
in nlist.h
16795 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16797 echo "$as_me:$LINENO: checking for $ac_header" >&5
16798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16805 # Is the header compilable?
16806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16808 cat >conftest.
$ac_ext <<_ACEOF
16811 cat confdefs.h
>>conftest.
$ac_ext
16812 cat >>conftest.
$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 $ac_includes_default
16815 #include <$ac_header>
16817 rm -f conftest.
$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>conftest.er1
16821 grep -v '^ *+' conftest.er1
>conftest.err
16823 cat conftest.err
>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try
='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try
='test -s conftest.$ac_objext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 ac_header_compiler
=yes
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.
$ac_ext >&5
16844 ac_header_compiler
=no
16846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16848 echo "${ECHO_T}$ac_header_compiler" >&6
16850 # Is the header present?
16851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16853 cat >conftest.
$ac_ext <<_ACEOF
16856 cat confdefs.h
>>conftest.
$ac_ext
16857 cat >>conftest.
$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 #include <$ac_header>
16861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16864 grep -v '^ *+' conftest.er1
>conftest.err
16866 cat conftest.err
>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } >/dev
/null
; then
16869 if test -s conftest.err
; then
16870 ac_cpp_err
=$ac_c_preproc_warn_flag
16871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16878 if test -z "$ac_cpp_err"; then
16879 ac_header_preproc
=yes
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.
$ac_ext >&5
16884 ac_header_preproc
=no
16886 rm -f conftest.err conftest.
$ac_ext
16887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16888 echo "${ECHO_T}$ac_header_preproc" >&6
16890 # So? What about this header?
16891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16897 ac_header_preproc
=yes
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16914 ## ------------------------------------------ ##
16915 ## Report this to the AC_PACKAGE_NAME lists. ##
16916 ## ------------------------------------------ ##
16919 sed "s/^/$as_me: WARNING: /" >&2
16922 echo "$as_me:$LINENO: checking for $ac_header" >&5
16923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 eval "$as_ac_Header=\$ac_header_preproc"
16929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16934 cat >>confdefs.h
<<_ACEOF
16935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16937 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16938 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16939 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16942 cat >conftest.
$ac_ext <<_ACEOF
16945 cat confdefs.h
>>conftest.
$ac_ext
16946 cat >>conftest.
$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16953 static struct nlist ac_aggr;
16954 if (ac_aggr.n_un.n_name)
16960 rm -f conftest.
$ac_objext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962 (eval $ac_compile) 2>conftest.er1
16964 grep -v '^ *+' conftest.er1
>conftest.err
16966 cat conftest.err
>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } &&
16969 { ac_try
='test -z "$ac_c_werror_flag"
16970 || test ! -s conftest.err'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try
='test -s conftest.$ac_objext'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 ac_cv_member_struct_nlist_n_un_n_name
=yes
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.
$ac_ext >&5
16987 cat >conftest.
$ac_ext <<_ACEOF
16990 cat confdefs.h
>>conftest.
$ac_ext
16991 cat >>conftest.
$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16998 static struct nlist ac_aggr;
16999 if (sizeof ac_aggr.n_un.n_name)
17005 rm -f conftest.
$ac_objext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17007 (eval $ac_compile) 2>conftest.er1
17009 grep -v '^ *+' conftest.er1
>conftest.err
17011 cat conftest.err
>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try
='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try
='test -s conftest.$ac_objext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_cv_member_struct_nlist_n_un_n_name
=yes
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.
$ac_ext >&5
17032 ac_cv_member_struct_nlist_n_un_n_name
=no
17034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17038 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17039 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17040 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17042 cat >>confdefs.h
<<_ACEOF
17043 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17047 cat >>confdefs.h
<<\_ACEOF
17048 #define NLIST_NAME_UNION 1
17062 # Some definitions of getloadavg require that the program be installed setgid.
17063 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17064 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17065 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 cat >conftest.
$ac_ext <<_ACEOF
17071 cat confdefs.h
>>conftest.
$ac_ext
17072 cat >>conftest.
$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17075 #ifdef LDAV_PRIVILEGED
17076 Yowza Am I SETGID yet
17079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17080 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17081 ac_cv_func_getloadavg_setgid
=yes
17083 ac_cv_func_getloadavg_setgid
=no
17088 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17089 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17090 if test $ac_cv_func_getloadavg_setgid = yes; then
17093 cat >>confdefs.h
<<\_ACEOF
17094 #define GETLOADAVG_PRIVILEGED 1
17101 if test $ac_cv_func_getloadavg_setgid = yes; then
17102 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17103 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17104 if test "${ac_cv_group_kmem+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17108 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17109 # If we got an error (system does not support symlinks), try without -L.
17110 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17111 ac_cv_group_kmem
=`echo $ac_ls_output \
17112 | sed -ne 's/[ ][ ]*/ /g;
17113 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17117 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17118 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17119 KMEM_GROUP
=$ac_cv_group_kmem
17121 if test "x$ac_save_LIBS" = x
; then
17122 GETLOADAVG_LIBS
=$LIBS
17124 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17130 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17131 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17132 if test "${ac_cv_sys_largefile_source+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 ac_cv_sys_largefile_source
=no
17137 cat >conftest.
$ac_ext <<_ACEOF
17140 cat confdefs.h
>>conftest.
$ac_ext
17141 cat >>conftest.
$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17152 rm -f conftest.
$ac_objext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17154 (eval $ac_compile) 2>conftest.er1
17156 grep -v '^ *+' conftest.er1
>conftest.err
17158 cat conftest.err
>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try
='test -z "$ac_c_werror_flag"
17162 || test ! -s conftest.err'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try
='test -s conftest.$ac_objext'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.
$ac_ext >&5
17180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17181 cat >conftest.
$ac_ext <<_ACEOF
17184 cat confdefs.h
>>conftest.
$ac_ext
17185 cat >>conftest.
$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #define _LARGEFILE_SOURCE 1
17197 rm -f conftest.
$ac_objext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199 (eval $ac_compile) 2>conftest.er1
17201 grep -v '^ *+' conftest.er1
>conftest.err
17203 cat conftest.err
>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try
='test -z "$ac_c_werror_flag"
17207 || test ! -s conftest.err'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try
='test -s conftest.$ac_objext'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_cv_sys_largefile_source
=1; break
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.
$ac_ext >&5
17225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17229 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17230 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17231 if test "$ac_cv_sys_largefile_source" != no
; then
17233 cat >>confdefs.h
<<_ACEOF
17234 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17240 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17241 # in glibc 2.1.3, but that breaks too many other things.
17242 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17243 echo "$as_me:$LINENO: checking for fseeko" >&5
17244 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17245 if test "${ac_cv_func_fseeko+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.
$ac_ext <<_ACEOF
17251 cat confdefs.h
>>conftest.
$ac_ext
17252 cat >>conftest.
$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17258 return fseeko && fseeko (stdin, 0, 0);
17263 rm -f conftest.
$ac_objext conftest
$ac_exeext
17264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265 (eval $ac_link) 2>conftest.er1
17267 grep -v '^ *+' conftest.er1
>conftest.err
17269 cat conftest.err
>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try
='test -z "$ac_c_werror_flag"
17273 || test ! -s conftest.err'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try
='test -s conftest$ac_exeext'
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_cv_func_fseeko
=yes
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.
$ac_ext >&5
17290 ac_cv_func_fseeko
=no
17292 rm -f conftest.err conftest.
$ac_objext \
17293 conftest
$ac_exeext conftest.
$ac_ext
17295 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17296 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17297 if test $ac_cv_func_fseeko = yes; then
17299 cat >>confdefs.h
<<\_ACEOF
17300 #define HAVE_FSEEKO 1
17306 # Configure getopt.
17307 # getopt.m4 serial 10
17309 # The getopt module assume you want GNU getopt, with getopt_long etc,
17310 # rather than vanilla POSIX getopt. This means your your code should
17311 # always include <getopt.h> for the getopt prototypes.
17323 # Prerequisites of lib/getopt*.
17330 for ac_header
in getopt.h
17332 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17334 echo "$as_me:$LINENO: checking for $ac_header" >&5
17335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17342 # Is the header compilable?
17343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17345 cat >conftest.
$ac_ext <<_ACEOF
17348 cat confdefs.h
>>conftest.
$ac_ext
17349 cat >>conftest.
$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 $ac_includes_default
17352 #include <$ac_header>
17354 rm -f conftest.
$ac_objext
17355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17356 (eval $ac_compile) 2>conftest.er1
17358 grep -v '^ *+' conftest.er1
>conftest.err
17360 cat conftest.err
>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try
='test -z "$ac_c_werror_flag"
17364 || test ! -s conftest.err'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try
='test -s conftest.$ac_objext'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_header_compiler
=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.
$ac_ext >&5
17381 ac_header_compiler
=no
17383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17385 echo "${ECHO_T}$ac_header_compiler" >&6
17387 # Is the header present?
17388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17390 cat >conftest.
$ac_ext <<_ACEOF
17393 cat confdefs.h
>>conftest.
$ac_ext
17394 cat >>conftest.
$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 #include <$ac_header>
17398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17401 grep -v '^ *+' conftest.er1
>conftest.err
17403 cat conftest.err
>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } >/dev
/null
; then
17406 if test -s conftest.err
; then
17407 ac_cpp_err
=$ac_c_preproc_warn_flag
17408 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17415 if test -z "$ac_cpp_err"; then
17416 ac_header_preproc
=yes
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.
$ac_ext >&5
17421 ac_header_preproc
=no
17423 rm -f conftest.err conftest.
$ac_ext
17424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17425 echo "${ECHO_T}$ac_header_preproc" >&6
17427 # So? What about this header?
17428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17434 ac_header_preproc
=yes
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17451 ## ------------------------------------------ ##
17452 ## Report this to the AC_PACKAGE_NAME lists. ##
17453 ## ------------------------------------------ ##
17456 sed "s/^/$as_me: WARNING: /" >&2
17459 echo "$as_me:$LINENO: checking for $ac_header" >&5
17460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 eval "$as_ac_Header=\$ac_header_preproc"
17466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17471 cat >>confdefs.h
<<_ACEOF
17472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17481 if test -z "$GETOPT_H"; then
17483 for ac_func
in getopt_long_only
17485 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486 echo "$as_me:$LINENO: checking for $ac_func" >&5
17487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17488 if eval "test \"\${$as_ac_var+set}\" = set"; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.
$ac_ext <<_ACEOF
17494 cat confdefs.h
>>conftest.
$ac_ext
17495 cat >>conftest.
$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499 #define $ac_func innocuous_$ac_func
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17507 # include <limits.h>
17509 # include <assert.h>
17514 /* Override any gcc2 internal prototype to avoid an error. */
17519 /* We use char because int might match the return type of a gcc2
17520 builtin and then its argument prototype would still apply. */
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17528 char (*f) () = $ac_func;
17537 return f != $ac_func;
17542 rm -f conftest.
$ac_objext conftest
$ac_exeext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17544 (eval $ac_link) 2>conftest.er1
17546 grep -v '^ *+' conftest.er1
>conftest.err
17548 cat conftest.err
>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try
='test -z "$ac_c_werror_flag"
17552 || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try
='test -s conftest$ac_exeext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.
$ac_ext >&5
17569 eval "$as_ac_var=no"
17571 rm -f conftest.err conftest.
$ac_objext \
17572 conftest
$ac_exeext conftest.
$ac_ext
17574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577 cat >>confdefs.h
<<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17588 if test -z "$GETOPT_H"; then
17589 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17590 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17591 if test "${ac_cv_have_decl_optreset+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 cat >conftest.
$ac_ext <<_ACEOF
17597 cat confdefs.h
>>conftest.
$ac_ext
17598 cat >>conftest.
$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 #include <getopt.h>
17606 char *p = (char *) optreset;
17613 rm -f conftest.
$ac_objext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17615 (eval $ac_compile) 2>conftest.er1
17617 grep -v '^ *+' conftest.er1
>conftest.err
17619 cat conftest.err
>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try
='test -z "$ac_c_werror_flag"
17623 || test ! -s conftest.err'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try
='test -s conftest.$ac_objext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 ac_cv_have_decl_optreset
=yes
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.
$ac_ext >&5
17640 ac_cv_have_decl_optreset
=no
17642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17644 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17645 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17646 if test $ac_cv_have_decl_optreset = yes; then
17652 if test -z "$GETOPT_H"; then
17653 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17654 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17655 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 if test "$cross_compiling" = yes; then
17659 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17660 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17661 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 cat >conftest.
$ac_ext <<_ACEOF
17667 cat confdefs.h
>>conftest.
$ac_ext
17668 cat >>conftest.
$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <getopt.h>
17675 #ifndef getopt_clip
17676 char *p = (char *) getopt_clip;
17683 rm -f conftest.
$ac_objext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>conftest.er1
17687 grep -v '^ *+' conftest.er1
>conftest.err
17689 cat conftest.err
>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
17692 { ac_try
='test -z "$ac_c_werror_flag"
17693 || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try
='test -s conftest.$ac_objext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_have_decl_getopt_clip
=yes
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.
$ac_ext >&5
17710 ac_cv_have_decl_getopt_clip
=no
17712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17714 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17715 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17716 if test $ac_cv_have_decl_getopt_clip = yes; then
17717 gl_cv_func_gnu_getopt
=no
17719 gl_cv_func_gnu_getopt
=yes
17723 cat >conftest.
$ac_ext <<_ACEOF
17726 cat confdefs.h
>>conftest.
$ac_ext
17727 cat >>conftest.
$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <getopt.h>
17735 myargv[0] = "conftest";
17738 return getopt (2, myargv, "+a") != '?';
17744 rm -f conftest
$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746 (eval $ac_link) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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 gl_cv_func_gnu_getopt
=yes
17757 echo "$as_me: program exited with status $ac_status" >&5
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.
$ac_ext >&5
17761 ( exit $ac_status )
17762 gl_cv_func_gnu_getopt
=no
17764 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17767 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17768 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17769 if test "$gl_cv_func_gnu_getopt" = "no"; then
17776 if test -n "$GETOPT_H"; then
17781 cat >>confdefs.h
<<\_ACEOF
17782 #define __GETOPT_PREFIX rpl_
17788 GETOPTOBJS
='getopt.o getopt1.o'
17795 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17796 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17797 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 # Use it with a single arg.
17801 cat >conftest.
$ac_ext <<_ACEOF
17804 cat confdefs.h
>>conftest.
$ac_ext
17805 cat >>conftest.
$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 $ac_includes_default
17816 rm -f conftest.
$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17820 grep -v '^ *+' conftest.er1
>conftest.err
17822 cat conftest.err
>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try
='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try
='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_func_getpgrp_void
=no
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.
$ac_ext >&5
17843 ac_cv_func_getpgrp_void
=yes
17845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17849 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17850 if test $ac_cv_func_getpgrp_void = yes; then
17852 cat >>confdefs.h
<<\_ACEOF
17853 #define GETPGRP_VOID 1
17860 for ac_func
in strftime
17862 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17863 echo "$as_me:$LINENO: checking for $ac_func" >&5
17864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17865 if eval "test \"\${$as_ac_var+set}\" = set"; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cat >conftest.
$ac_ext <<_ACEOF
17871 cat confdefs.h
>>conftest.
$ac_ext
17872 cat >>conftest.
$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17876 #define $ac_func innocuous_$ac_func
17878 /* System header to define __stub macros and hopefully few prototypes,
17879 which can conflict with char $ac_func (); below.
17880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881 <limits.h> exists even on freestanding compilers. */
17884 # include <limits.h>
17886 # include <assert.h>
17891 /* Override any gcc2 internal prototype to avoid an error. */
17896 /* We use char because int might match the return type of a gcc2
17897 builtin and then its argument prototype would still apply. */
17899 /* The GNU C library defines this for functions which it implements
17900 to always fail with ENOSYS. Some functions are actually named
17901 something starting with __ and the normal name is an alias. */
17902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17905 char (*f) () = $ac_func;
17914 return f != $ac_func;
17919 rm -f conftest.
$ac_objext conftest
$ac_exeext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921 (eval $ac_link) 2>conftest.er1
17923 grep -v '^ *+' conftest.er1
>conftest.err
17925 cat conftest.err
>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try
='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try
='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 eval "$as_ac_var=yes"
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.
$ac_ext >&5
17946 eval "$as_ac_var=no"
17948 rm -f conftest.err conftest.
$ac_objext \
17949 conftest
$ac_exeext conftest.
$ac_ext
17951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17953 if test `eval echo '${'$as_ac_var'}'` = yes; then
17954 cat >>confdefs.h
<<_ACEOF
17955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17959 # strftime is in -lintl on SCO UNIX.
17960 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17961 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17962 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 ac_check_lib_save_LIBS
=$LIBS
17966 LIBS
="-lintl $LIBS"
17967 cat >conftest.
$ac_ext <<_ACEOF
17970 cat confdefs.h
>>conftest.
$ac_ext
17971 cat >>conftest.
$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any gcc2 internal prototype to avoid an error. */
17978 /* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17989 rm -f conftest.
$ac_objext conftest
$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17993 grep -v '^ *+' conftest.er1
>conftest.err
17995 cat conftest.err
>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try
='test -z "$ac_c_werror_flag"
17999 || test ! -s conftest.err'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; } &&
18005 { ac_try
='test -s conftest$ac_exeext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_intl_strftime
=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.
$ac_ext >&5
18016 ac_cv_lib_intl_strftime
=no
18018 rm -f conftest.err conftest.
$ac_objext \
18019 conftest
$ac_exeext conftest.
$ac_ext
18020 LIBS
=$ac_check_lib_save_LIBS
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18023 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18024 if test $ac_cv_lib_intl_strftime = yes; then
18025 cat >>confdefs.h
<<\_ACEOF
18026 #define HAVE_STRFTIME 1
18029 LIBS
="-lintl $LIBS"
18038 for ac_func
in grantpt
18040 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18041 echo "$as_me:$LINENO: checking for $ac_func" >&5
18042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18043 if eval "test \"\${$as_ac_var+set}\" = set"; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 cat >conftest.
$ac_ext <<_ACEOF
18049 cat confdefs.h
>>conftest.
$ac_ext
18050 cat >>conftest.
$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18054 #define $ac_func innocuous_$ac_func
18056 /* System header to define __stub macros and hopefully few prototypes,
18057 which can conflict with char $ac_func (); below.
18058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18059 <limits.h> exists even on freestanding compilers. */
18062 # include <limits.h>
18064 # include <assert.h>
18069 /* Override any gcc2 internal prototype to avoid an error. */
18074 /* We use char because int might match the return type of a gcc2
18075 builtin and then its argument prototype would still apply. */
18077 /* The GNU C library defines this for functions which it implements
18078 to always fail with ENOSYS. Some functions are actually named
18079 something starting with __ and the normal name is an alias. */
18080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18083 char (*f) () = $ac_func;
18092 return f != $ac_func;
18097 rm -f conftest.
$ac_objext conftest
$ac_exeext
18098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18099 (eval $ac_link) 2>conftest.er1
18101 grep -v '^ *+' conftest.er1
>conftest.err
18103 cat conftest.err
>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try
='test -z "$ac_c_werror_flag"
18107 || test ! -s conftest.err'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } &&
18113 { ac_try
='test -s conftest$ac_exeext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 eval "$as_ac_var=yes"
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.
$ac_ext >&5
18124 eval "$as_ac_var=no"
18126 rm -f conftest.err conftest.
$ac_objext \
18127 conftest
$ac_exeext conftest.
$ac_ext
18129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18131 if test `eval echo '${'$as_ac_var'}'` = yes; then
18132 cat >>confdefs.h
<<_ACEOF
18133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18140 # PTY-related GNU extensions.
18142 for ac_func
in getpt
18144 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18145 echo "$as_me:$LINENO: checking for $ac_func" >&5
18146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18147 if eval "test \"\${$as_ac_var+set}\" = set"; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 cat >conftest.
$ac_ext <<_ACEOF
18153 cat confdefs.h
>>conftest.
$ac_ext
18154 cat >>conftest.
$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18158 #define $ac_func innocuous_$ac_func
18160 /* System header to define __stub macros and hopefully few prototypes,
18161 which can conflict with char $ac_func (); below.
18162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18163 <limits.h> exists even on freestanding compilers. */
18166 # include <limits.h>
18168 # include <assert.h>
18173 /* Override any gcc2 internal prototype to avoid an error. */
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18181 /* The GNU C library defines this for functions which it implements
18182 to always fail with ENOSYS. Some functions are actually named
18183 something starting with __ and the normal name is an alias. */
18184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18187 char (*f) () = $ac_func;
18196 return f != $ac_func;
18201 rm -f conftest.
$ac_objext conftest
$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>conftest.er1
18205 grep -v '^ *+' conftest.er1
>conftest.err
18207 cat conftest.err
>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try
='test -z "$ac_c_werror_flag"
18211 || test ! -s conftest.err'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try
='test -s conftest$ac_exeext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 eval "$as_ac_var=yes"
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.
$ac_ext >&5
18228 eval "$as_ac_var=no"
18230 rm -f conftest.err conftest.
$ac_objext \
18231 conftest
$ac_exeext conftest.
$ac_ext
18233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18235 if test `eval echo '${'$as_ac_var'}'` = yes; then
18236 cat >>confdefs.h
<<_ACEOF
18237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18244 # Check this now, so that we will NOT find the above functions in ncurses.
18245 # That is because we have not set up to link ncurses in lib-src.
18246 # It's better to believe a function is not available
18247 # than to expect to find it in ncurses.
18249 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18250 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18251 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18254 ac_check_lib_save_LIBS
=$LIBS
18255 LIBS
="-lncurses $LIBS"
18256 cat >conftest.
$ac_ext <<_ACEOF
18259 cat confdefs.h
>>conftest.
$ac_ext
18260 cat >>conftest.
$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18263 /* Override any gcc2 internal prototype to avoid an error. */
18267 /* We use char because int might match the return type of a gcc2
18268 builtin and then its argument prototype would still apply. */
18278 rm -f conftest.
$ac_objext conftest
$ac_exeext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18280 (eval $ac_link) 2>conftest.er1
18282 grep -v '^ *+' conftest.er1
>conftest.err
18284 cat conftest.err
>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try
='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try
='test -s conftest$ac_exeext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_cv_lib_ncurses_tparm
=yes
18302 echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.
$ac_ext >&5
18305 ac_cv_lib_ncurses_tparm
=no
18307 rm -f conftest.err conftest.
$ac_objext \
18308 conftest
$ac_exeext conftest.
$ac_ext
18309 LIBS
=$ac_check_lib_save_LIBS
18311 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18312 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18313 if test $ac_cv_lib_ncurses_tparm = yes; then
18314 cat >>confdefs.h
<<_ACEOF
18315 #define HAVE_LIBNCURSES 1
18318 LIBS
="-lncurses $LIBS"
18323 # Do we need the Hesiod library to provide the support routines?
18324 if test "$with_hesiod" = yes ; then
18325 # Don't set $LIBS here -- see comments above.
18327 echo "$as_me:$LINENO: checking for res_send" >&5
18328 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18329 if test "${ac_cv_func_res_send+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 cat >conftest.
$ac_ext <<_ACEOF
18335 cat confdefs.h
>>conftest.
$ac_ext
18336 cat >>conftest.
$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18340 #define res_send innocuous_res_send
18342 /* System header to define __stub macros and hopefully few prototypes,
18343 which can conflict with char res_send (); below.
18344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18345 <limits.h> exists even on freestanding compilers. */
18348 # include <limits.h>
18350 # include <assert.h>
18355 /* Override any gcc2 internal prototype to avoid an error. */
18360 /* We use char because int might match the return type of a gcc2
18361 builtin and then its argument prototype would still apply. */
18363 /* The GNU C library defines this for functions which it implements
18364 to always fail with ENOSYS. Some functions are actually named
18365 something starting with __ and the normal name is an alias. */
18366 #if defined (__stub_res_send) || defined (__stub___res_send)
18369 char (*f) () = res_send;
18378 return f != res_send;
18383 rm -f conftest.
$ac_objext conftest
$ac_exeext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18385 (eval $ac_link) 2>conftest.er1
18387 grep -v '^ *+' conftest.er1
>conftest.err
18389 cat conftest.err
>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try
='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try
='test -s conftest$ac_exeext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_cv_func_res_send
=yes
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.
$ac_ext >&5
18410 ac_cv_func_res_send
=no
18412 rm -f conftest.err conftest.
$ac_objext \
18413 conftest
$ac_exeext conftest.
$ac_ext
18415 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18416 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18417 if test $ac_cv_func_res_send = yes; then
18420 echo "$as_me:$LINENO: checking for __res_send" >&5
18421 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18422 if test "${ac_cv_func___res_send+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 cat >conftest.
$ac_ext <<_ACEOF
18428 cat confdefs.h
>>conftest.
$ac_ext
18429 cat >>conftest.
$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18433 #define __res_send innocuous___res_send
18435 /* System header to define __stub macros and hopefully few prototypes,
18436 which can conflict with char __res_send (); below.
18437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18438 <limits.h> exists even on freestanding compilers. */
18441 # include <limits.h>
18443 # include <assert.h>
18448 /* Override any gcc2 internal prototype to avoid an error. */
18453 /* We use char because int might match the return type of a gcc2
18454 builtin and then its argument prototype would still apply. */
18455 char __res_send ();
18456 /* The GNU C library defines this for functions which it implements
18457 to always fail with ENOSYS. Some functions are actually named
18458 something starting with __ and the normal name is an alias. */
18459 #if defined (__stub___res_send) || defined (__stub_____res_send)
18462 char (*f) () = __res_send;
18471 return f != __res_send;
18476 rm -f conftest.
$ac_objext conftest
$ac_exeext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478 (eval $ac_link) 2>conftest.er1
18480 grep -v '^ *+' conftest.er1
>conftest.err
18482 cat conftest.err
>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try
='test -z "$ac_c_werror_flag"
18486 || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try
='test -s conftest$ac_exeext'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 ac_cv_func___res_send
=yes
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.
$ac_ext >&5
18503 ac_cv_func___res_send
=no
18505 rm -f conftest.err conftest.
$ac_objext \
18506 conftest
$ac_exeext conftest.
$ac_ext
18508 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18509 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18510 if test $ac_cv_func___res_send = yes; then
18513 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18514 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18515 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_check_lib_save_LIBS
=$LIBS
18519 LIBS
="-lresolv $LIBS"
18520 cat >conftest.
$ac_ext <<_ACEOF
18523 cat confdefs.h
>>conftest.
$ac_ext
18524 cat >>conftest.
$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any gcc2 internal prototype to avoid an error. */
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18542 rm -f conftest.
$ac_objext conftest
$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1
>conftest.err
18548 cat conftest.err
>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try
='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try
='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_lib_resolv_res_send
=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.
$ac_ext >&5
18569 ac_cv_lib_resolv_res_send
=no
18571 rm -f conftest.err conftest.
$ac_objext \
18572 conftest
$ac_exeext conftest.
$ac_ext
18573 LIBS
=$ac_check_lib_save_LIBS
18575 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18576 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18577 if test $ac_cv_lib_resolv_res_send = yes; then
18580 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18581 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18582 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18585 ac_check_lib_save_LIBS
=$LIBS
18586 LIBS
="-lresolv $LIBS"
18587 cat >conftest.
$ac_ext <<_ACEOF
18590 cat confdefs.h
>>conftest.
$ac_ext
18591 cat >>conftest.
$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18594 /* Override any gcc2 internal prototype to avoid an error. */
18598 /* We use char because int might match the return type of a gcc2
18599 builtin and then its argument prototype would still apply. */
18600 char __res_send ();
18609 rm -f conftest.
$ac_objext conftest
$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611 (eval $ac_link) 2>conftest.er1
18613 grep -v '^ *+' conftest.er1
>conftest.err
18615 cat conftest.err
>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try
='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try
='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_resolv___res_send
=yes
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.
$ac_ext >&5
18636 ac_cv_lib_resolv___res_send
=no
18638 rm -f conftest.err conftest.
$ac_objext \
18639 conftest
$ac_exeext conftest.
$ac_ext
18640 LIBS
=$ac_check_lib_save_LIBS
18642 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18643 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18644 if test $ac_cv_lib_resolv___res_send = yes; then
18654 if test "$resolv" = yes ; then
18657 cat >>confdefs.h
<<\_ACEOF
18658 #define HAVE_LIBRESOLV 1
18664 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18665 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18666 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 cat >conftest.
$ac_ext <<_ACEOF
18672 cat confdefs.h
>>conftest.
$ac_ext
18673 cat >>conftest.
$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18677 #define hes_getmailhost innocuous_hes_getmailhost
18679 /* System header to define __stub macros and hopefully few prototypes,
18680 which can conflict with char hes_getmailhost (); below.
18681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18682 <limits.h> exists even on freestanding compilers. */
18685 # include <limits.h>
18687 # include <assert.h>
18690 #undef hes_getmailhost
18692 /* Override any gcc2 internal prototype to avoid an error. */
18697 /* We use char because int might match the return type of a gcc2
18698 builtin and then its argument prototype would still apply. */
18699 char hes_getmailhost ();
18700 /* The GNU C library defines this for functions which it implements
18701 to always fail with ENOSYS. Some functions are actually named
18702 something starting with __ and the normal name is an alias. */
18703 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18706 char (*f) () = hes_getmailhost;
18715 return f != hes_getmailhost;
18720 rm -f conftest.
$ac_objext conftest
$ac_exeext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>conftest.er1
18724 grep -v '^ *+' conftest.er1
>conftest.err
18726 cat conftest.err
>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try
='test -z "$ac_c_werror_flag"
18730 || test ! -s conftest.err'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try
='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 ac_cv_func_hes_getmailhost
=yes
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.
$ac_ext >&5
18747 ac_cv_func_hes_getmailhost
=no
18749 rm -f conftest.err conftest.
$ac_objext \
18750 conftest
$ac_exeext conftest.
$ac_ext
18752 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18753 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18754 if test $ac_cv_func_hes_getmailhost = yes; then
18757 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18758 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18759 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 ac_check_lib_save_LIBS
=$LIBS
18763 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18764 cat >conftest.
$ac_ext <<_ACEOF
18767 cat confdefs.h
>>conftest.
$ac_ext
18768 cat >>conftest.
$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 /* Override any gcc2 internal prototype to avoid an error. */
18775 /* We use char because int might match the return type of a gcc2
18776 builtin and then its argument prototype would still apply. */
18777 char hes_getmailhost ();
18781 hes_getmailhost ();
18786 rm -f conftest.
$ac_objext conftest
$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>conftest.er1
18790 grep -v '^ *+' conftest.er1
>conftest.err
18792 cat conftest.err
>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try
='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try
='test -s conftest$ac_exeext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18808 ac_cv_lib_hesiod_hes_getmailhost
=yes
18810 echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.
$ac_ext >&5
18813 ac_cv_lib_hesiod_hes_getmailhost
=no
18815 rm -f conftest.err conftest.
$ac_objext \
18816 conftest
$ac_exeext conftest.
$ac_ext
18817 LIBS
=$ac_check_lib_save_LIBS
18819 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18820 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18821 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18823 cat >>confdefs.h
<<\_ACEOF
18824 #define HAVE_LIBHESIOD 1
18835 # These tell us which Kerberos-related libraries to use.
18836 if test "${with_kerberos+set}" = set; then
18838 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18839 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18840 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 ac_check_lib_save_LIBS
=$LIBS
18844 LIBS
="-lcom_err $LIBS"
18845 cat >conftest.
$ac_ext <<_ACEOF
18848 cat confdefs.h
>>conftest.
$ac_ext
18849 cat >>conftest.
$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any gcc2 internal prototype to avoid an error. */
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18867 rm -f conftest.
$ac_objext conftest
$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18871 grep -v '^ *+' conftest.er1
>conftest.err
18873 cat conftest.err
>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try
='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try
='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_lib_com_err_com_err
=yes
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.
$ac_ext >&5
18894 ac_cv_lib_com_err_com_err
=no
18896 rm -f conftest.err conftest.
$ac_objext \
18897 conftest
$ac_exeext conftest.
$ac_ext
18898 LIBS
=$ac_check_lib_save_LIBS
18900 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18901 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18902 if test $ac_cv_lib_com_err_com_err = yes; then
18903 cat >>confdefs.h
<<_ACEOF
18904 #define HAVE_LIBCOM_ERR 1
18907 LIBS
="-lcom_err $LIBS"
18912 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18913 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18914 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 ac_check_lib_save_LIBS
=$LIBS
18918 LIBS
="-lk5crypto $LIBS"
18919 cat >conftest.
$ac_ext <<_ACEOF
18922 cat confdefs.h
>>conftest.
$ac_ext
18923 cat >>conftest.
$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any gcc2 internal prototype to avoid an error. */
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18932 char mit_des_cbc_encrypt ();
18936 mit_des_cbc_encrypt ();
18941 rm -f conftest.
$ac_objext conftest
$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943 (eval $ac_link) 2>conftest.er1
18945 grep -v '^ *+' conftest.er1
>conftest.err
18947 cat conftest.err
>&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try
='test -z "$ac_c_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try
='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.
$ac_ext >&5
18968 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18970 rm -f conftest.err conftest.
$ac_objext \
18971 conftest
$ac_exeext conftest.
$ac_ext
18972 LIBS
=$ac_check_lib_save_LIBS
18974 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18975 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18976 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18977 cat >>confdefs.h
<<_ACEOF
18978 #define HAVE_LIBK5CRYPTO 1
18981 LIBS
="-lk5crypto $LIBS"
18986 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18987 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18988 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 ac_check_lib_save_LIBS
=$LIBS
18992 LIBS
="-lcrypto $LIBS"
18993 cat >conftest.
$ac_ext <<_ACEOF
18996 cat confdefs.h
>>conftest.
$ac_ext
18997 cat >>conftest.
$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
19000 /* Override any gcc2 internal prototype to avoid an error. */
19004 /* We use char because int might match the return type of a gcc2
19005 builtin and then its argument prototype would still apply. */
19006 char mit_des_cbc_encrypt ();
19010 mit_des_cbc_encrypt ();
19015 rm -f conftest.
$ac_objext conftest
$ac_exeext
19016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19017 (eval $ac_link) 2>conftest.er1
19019 grep -v '^ *+' conftest.er1
>conftest.err
19021 cat conftest.err
>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try
='test -z "$ac_c_werror_flag"
19025 || test ! -s conftest.err'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; } &&
19031 { ac_try
='test -s conftest$ac_exeext'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19039 echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.
$ac_ext >&5
19042 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19044 rm -f conftest.err conftest.
$ac_objext \
19045 conftest
$ac_exeext conftest.
$ac_ext
19046 LIBS
=$ac_check_lib_save_LIBS
19048 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19049 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19050 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19051 cat >>confdefs.h
<<_ACEOF
19052 #define HAVE_LIBCRYPTO 1
19055 LIBS
="-lcrypto $LIBS"
19060 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19061 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19062 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 ac_check_lib_save_LIBS
=$LIBS
19066 LIBS
="-lkrb5 $LIBS"
19067 cat >conftest.
$ac_ext <<_ACEOF
19070 cat confdefs.h
>>conftest.
$ac_ext
19071 cat >>conftest.
$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19074 /* Override any gcc2 internal prototype to avoid an error. */
19078 /* We use char because int might match the return type of a gcc2
19079 builtin and then its argument prototype would still apply. */
19080 char krb5_init_context ();
19084 krb5_init_context ();
19089 rm -f conftest.
$ac_objext conftest
$ac_exeext
19090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19091 (eval $ac_link) 2>conftest.er1
19093 grep -v '^ *+' conftest.er1
>conftest.err
19095 cat conftest.err
>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
19098 { ac_try
='test -z "$ac_c_werror_flag"
19099 || test ! -s conftest.err'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; } &&
19105 { ac_try
='test -s conftest$ac_exeext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_lib_krb5_krb5_init_context
=yes
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.
$ac_ext >&5
19116 ac_cv_lib_krb5_krb5_init_context
=no
19118 rm -f conftest.err conftest.
$ac_objext \
19119 conftest
$ac_exeext conftest.
$ac_ext
19120 LIBS
=$ac_check_lib_save_LIBS
19122 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19123 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19124 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19125 cat >>confdefs.h
<<_ACEOF
19126 #define HAVE_LIBKRB5 1
19129 LIBS
="-lkrb5 $LIBS"
19133 if test "${with_kerberos5+set}" != set; then
19135 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19136 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19137 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 ac_check_lib_save_LIBS
=$LIBS
19141 LIBS
="-ldes425 $LIBS"
19142 cat >conftest.
$ac_ext <<_ACEOF
19145 cat confdefs.h
>>conftest.
$ac_ext
19146 cat >>conftest.
$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19149 /* Override any gcc2 internal prototype to avoid an error. */
19153 /* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155 char des_cbc_encrypt ();
19159 des_cbc_encrypt ();
19164 rm -f conftest.
$ac_objext conftest
$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>conftest.er1
19168 grep -v '^ *+' conftest.er1
>conftest.err
19170 cat conftest.err
>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try
='test -z "$ac_c_werror_flag"
19174 || test ! -s conftest.err'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try
='test -s conftest$ac_exeext'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_cv_lib_des425_des_cbc_encrypt
=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.
$ac_ext >&5
19191 ac_cv_lib_des425_des_cbc_encrypt
=no
19193 rm -f conftest.err conftest.
$ac_objext \
19194 conftest
$ac_exeext conftest.
$ac_ext
19195 LIBS
=$ac_check_lib_save_LIBS
19197 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19198 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19199 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19200 cat >>confdefs.h
<<_ACEOF
19201 #define HAVE_LIBDES425 1
19204 LIBS
="-ldes425 $LIBS"
19208 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19209 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19210 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 ac_check_lib_save_LIBS
=$LIBS
19215 cat >conftest.
$ac_ext <<_ACEOF
19218 cat confdefs.h
>>conftest.
$ac_ext
19219 cat >>conftest.
$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19222 /* Override any gcc2 internal prototype to avoid an error. */
19226 /* We use char because int might match the return type of a gcc2
19227 builtin and then its argument prototype would still apply. */
19228 char des_cbc_encrypt ();
19232 des_cbc_encrypt ();
19237 rm -f conftest.
$ac_objext conftest
$ac_exeext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239 (eval $ac_link) 2>conftest.er1
19241 grep -v '^ *+' conftest.er1
>conftest.err
19243 cat conftest.err
>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try
='test -z "$ac_c_werror_flag"
19247 || test ! -s conftest.err'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try
='test -s conftest$ac_exeext'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 ac_cv_lib_des_des_cbc_encrypt
=yes
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.
$ac_ext >&5
19264 ac_cv_lib_des_des_cbc_encrypt
=no
19266 rm -f conftest.err conftest.
$ac_objext \
19267 conftest
$ac_exeext conftest.
$ac_ext
19268 LIBS
=$ac_check_lib_save_LIBS
19270 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19271 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19272 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19273 cat >>confdefs.h
<<_ACEOF
19274 #define HAVE_LIBDES 1
19284 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19285 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19286 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 ac_check_lib_save_LIBS
=$LIBS
19290 LIBS
="-lkrb4 $LIBS"
19291 cat >conftest.
$ac_ext <<_ACEOF
19294 cat confdefs.h
>>conftest.
$ac_ext
19295 cat >>conftest.
$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19298 /* Override any gcc2 internal prototype to avoid an error. */
19302 /* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19304 char krb_get_cred ();
19313 rm -f conftest.
$ac_objext conftest
$ac_exeext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>conftest.er1
19317 grep -v '^ *+' conftest.er1
>conftest.err
19319 cat conftest.err
>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try
='test -z "$ac_c_werror_flag"
19323 || test ! -s conftest.err'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try
='test -s conftest$ac_exeext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_lib_krb4_krb_get_cred
=yes
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.
$ac_ext >&5
19340 ac_cv_lib_krb4_krb_get_cred
=no
19342 rm -f conftest.err conftest.
$ac_objext \
19343 conftest
$ac_exeext conftest.
$ac_ext
19344 LIBS
=$ac_check_lib_save_LIBS
19346 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19347 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19348 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19349 cat >>confdefs.h
<<_ACEOF
19350 #define HAVE_LIBKRB4 1
19353 LIBS
="-lkrb4 $LIBS"
19357 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19358 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19359 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 ac_check_lib_save_LIBS
=$LIBS
19364 cat >conftest.
$ac_ext <<_ACEOF
19367 cat confdefs.h
>>conftest.
$ac_ext
19368 cat >>conftest.
$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19371 /* Override any gcc2 internal prototype to avoid an error. */
19375 /* We use char because int might match the return type of a gcc2
19376 builtin and then its argument prototype would still apply. */
19377 char krb_get_cred ();
19386 rm -f conftest.
$ac_objext conftest
$ac_exeext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388 (eval $ac_link) 2>conftest.er1
19390 grep -v '^ *+' conftest.er1
>conftest.err
19392 cat conftest.err
>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
19395 { ac_try
='test -z "$ac_c_werror_flag"
19396 || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try
='test -s conftest$ac_exeext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 ac_cv_lib_krb_krb_get_cred
=yes
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.
$ac_ext >&5
19413 ac_cv_lib_krb_krb_get_cred
=no
19415 rm -f conftest.err conftest.
$ac_objext \
19416 conftest
$ac_exeext conftest.
$ac_ext
19417 LIBS
=$ac_check_lib_save_LIBS
19419 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19420 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19421 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19422 cat >>confdefs.h
<<_ACEOF
19423 #define HAVE_LIBKRB 1
19434 if test "${with_kerberos5+set}" = set; then
19436 for ac_header
in krb5.h
19438 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19440 echo "$as_me:$LINENO: checking for $ac_header" >&5
19441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19448 # Is the header compilable?
19449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19451 cat >conftest.
$ac_ext <<_ACEOF
19454 cat confdefs.h
>>conftest.
$ac_ext
19455 cat >>conftest.
$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19458 #include <$ac_header>
19460 rm -f conftest.
$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19464 grep -v '^ *+' conftest.er1
>conftest.err
19466 cat conftest.err
>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
19469 { ac_try
='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try
='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_header_compiler
=yes
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.
$ac_ext >&5
19487 ac_header_compiler
=no
19489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19491 echo "${ECHO_T}$ac_header_compiler" >&6
19493 # Is the header present?
19494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19496 cat >conftest.
$ac_ext <<_ACEOF
19499 cat confdefs.h
>>conftest.
$ac_ext
19500 cat >>conftest.
$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 #include <$ac_header>
19504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19505 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19507 grep -v '^ *+' conftest.er1
>conftest.err
19509 cat conftest.err
>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } >/dev
/null
; then
19512 if test -s conftest.err
; then
19513 ac_cpp_err
=$ac_c_preproc_warn_flag
19514 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19521 if test -z "$ac_cpp_err"; then
19522 ac_header_preproc
=yes
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.
$ac_ext >&5
19527 ac_header_preproc
=no
19529 rm -f conftest.err conftest.
$ac_ext
19530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19531 echo "${ECHO_T}$ac_header_preproc" >&6
19533 # So? What about this header?
19534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19540 ac_header_preproc
=yes
19543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19557 ## ------------------------------------------ ##
19558 ## Report this to the AC_PACKAGE_NAME lists. ##
19559 ## ------------------------------------------ ##
19562 sed "s/^/$as_me: WARNING: /" >&2
19565 echo "$as_me:$LINENO: checking for $ac_header" >&5
19566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 eval "$as_ac_Header=\$ac_header_preproc"
19572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19577 cat >>confdefs.h
<<_ACEOF
19578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19587 for ac_header
in des.h
19589 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19591 echo "$as_me:$LINENO: checking for $ac_header" >&5
19592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19599 # Is the header compilable?
19600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19602 cat >conftest.
$ac_ext <<_ACEOF
19605 cat confdefs.h
>>conftest.
$ac_ext
19606 cat >>conftest.
$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19608 $ac_includes_default
19609 #include <$ac_header>
19611 rm -f conftest.
$ac_objext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19613 (eval $ac_compile) 2>conftest.er1
19615 grep -v '^ *+' conftest.er1
>conftest.err
19617 cat conftest.err
>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try
='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try
='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_header_compiler
=yes
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.
$ac_ext >&5
19638 ac_header_compiler
=no
19640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19642 echo "${ECHO_T}$ac_header_compiler" >&6
19644 # Is the header present?
19645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19647 cat >conftest.
$ac_ext <<_ACEOF
19650 cat confdefs.h
>>conftest.
$ac_ext
19651 cat >>conftest.
$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 #include <$ac_header>
19655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19656 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19658 grep -v '^ *+' conftest.er1
>conftest.err
19660 cat conftest.err
>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } >/dev
/null
; then
19663 if test -s conftest.err
; then
19664 ac_cpp_err
=$ac_c_preproc_warn_flag
19665 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19672 if test -z "$ac_cpp_err"; then
19673 ac_header_preproc
=yes
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.
$ac_ext >&5
19678 ac_header_preproc
=no
19680 rm -f conftest.err conftest.
$ac_ext
19681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19682 echo "${ECHO_T}$ac_header_preproc" >&6
19684 # So? What about this header?
19685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19691 ac_header_preproc
=yes
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19708 ## ------------------------------------------ ##
19709 ## Report this to the AC_PACKAGE_NAME lists. ##
19710 ## ------------------------------------------ ##
19713 sed "s/^/$as_me: WARNING: /" >&2
19716 echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 eval "$as_ac_Header=\$ac_header_preproc"
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19728 cat >>confdefs.h
<<_ACEOF
19729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19734 for ac_header
in kerberosIV
/des.h
19736 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738 echo "$as_me:$LINENO: checking for $ac_header" >&5
19739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19746 # Is the header compilable?
19747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19749 cat >conftest.
$ac_ext <<_ACEOF
19752 cat confdefs.h
>>conftest.
$ac_ext
19753 cat >>conftest.
$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19756 #include <$ac_header>
19758 rm -f conftest.
$ac_objext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19760 (eval $ac_compile) 2>conftest.er1
19762 grep -v '^ *+' conftest.er1
>conftest.err
19764 cat conftest.err
>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try
='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try
='test -s conftest.$ac_objext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_header_compiler
=yes
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.
$ac_ext >&5
19785 ac_header_compiler
=no
19787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19789 echo "${ECHO_T}$ac_header_compiler" >&6
19791 # Is the header present?
19792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19794 cat >conftest.
$ac_ext <<_ACEOF
19797 cat confdefs.h
>>conftest.
$ac_ext
19798 cat >>conftest.
$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 #include <$ac_header>
19802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19803 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19805 grep -v '^ *+' conftest.er1
>conftest.err
19807 cat conftest.err
>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } >/dev
/null
; then
19810 if test -s conftest.err
; then
19811 ac_cpp_err
=$ac_c_preproc_warn_flag
19812 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19819 if test -z "$ac_cpp_err"; then
19820 ac_header_preproc
=yes
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.
$ac_ext >&5
19825 ac_header_preproc
=no
19827 rm -f conftest.err conftest.
$ac_ext
19828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19829 echo "${ECHO_T}$ac_header_preproc" >&6
19831 # So? What about this header?
19832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19838 ac_header_preproc
=yes
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19855 ## ------------------------------------------ ##
19856 ## Report this to the AC_PACKAGE_NAME lists. ##
19857 ## ------------------------------------------ ##
19860 sed "s/^/$as_me: WARNING: /" >&2
19863 echo "$as_me:$LINENO: checking for $ac_header" >&5
19864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 eval "$as_ac_Header=\$ac_header_preproc"
19870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875 cat >>confdefs.h
<<_ACEOF
19876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19881 for ac_header
in kerberos
/des.h
19883 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19885 echo "$as_me:$LINENO: checking for $ac_header" >&5
19886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19893 # Is the header compilable?
19894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19896 cat >conftest.
$ac_ext <<_ACEOF
19899 cat confdefs.h
>>conftest.
$ac_ext
19900 cat >>conftest.
$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 $ac_includes_default
19903 #include <$ac_header>
19905 rm -f conftest.
$ac_objext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19907 (eval $ac_compile) 2>conftest.er1
19909 grep -v '^ *+' conftest.er1
>conftest.err
19911 cat conftest.err
>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try
='test -z "$ac_c_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try
='test -s conftest.$ac_objext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_header_compiler
=yes
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.
$ac_ext >&5
19932 ac_header_compiler
=no
19934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19936 echo "${ECHO_T}$ac_header_compiler" >&6
19938 # Is the header present?
19939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19941 cat >conftest.
$ac_ext <<_ACEOF
19944 cat confdefs.h
>>conftest.
$ac_ext
19945 cat >>conftest.
$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <$ac_header>
19949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19952 grep -v '^ *+' conftest.er1
>conftest.err
19954 cat conftest.err
>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } >/dev
/null
; then
19957 if test -s conftest.err
; then
19958 ac_cpp_err
=$ac_c_preproc_warn_flag
19959 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19966 if test -z "$ac_cpp_err"; then
19967 ac_header_preproc
=yes
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.
$ac_ext >&5
19972 ac_header_preproc
=no
19974 rm -f conftest.err conftest.
$ac_ext
19975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19976 echo "${ECHO_T}$ac_header_preproc" >&6
19978 # So? What about this header?
19979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19985 ac_header_preproc
=yes
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20002 ## ------------------------------------------ ##
20003 ## Report this to the AC_PACKAGE_NAME lists. ##
20004 ## ------------------------------------------ ##
20007 sed "s/^/$as_me: WARNING: /" >&2
20010 echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 eval "$as_ac_Header=\$ac_header_preproc"
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20022 cat >>confdefs.h
<<_ACEOF
20023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20039 for ac_header
in krb.h
20041 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20043 echo "$as_me:$LINENO: checking for $ac_header" >&5
20044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20051 # Is the header compilable?
20052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20054 cat >conftest.
$ac_ext <<_ACEOF
20057 cat confdefs.h
>>conftest.
$ac_ext
20058 cat >>conftest.
$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 $ac_includes_default
20061 #include <$ac_header>
20063 rm -f conftest.
$ac_objext
20064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20065 (eval $ac_compile) 2>conftest.er1
20067 grep -v '^ *+' conftest.er1
>conftest.err
20069 cat conftest.err
>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try
='test -z "$ac_c_werror_flag"
20073 || test ! -s conftest.err'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try
='test -s conftest.$ac_objext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_header_compiler
=yes
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.
$ac_ext >&5
20090 ac_header_compiler
=no
20092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20094 echo "${ECHO_T}$ac_header_compiler" >&6
20096 # Is the header present?
20097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20099 cat >conftest.
$ac_ext <<_ACEOF
20102 cat confdefs.h
>>conftest.
$ac_ext
20103 cat >>conftest.
$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 #include <$ac_header>
20107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20110 grep -v '^ *+' conftest.er1
>conftest.err
20112 cat conftest.err
>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } >/dev
/null
; then
20115 if test -s conftest.err
; then
20116 ac_cpp_err
=$ac_c_preproc_warn_flag
20117 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20124 if test -z "$ac_cpp_err"; then
20125 ac_header_preproc
=yes
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.
$ac_ext >&5
20130 ac_header_preproc
=no
20132 rm -f conftest.err conftest.
$ac_ext
20133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20134 echo "${ECHO_T}$ac_header_preproc" >&6
20136 # So? What about this header?
20137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20143 ac_header_preproc
=yes
20146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20160 ## ------------------------------------------ ##
20161 ## Report this to the AC_PACKAGE_NAME lists. ##
20162 ## ------------------------------------------ ##
20165 sed "s/^/$as_me: WARNING: /" >&2
20168 echo "$as_me:$LINENO: checking for $ac_header" >&5
20169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 eval "$as_ac_Header=\$ac_header_preproc"
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20180 cat >>confdefs.h
<<_ACEOF
20181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20186 for ac_header
in kerberosIV
/krb.h
20188 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20190 echo "$as_me:$LINENO: checking for $ac_header" >&5
20191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20198 # Is the header compilable?
20199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20201 cat >conftest.
$ac_ext <<_ACEOF
20204 cat confdefs.h
>>conftest.
$ac_ext
20205 cat >>conftest.
$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20208 #include <$ac_header>
20210 rm -f conftest.
$ac_objext
20211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20212 (eval $ac_compile) 2>conftest.er1
20214 grep -v '^ *+' conftest.er1
>conftest.err
20216 cat conftest.err
>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try
='test -z "$ac_c_werror_flag"
20220 || test ! -s conftest.err'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } &&
20226 { ac_try
='test -s conftest.$ac_objext'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20232 ac_header_compiler
=yes
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.
$ac_ext >&5
20237 ac_header_compiler
=no
20239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20241 echo "${ECHO_T}$ac_header_compiler" >&6
20243 # Is the header present?
20244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20246 cat >conftest.
$ac_ext <<_ACEOF
20249 cat confdefs.h
>>conftest.
$ac_ext
20250 cat >>conftest.
$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <$ac_header>
20254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20255 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20257 grep -v '^ *+' conftest.er1
>conftest.err
20259 cat conftest.err
>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } >/dev
/null
; then
20262 if test -s conftest.err
; then
20263 ac_cpp_err
=$ac_c_preproc_warn_flag
20264 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20271 if test -z "$ac_cpp_err"; then
20272 ac_header_preproc
=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.
$ac_ext >&5
20277 ac_header_preproc
=no
20279 rm -f conftest.err conftest.
$ac_ext
20280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20281 echo "${ECHO_T}$ac_header_preproc" >&6
20283 # So? What about this header?
20284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20290 ac_header_preproc
=yes
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20307 ## ------------------------------------------ ##
20308 ## Report this to the AC_PACKAGE_NAME lists. ##
20309 ## ------------------------------------------ ##
20312 sed "s/^/$as_me: WARNING: /" >&2
20315 echo "$as_me:$LINENO: checking for $ac_header" >&5
20316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 eval "$as_ac_Header=\$ac_header_preproc"
20322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20327 cat >>confdefs.h
<<_ACEOF
20328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20333 for ac_header
in kerberos
/krb.h
20335 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20337 echo "$as_me:$LINENO: checking for $ac_header" >&5
20338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20345 # Is the header compilable?
20346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20348 cat >conftest.
$ac_ext <<_ACEOF
20351 cat confdefs.h
>>conftest.
$ac_ext
20352 cat >>conftest.
$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 $ac_includes_default
20355 #include <$ac_header>
20357 rm -f conftest.
$ac_objext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>conftest.er1
20361 grep -v '^ *+' conftest.er1
>conftest.err
20363 cat conftest.err
>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try
='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try
='test -s conftest.$ac_objext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_header_compiler
=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.
$ac_ext >&5
20384 ac_header_compiler
=no
20386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20388 echo "${ECHO_T}$ac_header_compiler" >&6
20390 # Is the header present?
20391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20393 cat >conftest.
$ac_ext <<_ACEOF
20396 cat confdefs.h
>>conftest.
$ac_ext
20397 cat >>conftest.
$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 #include <$ac_header>
20401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20404 grep -v '^ *+' conftest.er1
>conftest.err
20406 cat conftest.err
>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } >/dev
/null
; then
20409 if test -s conftest.err
; then
20410 ac_cpp_err
=$ac_c_preproc_warn_flag
20411 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20418 if test -z "$ac_cpp_err"; then
20419 ac_header_preproc
=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.
$ac_ext >&5
20424 ac_header_preproc
=no
20426 rm -f conftest.err conftest.
$ac_ext
20427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20428 echo "${ECHO_T}$ac_header_preproc" >&6
20430 # So? What about this header?
20431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20437 ac_header_preproc
=yes
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20454 ## ------------------------------------------ ##
20455 ## Report this to the AC_PACKAGE_NAME lists. ##
20456 ## ------------------------------------------ ##
20459 sed "s/^/$as_me: WARNING: /" >&2
20462 echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 eval "$as_ac_Header=\$ac_header_preproc"
20469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20474 cat >>confdefs.h
<<_ACEOF
20475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20492 for ac_header
in com_err.h
20494 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20496 echo "$as_me:$LINENO: checking for $ac_header" >&5
20497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20504 # Is the header compilable?
20505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20507 cat >conftest.
$ac_ext <<_ACEOF
20510 cat confdefs.h
>>conftest.
$ac_ext
20511 cat >>conftest.
$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 $ac_includes_default
20514 #include <$ac_header>
20516 rm -f conftest.
$ac_objext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20518 (eval $ac_compile) 2>conftest.er1
20520 grep -v '^ *+' conftest.er1
>conftest.err
20522 cat conftest.err
>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try
='test -z "$ac_c_werror_flag"
20526 || test ! -s conftest.err'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; } &&
20532 { ac_try
='test -s conftest.$ac_objext'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_header_compiler
=yes
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.
$ac_ext >&5
20543 ac_header_compiler
=no
20545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20547 echo "${ECHO_T}$ac_header_compiler" >&6
20549 # Is the header present?
20550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20552 cat >conftest.
$ac_ext <<_ACEOF
20555 cat confdefs.h
>>conftest.
$ac_ext
20556 cat >>conftest.
$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 #include <$ac_header>
20560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20563 grep -v '^ *+' conftest.er1
>conftest.err
20565 cat conftest.err
>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } >/dev
/null
; then
20568 if test -s conftest.err
; then
20569 ac_cpp_err
=$ac_c_preproc_warn_flag
20570 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20577 if test -z "$ac_cpp_err"; then
20578 ac_header_preproc
=yes
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.
$ac_ext >&5
20583 ac_header_preproc
=no
20585 rm -f conftest.err conftest.
$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20587 echo "${ECHO_T}$ac_header_preproc" >&6
20589 # So? What about this header?
20590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20596 ac_header_preproc
=yes
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20613 ## ------------------------------------------ ##
20614 ## Report this to the AC_PACKAGE_NAME lists. ##
20615 ## ------------------------------------------ ##
20618 sed "s/^/$as_me: WARNING: /" >&2
20621 echo "$as_me:$LINENO: checking for $ac_header" >&5
20622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 eval "$as_ac_Header=\$ac_header_preproc"
20628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20633 cat >>confdefs.h
<<_ACEOF
20634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20643 # Solaris requires -lintl if you want strerror (which calls dgettext)
20644 # to return localized messages.
20646 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20647 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20648 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 ac_check_lib_save_LIBS
=$LIBS
20652 LIBS
="-lintl $LIBS"
20653 cat >conftest.
$ac_ext <<_ACEOF
20656 cat confdefs.h
>>conftest.
$ac_ext
20657 cat >>conftest.
$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 /* Override any gcc2 internal prototype to avoid an error. */
20664 /* We use char because int might match the return type of a gcc2
20665 builtin and then its argument prototype would still apply. */
20675 rm -f conftest.
$ac_objext conftest
$ac_exeext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20677 (eval $ac_link) 2>conftest.er1
20679 grep -v '^ *+' conftest.er1
>conftest.err
20681 cat conftest.err
>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try
='test -z "$ac_c_werror_flag"
20685 || test ! -s conftest.err'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try
='test -s conftest$ac_exeext'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 ac_cv_lib_intl_dgettext
=yes
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.
$ac_ext >&5
20702 ac_cv_lib_intl_dgettext
=no
20704 rm -f conftest.err conftest.
$ac_objext \
20705 conftest
$ac_exeext conftest.
$ac_ext
20706 LIBS
=$ac_check_lib_save_LIBS
20708 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20709 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20710 if test $ac_cv_lib_intl_dgettext = yes; then
20711 cat >>confdefs.h
<<_ACEOF
20712 #define HAVE_LIBINTL 1
20715 LIBS
="-lintl $LIBS"
20720 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20721 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20722 if test "${emacs_cv_localtime_cache+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 if test x
$ac_cv_func_tzset = xyes
; then
20726 if test "$cross_compiling" = yes; then
20727 # If we have tzset, assume the worst when cross-compiling.
20728 emacs_cv_localtime_cache
=yes
20730 cat >conftest.
$ac_ext <<_ACEOF
20733 cat confdefs.h
>>conftest.
$ac_ext
20734 cat >>conftest.
$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20737 extern char **environ;
20741 for (to = from = environ; (*to = *from); from++)
20742 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20745 char TZ_GMT0[] = "TZ=GMT0";
20746 char TZ_PST8[] = "TZ=PST8";
20749 time_t now = time ((time_t *) 0);
20750 int hour_GMT0, hour_unset;
20751 if (putenv (TZ_GMT0) != 0)
20753 hour_GMT0 = localtime (&now)->tm_hour;
20755 hour_unset = localtime (&now)->tm_hour;
20756 if (putenv (TZ_PST8) != 0)
20758 if (localtime (&now)->tm_hour == hour_GMT0)
20761 if (localtime (&now)->tm_hour != hour_unset)
20766 rm -f conftest
$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768 (eval $ac_link) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 emacs_cv_localtime_cache
=no
20779 echo "$as_me: program exited with status $ac_status" >&5
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.
$ac_ext >&5
20783 ( exit $ac_status )
20784 emacs_cv_localtime_cache
=yes
20786 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20789 # If we lack tzset, report that localtime does not cache TZ,
20790 # since we can't invalidate the cache if we don't have tzset.
20791 emacs_cv_localtime_cache
=no
20794 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20795 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20796 if test $emacs_cv_localtime_cache = yes; then
20798 cat >>confdefs.h
<<\_ACEOF
20799 #define LOCALTIME_CACHE 1
20804 if test "x$HAVE_TIMEVAL" = xyes
; then
20806 for ac_func
in gettimeofday
20808 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20809 echo "$as_me:$LINENO: checking for $ac_func" >&5
20810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20811 if eval "test \"\${$as_ac_var+set}\" = set"; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 cat >conftest.
$ac_ext <<_ACEOF
20817 cat confdefs.h
>>conftest.
$ac_ext
20818 cat >>conftest.
$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20822 #define $ac_func innocuous_$ac_func
20824 /* System header to define __stub macros and hopefully few prototypes,
20825 which can conflict with char $ac_func (); below.
20826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20827 <limits.h> exists even on freestanding compilers. */
20830 # include <limits.h>
20832 # include <assert.h>
20837 /* Override any gcc2 internal prototype to avoid an error. */
20842 /* We use char because int might match the return type of a gcc2
20843 builtin and then its argument prototype would still apply. */
20845 /* The GNU C library defines this for functions which it implements
20846 to always fail with ENOSYS. Some functions are actually named
20847 something starting with __ and the normal name is an alias. */
20848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20851 char (*f) () = $ac_func;
20860 return f != $ac_func;
20865 rm -f conftest.
$ac_objext conftest
$ac_exeext
20866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20867 (eval $ac_link) 2>conftest.er1
20869 grep -v '^ *+' conftest.er1
>conftest.err
20871 cat conftest.err
>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
20874 { ac_try
='test -z "$ac_c_werror_flag"
20875 || test ! -s conftest.err'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; } &&
20881 { ac_try
='test -s conftest$ac_exeext'
20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883 (eval $ac_try) 2>&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); }; }; then
20887 eval "$as_ac_var=yes"
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.
$ac_ext >&5
20892 eval "$as_ac_var=no"
20894 rm -f conftest.err conftest.
$ac_objext \
20895 conftest
$ac_exeext conftest.
$ac_ext
20897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20899 if test `eval echo '${'$as_ac_var'}'` = yes; then
20900 cat >>confdefs.h
<<_ACEOF
20901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20907 if test $ac_cv_func_gettimeofday = yes; then
20908 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20909 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20910 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 cat >conftest.
$ac_ext <<_ACEOF
20916 cat confdefs.h
>>conftest.
$ac_ext
20917 cat >>conftest.
$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20920 #ifdef TIME_WITH_SYS_TIME
20921 #include <sys/time.h>
20924 #ifdef HAVE_SYS_TIME_H
20925 #include <sys/time.h>
20933 struct timeval time;
20934 gettimeofday (&time, 0);
20939 rm -f conftest.
$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
20943 grep -v '^ *+' conftest.er1
>conftest.err
20945 cat conftest.err
>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try
='test -z "$ac_c_werror_flag"
20949 || test ! -s conftest.err'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; } &&
20955 { ac_try
='test -s conftest.$ac_objext'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; }; then
20961 emacs_cv_gettimeofday_two_arguments
=yes
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.
$ac_ext >&5
20966 emacs_cv_gettimeofday_two_arguments
=no
20968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20970 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20971 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20972 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20974 cat >>confdefs.h
<<\_ACEOF
20975 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20982 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20983 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20984 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20985 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 cat >conftest.
$ac_ext <<_ACEOF
20991 cat confdefs.h
>>conftest.
$ac_ext
20992 cat >>conftest.
$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 #include <sys/types.h>
20995 #include <$ac_cv_struct_tm>
21001 static struct tm ac_aggr;
21002 if (ac_aggr.tm_zone)
21008 rm -f conftest.
$ac_objext
21009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010 (eval $ac_compile) 2>conftest.er1
21012 grep -v '^ *+' conftest.er1
>conftest.err
21014 cat conftest.err
>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try
='test -z "$ac_c_werror_flag"
21018 || test ! -s conftest.err'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try
='test -s conftest.$ac_objext'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 ac_cv_member_struct_tm_tm_zone
=yes
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.
$ac_ext >&5
21035 cat >conftest.
$ac_ext <<_ACEOF
21038 cat confdefs.h
>>conftest.
$ac_ext
21039 cat >>conftest.
$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <sys/types.h>
21042 #include <$ac_cv_struct_tm>
21048 static struct tm ac_aggr;
21049 if (sizeof ac_aggr.tm_zone)
21055 rm -f conftest.
$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>conftest.er1
21059 grep -v '^ *+' conftest.er1
>conftest.err
21061 cat conftest.err
>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try
='test -z "$ac_c_werror_flag"
21065 || test ! -s conftest.err'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try
='test -s conftest.$ac_objext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 ac_cv_member_struct_tm_tm_zone
=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.
$ac_ext >&5
21082 ac_cv_member_struct_tm_tm_zone
=no
21084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21088 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21089 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21090 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21092 cat >>confdefs.h
<<_ACEOF
21093 #define HAVE_STRUCT_TM_TM_ZONE 1
21099 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21101 cat >>confdefs.h
<<\_ACEOF
21102 #define HAVE_TM_ZONE 1
21106 echo "$as_me:$LINENO: checking for tzname" >&5
21107 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21108 if test "${ac_cv_var_tzname+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 cat >conftest.
$ac_ext <<_ACEOF
21114 cat confdefs.h
>>conftest.
$ac_ext
21115 cat >>conftest.
$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21118 #ifndef tzname /* For SGI. */
21119 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21130 rm -f conftest.
$ac_objext conftest
$ac_exeext
21131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21132 (eval $ac_link) 2>conftest.er1
21134 grep -v '^ *+' conftest.er1
>conftest.err
21136 cat conftest.err
>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
21139 { ac_try
='test -z "$ac_c_werror_flag"
21140 || test ! -s conftest.err'
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; } &&
21146 { ac_try
='test -s conftest$ac_exeext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 ac_cv_var_tzname
=yes
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.
$ac_ext >&5
21157 ac_cv_var_tzname
=no
21159 rm -f conftest.err conftest.
$ac_objext \
21160 conftest
$ac_exeext conftest.
$ac_ext
21162 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21163 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21164 if test $ac_cv_var_tzname = yes; then
21166 cat >>confdefs.h
<<\_ACEOF
21167 #define HAVE_TZNAME 1
21174 if test "$ac_cv_func_gettimeofday" = yes; then
21175 echo "$as_me:$LINENO: checking for struct timezone" >&5
21176 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21177 if test "${emacs_cv_struct_timezone+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 cat >conftest.
$ac_ext <<_ACEOF
21183 cat confdefs.h
>>conftest.
$ac_ext
21184 cat >>conftest.
$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 #include <sys/time.h>
21190 struct timezone tz;
21195 rm -f conftest.
$ac_objext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21197 (eval $ac_compile) 2>conftest.er1
21199 grep -v '^ *+' conftest.er1
>conftest.err
21201 cat conftest.err
>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try
='test -z "$ac_c_werror_flag"
21205 || test ! -s conftest.err'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try
='test -s conftest.$ac_objext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 if test "$cross_compiling" = yes; then
21218 emacs_cv_struct_timezone
=yes
21220 cat >conftest.
$ac_ext <<_ACEOF
21223 cat confdefs.h
>>conftest.
$ac_ext
21224 cat >>conftest.
$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21227 #ifdef TIME_WITH_SYS_TIME
21228 #include <sys/time.h>
21231 #ifdef HAVE_SYS_TIME_H
21232 #include <sys/time.h>
21238 struct timeval time;
21239 struct timezone dummy;
21240 exit (gettimeofday (&time, &dummy));
21243 rm -f conftest
$ac_exeext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21245 (eval $ac_link) 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250 (eval $ac_try) 2>&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; }; then
21254 emacs_cv_struct_timezone
=yes
21256 echo "$as_me: program exited with status $ac_status" >&5
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.
$ac_ext >&5
21260 ( exit $ac_status )
21261 emacs_cv_struct_timezone
=no
21263 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.
$ac_ext >&5
21269 emacs_cv_struct_timezone
=no
21271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21273 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21274 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21278 echo "$as_me:$LINENO: checking for socket" >&5
21279 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21280 if test "${ac_cv_func_socket+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 cat >conftest.
$ac_ext <<_ACEOF
21286 cat confdefs.h
>>conftest.
$ac_ext
21287 cat >>conftest.
$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define socket innocuous_socket
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char socket (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21299 # include <limits.h>
21301 # include <assert.h>
21306 /* Override any gcc2 internal prototype to avoid an error. */
21311 /* We use char because int might match the return type of a gcc2
21312 builtin and then its argument prototype would still apply. */
21314 /* The GNU C library defines this for functions which it implements
21315 to always fail with ENOSYS. Some functions are actually named
21316 something starting with __ and the normal name is an alias. */
21317 #if defined (__stub_socket) || defined (__stub___socket)
21320 char (*f) () = socket;
21329 return f != socket;
21334 rm -f conftest.
$ac_objext conftest
$ac_exeext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21336 (eval $ac_link) 2>conftest.er1
21338 grep -v '^ *+' conftest.er1
>conftest.err
21340 cat conftest.err
>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try
='test -z "$ac_c_werror_flag"
21344 || test ! -s conftest.err'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try
='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_func_socket
=yes
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.
$ac_ext >&5
21361 ac_cv_func_socket
=no
21363 rm -f conftest.err conftest.
$ac_objext \
21364 conftest
$ac_exeext conftest.
$ac_ext
21366 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21367 echo "${ECHO_T}$ac_cv_func_socket" >&6
21368 if test $ac_cv_func_socket = yes; then
21374 if test $ok_so_far = yes; then
21375 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21376 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21377 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21378 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21382 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21384 # Is the header compilable?
21385 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21386 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21387 cat >conftest.
$ac_ext <<_ACEOF
21390 cat confdefs.h
>>conftest.
$ac_ext
21391 cat >>conftest.
$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 $ac_includes_default
21394 #include <netinet/in.h>
21396 rm -f conftest.
$ac_objext
21397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21398 (eval $ac_compile) 2>conftest.er1
21400 grep -v '^ *+' conftest.er1
>conftest.err
21402 cat conftest.err
>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try
='test -z "$ac_c_werror_flag"
21406 || test ! -s conftest.err'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; } &&
21412 { ac_try
='test -s conftest.$ac_objext'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_header_compiler
=yes
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.
$ac_ext >&5
21423 ac_header_compiler
=no
21425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21427 echo "${ECHO_T}$ac_header_compiler" >&6
21429 # Is the header present?
21430 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21431 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21432 cat >conftest.
$ac_ext <<_ACEOF
21435 cat confdefs.h
>>conftest.
$ac_ext
21436 cat >>conftest.
$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 #include <netinet/in.h>
21440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21441 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21443 grep -v '^ *+' conftest.er1
>conftest.err
21445 cat conftest.err
>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } >/dev
/null
; then
21448 if test -s conftest.err
; then
21449 ac_cpp_err
=$ac_c_preproc_warn_flag
21450 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21457 if test -z "$ac_cpp_err"; then
21458 ac_header_preproc
=yes
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.
$ac_ext >&5
21463 ac_header_preproc
=no
21465 rm -f conftest.err conftest.
$ac_ext
21466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21467 echo "${ECHO_T}$ac_header_preproc" >&6
21469 # So? What about this header?
21470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21472 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21473 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21475 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21476 ac_header_preproc
=yes
21479 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21480 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21481 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21482 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21483 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21484 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21486 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21488 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21490 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21493 ## ------------------------------------------ ##
21494 ## Report this to the AC_PACKAGE_NAME lists. ##
21495 ## ------------------------------------------ ##
21498 sed "s/^/$as_me: WARNING: /" >&2
21501 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21502 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21503 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 ac_cv_header_netinet_in_h
=$ac_header_preproc
21508 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21509 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21512 if test $ac_cv_header_netinet_in_h = yes; then
21520 if test $ok_so_far = yes; then
21521 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21522 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21523 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21528 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21530 # Is the header compilable?
21531 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21532 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21533 cat >conftest.
$ac_ext <<_ACEOF
21536 cat confdefs.h
>>conftest.
$ac_ext
21537 cat >>conftest.
$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539 $ac_includes_default
21540 #include <arpa/inet.h>
21542 rm -f conftest.
$ac_objext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21544 (eval $ac_compile) 2>conftest.er1
21546 grep -v '^ *+' conftest.er1
>conftest.err
21548 cat conftest.err
>&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try
='test -z "$ac_c_werror_flag"
21552 || test ! -s conftest.err'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try
='test -s conftest.$ac_objext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_header_compiler
=yes
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.
$ac_ext >&5
21569 ac_header_compiler
=no
21571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21573 echo "${ECHO_T}$ac_header_compiler" >&6
21575 # Is the header present?
21576 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21577 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21578 cat >conftest.
$ac_ext <<_ACEOF
21581 cat confdefs.h
>>conftest.
$ac_ext
21582 cat >>conftest.
$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <arpa/inet.h>
21586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21587 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21589 grep -v '^ *+' conftest.er1
>conftest.err
21591 cat conftest.err
>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } >/dev
/null
; then
21594 if test -s conftest.err
; then
21595 ac_cpp_err
=$ac_c_preproc_warn_flag
21596 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21603 if test -z "$ac_cpp_err"; then
21604 ac_header_preproc
=yes
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.
$ac_ext >&5
21609 ac_header_preproc
=no
21611 rm -f conftest.err conftest.
$ac_ext
21612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21613 echo "${ECHO_T}$ac_header_preproc" >&6
21615 # So? What about this header?
21616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21618 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21619 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21621 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21622 ac_header_preproc
=yes
21625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21626 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21628 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21630 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21632 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21634 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21636 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21639 ## ------------------------------------------ ##
21640 ## Report this to the AC_PACKAGE_NAME lists. ##
21641 ## ------------------------------------------ ##
21644 sed "s/^/$as_me: WARNING: /" >&2
21647 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21648 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21649 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21654 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21655 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21658 if test $ac_cv_header_arpa_inet_h = yes; then
21666 if test $ok_so_far = yes; then
21668 cat >>confdefs.h
<<\_ACEOF
21669 #define HAVE_INET_SOCKETS 1
21675 for ac_header
in sys
/ioctl.h
21677 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21679 echo "$as_me:$LINENO: checking for $ac_header" >&5
21680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21687 # Is the header compilable?
21688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21690 cat >conftest.
$ac_ext <<_ACEOF
21693 cat confdefs.h
>>conftest.
$ac_ext
21694 cat >>conftest.
$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 #include <$ac_header>
21699 rm -f conftest.
$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21703 grep -v '^ *+' conftest.er1
>conftest.err
21705 cat conftest.err
>&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try
='test -z "$ac_c_werror_flag"
21709 || test ! -s conftest.err'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try
='test -s conftest.$ac_objext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_header_compiler
=yes
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.
$ac_ext >&5
21726 ac_header_compiler
=no
21728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21730 echo "${ECHO_T}$ac_header_compiler" >&6
21732 # Is the header present?
21733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21735 cat >conftest.
$ac_ext <<_ACEOF
21738 cat confdefs.h
>>conftest.
$ac_ext
21739 cat >>conftest.
$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 #include <$ac_header>
21743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21746 grep -v '^ *+' conftest.er1
>conftest.err
21748 cat conftest.err
>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } >/dev
/null
; then
21751 if test -s conftest.err
; then
21752 ac_cpp_err
=$ac_c_preproc_warn_flag
21753 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21760 if test -z "$ac_cpp_err"; then
21761 ac_header_preproc
=yes
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.
$ac_ext >&5
21766 ac_header_preproc
=no
21768 rm -f conftest.err conftest.
$ac_ext
21769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21770 echo "${ECHO_T}$ac_header_preproc" >&6
21772 # So? What about this header?
21773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21779 ac_header_preproc
=yes
21782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21796 ## ------------------------------------------ ##
21797 ## Report this to the AC_PACKAGE_NAME lists. ##
21798 ## ------------------------------------------ ##
21801 sed "s/^/$as_me: WARNING: /" >&2
21804 echo "$as_me:$LINENO: checking for $ac_header" >&5
21805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21809 eval "$as_ac_Header=\$ac_header_preproc"
21811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21816 cat >>confdefs.h
<<_ACEOF
21817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21825 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21827 cat >>confdefs.h
<<\_ACEOF
21828 #define HAVE_AIX_SMT_EXP 1
21833 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21834 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21835 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21836 echo "$as_me:$LINENO: result: yes" >&5
21837 echo "${ECHO_T}yes" >&6
21839 cat >>confdefs.h
<<\_ACEOF
21840 #define HAVE_DEV_PTMX 1
21844 echo "$as_me:$LINENO: result: no" >&5
21845 echo "${ECHO_T}no" >&6
21848 echo "$as_me:$LINENO: checking for pid_t" >&5
21849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21850 if test "${ac_cv_type_pid_t+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 cat >conftest.
$ac_ext <<_ACEOF
21856 cat confdefs.h
>>conftest.
$ac_ext
21857 cat >>conftest.
$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21865 if (sizeof (pid_t))
21871 rm -f conftest.
$ac_objext
21872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21873 (eval $ac_compile) 2>conftest.er1
21875 grep -v '^ *+' conftest.er1
>conftest.err
21877 cat conftest.err
>&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
21880 { ac_try
='test -z "$ac_c_werror_flag"
21881 || test ! -s conftest.err'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try
='test -s conftest.$ac_objext'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then
21893 ac_cv_type_pid_t
=yes
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.
$ac_ext >&5
21898 ac_cv_type_pid_t
=no
21900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21902 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21903 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21904 if test $ac_cv_type_pid_t = yes; then
21908 cat >>confdefs.h
<<_ACEOF
21916 for ac_header
in unistd.h vfork.h
21918 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21920 echo "$as_me:$LINENO: checking for $ac_header" >&5
21921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21928 # Is the header compilable?
21929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21931 cat >conftest.
$ac_ext <<_ACEOF
21934 cat confdefs.h
>>conftest.
$ac_ext
21935 cat >>conftest.
$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 $ac_includes_default
21938 #include <$ac_header>
21940 rm -f conftest.
$ac_objext
21941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21942 (eval $ac_compile) 2>conftest.er1
21944 grep -v '^ *+' conftest.er1
>conftest.err
21946 cat conftest.err
>&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
21949 { ac_try
='test -z "$ac_c_werror_flag"
21950 || test ! -s conftest.err'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; } &&
21956 { ac_try
='test -s conftest.$ac_objext'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21962 ac_header_compiler
=yes
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.
$ac_ext >&5
21967 ac_header_compiler
=no
21969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21971 echo "${ECHO_T}$ac_header_compiler" >&6
21973 # Is the header present?
21974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21976 cat >conftest.
$ac_ext <<_ACEOF
21979 cat confdefs.h
>>conftest.
$ac_ext
21980 cat >>conftest.
$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 #include <$ac_header>
21984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21985 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21987 grep -v '^ *+' conftest.er1
>conftest.err
21989 cat conftest.err
>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } >/dev
/null
; then
21992 if test -s conftest.err
; then
21993 ac_cpp_err
=$ac_c_preproc_warn_flag
21994 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22001 if test -z "$ac_cpp_err"; then
22002 ac_header_preproc
=yes
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.
$ac_ext >&5
22007 ac_header_preproc
=no
22009 rm -f conftest.err conftest.
$ac_ext
22010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22011 echo "${ECHO_T}$ac_header_preproc" >&6
22013 # So? What about this header?
22014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22020 ac_header_preproc
=yes
22023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22037 ## ------------------------------------------ ##
22038 ## Report this to the AC_PACKAGE_NAME lists. ##
22039 ## ------------------------------------------ ##
22042 sed "s/^/$as_me: WARNING: /" >&2
22045 echo "$as_me:$LINENO: checking for $ac_header" >&5
22046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 eval "$as_ac_Header=\$ac_header_preproc"
22052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22057 cat >>confdefs.h
<<_ACEOF
22058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22067 for ac_func
in fork vfork
22069 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22070 echo "$as_me:$LINENO: checking for $ac_func" >&5
22071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22072 if eval "test \"\${$as_ac_var+set}\" = set"; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22075 cat >conftest.
$ac_ext <<_ACEOF
22078 cat confdefs.h
>>conftest.
$ac_ext
22079 cat >>conftest.
$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22083 #define $ac_func innocuous_$ac_func
22085 /* System header to define __stub macros and hopefully few prototypes,
22086 which can conflict with char $ac_func (); below.
22087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22088 <limits.h> exists even on freestanding compilers. */
22091 # include <limits.h>
22093 # include <assert.h>
22098 /* Override any gcc2 internal prototype to avoid an error. */
22103 /* We use char because int might match the return type of a gcc2
22104 builtin and then its argument prototype would still apply. */
22106 /* The GNU C library defines this for functions which it implements
22107 to always fail with ENOSYS. Some functions are actually named
22108 something starting with __ and the normal name is an alias. */
22109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22112 char (*f) () = $ac_func;
22121 return f != $ac_func;
22126 rm -f conftest.
$ac_objext conftest
$ac_exeext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22128 (eval $ac_link) 2>conftest.er1
22130 grep -v '^ *+' conftest.er1
>conftest.err
22132 cat conftest.err
>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try
='test -z "$ac_c_werror_flag"
22136 || test ! -s conftest.err'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; } &&
22142 { ac_try
='test -s conftest$ac_exeext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 eval "$as_ac_var=yes"
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.
$ac_ext >&5
22153 eval "$as_ac_var=no"
22155 rm -f conftest.err conftest.
$ac_objext \
22156 conftest
$ac_exeext conftest.
$ac_ext
22158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22160 if test `eval echo '${'$as_ac_var'}'` = yes; then
22161 cat >>confdefs.h
<<_ACEOF
22162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22168 if test "x$ac_cv_func_fork" = xyes
; then
22169 echo "$as_me:$LINENO: checking for working fork" >&5
22170 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22171 if test "${ac_cv_func_fork_works+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 if test "$cross_compiling" = yes; then
22175 ac_cv_func_fork_works
=cross
22177 cat >conftest.
$ac_ext <<_ACEOF
22178 /* By Ruediger Kuhlmann. */
22179 #include <sys/types.h>
22181 # include <unistd.h>
22183 /* Some systems only have a dummy stub for fork() */
22191 rm -f conftest
$ac_exeext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22193 (eval $ac_link) 2>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 ac_cv_func_fork_works
=yes
22204 echo "$as_me: program exited with status $ac_status" >&5
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.
$ac_ext >&5
22208 ( exit $ac_status )
22209 ac_cv_func_fork_works
=no
22211 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22214 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22215 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22218 ac_cv_func_fork_works
=$ac_cv_func_fork
22220 if test "x$ac_cv_func_fork_works" = xcross
; then
22222 *-*-amigaos* |
*-*-msdosdjgpp*)
22223 # Override, as these systems have only a dummy fork() stub
22224 ac_cv_func_fork_works
=no
22227 ac_cv_func_fork_works
=yes
22230 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22231 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22233 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22234 if test "x$ac_cv_func_vfork" = xyes
; then
22235 echo "$as_me:$LINENO: checking for working vfork" >&5
22236 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22237 if test "${ac_cv_func_vfork_works+set}" = set; then
22238 echo $ECHO_N "(cached) $ECHO_C" >&6
22240 if test "$cross_compiling" = yes; then
22241 ac_cv_func_vfork_works
=cross
22243 cat >conftest.
$ac_ext <<_ACEOF
22246 cat confdefs.h
>>conftest.
$ac_ext
22247 cat >>conftest.
$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Thanks to Paul Eggert for this test. */
22251 #include <stdlib.h>
22252 #include <sys/types.h>
22253 #include <sys/stat.h>
22254 #include <sys/wait.h>
22256 # include <unistd.h>
22259 # include <vfork.h>
22261 /* On some sparc systems, changes by the child to local and incoming
22262 argument registers are propagated back to the parent. The compiler
22263 is told about this with #include <vfork.h>, but some compilers
22264 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22265 static variable whose address is put into a register that is
22266 clobbered by the vfork. */
22269 sparc_address_test (int arg)
22271 sparc_address_test (arg) int arg;
22274 static pid_t child;
22292 pid_t parent = getpid ();
22295 sparc_address_test (0);
22300 /* Here is another test for sparc vfork register problems. This
22301 test uses lots of local variables, at least as many local
22302 variables as main has allocated so far including compiler
22303 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22304 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22305 reuse the register of parent for one of the local variables,
22306 since it will think that parent can't possibly be used any more
22307 in this routine. Assigning to the local variable will thus
22308 munge parent in the parent process. */
22310 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22311 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22312 /* Convince the compiler that p..p7 are live; otherwise, it might
22313 use the same hardware register for all 8 local variables. */
22314 if (p != p1 || p != p2 || p != p3 || p != p4
22315 || p != p5 || p != p6 || p != p7)
22318 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22319 from child file descriptors. If the child closes a descriptor
22320 before it execs or exits, this munges the parent's descriptor
22321 as well. Test for this by closing stdout in the child. */
22322 _exit(close(fileno(stdout)) != 0);
22327 while (wait(&status) != child)
22330 /* Was there some problem with vforking? */
22333 /* Did the child fail? (This shouldn't happen.) */
22336 /* Did the vfork/compiler bug occur? */
22337 || parent != getpid()
22339 /* Did the file descriptor bug occur? */
22340 || fstat(fileno(stdout), &st) != 0
22345 rm -f conftest
$ac_exeext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22347 (eval $ac_link) 2>&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }; then
22356 ac_cv_func_vfork_works
=yes
22358 echo "$as_me: program exited with status $ac_status" >&5
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.
$ac_ext >&5
22362 ( exit $ac_status )
22363 ac_cv_func_vfork_works
=no
22365 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22368 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22369 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22372 if test "x$ac_cv_func_fork_works" = xcross
; then
22373 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22374 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22375 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22378 if test "x$ac_cv_func_vfork_works" = xyes
; then
22380 cat >>confdefs.h
<<\_ACEOF
22381 #define HAVE_WORKING_VFORK 1
22386 cat >>confdefs.h
<<\_ACEOF
22391 if test "x$ac_cv_func_fork_works" = xyes
; then
22393 cat >>confdefs.h
<<\_ACEOF
22394 #define HAVE_WORKING_FORK 1
22400 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22401 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22402 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22405 cat >conftest.
$ac_ext <<_ACEOF
22408 cat confdefs.h
>>conftest.
$ac_ext
22409 cat >>conftest.
$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <langinfo.h>
22415 char* cs = nl_langinfo(CODESET);
22420 rm -f conftest.
$ac_objext conftest
$ac_exeext
22421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22422 (eval $ac_link) 2>conftest.er1
22424 grep -v '^ *+' conftest.er1
>conftest.err
22426 cat conftest.err
>&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } &&
22429 { ac_try
='test -z "$ac_c_werror_flag"
22430 || test ! -s conftest.err'
22431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432 (eval $ac_try) 2>&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; } &&
22436 { ac_try
='test -s conftest$ac_exeext'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; }; then
22442 emacs_cv_langinfo_codeset
=yes
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.
$ac_ext >&5
22447 emacs_cv_langinfo_codeset
=no
22449 rm -f conftest.err conftest.
$ac_objext \
22450 conftest
$ac_exeext conftest.
$ac_ext
22453 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22454 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22455 if test $emacs_cv_langinfo_codeset = yes; then
22457 cat >>confdefs.h
<<\_ACEOF
22458 #define HAVE_LANGINFO_CODESET 1
22463 echo "$as_me:$LINENO: checking for size_t" >&5
22464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22465 if test "${ac_cv_type_size_t+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22468 cat >conftest.
$ac_ext <<_ACEOF
22471 cat confdefs.h
>>conftest.
$ac_ext
22472 cat >>conftest.
$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 $ac_includes_default
22480 if (sizeof (size_t))
22486 rm -f conftest.
$ac_objext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22488 (eval $ac_compile) 2>conftest.er1
22490 grep -v '^ *+' conftest.er1
>conftest.err
22492 cat conftest.err
>&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try
='test -z "$ac_c_werror_flag"
22496 || test ! -s conftest.err'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; } &&
22502 { ac_try
='test -s conftest.$ac_objext'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 ac_cv_type_size_t
=yes
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.
$ac_ext >&5
22513 ac_cv_type_size_t
=no
22515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22517 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22518 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22519 if test $ac_cv_type_size_t = yes; then
22521 cat >>confdefs.h
<<_ACEOF
22522 #define HAVE_SIZE_T 1
22529 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22530 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22531 if test "${ac_cv_type_mbstate_t+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22534 cat >conftest.
$ac_ext <<_ACEOF
22537 cat confdefs.h
>>conftest.
$ac_ext
22538 cat >>conftest.
$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22541 # include <wchar.h>
22545 mbstate_t x; return sizeof x;
22550 rm -f conftest.
$ac_objext
22551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22552 (eval $ac_compile) 2>conftest.er1
22554 grep -v '^ *+' conftest.er1
>conftest.err
22556 cat conftest.err
>&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } &&
22559 { ac_try
='test -z "$ac_c_werror_flag"
22560 || test ! -s conftest.err'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try
='test -s conftest.$ac_objext'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 ac_cv_type_mbstate_t
=yes
22574 echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.
$ac_ext >&5
22577 ac_cv_type_mbstate_t
=no
22579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22581 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22582 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22583 if test $ac_cv_type_mbstate_t = yes; then
22585 cat >>confdefs.h
<<\_ACEOF
22586 #define HAVE_MBSTATE_T 1
22591 cat >>confdefs.h
<<\_ACEOF
22592 #define mbstate_t int
22597 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22598 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22599 if test "${emacs_cv_c_restrict+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22602 cat >conftest.
$ac_ext <<_ACEOF
22605 cat confdefs.h
>>conftest.
$ac_ext
22606 cat >>conftest.
$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 void fred (int *restrict x);
22617 rm -f conftest.
$ac_objext
22618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22619 (eval $ac_compile) 2>conftest.er1
22621 grep -v '^ *+' conftest.er1
>conftest.err
22623 cat conftest.err
>&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } &&
22626 { ac_try
='test -z "$ac_c_werror_flag"
22627 || test ! -s conftest.err'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; } &&
22633 { ac_try
='test -s conftest.$ac_objext'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 emacs_cv_c_restrict
=yes
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.
$ac_ext >&5
22644 cat >conftest.
$ac_ext <<_ACEOF
22647 cat confdefs.h
>>conftest.
$ac_ext
22648 cat >>conftest.
$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 void fred (int *__restrict x);
22659 rm -f conftest.
$ac_objext
22660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22661 (eval $ac_compile) 2>conftest.er1
22663 grep -v '^ *+' conftest.er1
>conftest.err
22665 cat conftest.err
>&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } &&
22668 { ac_try
='test -z "$ac_c_werror_flag"
22669 || test ! -s conftest.err'
22670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671 (eval $ac_try) 2>&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); }; } &&
22675 { ac_try
='test -s conftest.$ac_objext'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; }; then
22681 emacs_cv_c_restrict
=__restrict
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.
$ac_ext >&5
22686 emacs_cv_c_restrict
=no
22688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22692 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22693 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22694 case "$emacs_cv_c_restrict" in
22695 yes) emacs_restrict
=restrict
;;
22696 no
) emacs_restrict
="";;
22697 *) emacs_restrict
="$emacs_cv_c_restrict";;
22699 if test "$emacs_restrict" != __restrict
; then
22701 cat >>confdefs.h
<<_ACEOF
22702 #define __restrict $emacs_restrict
22707 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22708 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22709 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 cat >conftest.
$ac_ext <<_ACEOF
22715 cat confdefs.h
>>conftest.
$ac_ext
22716 cat >>conftest.
$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 void fred (int x[__restrict]);
22727 rm -f conftest.
$ac_objext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22729 (eval $ac_compile) 2>conftest.er1
22731 grep -v '^ *+' conftest.er1
>conftest.err
22733 cat conftest.err
>&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try
='test -z "$ac_c_werror_flag"
22737 || test ! -s conftest.err'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try
='test -s conftest.$ac_objext'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 emacs_cv_c_restrict_arr
=yes
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.
$ac_ext >&5
22754 emacs_cv_c_restrict_arr
=no
22756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22758 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22759 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22760 if test "$emacs_cv_c_restrict_arr" = yes; then
22762 cat >>confdefs.h
<<\_ACEOF
22763 #define __restrict_arr __restrict
22770 # Set up the CFLAGS for real compilation, so we can substitute it.
22771 CFLAGS
="$REAL_CFLAGS"
22772 CPPFLAGS
="$REAL_CPPFLAGS"
22774 #### Find out which version of Emacs this is.
22775 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22776 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22777 if test x
"${version}" = x
; then
22778 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22779 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22780 { (exit 1); exit 1; }; }
22783 ### Specify what sort of things we'll be editing into Makefile and config.h.
22784 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22820 cat >>confdefs.h
<<_ACEOF
22821 #define EMACS_CONFIGURATION "${canonical}"
22825 cat >>confdefs.h
<<_ACEOF
22826 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22830 cat >>confdefs.h
<<_ACEOF
22831 #define config_machfile "${machfile}"
22835 cat >>confdefs.h
<<_ACEOF
22836 #define config_opsysfile "${opsysfile}"
22840 cat >>confdefs.h
<<_ACEOF
22841 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22845 cat >>confdefs.h
<<_ACEOF
22846 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22850 cat >>confdefs.h
<<_ACEOF
22851 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22855 cat >>confdefs.h
<<_ACEOF
22856 #define UNEXEC_SRC ${UNEXEC_SRC}
22860 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22862 cat >>confdefs.h
<<\_ACEOF
22863 #define HAVE_X_WINDOWS 1
22867 if test "${USE_X_TOOLKIT}" != "none" ; then
22869 cat >>confdefs.h
<<\_ACEOF
22870 #define USE_X_TOOLKIT 1
22874 if test "${HAVE_X11}" = "yes" ; then
22876 cat >>confdefs.h
<<\_ACEOF
22881 if test "${HAVE_XFREE386}" = "yes" ; then
22883 cat >>confdefs.h
<<\_ACEOF
22884 #define HAVE_XFREE386 1
22888 if test "${HAVE_MENUS}" = "yes" ; then
22890 cat >>confdefs.h
<<\_ACEOF
22891 #define HAVE_MENUS 1
22895 if test "${GNU_MALLOC}" = "yes" ; then
22897 cat >>confdefs.h
<<\_ACEOF
22898 #define GNU_MALLOC 1
22902 if test "${REL_ALLOC}" = "yes" ; then
22904 cat >>confdefs.h
<<\_ACEOF
22905 #define REL_ALLOC 1
22914 #### Report on what we decided to do.
22915 #### Report GTK as a toolkit, even if it doesn't use Xt.
22916 #### It makes printing result more understandable as using GTK sets
22917 #### toolkit_scroll_bars to yes by default.
22918 if test "${HAVE_GTK}" = "yes"; then
22923 Configured for \`${canonical}'.
22925 Where should the build process find the source code? ${srcdir}
22926 What operating system and machine description files should Emacs use?
22927 \`${opsysfile}' and \`${machfile}'
22928 What compiler should emacs be built with? ${CC} ${CFLAGS}
22929 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22930 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22931 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22932 What window system should Emacs use? ${window_system}
22933 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22935 if test -n "${x_includes}"; then
22936 echo " Where do we find X Windows header files? ${x_includes}"
22938 echo " Where do we find X Windows header files? Standard dirs"
22940 if test -n "${x_libraries}"; then
22941 echo " Where do we find X Windows libraries? ${x_libraries}"
22943 echo " Where do we find X Windows libraries? Standard dirs"
22946 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22947 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22948 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22949 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22950 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22951 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22952 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22955 if test $USE_XASSERTS = yes; then
22956 echo " Compiling with asserts turned on."
22957 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22963 # Remove any trailing slashes in these variables.
22964 test "${prefix}" != NONE
&&
22965 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22966 test "${exec_prefix}" != NONE
&&
22967 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22969 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22970 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22971 ## from Makefile.c can correctly provide the arg `-traditional' to the
22974 cat >conftest.
$ac_ext <<_ACEOF
22977 cat confdefs.h
>>conftest.
$ac_ext
22978 cat >>conftest.
$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22983 $EGREP "yes..yes" >/dev
/null
2>&1; then
22984 CPP_NEED_TRADITIONAL
=no
22986 CPP_NEED_TRADITIONAL
=yes
22991 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"
22992 ac_config_commands
="$ac_config_commands default"
22993 cat >confcache
<<\_ACEOF
22994 # This file is a shell script that caches the results of configure
22995 # tests run on this system so they can be shared between configure
22996 # scripts and configure runs, see configure's option --config-cache.
22997 # It is not useful on other systems. If it contains results you don't
22998 # want to keep, you may remove or edit it.
23000 # config.status only pays attention to the cache file if you give it
23001 # the --recheck option to rerun configure.
23003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23005 # following values.
23009 # The following way of writing the cache mishandles newlines in values,
23010 # but we know of no workaround that is simple, portable, and efficient.
23011 # So, don't put newlines in cache variables' values.
23012 # Ultrix sh set writes to stderr and can't be redirected directly,
23013 # and sets the high bit in the cache file unless we assign to the vars.
23016 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23018 # `set' does not quote correctly, so add quotes (double-quote
23019 # substitution turns \\\\ into \\, and sed turns \\ into \).
23022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23025 # `set' quotes correctly as required by POSIX, so do not add quotes.
23027 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23034 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23036 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23038 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23039 if test -w $cache_file; then
23040 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23041 cat confcache
>$cache_file
23043 echo "not updating unwritable cache $cache_file"
23048 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23049 # Let make expand exec_prefix.
23050 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23052 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23053 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23054 # trailing colons and then remove the whole line if VPATH becomes empty
23055 # (actually we leave an empty line to preserve line numbers).
23056 if test "x$srcdir" = x.
; then
23057 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23058 s/:*\$(srcdir):*/:/;
23059 s/:*\${srcdir}:*/:/;
23061 s/^\([^=]*=[ ]*\):*/\1/;
23067 DEFS
=-DHAVE_CONFIG_H
23071 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23072 # 1. Remove the extension, and $U if already installed.
23073 ac_i
=`echo "$ac_i" |
23074 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23076 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23077 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23079 LIBOBJS
=$ac_libobjs
23081 LTLIBOBJS
=$ac_ltlibobjs
23085 : ${CONFIG_STATUS=./config.status}
23086 ac_clean_files_save
=$ac_clean_files
23087 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23088 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23089 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23090 cat >$CONFIG_STATUS <<_ACEOF
23092 # Generated by $as_me.
23093 # Run this file to recreate the current configuration.
23094 # Compiler output produced by configure, useful for debugging
23095 # configure, is in config.log if it exists.
23098 ac_cs_recheck=false
23100 SHELL=\${CONFIG_SHELL-$SHELL}
23103 cat >>$CONFIG_STATUS <<\_ACEOF
23104 ## --------------------- ##
23105 ## M4sh Initialization. ##
23106 ## --------------------- ##
23108 # Be Bourne compatible
23109 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23112 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23113 # is contrary to our usage. Disable this feature.
23114 alias -g '${1+"$@"}'='"$@"'
23115 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23118 DUALCASE
=1; export DUALCASE
# for MKS sh
23120 # Support unset when possible.
23121 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23128 # Work around bugs in pre-3.0 UWIN ksh.
23129 $as_unset ENV MAIL MAILPATH
23136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23138 LC_TELEPHONE LC_TIME
23140 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23141 eval $as_var=C
; export $as_var
23147 # Required to use basename.
23148 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23154 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23155 as_basename
=basename
23161 # Name of the executable.
23162 as_me
=`$as_basename "$0" ||
23163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23164 X"$0" : 'X\(//\)$' \| \
23165 X"$0" : 'X\(/\)$' \| \
23166 . : '\(.\)' 2>/dev/null ||
23168 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23169 /^X\/\(\/\/\)$/{ s//\1/; q; }
23170 /^X\/\(\/\).*/{ s//\1/; q; }
23174 # PATH needs CR, and LINENO needs CR and PATH.
23175 # Avoid depending upon Character Ranges.
23176 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23177 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23178 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23179 as_cr_digits
='0123456789'
23180 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23182 # The user is always right.
23183 if test "${PATH_SEPARATOR+set}" != set; then
23184 echo "#! /bin/sh" >conf$$.sh
23185 echo "exit 0" >>conf$$.sh
23187 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23196 as_lineno_1
=$LINENO
23197 as_lineno_2
=$LINENO
23198 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23199 test "x$as_lineno_1" != "x$as_lineno_2" &&
23200 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23201 # Find who we are. Look in the path if we contain no path at all
23204 *[\\/]* ) as_myself
=$0 ;;
23205 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23206 for as_dir
in $PATH
23209 test -z "$as_dir" && as_dir
=.
23210 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23215 # We did not find ourselves, most probably we were run as `sh COMMAND'
23216 # in which case we are not to be found in the path.
23217 if test "x$as_myself" = x
; then
23220 if test ! -f "$as_myself"; then
23221 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23222 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23223 { (exit 1); exit 1; }; }
23225 case $CONFIG_SHELL in
23227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23228 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23231 test -z "$as_dir" && as_dir
=.
23232 for as_base
in sh bash ksh sh5
; do
23235 if ("$as_dir/$as_base" -c '
23236 as_lineno_1=$LINENO
23237 as_lineno_2=$LINENO
23238 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23239 test "x$as_lineno_1" != "x$as_lineno_2" &&
23240 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23241 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23242 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23243 CONFIG_SHELL
=$as_dir/$as_base
23244 export CONFIG_SHELL
23245 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23253 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23254 # uniformly replaced by the line number. The first 'sed' inserts a
23255 # line-number line before each line; the second 'sed' does the real
23256 # work. The second script uses 'N' to pair each line-number line
23257 # with the numbered line, and appends trailing '-' during
23258 # substitution so that $LINENO is not a special case at line end.
23259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23260 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23261 sed '=' <$as_myself |
23266 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23269 s,^['$as_cr_digits']*\n,,
23270 ' >$as_me.lineno
&&
23271 chmod +x
$as_me.lineno ||
23272 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23273 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23274 { (exit 1); exit 1; }; }
23276 # Don't try to exec as it changes $[0], causing all sort of problems
23277 # (the dirname of $[0] is not the place where we might find the
23278 # original and so on. Autoconf is especially sensible to this).
23280 # Exit status is that of the last command.
23285 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23286 *c
*,-n*) ECHO_N
= ECHO_C
='
23288 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23289 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23292 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23298 rm -f conf$$ conf$$.exe conf$$.
file
23300 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23301 # We could just check for DJGPP; but this test a) works b) is more generic
23302 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23303 if test -f conf$$.exe
; then
23304 # Don't use ln at all; we don't have any links
23309 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23314 rm -f conf$$ conf$$.exe conf$$.
file
23316 if mkdir
-p .
2>/dev
/null
; then
23319 test -d .
/-p && rmdir .
/-p
23323 as_executable_p
="test -f"
23325 # Sed expression to map a string onto a valid CPP name.
23326 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23328 # Sed expression to map a string onto a valid variable name.
23329 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23333 # We need space, tab and new line, in precisely that order.
23343 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23344 # report actual input values of CONFIG_FILES etc. instead of their
23345 # values after options handling. Logging --version etc. is OK.
23349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23350 ## Running $as_me. ##
23355 This file was extended by $as_me, which was
23356 generated by GNU Autoconf 2.59. Invocation command line was
23358 CONFIG_FILES = $CONFIG_FILES
23359 CONFIG_HEADERS = $CONFIG_HEADERS
23360 CONFIG_LINKS = $CONFIG_LINKS
23361 CONFIG_COMMANDS = $CONFIG_COMMANDS
23365 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23369 # Files that config.status was made for.
23370 if test -n "$ac_config_files"; then
23371 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23374 if test -n "$ac_config_headers"; then
23375 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23378 if test -n "$ac_config_links"; then
23379 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23382 if test -n "$ac_config_commands"; then
23383 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23389 \`$as_me' instantiates files from templates according to the
23390 current configuration.
23392 Usage: $0 [OPTIONS] [FILE]...
23394 -h, --help print this help, then exit
23395 -V, --version print version number, then exit
23396 -q, --quiet do not print progress messages
23397 -d, --debug don't remove temporary files
23398 --recheck update $as_me by reconfiguring in the same conditions
23399 --file=FILE[:TEMPLATE]
23400 instantiate the configuration file FILE
23401 --header=FILE[:TEMPLATE]
23402 instantiate the configuration header FILE
23404 Configuration files:
23407 Configuration headers:
23410 Configuration commands:
23413 Report bugs to <bug-autoconf@gnu.org>."
23416 cat >>$CONFIG_STATUS <<_ACEOF
23419 configured by $0, generated by GNU Autoconf 2.59,
23420 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23422 Copyright (C) 2003 Free Software Foundation, Inc.
23423 This config.status script is free software; the Free Software Foundation
23424 gives unlimited permission to copy, distribute and modify it."
23429 cat >>$CONFIG_STATUS <<\_ACEOF
23430 # If no file are specified by the user, then we need to provide default
23431 # value. By we need to know if files were specified by the user.
23437 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23438 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23446 *) # This is not an option, so the user has probably given explicit
23449 ac_need_defaults
=false
;;
23453 # Handling of the options.
23455 cat >>$CONFIG_STATUS <<\_ACEOF
23456 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23458 --version |
--vers* |
-V )
23459 echo "$ac_cs_version"; exit 0 ;;
23461 # Conflict between --help and --header
23462 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23463 Try \`$0 --help' for more information." >&5
23464 echo "$as_me: error: ambiguous option: $1
23465 Try \`$0 --help' for more information." >&2;}
23466 { (exit 1); exit 1; }; };;
23467 --help |
--hel |
-h )
23468 echo "$ac_cs_usage"; exit 0 ;;
23469 --debug |
--d* |
-d )
23471 --file |
--fil |
--fi |
--f )
23473 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23474 ac_need_defaults
=false
;;
23475 --header |
--heade |
--head |
--hea )
23477 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23478 ac_need_defaults
=false
;;
23479 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23480 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23483 # This is an error.
23484 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23485 Try \`$0 --help' for more information." >&5
23486 echo "$as_me: error: unrecognized option: $1
23487 Try \`$0 --help' for more information." >&2;}
23488 { (exit 1); exit 1; }; } ;;
23490 *) ac_config_targets
="$ac_config_targets $1" ;;
23496 ac_configure_extra_args
=
23498 if $ac_cs_silent; then
23500 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23504 cat >>$CONFIG_STATUS <<_ACEOF
23505 if \$ac_cs_recheck; then
23506 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23507 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23512 cat >>$CONFIG_STATUS <<_ACEOF
23514 # INIT-COMMANDS section.
23517 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23523 cat >>$CONFIG_STATUS <<\_ACEOF
23524 for ac_config_target
in $ac_config_targets
23526 case "$ac_config_target" in
23527 # Handling of arguments.
23528 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23529 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23530 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23531 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23532 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23533 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23534 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23535 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23536 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23537 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23538 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23539 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23540 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23541 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23542 { (exit 1); exit 1; }; };;
23546 # If the user did not use the arguments to specify the items to instantiate,
23547 # then the envvar interface is used. Set only those that are not.
23548 # We use the long form for the default assignment because of an extremely
23549 # bizarre bug on SunOS 4.1.3.
23550 if $ac_need_defaults; then
23551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23556 # Have a temporary directory for convenience. Make it in the build tree
23557 # simply because there is no reason to put it here, and in addition,
23558 # creating and moving files from /tmp can sometimes cause problems.
23559 # Create a temporary directory, and hook for its removal unless debugging.
23562 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23563 trap '{ (exit 1); exit 1; }' 1 2 13 15
23566 # Create a (secure) tmp directory for tmp files.
23569 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23570 test -n "$tmp" && test -d "$tmp"
23573 tmp
=.
/confstat$$
-$RANDOM
23574 (umask 077 && mkdir
$tmp)
23577 echo "$me: cannot create a temporary directory in ." >&2
23578 { (exit 1); exit 1; }
23583 cat >>$CONFIG_STATUS <<_ACEOF
23586 # CONFIG_FILES section.
23589 # No need to generate the scripts if there are no CONFIG_FILES.
23590 # This happens for instance when ./config.status config.h
23591 if test -n "\$CONFIG_FILES"; then
23592 # Protect against being on the right side of a sed subst in config.status.
23593 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23594 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23595 s,@SHELL@,$SHELL,;t t
23596 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23597 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23598 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23599 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23600 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23601 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23602 s,@exec_prefix@,$exec_prefix,;t t
23603 s,@prefix@,$prefix,;t t
23604 s,@program_transform_name@,$program_transform_name,;t t
23605 s,@bindir@,$bindir,;t t
23606 s,@sbindir@,$sbindir,;t t
23607 s,@libexecdir@,$libexecdir,;t t
23608 s,@datadir@,$datadir,;t t
23609 s,@sysconfdir@,$sysconfdir,;t t
23610 s,@sharedstatedir@,$sharedstatedir,;t t
23611 s,@localstatedir@,$localstatedir,;t t
23612 s,@libdir@,$libdir,;t t
23613 s,@includedir@,$includedir,;t t
23614 s,@oldincludedir@,$oldincludedir,;t t
23615 s,@infodir@,$infodir,;t t
23616 s,@mandir@,$mandir,;t t
23617 s,@build_alias@,$build_alias,;t t
23618 s,@host_alias@,$host_alias,;t t
23619 s,@target_alias@,$target_alias,;t t
23620 s,@DEFS@,$DEFS,;t t
23621 s,@ECHO_C@,$ECHO_C,;t t
23622 s,@ECHO_N@,$ECHO_N,;t t
23623 s,@ECHO_T@,$ECHO_T,;t t
23624 s,@LIBS@,$LIBS,;t t
23625 s,@MAINT@,$MAINT,;t t
23626 s,@build@,$build,;t t
23627 s,@build_cpu@,$build_cpu,;t t
23628 s,@build_vendor@,$build_vendor,;t t
23629 s,@build_os@,$build_os,;t t
23630 s,@host@,$host,;t t
23631 s,@host_cpu@,$host_cpu,;t t
23632 s,@host_vendor@,$host_vendor,;t t
23633 s,@host_os@,$host_os,;t t
23635 s,@CFLAGS@,$CFLAGS,;t t
23636 s,@LDFLAGS@,$LDFLAGS,;t t
23637 s,@CPPFLAGS@,$CPPFLAGS,;t t
23638 s,@ac_ct_CC@,$ac_ct_CC,;t t
23639 s,@EXEEXT@,$EXEEXT,;t t
23640 s,@OBJEXT@,$OBJEXT,;t t
23642 s,@EGREP@,$EGREP,;t t
23643 s,@LN_S@,$LN_S,;t t
23644 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23645 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23646 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23647 s,@RANLIB@,$RANLIB,;t t
23648 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23649 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23650 s,@GZIP_PROG@,$GZIP_PROG,;t t
23651 s,@LIBSOUND@,$LIBSOUND,;t t
23652 s,@SET_MAKE@,$SET_MAKE,;t t
23653 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23654 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23655 s,@GTK_LIBS@,$GTK_LIBS,;t t
23656 s,@ALLOCA@,$ALLOCA,;t t
23657 s,@liblockfile@,$liblockfile,;t t
23658 s,@LIBOBJS@,$LIBOBJS,;t t
23659 s,@NEED_SETGID@,$NEED_SETGID,;t t
23660 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23661 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23662 s,@GETOPT_H@,$GETOPT_H,;t t
23663 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23664 s,@version@,$version,;t t
23665 s,@configuration@,$configuration,;t t
23666 s,@canonical@,$canonical,;t t
23667 s,@srcdir@,$srcdir,;t t
23668 s,@lispdir@,$lispdir,;t t
23669 s,@locallisppath@,$locallisppath,;t t
23670 s,@lisppath@,$lisppath,;t t
23671 s,@x_default_search_path@,$x_default_search_path,;t t
23672 s,@etcdir@,$etcdir,;t t
23673 s,@archlibdir@,$archlibdir,;t t
23674 s,@docdir@,$docdir,;t t
23675 s,@bitmapdir@,$bitmapdir,;t t
23676 s,@gamedir@,$gamedir,;t t
23677 s,@gameuser@,$gameuser,;t t
23678 s,@c_switch_system@,$c_switch_system,;t t
23679 s,@c_switch_machine@,$c_switch_machine,;t t
23680 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23681 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23682 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23683 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23684 s,@machfile@,$machfile,;t t
23685 s,@opsysfile@,$opsysfile,;t t
23686 s,@carbon_appdir@,$carbon_appdir,;t t
23687 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23692 cat >>$CONFIG_STATUS <<\_ACEOF
23693 # Split the substitutions into bite-sized pieces for seds with
23694 # small command number limits, like on Digital OSF/1 and HP-UX.
23695 ac_max_sed_lines
=48
23696 ac_sed_frag
=1 # Number of current file.
23697 ac_beg
=1 # First line for current file.
23698 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23701 while $ac_more_lines; do
23702 if test $ac_beg -gt 1; then
23703 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23705 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23707 if test ! -s $tmp/subs.frag
; then
23708 ac_more_lines
=false
23710 # The purpose of the label and of the branching condition is to
23711 # speed up the sed processing (if there are no `@' at all, there
23712 # is no need to browse any of the substitutions).
23713 # These are the two extra sed commands mentioned above.
23715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23716 if test -z "$ac_sed_cmds"; then
23717 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23719 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23721 ac_sed_frag
=`expr $ac_sed_frag + 1`
23723 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23726 if test -z "$ac_sed_cmds"; then
23729 fi # test -n "$CONFIG_FILES"
23732 cat >>$CONFIG_STATUS <<\_ACEOF
23733 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23736 - |
*:- |
*:-:* ) # input from stdin
23738 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23739 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23740 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23741 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23742 * ) ac_file_in
=$ac_file.
in ;;
23745 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23746 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23748 X"$ac_file" : 'X\(//\)[^/]' \| \
23749 X"$ac_file" : 'X\(//\)$' \| \
23750 X"$ac_file" : 'X\(/\)' \| \
23751 . : '\(.\)' 2>/dev/null ||
23753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23755 /^X\(\/\/\)$/{ s//\1/; q; }
23756 /^X\(\/\).*/{ s//\1/; q; }
23758 { if $as_mkdir_p; then
23763 while test ! -d "$as_dir"; do
23764 as_dirs
="$as_dir $as_dirs"
23765 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23767 X"$as_dir" : 'X\(//\)[^/]' \| \
23768 X"$as_dir" : 'X\(//\)$' \| \
23769 X"$as_dir" : 'X\(/\)' \| \
23770 . : '\(.\)' 2>/dev/null ||
23772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23774 /^X\(\/\/\)$/{ s//\1/; q; }
23775 /^X\(\/\).*/{ s//\1/; q; }
23778 test ! -n "$as_dirs" || mkdir
$as_dirs
23779 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23780 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23781 { (exit 1); exit 1; }; }; }
23785 if test "$ac_dir" != .
; then
23786 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23787 # A "../" for each directory in $ac_dir_suffix.
23788 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23790 ac_dir_suffix
= ac_top_builddir
=
23794 .
) # No --srcdir option. We are building in place.
23796 if test -z "$ac_top_builddir"; then
23799 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23801 [\\/]* | ?
:[\\/]* ) # Absolute path.
23802 ac_srcdir
=$srcdir$ac_dir_suffix;
23803 ac_top_srcdir
=$srcdir ;;
23804 *) # Relative path.
23805 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23806 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23809 # Do not use `cd foo && pwd` to compute absolute paths, because
23810 # the directories may not exist.
23812 .
) ac_abs_builddir
="$ac_dir";;
23815 .
) ac_abs_builddir
=`pwd`;;
23816 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23817 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23820 case $ac_abs_builddir in
23821 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23823 case ${ac_top_builddir}.
in
23824 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23825 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23826 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23829 case $ac_abs_builddir in
23830 .
) ac_abs_srcdir
=$ac_srcdir;;
23833 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23834 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23835 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23838 case $ac_abs_builddir in
23839 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23841 case $ac_top_srcdir in
23842 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23843 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23844 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23850 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23851 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23854 if test x
"$ac_file" != x-
; then
23855 { echo "$as_me:$LINENO: creating $ac_file" >&5
23856 echo "$as_me: creating $ac_file" >&6;}
23859 # Let's still pretend it is `configure' which instantiates (i.e., don't
23860 # use $as_me), people would be surprised to read:
23861 # /* config.h. Generated by config.status. */
23862 if test x
"$ac_file" = x-
; then
23865 configure_input
="$ac_file. "
23867 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23868 sed 's,.*/,,'` by configure."
23870 # First look for the input files in the build tree, otherwise in the
23872 ac_file_inputs
=`IFS=:
23873 for f in $ac_file_in; do
23875 -) echo $tmp/stdin ;;
23877 # Absolute (can't be DOS-style, as IFS=:)
23878 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23879 echo "$as_me: error: cannot find input file: $f" >&2;}
23880 { (exit 1); exit 1; }; }
23883 if test -f "$f"; then
23886 elif test -f "$srcdir/$f"; then
23891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23892 echo "$as_me: error: cannot find input file: $f" >&2;}
23893 { (exit 1); exit 1; }; }
23896 done` ||
{ (exit 1); exit 1; }
23898 cat >>$CONFIG_STATUS <<_ACEOF
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23904 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23905 s
,@configure_input@
,$configure_input,;t t
23906 s
,@srcdir@
,$ac_srcdir,;t t
23907 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23908 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23909 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23910 s
,@builddir@
,$ac_builddir,;t t
23911 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23912 s
,@top_builddir@
,$ac_top_builddir,;t t
23913 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23914 s
,@INSTALL@
,$ac_INSTALL,;t t
23915 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23917 if test x"$ac_file" != x-; then
23918 mv $tmp/out $ac_file
23926 cat >>$CONFIG_STATUS <<\_ACEOF
23929 # CONFIG_HEADER section.
23932 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23933 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23935 # ac_d sets the value in "#define NAME VALUE" lines.
23936 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23937 ac_dB
='[ ].*$,\1#\2'
23940 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23941 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23942 ac_uB
='$,\1#\2define\3'
23946 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23949 - |
*:- |
*:-:* ) # input from stdin
23951 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23952 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23953 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23954 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23955 * ) ac_file_in
=$ac_file.
in ;;
23958 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23959 echo "$as_me: creating $ac_file" >&6;}
23961 # First look for the input files in the build tree, otherwise in the
23963 ac_file_inputs
=`IFS=:
23964 for f in $ac_file_in; do
23966 -) echo $tmp/stdin ;;
23968 # Absolute (can't be DOS-style, as IFS=:)
23969 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23970 echo "$as_me: error: cannot find input file: $f" >&2;}
23971 { (exit 1); exit 1; }; }
23972 # Do quote $f, to prevent DOS paths from being IFS'd.
23975 if test -f "$f"; then
23978 elif test -f "$srcdir/$f"; then
23983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23984 echo "$as_me: error: cannot find input file: $f" >&2;}
23985 { (exit 1); exit 1; }; }
23988 done` ||
{ (exit 1); exit 1; }
23989 # Remove the trailing spaces.
23990 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23994 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23995 # `conftest.undefs', that substitutes the proper values into
23996 # config.h.in to produce config.h. The first handles `#define'
23997 # templates, and the second `#undef' templates.
23998 # And first: Protect against being on the right side of a sed subst in
23999 # config.status. Protect against being in an unquoted here document
24000 # in config.status.
24001 rm -f conftest.defines conftest.undefs
24002 # Using a here document instead of a string reduces the quoting nightmare.
24003 # Putting comments in sed scripts is not portable.
24005 # `end' is used to avoid that the second main sed command (meant for
24006 # 0-ary CPP macros) applies to n-ary macro definitions.
24007 # See the Autoconf documentation for `clear'.
24008 cat >confdef2sed.
sed <<\_ACEOF
24013 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24015 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24018 # If some macros were called several times there might be several times
24019 # the same #defines, which is useless. Nevertheless, we may not want to
24020 # sort them, since we want the *last* AC-DEFINE to be honored.
24021 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24022 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24023 rm -f confdef2sed.sed
24025 # This sed command replaces #undef with comments. This is necessary, for
24026 # example, in the case of _POSIX_SOURCE, which is predefined and required
24027 # on some systems where configure will not decide to define it.
24028 cat >>conftest.undefs <<\_ACEOF
24029 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24032 # Break up conftest.defines because some shells have a limit on the size
24033 # of here documents, and old seds have small limits too (100 cmds).
24034 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24035 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24036 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24037 echo ' :' >>$CONFIG_STATUS
24038 rm -f conftest.tail
24039 while grep . conftest.defines >/dev/null
24041 # Write a limited-size here document to $tmp/defines.sed.
24042 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24043 # Speed up: don't consider the non `#define' lines.
24044 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24045 # Work around the forget-to-reset-the-flag bug.
24046 echo 't clr' >>$CONFIG_STATUS
24047 echo ': clr' >>$CONFIG_STATUS
24048 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24050 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24052 mv $tmp/out $tmp/in
24054 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24055 rm -f conftest.defines
24056 mv conftest.
tail conftest.defines
24058 rm -f conftest.defines
24059 echo ' fi # grep' >>$CONFIG_STATUS
24060 echo >>$CONFIG_STATUS
24062 # Break up conftest.undefs because some shells have a limit on the size
24063 # of here documents, and old seds have small limits too (100 cmds).
24064 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24065 rm -f conftest.
tail
24066 while grep . conftest.undefs
>/dev
/null
24068 # Write a limited-size here document to $tmp/undefs.sed.
24069 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24070 # Speed up: don't consider the non
`#undef'
24071 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24072 # Work around the forget-to-reset-the-flag bug.
24073 echo 't clr' >>$CONFIG_STATUS
24074 echo ': clr' >>$CONFIG_STATUS
24075 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24077 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24079 mv $tmp/out $tmp/in
24081 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24082 rm -f conftest.undefs
24083 mv conftest.tail conftest.undefs
24085 rm -f conftest.undefs
24087 cat >>$CONFIG_STATUS <<\_ACEOF
24088 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24089 # use $as_me), people would be surprised to read:
24090 # /* config.h. Generated by config.status. */
24091 if test x
"$ac_file" = x-
; then
24092 echo "/* Generated by configure. */" >$tmp/config.h
24094 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24096 cat $tmp/in >>$tmp/config.h
24098 if test x
"$ac_file" != x-
; then
24099 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24100 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24101 echo "$as_me: $ac_file is unchanged" >&6;}
24103 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24105 X"$ac_file" : 'X\(//\)[^/]' \| \
24106 X"$ac_file" : 'X\(//\)$' \| \
24107 X"$ac_file" : 'X\(/\)' \| \
24108 . : '\(.\)' 2>/dev/null ||
24110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24112 /^X\(\/\/\)$/{ s//\1/; q; }
24113 /^X\(\/\).*/{ s//\1/; q; }
24115 { if $as_mkdir_p; then
24120 while test ! -d "$as_dir"; do
24121 as_dirs
="$as_dir $as_dirs"
24122 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24124 X"$as_dir" : 'X\(//\)[^/]' \| \
24125 X"$as_dir" : 'X\(//\)$' \| \
24126 X"$as_dir" : 'X\(/\)' \| \
24127 . : '\(.\)' 2>/dev/null ||
24129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24131 /^X\(\/\/\)$/{ s//\1/; q; }
24132 /^X\(\/\).*/{ s//\1/; q; }
24135 test ! -n "$as_dirs" || mkdir
$as_dirs
24136 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24138 { (exit 1); exit 1; }; }; }
24141 mv $tmp/config.h
$ac_file
24145 rm -f $tmp/config.h
24149 cat >>$CONFIG_STATUS <<\_ACEOF
24152 # CONFIG_COMMANDS section.
24154 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24155 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24156 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24157 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24158 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24159 X"$ac_dest" : 'X\(//\)[^/]' \| \
24160 X"$ac_dest" : 'X\(//\)$' \| \
24161 X"$ac_dest" : '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; }; }; }
24196 if test "$ac_dir" != .
; then
24197 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24198 # A "../" for each directory in $ac_dir_suffix.
24199 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24201 ac_dir_suffix
= ac_top_builddir
=
24205 .
) # No --srcdir option. We are building in place.
24207 if test -z "$ac_top_builddir"; then
24210 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24212 [\\/]* | ?
:[\\/]* ) # Absolute path.
24213 ac_srcdir
=$srcdir$ac_dir_suffix;
24214 ac_top_srcdir
=$srcdir ;;
24215 *) # Relative path.
24216 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24217 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24220 # Do not use `cd foo && pwd` to compute absolute paths, because
24221 # the directories may not exist.
24223 .
) ac_abs_builddir
="$ac_dir";;
24226 .
) ac_abs_builddir
=`pwd`;;
24227 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24228 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24231 case $ac_abs_builddir in
24232 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24234 case ${ac_top_builddir}.
in
24235 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24236 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24237 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24240 case $ac_abs_builddir in
24241 .
) ac_abs_srcdir
=$ac_srcdir;;
24244 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24245 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24246 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24249 case $ac_abs_builddir in
24250 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24252 case $ac_top_srcdir in
24253 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24254 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24255 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24260 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24261 echo "$as_me: executing $ac_dest commands" >&6;}
24265 ### Make the necessary directories, if they don't exist.
24266 for dir
in etc lisp
; do
24267 test -d ${dir} || mkdir
${dir}
24270 # Build src/Makefile from ${srcdir}/src/Makefile.c
24271 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24272 # This must be done after src/config.h is built, since we rely on that file.
24274 # Now get this: Some word that is part of the ${srcdir} directory name
24275 # or the ${configuration} value might, just might, happen to be an
24276 # identifier like `sun4' or `i386' or something, and be predefined by
24277 # the C preprocessor to some helpful value like 1, or maybe the empty
24278 # string. Needless to say consequent macro substitutions are less
24279 # than conducive to the makefile finding the correct directory.
24280 undefs
="`echo $top_srcdir $configuration $canonical |
24281 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24282 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24285 echo creating src
/epaths.h
24286 ${MAKE-make} epaths-force
24288 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24289 # `..' to `. .' unless invoked with -traditional
24291 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24292 CPPFLAGS
="$CPPFLAGS -traditional"
24295 echo creating lib-src
/Makefile
24297 rm -f junk.c junk1.c junk2.c
24298 sed -e '/start of cpp stuff/q' \
24299 < Makefile.c
> junk1.c
24300 sed -e '1,/start of cpp stuff/d'\
24301 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24302 < Makefile.c
> junk.c
24303 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24304 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24305 cat junk1.c junk2.c
> Makefile.new
24306 rm -f junk.c junk1.c junk2.c
24307 chmod 444 Makefile.new
24308 mv -f Makefile.new Makefile
24311 echo creating src
/Makefile
24313 rm -f junk.c junk1.c junk2.c
24314 sed -e '/start of cpp stuff/q' \
24315 < Makefile.c
> junk1.c
24316 sed -e '1,/start of cpp stuff/d'\
24317 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24318 < Makefile.c
> junk.c
24319 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24320 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24321 cat junk1.c junk2.c
> Makefile.new
24322 rm -f junk.c junk1.c junk2.c
24323 chmod 444 Makefile.new
24324 mv -f Makefile.new Makefile
24327 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24328 echo creating src
/.gdbinit
24329 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24332 # This is how we know whether to re-run configure in certain cases.
24333 touch src
/config.stamp
24340 cat >>$CONFIG_STATUS <<\_ACEOF
24342 { (exit 0); exit 0; }
24344 chmod +x
$CONFIG_STATUS
24345 ac_clean_files
=$ac_clean_files_save
24348 # configure is writing to config.log, and then calls config.status.
24349 # config.status does its own redirection, appending to config.log.
24350 # Unfortunately, on DOS this fails, as config.log is still kept open
24351 # by configure, so config.status won't be able to write to it; its
24352 # output is simply discarded. So we exec the FD to /dev/null,
24353 # effectively closing config.log, so it can be properly (re)opened and
24354 # appended to by config.status. When coming back to configure, we
24355 # need to make the FD available again.
24356 if test "$no_create" != yes; then
24358 ac_config_status_args
=
24359 test "$silent" = yes &&
24360 ac_config_status_args
="$ac_config_status_args --quiet"
24362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24365 # would make configure fail if this is the last instruction.
24366 $ac_cs_success ||
{ (exit 1); exit 1; }