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 s390x-
*-linux-gnu* )
2140 machine
=ibms390x opsys
=gnu-linux
2142 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2143 machine
=ibmrs6000 opsys
=aix3-1
2145 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2146 machine
=ibmrs6000 opsys
=aix3-2-5
2148 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2149 machine
=ibmrs6000 opsys
=aix4-1
2151 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2152 machine
=ibmrs6000 opsys
=aix4-2
2154 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2155 machine
=ibmrs6000 opsys
=aix4-2
2157 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2158 machine
=ibmrs6000 opsys
=aix4
2160 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2161 machine
=ibmrs6000 opsys
=aix4-1
2163 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2164 machine
=ibmrs6000 opsys
=aix3-2
2167 machine
=ibmrt opsys
=bsd4-3
2170 machine
=ibmrt opsys
=bsd4-2
2173 machine
=ibmrt opsys
=bsd4-3
2176 machine
=ibmrt opsys
=bsd4-2
2179 machine
=ibmrt opsys
=bsd4-3
2182 machine
=ibmrt opsys
=bsd4-3
2185 machine
=ibmrt-aix opsys
=usg5-2-2
2188 ## Integrated Solutions `Optimum V'
2190 machine
=isi-ov opsys
=bsd4-2
2193 machine
=isi-ov opsys
=bsd4-3
2196 ## Intel 386 machines where we do care about the manufacturer
2197 i
[3456]86-intsys-sysv* )
2198 machine
=is386 opsys
=usg5-2-2
2202 i
[3456]86-prime-sysv* )
2203 machine
=i386 opsys
=usg5-3
2206 ## Sequent Symmetry running Dynix
2207 i
[3456]86-sequent-bsd* )
2208 machine
=symmetry opsys
=bsd4-3
2211 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2212 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2213 machine
=sequent-ptx opsys
=ptx4
2214 NON_GNU_CPP
=/lib
/cpp
2217 ## Sequent Symmetry running DYNIX/ptx
2218 ## Use the old cpp rather than the newer ANSI one.
2219 i
[3456]86-sequent-ptx* )
2220 machine
=sequent-ptx opsys
=ptx
2221 NON_GNU_CPP
="/lib/cpp"
2224 ## ncr machine running svr4.3.
2225 i
[3456]86-ncr-sysv4.3
)
2226 machine
=ncr386 opsys
=usg5-4-3
2229 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2230 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2231 i
[3456]86-ncr-sysv* )
2232 machine
=ncr386 opsys
=usg5-4-2
2235 ## Intel Paragon OSF/1
2237 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2242 machine
=i860 opsys
=usg5-4
2243 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2244 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2247 ## Macintosh PowerPC
2248 powerpc
*-*-linux-gnu* )
2249 machine
=macppc opsys
=gnu-linux
2252 ## Masscomp machines
2253 m68
*-masscomp-rtu* )
2254 machine
=masscomp opsys
=rtu
2257 ## Megatest machines
2258 m68
*-megatest-bsd* )
2259 machine
=mega68 opsys
=bsd4-2
2262 ## Workstations sold by MIPS
2263 ## This is not necessarily all workstations using the MIPS processor -
2264 ## Irises are produced by SGI, and DECstations by DEC.
2266 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2267 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2268 ## it gives for choosing between the alternatives seems to be "Use
2269 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2270 ## the BSD world." I'll assume that these are instructions for
2271 ## handling two odd situations, and that every other situation
2272 ## should use mips.h and usg5-2-2, they being listed first.
2275 ## Fall through to the general code at the bottom to decide on the OS.
2277 mips-mips-riscos4
* )
2278 machine
=mips4 opsys
=bsd4-3
2279 NON_GNU_CC
="cc -systype bsd43"
2280 NON_GNU_CPP
="cc -systype bsd43 -E"
2282 mips-mips-riscos5
* )
2283 machine
=mips4 opsys
=riscos5
2284 NON_GNU_CC
="cc -systype bsd43"
2285 NON_GNU_CPP
="cc -systype bsd43 -E"
2288 machine
=mips opsys
=bsd4-3
2291 machine
=mips opsys
=usg5-2-2
2295 m68
*-next-* | m68k-
*-nextstep* )
2296 machine
=m68k opsys
=nextstep
2299 ## The complete machine from National Semiconductor
2301 machine
=ns32000 opsys
=usg5-2
2305 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2306 machine
=tower32 opsys
=usg5-2-2
2308 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2309 machine
=tower32v3 opsys
=usg5-3
2314 machine
=ews4800 opsys
=ux4800
2317 ## Nixdorf Targon 31
2318 m68
*-nixdorf-sysv* )
2319 machine
=targon31 opsys
=usg5-2-2
2324 machine
=nu opsys
=usg5-2
2329 machine
=plexus opsys
=usg5-2
2333 ## I don't really have any idea what sort of processor the Pyramid has,
2334 ## so I'm assuming it is its own architecture.
2335 pyramid-pyramid-bsd
* )
2336 machine
=pyramid opsys
=bsd4-2
2340 ns32k-sequent-bsd4.2
* )
2341 machine
=sequent opsys
=bsd4-2
2343 ns32k-sequent-bsd4.3
* )
2344 machine
=sequent opsys
=bsd4-3
2348 mips-siemens-sysv
* | mips-sni-sysv
*)
2349 machine
=mips-siemens opsys
=usg5-4
2350 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2351 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2354 ## Silicon Graphics machines
2355 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2357 machine
=irist opsys
=iris3-5
2359 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2360 machine
=irist opsys
=iris3-6
2364 machine
=iris4d opsys
=irix3-3
2367 machine
=iris4d opsys
=irix4-0
2370 machine
=iris4d opsys
=irix6-5
2371 # Without defining _LANGUAGE_C, things get masked out in the headers
2372 # so that, for instance, grepping for `free' in stdlib.h fails and
2373 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2374 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2375 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2378 machine
=iris4d opsys
=irix6-0
2379 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2380 # but presumably it does no harm.
2381 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2382 # -32 probably isn't necessary in later v.6s -- anyone know which?
2383 NON_GCC_TEST_OPTIONS
=-32
2385 mips-sgi-irix5.
[01]* )
2386 machine
=iris4d opsys
=irix5-0
2388 mips-sgi-irix5
* | mips-sgi-irix
* )
2389 machine
=iris4d opsys
=irix5-2
2394 machine
=news opsys
=bsd4-2
2397 machine
=news opsys
=bsd4-3
2399 m68
*-sony-newsos3* | m68
*-sony-news3*)
2400 machine
=news opsys
=bsd4-3
2402 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2403 machine
=news-risc opsys
=bsd4-3
2405 mips-sony-newsos6
* )
2406 machine
=news-r6 opsys
=newsos6
2409 machine
=news-risc opsys
=newsos5
2414 machine
=stride opsys
=usg5-2
2418 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2419 machine
=sparc opsys
=gnu-linux
2422 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2423 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2424 | rs6000-
*-solaris2*)
2425 case "${canonical}" in
2426 m68
*-sunos1* ) machine
=sun1
;;
2427 m68
*-sunos2* ) machine
=sun2
;;
2428 m68
* ) machine
=sun3
;;
2429 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2430 i
[3456]86-*-* ) machine
=intel386
;;
2431 powerpcle
* ) machine
=powerpcle
;;
2432 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2433 sparc
* ) machine
=sparc
;;
2436 case "${canonical}" in
2437 ## The Sun386 didn't get past 4.0.
2438 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2439 *-sunos4.0
* ) opsys
=sunos4-0
;;
2440 *-sunos4.1.
[3-9]*noshare
)
2441 ## This name is sunos413 instead of sunos4-1-3
2442 ## to avoid a file name conflict on MSDOS.
2444 NON_GNU_CPP
=/usr
/lib
/cpp
2445 NON_GCC_TEST_OPTIONS
=-Bstatic
2446 GCC_TEST_OPTIONS
=-static
2448 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2450 NON_GNU_CPP
=/usr
/lib
/cpp
2452 *-sunos4* |
*-sunos )
2454 NON_GCC_TEST_OPTIONS
=-Bstatic
2455 GCC_TEST_OPTIONS
=-static
2457 *-sunos5.3
* |
*-solaris2.3
* )
2459 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2461 *-sunos5.4
* |
*-solaris2.4
* )
2463 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2466 *-sunos5.5
* |
*-solaris2.5
* )
2468 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2471 *-sunos5.6
* |
*-solaris2.6
* )
2473 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2476 *-sunos5* |
*-solaris* )
2478 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2482 ## Watch out for a compiler that we know will not work.
2483 case "${canonical}" in
2484 *-solaris* |
*-sunos5* )
2485 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2486 ## /usr/ucb/cc doesn't work;
2487 ## we should find some other compiler that does work.
2495 machine
=sparc opsys
=nextstep
2499 m68
*-tadpole-sysv* )
2500 machine
=tad68k opsys
=usg5-3
2504 tahoe-tahoe-bsd4.2
* )
2505 machine
=tahoe opsys
=bsd4-2
2507 tahoe-tahoe-bsd4.3
* )
2508 machine
=tahoe opsys
=bsd4-3
2511 ## Tandem Integrity S2
2513 machine
=tandem-s2 opsys
=usg5-3
2517 m88k-tektronix-sysv3
* )
2518 machine
=tekxd88 opsys
=usg5-3
2521 ## Tektronix 16000 box (6130?)
2522 ns16k-tektronix-bsd
* )
2523 machine
=ns16000 opsys
=bsd4-2
2526 ## src/m/tek4300.h hints that this is a m68k machine.
2527 m68
*-tektronix-bsd* )
2528 machine
=tek4300 opsys
=bsd4-3
2532 ## We seem to have lost the machine-description file titan.h!
2534 machine
=titan opsys
=usg5-3
2537 ## Ustation E30 (SS5E)
2538 m68
*-unisys-uniplus* )
2539 machine
=ustation opsystem
=unipl5-2
2545 case "${canonical}" in
2546 *-bsd4.1
* ) opsys
=bsd4-1
;;
2547 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2548 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2549 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2550 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2551 *-vms* ) opsys
=vms
;;
2557 ns16k-whitechapel-
* )
2559 ## We don't know what sort of OS runs on these; we'll let the
2560 ## operating system guessing code below try.
2565 machine
=wicat opsys
=usg5-2
2570 machine
=ia64 opsys
=gnu-linux
2573 ## Intel 386 machines where we don't care about the manufacturer
2576 case "${canonical}" in
2577 *-cygwin ) opsys
=cygwin
;;
2578 *-darwin* ) opsys
=darwin
2579 CPP
="${CC-cc} -E -no-cpp-precomp"
2581 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2582 *-isc2.2
* ) opsys
=isc2-2
;;
2583 *-isc4.0
* ) opsys
=isc4-0
;;
2584 *-isc4.
* ) opsys
=isc4-1
2585 GCC_TEST_OPTIONS
=-posix
2586 NON_GCC_TEST_OPTIONS
=-Xp
2588 *-isc* ) opsys
=isc3-0
;;
2589 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2590 *-esix* ) opsys
=esix
;;
2591 *-xenix* ) opsys
=xenix
;;
2592 *-linux-gnu* ) opsys
=gnu-linux
;;
2593 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2594 *-sco3.2v5
* ) opsys
=sco5
2595 NON_GNU_CPP
=/lib
/cpp
2596 # Prevent -belf from being passed to $CPP.
2597 # /lib/cpp does not accept it.
2598 OVERRIDE_CPPFLAGS
=" "
2600 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2601 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2602 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-386bsd* ) opsys
=386bsd
;;
2604 *-nextstep* ) opsys
=nextstep
;;
2605 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2609 ## m68k Linux-based GNU system
2611 machine
=m68k opsys
=gnu-linux
2614 ## Mips Linux-based GNU system
2615 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2616 machine
=mips opsys
=gnu-linux
2620 sparc-fujitsu-sysv4
* )
2621 machine
=sparc opsys
=uxpds
2622 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2627 f301-fujitsu-uxpv4.1
)
2628 machine
=f301 opsys
=uxpv
2631 ## Darwin / Mac OS X
2632 powerpc-apple-darwin
* )
2633 machine
=powermac opsys
=darwin
2634 # Define CPP as follows to make autoconf work correctly.
2635 CPP
="${CC-cc} -E -no-cpp-precomp"
2636 # Use fink packages if available.
2637 if test -d /sw
/include
&& test -d /sw
/lib
; then
2638 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2639 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2640 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2644 ## AMD x86-64 Linux-based GNU system
2645 x86_64-
*-linux-gnu* )
2646 machine
=amdx86-64 opsys
=gnu-linux
2654 ### If the code above didn't choose an operating system, just choose
2655 ### an operating system based on the configuration name. You really
2656 ### only want to use this when you have no idea what the right
2657 ### operating system is; if you know what operating systems a machine
2658 ### runs, it's cleaner to make it explicit in the case statement
2660 if test x
"${opsys}" = x
; then
2661 case "${canonical}" in
2662 *-gnu* ) opsys
=gnu
;;
2663 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2664 *-bsd4.2
) opsys
=bsd4-2
;;
2665 *-bsd4.3
) opsys
=bsd4-3
;;
2666 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2667 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2668 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2669 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2670 *-sysv4.2uw
* ) opsys
=unixware
;;
2671 *-sysv5uw* ) opsys
=unixware
;;
2672 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2673 *-sysv4.1
* |
*-sysvr4.1
* )
2674 NON_GNU_CPP
=/usr
/lib
/cpp
2676 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2677 if [ x
$NON_GNU_CPP = x
]; then
2678 if [ -f /usr
/ccs
/lib
/cpp
]; then
2679 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2681 NON_GNU_CPP
=/lib
/cpp
2685 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2694 if test $unported = yes; then
2695 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2696 Check \`etc/MACHINES' for recognized configuration names." >&5
2697 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2699 { (exit 1); exit 1; }; }
2702 machfile
="m/${machine}.h"
2703 opsysfile
="s/${opsys}.h"
2706 #### Choose a compiler.
2707 test -n "$CC" && cc_specified
=yes
2709 # Save the value of CFLAGS that the user specified.
2710 SPECIFIED_CFLAGS
="$CFLAGS"
2713 "yes" ) CC
="gcc" GCC
=yes ;;
2714 "no" ) : ${CC=cc} ;;
2718 ac_cpp
='$CPP $CPPFLAGS'
2719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2725 echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727 if test "${ac_cv_prog_CC+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC
="$CC" # Let the user override the test.
2733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir
=.
2738 for ac_exec_ext
in '' $ac_executable_extensions; do
2739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test -n "$CC"; then
2751 echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6
2754 echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2759 if test -z "$ac_cv_prog_CC"; then
2761 # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc
; ac_word
=$2
2763 echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir
=.
2776 for ac_exec_ext
in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_CC
="gcc"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2801 if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2805 echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC
="$CC" # Let the user override the test.
2813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir
=.
2818 for ac_exec_ext
in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$CC"; then
2831 echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6
2834 echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6
2839 if test -z "$ac_cv_prog_CC"; then
2841 # Extract the first word of "cc", so it can be a program name with args.
2842 set dummy cc
; ac_word
=$2
2843 echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir
=.
2856 for ac_exec_ext
in '' $ac_executable_extensions; do
2857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_ac_ct_CC
="cc"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6
2872 echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc
; ac_word
=$2
2885 echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC
="$CC" # Let the user override the test.
2894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir
=.
2899 for ac_exec_ext
in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected
=yes
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy
$ac_cv_prog_CC
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2921 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2927 if test -n "$CC"; then
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929 echo "${ECHO_T}$CC" >&6
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC
="$CC" # Let the user override the test.
2950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir
=.
2955 for ac_exec_ext
in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2975 test -n "$CC" && break
2978 if test -z "$CC"; then
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy
$ac_prog; ac_word
=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir
=.
2997 for ac_exec_ext
in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CC
="$ac_prog"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 echo "${ECHO_T}$ac_ct_CC" >&6
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 test -n "$ac_ct_CC" && break
3026 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3032 # Provide some information about the compiler.
3033 echo "$as_me:$LINENO:" \
3034 "checking for C compiler version" >&5
3035 ac_compiler
=`set X $ac_compile; echo $2`
3036 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3037 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3042 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3047 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3052 cat >conftest.
$ac_ext <<_ACEOF
3055 cat confdefs.h
>>conftest.
$ac_ext
3056 cat >>conftest.
$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 ac_clean_files_save
=$ac_clean_files
3068 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3072 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3073 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3074 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3076 (eval $ac_link_default) 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; then
3080 # Find the output, starting from the most likely. This scheme is
3081 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3084 # Be careful to initialize this variable, since it used to be cached.
3085 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3087 # b.out is created by i960 compilers.
3088 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3090 test -f "$ac_file" ||
continue
3092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3095 # This is the source file.
3098 # We found the default executable, but exeext='' is most
3102 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 # FIXME: I believe we export ac_cv_exeext for Libtool,
3104 # but it would be cool to find out if it's true. Does anybody
3105 # maintain Libtool? --akim.
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.
$ac_ext >&5
3116 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3117 See \`config.log' for more details." >&5
3118 echo "$as_me: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&2;}
3120 { (exit 77); exit 77; }; }
3123 ac_exeext
=$ac_cv_exeext
3124 echo "$as_me:$LINENO: result: $ac_file" >&5
3125 echo "${ECHO_T}$ac_file" >&6
3127 # Check the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3130 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3131 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3132 # If not cross compiling, check that we can run a simple program.
3133 if test "$cross_compiling" != yes; then
3134 if { ac_try
='./$ac_file'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3142 if test "$cross_compiling" = maybe
; then
3145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: cannot run C compiled programs.
3149 If you meant to cross compile, use \`--host'.
3150 See \`config.log' for more details." >&2;}
3151 { (exit 1); exit 1; }; }
3155 echo "$as_me:$LINENO: result: yes" >&5
3156 echo "${ECHO_T}yes" >&6
3158 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3159 ac_clean_files
=$ac_clean_files_save
3160 # Check the compiler produces executables we can run. If not, either
3161 # the compiler is broken, or we cross compile.
3162 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3164 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3165 echo "${ECHO_T}$cross_compiling" >&6
3167 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3170 (eval $ac_link) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; then
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 for ac_file
in conftest.exe conftest conftest.
*; do
3179 test -f "$ac_file" ||
continue
3181 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3182 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3196 rm -f conftest
$ac_cv_exeext
3197 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3198 echo "${ECHO_T}$ac_cv_exeext" >&6
3200 rm -f conftest.
$ac_ext
3201 EXEEXT
=$ac_cv_exeext
3203 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3204 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3205 if test "${ac_cv_objext+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 cat >conftest.
$ac_ext <<_ACEOF
3211 cat confdefs.h
>>conftest.
$ac_ext
3212 cat >>conftest.
$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3223 rm -f conftest.o conftest.obj
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; then
3229 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3231 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3232 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.
$ac_ext >&5
3240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3243 See \`config.log' for more details." >&2;}
3244 { (exit 1); exit 1; }; }
3247 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3249 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3250 echo "${ECHO_T}$ac_cv_objext" >&6
3251 OBJEXT
=$ac_cv_objext
3253 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3254 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3255 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 cat >conftest.
$ac_ext <<_ACEOF
3261 cat confdefs.h
>>conftest.
$ac_ext
3262 cat >>conftest.
$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3276 rm -f conftest.
$ac_objext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>conftest.er1
3280 grep -v '^ *+' conftest.er1
>conftest.err
3282 cat conftest.err
>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try
='test -z "$ac_c_werror_flag"
3286 || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try
='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.
$ac_ext >&5
3305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3306 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CFLAGS
=${CFLAGS+set}
3313 ac_save_CFLAGS
=$CFLAGS
3315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317 if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.
$ac_ext <<_ACEOF
3323 cat confdefs.h
>>conftest.
$ac_ext
3324 cat >>conftest.
$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3335 rm -f conftest.
$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3339 grep -v '^ *+' conftest.er1
>conftest.err
3341 cat conftest.err
>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try
='test -z "$ac_c_werror_flag"
3345 || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try
='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.
$ac_ext >&5
3364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3366 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3367 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3368 if test "$ac_test_CFLAGS" = set; then
3369 CFLAGS
=$ac_save_CFLAGS
3370 elif test $ac_cv_prog_cc_g = yes; then
3371 if test "$GCC" = yes; then
3377 if test "$GCC" = yes; then
3383 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3384 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3385 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 ac_cv_prog_cc_stdc
=no
3390 cat >conftest.
$ac_ext <<_ACEOF
3393 cat confdefs.h
>>conftest.
$ac_ext
3394 cat >>conftest.
$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3414 s = g (p, va_arg (v,int));
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std1 is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std1. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428 int test (int i, double x);
3429 struct s1 {int (*f) (int a);};
3430 struct s2 {int (*f) (double a);};
3431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3442 # Don't try gcc -ansi; that turns off useful extensions and
3443 # breaks some systems' header files.
3444 # AIX -qlanglvl=ansi
3445 # Ultrix and OSF/1 -std1
3446 # HP-UX 10.20 and later -Ae
3447 # HP-UX older versions -Aa -D_HPUX_SOURCE
3448 # SVR4 -Xc -D__EXTENSIONS__
3449 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451 CC
="$ac_save_CC $ac_arg"
3452 rm -f conftest.
$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>conftest.er1
3456 grep -v '^ *+' conftest.er1
>conftest.err
3458 cat conftest.err
>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try
='test -z "$ac_c_werror_flag"
3462 || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try
='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_cv_prog_cc_stdc
=$ac_arg
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3481 rm -f conftest.err conftest.
$ac_objext
3483 rm -f conftest.
$ac_ext conftest.
$ac_objext
3488 case "x$ac_cv_prog_cc_stdc" in
3490 echo "$as_me:$LINENO: result: none needed" >&5
3491 echo "${ECHO_T}none needed" >&6 ;;
3493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3495 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3498 # Some people use a C++ compiler to compile C. Since we use `exit',
3499 # in C++ we need to declare it. In case someone uses the same compiler
3500 # for both compiling C and C++ we need to have the C++ compiler decide
3501 # the declaration of exit, since it's the most demanding environment.
3502 cat >conftest.
$ac_ext <<_ACEOF
3507 rm -f conftest.
$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try
='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try
='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 for ac_declaration
in \
3531 'extern "C" void std::exit (int) throw (); using std::exit;' \
3532 'extern "C" void std::exit (int); using std::exit;' \
3533 'extern "C" void exit (int) throw ();' \
3534 'extern "C" void exit (int);' \
3537 cat >conftest.
$ac_ext <<_ACEOF
3540 cat confdefs.h
>>conftest.
$ac_ext
3541 cat >>conftest.
$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3553 rm -f conftest.
$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
3557 grep -v '^ *+' conftest.er1
>conftest.err
3559 cat conftest.err
>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try
='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try
='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.
$ac_ext >&5
3582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3583 cat >conftest.
$ac_ext <<_ACEOF
3586 cat confdefs.h
>>conftest.
$ac_ext
3587 cat >>conftest.
$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3598 rm -f conftest.
$ac_objext
3599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600 (eval $ac_compile) 2>conftest.er1
3602 grep -v '^ *+' conftest.er1
>conftest.err
3604 cat conftest.err
>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try
='test -z "$ac_c_werror_flag"
3608 || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try
='test -s conftest.$ac_objext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.
$ac_ext >&5
3626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3629 if test -n "$ac_declaration"; then
3630 echo '#ifdef __cplusplus' >>confdefs.h
3631 echo $ac_declaration >>confdefs.h
3632 echo '#endif' >>confdefs.h
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3642 ac_cpp
='$CPP $CPPFLAGS'
3643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3648 # On Suns, sometimes $CPP names a directory.
3649 if test -n "$CPP" && test -d "$CPP"; then
3653 #### Some systems specify a CPP to use unless we are using GCC.
3654 #### Now that we know whether we are using GCC, we can decide whether
3655 #### to use that one.
3656 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3661 #### Some systems specify a CC to use unless we are using GCC.
3662 #### Now that we know whether we are using GCC, we can decide whether
3663 #### to use that one.
3664 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3665 test x
$cc_specified != xyes
3670 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3672 CC
="$CC $GCC_TEST_OPTIONS"
3675 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3677 CC
="$CC $NON_GCC_TEST_OPTIONS"
3682 ac_cpp
='$CPP $CPPFLAGS'
3683 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3686 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3687 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3688 # On Suns, sometimes $CPP names a directory.
3689 if test -n "$CPP" && test -d "$CPP"; then
3692 if test -z "$CPP"; then
3693 if test "${ac_cv_prog_CPP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 # Double quotes because CPP needs to be expanded
3697 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3700 for ac_c_preproc_warn_flag
in '' yes
3702 # Use a header file that comes with gcc, so configuring glibc
3703 # with a fresh cross-compiler works.
3704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3705 # <limits.h> exists even on freestanding compilers.
3706 # On the NeXT, cc -E runs the code through the compiler's parser,
3707 # not just through cpp. "Syntax error" is here to catch this case.
3708 cat >conftest.
$ac_ext <<_ACEOF
3711 cat confdefs.h
>>conftest.
$ac_ext
3712 cat >>conftest.
$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3715 # include <limits.h>
3717 # include <assert.h>
3721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3724 grep -v '^ *+' conftest.er1
>conftest.err
3726 cat conftest.err
>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } >/dev
/null
; then
3729 if test -s conftest.err
; then
3730 ac_cpp_err
=$ac_c_preproc_warn_flag
3731 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3738 if test -z "$ac_cpp_err"; then
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.
$ac_ext >&5
3744 # Broken: fails on valid input.
3747 rm -f conftest.err conftest.
$ac_ext
3749 # OK, works on sane cases. Now check whether non-existent headers
3750 # can be detected and how.
3751 cat >conftest.
$ac_ext <<_ACEOF
3754 cat confdefs.h
>>conftest.
$ac_ext
3755 cat >>conftest.
$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <ac_nonexistent.h>
3759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3762 grep -v '^ *+' conftest.er1
>conftest.err
3764 cat conftest.err
>&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } >/dev
/null
; then
3767 if test -s conftest.err
; then
3768 ac_cpp_err
=$ac_c_preproc_warn_flag
3769 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3776 if test -z "$ac_cpp_err"; then
3777 # Broken: success on invalid input.
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.
$ac_ext >&5
3783 # Passes both tests.
3787 rm -f conftest.err conftest.
$ac_ext
3790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3791 rm -f conftest.err conftest.
$ac_ext
3792 if $ac_preproc_ok; then
3804 echo "$as_me:$LINENO: result: $CPP" >&5
3805 echo "${ECHO_T}$CPP" >&6
3807 for ac_c_preproc_warn_flag
in '' yes
3809 # Use a header file that comes with gcc, so configuring glibc
3810 # with a fresh cross-compiler works.
3811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3812 # <limits.h> exists even on freestanding compilers.
3813 # On the NeXT, cc -E runs the code through the compiler's parser,
3814 # not just through cpp. "Syntax error" is here to catch this case.
3815 cat >conftest.
$ac_ext <<_ACEOF
3818 cat confdefs.h
>>conftest.
$ac_ext
3819 cat >>conftest.
$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3822 # include <limits.h>
3824 # include <assert.h>
3828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3829 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3831 grep -v '^ *+' conftest.er1
>conftest.err
3833 cat conftest.err
>&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } >/dev
/null
; then
3836 if test -s conftest.err
; then
3837 ac_cpp_err
=$ac_c_preproc_warn_flag
3838 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3845 if test -z "$ac_cpp_err"; then
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.
$ac_ext >&5
3851 # Broken: fails on valid input.
3854 rm -f conftest.err conftest.
$ac_ext
3856 # OK, works on sane cases. Now check whether non-existent headers
3857 # can be detected and how.
3858 cat >conftest.
$ac_ext <<_ACEOF
3861 cat confdefs.h
>>conftest.
$ac_ext
3862 cat >>conftest.
$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864 #include <ac_nonexistent.h>
3866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3867 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3869 grep -v '^ *+' conftest.er1
>conftest.err
3871 cat conftest.err
>&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev
/null
; then
3874 if test -s conftest.err
; then
3875 ac_cpp_err
=$ac_c_preproc_warn_flag
3876 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3883 if test -z "$ac_cpp_err"; then
3884 # Broken: success on invalid input.
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.
$ac_ext >&5
3890 # Passes both tests.
3894 rm -f conftest.err conftest.
$ac_ext
3897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3898 rm -f conftest.err conftest.
$ac_ext
3899 if $ac_preproc_ok; then
3902 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3903 See \`config.log' for more details." >&5
3904 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details." >&2;}
3906 { (exit 1); exit 1; }; }
3910 ac_cpp
='$CPP $CPPFLAGS'
3911 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3916 echo "$as_me:$LINENO: checking for egrep" >&5
3917 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3918 if test "${ac_cv_prog_egrep+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3922 then ac_cv_prog_egrep
='grep -E'
3923 else ac_cv_prog_egrep
='egrep'
3926 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3927 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3928 EGREP
=$ac_cv_prog_egrep
3932 echo "$as_me:$LINENO: checking for AIX" >&5
3933 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3934 cat >conftest.
$ac_ext <<_ACEOF
3937 cat confdefs.h
>>conftest.
$ac_ext
3938 cat >>conftest.
$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "yes" >/dev
/null
2>&1; then
3947 echo "$as_me:$LINENO: result: yes" >&5
3948 echo "${ECHO_T}yes" >&6
3949 cat >>confdefs.h
<<\_ACEOF
3950 #define _ALL_SOURCE 1
3954 echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3961 cat >>confdefs.h
<<\_ACEOF
3962 #define _GNU_SOURCE 1
3967 ### Use -Wno-pointer-sign if the compiler supports it
3968 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3969 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3970 SAVE_CFLAGS
="$CFLAGS"
3971 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3972 cat >conftest.
$ac_ext <<_ACEOF
3975 cat confdefs.h
>>conftest.
$ac_ext
3976 cat >>conftest.
$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3987 rm -f conftest.
$ac_objext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3991 grep -v '^ *+' conftest.er1
>conftest.err
3993 cat conftest.err
>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try
='test -z "$ac_c_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try
='test -s conftest.$ac_objext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.
$ac_ext >&5
4016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4017 if test $has_option = yes; then
4018 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4020 echo "$as_me:$LINENO: result: $has_option" >&5
4021 echo "${ECHO_T}$has_option" >&6
4022 CFLAGS
="$SAVE_CFLAGS"
4026 #### Some other nice autoconf tests.
4028 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4029 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4031 if test "$LN_S" = "ln -s"; then
4032 echo "$as_me:$LINENO: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6
4035 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4036 echo "${ECHO_T}no, using $LN_S" >&6
4040 ac_cpp
='$CPP $CPPFLAGS'
4041 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4044 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4045 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4046 # On Suns, sometimes $CPP names a directory.
4047 if test -n "$CPP" && test -d "$CPP"; then
4050 if test -z "$CPP"; then
4051 if test "${ac_cv_prog_CPP+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 # Double quotes because CPP needs to be expanded
4055 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4058 for ac_c_preproc_warn_flag
in '' yes
4060 # Use a header file that comes with gcc, so configuring glibc
4061 # with a fresh cross-compiler works.
4062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4063 # <limits.h> exists even on freestanding compilers.
4064 # On the NeXT, cc -E runs the code through the compiler's parser,
4065 # not just through cpp. "Syntax error" is here to catch this case.
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4073 # include <limits.h>
4075 # include <assert.h>
4079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1
>conftest.err
4084 cat conftest.err
>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev
/null
; then
4087 if test -s conftest.err
; then
4088 ac_cpp_err
=$ac_c_preproc_warn_flag
4089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4096 if test -z "$ac_cpp_err"; then
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.
$ac_ext >&5
4102 # Broken: fails on valid input.
4105 rm -f conftest.err conftest.
$ac_ext
4107 # OK, works on sane cases. Now check whether non-existent headers
4108 # can be detected and how.
4109 cat >conftest.
$ac_ext <<_ACEOF
4112 cat confdefs.h
>>conftest.
$ac_ext
4113 cat >>conftest.
$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #include <ac_nonexistent.h>
4117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4120 grep -v '^ *+' conftest.er1
>conftest.err
4122 cat conftest.err
>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev
/null
; then
4125 if test -s conftest.err
; then
4126 ac_cpp_err
=$ac_c_preproc_warn_flag
4127 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4134 if test -z "$ac_cpp_err"; then
4135 # Broken: success on invalid input.
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.
$ac_ext >&5
4141 # Passes both tests.
4145 rm -f conftest.err conftest.
$ac_ext
4148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149 rm -f conftest.err conftest.
$ac_ext
4150 if $ac_preproc_ok; then
4162 echo "$as_me:$LINENO: result: $CPP" >&5
4163 echo "${ECHO_T}$CPP" >&6
4165 for ac_c_preproc_warn_flag
in '' yes
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat >conftest.
$ac_ext <<_ACEOF
4176 cat confdefs.h
>>conftest.
$ac_ext
4177 cat >>conftest.
$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4180 # include <limits.h>
4182 # include <assert.h>
4186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4187 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4189 grep -v '^ *+' conftest.er1
>conftest.err
4191 cat conftest.err
>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev
/null
; then
4194 if test -s conftest.err
; then
4195 ac_cpp_err
=$ac_c_preproc_warn_flag
4196 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4203 if test -z "$ac_cpp_err"; then
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.
$ac_ext >&5
4209 # Broken: fails on valid input.
4212 rm -f conftest.err conftest.
$ac_ext
4214 # OK, works on sane cases. Now check whether non-existent headers
4215 # can be detected and how.
4216 cat >conftest.
$ac_ext <<_ACEOF
4219 cat confdefs.h
>>conftest.
$ac_ext
4220 cat >>conftest.
$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #include <ac_nonexistent.h>
4224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4225 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4227 grep -v '^ *+' conftest.er1
>conftest.err
4229 cat conftest.err
>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev
/null
; then
4232 if test -s conftest.err
; then
4233 ac_cpp_err
=$ac_c_preproc_warn_flag
4234 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4241 if test -z "$ac_cpp_err"; then
4242 # Broken: success on invalid input.
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.
$ac_ext >&5
4248 # Passes both tests.
4252 rm -f conftest.err conftest.
$ac_ext
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.err conftest.
$ac_ext
4257 if $ac_preproc_ok; then
4260 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4261 See \`config.log' for more details." >&5
4262 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4263 See \`config.log' for more details." >&2;}
4264 { (exit 1); exit 1; }; }
4268 ac_cpp
='$CPP $CPPFLAGS'
4269 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4273 # Find a good install program. We prefer a C program (faster),
4274 # so one script is as good as another. But avoid the broken or
4275 # incompatible versions:
4276 # SysV /etc/install, /usr/sbin/install
4277 # SunOS /usr/etc/install
4278 # IRIX /sbin/install
4280 # AmigaOS /C/install, which installs bootblocks on floppy discs
4281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4284 # OS/2's system install, which has a completely different semantic
4285 # ./install, which can be erroneously created by make from ./install.sh.
4286 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4288 if test -z "$INSTALL"; then
4289 if test "${ac_cv_path_install+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir
=.
4297 # Account for people who put trailing slashes in PATH elements.
4299 .
/ | .
// |
/cC
/* | \
4300 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4301 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4304 # OSF1 and SCO ODT 3.0 have their own names for install.
4305 # Don't use installbsd from OSF since it installs stuff as root
4307 for ac_prog
in ginstall scoinst
install; do
4308 for ac_exec_ext
in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4310 if test $ac_prog = install &&
4311 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4312 # AIX install. It has an incompatible calling convention.
4314 elif test $ac_prog = install &&
4315 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4316 # program-specific install script used by HP pwplus--don't use.
4319 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4331 if test "${ac_cv_path_install+set}" = set; then
4332 INSTALL
=$ac_cv_path_install
4334 # As a last resort, use the slow shell script. We don't cache a
4335 # path for INSTALL within a source directory, because that will
4336 # break other packages using the cache if that directory is
4337 # removed, or if the path is relative.
4338 INSTALL
=$ac_install_sh
4341 echo "$as_me:$LINENO: result: $INSTALL" >&5
4342 echo "${ECHO_T}$INSTALL" >&6
4344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4345 # It thinks the first close brace ends the variable substitution.
4346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4350 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4352 if test "x$RANLIB" = x
; then
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4355 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_RANLIB+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 if test -n "$RANLIB"; then
4362 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir
=.
4369 for ac_exec_ext
in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 RANLIB
=$ac_cv_prog_RANLIB
4381 if test -n "$RANLIB"; then
4382 echo "$as_me:$LINENO: result: $RANLIB" >&5
4383 echo "${ECHO_T}$RANLIB" >&6
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4390 if test -z "$ac_cv_prog_RANLIB"; then
4391 ac_ct_RANLIB
=$RANLIB
4392 # Extract the first word of "ranlib", so it can be a program name with args.
4393 set dummy ranlib
; ac_word
=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$ac_ct_RANLIB"; then
4400 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir
=.
4407 for ac_exec_ext
in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4419 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4420 if test -n "$ac_ct_RANLIB"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4422 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 RANLIB
=$ac_ct_RANLIB
4430 RANLIB
="$ac_cv_prog_RANLIB"
4434 # Extract the first word of "install-info", so it can be a program name with args.
4435 set dummy install-info
; ac_word
=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 case $INSTALL_INFO in
4443 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir
=.
4451 for ac_exec_ext
in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4465 if test -n "$INSTALL_INFO"; then
4466 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4467 echo "${ECHO_T}$INSTALL_INFO" >&6
4469 echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4473 # Extract the first word of "install-info", so it can be a program name with args.
4474 set dummy install-info
; ac_word
=$2
4475 echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 case $INSTALL_INFO in
4482 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4486 for as_dir
in /usr
/sbin
4489 test -z "$as_dir" && as_dir
=.
4490 for ac_exec_ext
in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4504 if test -n "$INSTALL_INFO"; then
4505 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4506 echo "${ECHO_T}$INSTALL_INFO" >&6
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 # Extract the first word of "install-info", so it can be a program name with args.
4513 set dummy install-info
; ac_word
=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 case $INSTALL_INFO in
4521 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir
=.
4529 for ac_exec_ext
in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4542 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4544 if test -n "$INSTALL_INFO"; then
4545 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4546 echo "${ECHO_T}$INSTALL_INFO" >&6
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 # Extract the first word of "gzip", so it can be a program name with args.
4553 set dummy
gzip; ac_word
=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir
=.
4569 for ac_exec_ext
in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4583 if test -n "$GZIP_PROG"; then
4584 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4585 echo "${ECHO_T}$GZIP_PROG" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4593 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4595 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4598 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4600 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4604 late_LDFLAGS
=$LDFLAGS
4605 if test "$GCC" = yes; then
4606 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4608 LDFLAGS
="$LDFLAGS -znocombreloc"
4611 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4612 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4613 cat >conftest.
$ac_ext <<_ACEOF
4616 rm -f conftest.
$ac_objext conftest
$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1
>conftest.err
4622 cat conftest.err
>&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try
='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try
='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 echo "$as_me:$LINENO: result: yes" >&5
4639 echo "${ECHO_T}yes" >&6
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.
$ac_ext >&5
4644 LDFLAGS
=$late_LDFLAGS
4645 echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4648 rm -f conftest.err conftest.
$ac_objext \
4649 conftest
$ac_exeext conftest.
$ac_ext
4651 #### Extract some information from the operating system and machine files.
4653 { echo "$as_me:$LINENO: 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..." >&5
4656 echo "$as_me: checking the machine- and system-dependent files to find out
4657 - which libraries the lib-src programs will want, and
4658 - whether the GNU malloc routines are usable..." >&6;}
4660 ### First figure out CFLAGS (which we use for running the compiler here)
4661 ### and REAL_CFLAGS (which we use for real compilation).
4662 ### The two are the same except on a few systems, where they are made
4663 ### different to work around various lossages. For example,
4664 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4665 ### as implying static linking.
4667 ### If the CFLAGS env var is specified, we use that value
4668 ### instead of the default.
4670 ### It's not important that this name contain the PID; you can't run
4671 ### two configures in the same directory and have anything work
4673 tempcname
="conftest.c"
4676 #include "'${srcdir}'/src/'${opsysfile}'"
4677 #include "'${srcdir}'/src/'${machfile}'"
4678 #ifndef LIBS_MACHINE
4679 #define LIBS_MACHINE
4684 #ifndef C_SWITCH_SYSTEM
4685 #define C_SWITCH_SYSTEM
4687 #ifndef C_SWITCH_MACHINE
4688 #define C_SWITCH_MACHINE
4690 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4691 configure___ c_switch_system=C_SWITCH_SYSTEM
4692 configure___ c_switch_machine=C_SWITCH_MACHINE
4695 #define LIB_X11_LIB -lX11
4698 #ifndef LIBX11_MACHINE
4699 #define LIBX11_MACHINE
4702 #ifndef LIBX11_SYSTEM
4703 #define LIBX11_SYSTEM
4705 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4708 configure___ unexec=UNEXEC
4710 configure___ unexec=unexec.o
4713 #ifdef SYSTEM_MALLOC
4714 configure___ system_malloc=yes
4716 configure___ system_malloc=no
4719 #ifdef USE_MMAP_FOR_BUFFERS
4720 configure___ use_mmap_for_buffers=yes
4722 configure___ use_mmap_for_buffers=no
4725 #ifndef C_DEBUG_SWITCH
4726 #define C_DEBUG_SWITCH -g
4729 #ifndef C_OPTIMIZE_SWITCH
4731 #define C_OPTIMIZE_SWITCH -O2
4733 #define C_OPTIMIZE_SWITCH -O
4737 #ifndef C_WARNINGS_SWITCH
4738 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4741 #ifndef LD_SWITCH_MACHINE
4742 #define LD_SWITCH_MACHINE
4745 #ifndef LD_SWITCH_SYSTEM
4746 #define LD_SWITCH_SYSTEM
4749 #ifndef LD_SWITCH_X_SITE_AUX
4750 #define LD_SWITCH_X_SITE_AUX
4753 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4754 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4756 #ifdef THIS_IS_CONFIGURE
4758 /* Get the CFLAGS for tests in configure. */
4760 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4762 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4765 #else /* not THIS_IS_CONFIGURE */
4767 /* Get the CFLAGS for real compilation. */
4769 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4771 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4774 #endif /* not THIS_IS_CONFIGURE */
4777 # The value of CPP is a quoted variable reference, so we need to do this
4778 # to get its actual value...
4779 CPP
=`eval "echo $CPP"`
4780 eval `${CPP} -Isrc ${tempcname} \
4781 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4782 if test "x$SPECIFIED_CFLAGS" = x
; then
4783 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4784 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4786 REAL_CFLAGS
="$CFLAGS"
4790 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4792 ### Make sure subsequent tests use flags consistent with the build flags.
4794 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4795 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4797 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4802 # Check whether --enable-largefile or --disable-largefile was given.
4803 if test "${enable_largefile+set}" = set; then
4804 enableval
="$enable_largefile"
4807 if test "$enable_largefile" != no
; then
4809 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4810 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4811 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 ac_cv_sys_largefile_CC
=no
4815 if test "$GCC" != yes; then
4818 # IRIX 6.2 and later do not support large files by default,
4819 # so use the C compiler's -n32 option if that helps.
4820 cat >conftest.
$ac_ext <<_ACEOF
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <sys/types.h>
4827 /* Check that off_t can represent 2**63 - 1 correctly.
4828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4829 since some C++ compilers masquerading as C compilers
4830 incorrectly reject 9223372036854775807. */
4831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4833 && LARGE_OFF_T % 2147483647 == 1)
4843 rm -f conftest.
$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845 (eval $ac_compile) 2>conftest.er1
4847 grep -v '^ *+' conftest.er1
>conftest.err
4849 cat conftest.err
>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
4852 { ac_try
='test -z "$ac_c_werror_flag"
4853 || test ! -s conftest.err'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try
='test -s conftest.$ac_objext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.
$ac_ext >&5
4871 rm -f conftest.err conftest.
$ac_objext
4873 rm -f conftest.
$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>conftest.er1
4877 grep -v '^ *+' conftest.er1
>conftest.err
4879 cat conftest.err
>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try
='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try
='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_sys_largefile_CC
=' -n32'; break
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.
$ac_ext >&5
4901 rm -f conftest.err conftest.
$ac_objext
4905 rm -f conftest.
$ac_ext
4908 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4909 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4910 if test "$ac_cv_sys_largefile_CC" != no
; then
4911 CC
=$CC$ac_cv_sys_largefile_CC
4914 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4915 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4916 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 ac_cv_sys_file_offset_bits
=no
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #include <sys/types.h>
4928 /* Check that off_t can represent 2**63 - 1 correctly.
4929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4930 since some C++ compilers masquerading as C compilers
4931 incorrectly reject 9223372036854775807. */
4932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4934 && LARGE_OFF_T % 2147483647 == 1)
4944 rm -f conftest.
$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4948 grep -v '^ *+' conftest.er1
>conftest.err
4950 cat conftest.err
>&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try
='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try
='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.
$ac_ext >&5
4972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4973 cat >conftest.
$ac_ext <<_ACEOF
4976 cat confdefs.h
>>conftest.
$ac_ext
4977 cat >>conftest.
$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 #define _FILE_OFFSET_BITS 64
4980 #include <sys/types.h>
4981 /* Check that off_t can represent 2**63 - 1 correctly.
4982 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4983 since some C++ compilers masquerading as C compilers
4984 incorrectly reject 9223372036854775807. */
4985 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4986 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4987 && LARGE_OFF_T % 2147483647 == 1)
4997 rm -f conftest.
$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>conftest.er1
5001 grep -v '^ *+' conftest.er1
>conftest.err
5003 cat conftest.err
>&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try
='test -z "$ac_c_werror_flag"
5007 || test ! -s conftest.err'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; } &&
5013 { ac_try
='test -s conftest.$ac_objext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 ac_cv_sys_file_offset_bits
=64; break
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.
$ac_ext >&5
5025 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5030 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5031 if test "$ac_cv_sys_file_offset_bits" != no
; then
5033 cat >>confdefs.h
<<_ACEOF
5034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5039 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5040 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5041 if test "${ac_cv_sys_large_files+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 ac_cv_sys_large_files
=no
5046 cat >conftest.
$ac_ext <<_ACEOF
5049 cat confdefs.h
>>conftest.
$ac_ext
5050 cat >>conftest.
$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <sys/types.h>
5053 /* Check that off_t can represent 2**63 - 1 correctly.
5054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5055 since some C++ compilers masquerading as C compilers
5056 incorrectly reject 9223372036854775807. */
5057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5059 && LARGE_OFF_T % 2147483647 == 1)
5069 rm -f conftest.
$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>conftest.er1
5073 grep -v '^ *+' conftest.er1
>conftest.err
5075 cat conftest.err
>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try
='test -z "$ac_c_werror_flag"
5079 || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try
='test -s conftest.$ac_objext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.
$ac_ext >&5
5097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5098 cat >conftest.
$ac_ext <<_ACEOF
5101 cat confdefs.h
>>conftest.
$ac_ext
5102 cat >>conftest.
$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #define _LARGE_FILES 1
5105 #include <sys/types.h>
5106 /* Check that off_t can represent 2**63 - 1 correctly.
5107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5108 since some C++ compilers masquerading as C compilers
5109 incorrectly reject 9223372036854775807. */
5110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5112 && LARGE_OFF_T % 2147483647 == 1)
5122 rm -f conftest.
$ac_objext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>conftest.er1
5126 grep -v '^ *+' conftest.er1
>conftest.err
5128 cat conftest.err
>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try
='test -z "$ac_c_werror_flag"
5132 || test ! -s conftest.err'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; } &&
5138 { ac_try
='test -s conftest.$ac_objext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_cv_sys_large_files
=1; break
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.
$ac_ext >&5
5150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5155 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5156 if test "$ac_cv_sys_large_files" != no
; then
5158 cat >>confdefs.h
<<_ACEOF
5159 #define _LARGE_FILES $ac_cv_sys_large_files
5167 if test "${with_sound}" != "no"; then
5168 # Sound support for GNU/Linux and the free BSDs.
5169 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5171 if test "${ac_cv_header_stdc+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 cat >conftest.
$ac_ext <<_ACEOF
5177 cat confdefs.h
>>conftest.
$ac_ext
5178 cat >>conftest.
$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5193 rm -f conftest.
$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195 (eval $ac_compile) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1
>conftest.err
5199 cat conftest.err
>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try
='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try
='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_header_stdc
=yes
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.
$ac_ext >&5
5220 ac_cv_header_stdc
=no
5222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5224 if test $ac_cv_header_stdc = yes; then
5225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5226 cat >conftest.
$ac_ext <<_ACEOF
5229 cat confdefs.h
>>conftest.
$ac_ext
5230 cat >>conftest.
$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "memchr" >/dev
/null
2>&1; then
5239 ac_cv_header_stdc
=no
5245 if test $ac_cv_header_stdc = yes; then
5246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5247 cat >conftest.
$ac_ext <<_ACEOF
5250 cat confdefs.h
>>conftest.
$ac_ext
5251 cat >>conftest.
$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257 $EGREP "free" >/dev
/null
2>&1; then
5260 ac_cv_header_stdc
=no
5266 if test $ac_cv_header_stdc = yes; then
5267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5268 if test "$cross_compiling" = yes; then
5271 cat >conftest.
$ac_ext <<_ACEOF
5274 cat confdefs.h
>>conftest.
$ac_ext
5275 cat >>conftest.
$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5278 #if ((' ' & 0x0FF) == 0x020)
5279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5282 # define ISLOWER(c) \
5283 (('a' <= (c) && (c) <= 'i') \
5284 || ('j' <= (c) && (c) <= 'r') \
5285 || ('s' <= (c) && (c) <= 'z'))
5286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5294 for (i = 0; i < 256; i++)
5295 if (XOR (islower (i), ISLOWER (i))
5296 || toupper (i) != TOUPPER (i))
5301 rm -f conftest
$ac_exeext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5303 (eval $ac_link) 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5314 echo "$as_me: program exited with status $ac_status" >&5
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.
$ac_ext >&5
5319 ac_cv_header_stdc
=no
5321 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5327 if test $ac_cv_header_stdc = yes; then
5329 cat >>confdefs.h
<<\_ACEOF
5330 #define STDC_HEADERS 1
5335 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5346 inttypes.h stdint.h unistd.h
5348 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 echo "$as_me:$LINENO: checking for $ac_header" >&5
5350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 cat >conftest.
$ac_ext <<_ACEOF
5357 cat confdefs.h
>>conftest.
$ac_ext
5358 cat >>conftest.
$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 $ac_includes_default
5362 #include <$ac_header>
5364 rm -f conftest.
$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5368 grep -v '^ *+' conftest.er1
>conftest.err
5370 cat conftest.err
>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try
='test -z "$ac_c_werror_flag"
5374 || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try
='test -s conftest.$ac_objext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 eval "$as_ac_Header=yes"
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 eval "$as_ac_Header=no"
5393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5398 cat >>confdefs.h
<<_ACEOF
5399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5410 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5412 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5414 echo "$as_me:$LINENO: checking for $ac_header" >&5
5415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5422 # Is the header compilable?
5423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5425 cat >conftest.
$ac_ext <<_ACEOF
5428 cat confdefs.h
>>conftest.
$ac_ext
5429 cat >>conftest.
$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5432 #include <$ac_header>
5434 rm -f conftest.
$ac_objext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436 (eval $ac_compile) 2>conftest.er1
5438 grep -v '^ *+' conftest.er1
>conftest.err
5440 cat conftest.err
>&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try
='test -z "$ac_c_werror_flag"
5444 || test ! -s conftest.err'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } &&
5450 { ac_try
='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_header_compiler
=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.
$ac_ext >&5
5461 ac_header_compiler
=no
5463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5465 echo "${ECHO_T}$ac_header_compiler" >&6
5467 # Is the header present?
5468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5470 cat >conftest.
$ac_ext <<_ACEOF
5473 cat confdefs.h
>>conftest.
$ac_ext
5474 cat >>conftest.
$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 #include <$ac_header>
5478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5481 grep -v '^ *+' conftest.er1
>conftest.err
5483 cat conftest.err
>&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } >/dev
/null
; then
5486 if test -s conftest.err
; then
5487 ac_cpp_err
=$ac_c_preproc_warn_flag
5488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5495 if test -z "$ac_cpp_err"; then
5496 ac_header_preproc
=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.
$ac_ext >&5
5501 ac_header_preproc
=no
5503 rm -f conftest.err conftest.
$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6
5507 # So? What about this header?
5508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514 ac_header_preproc
=yes
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5531 ## ------------------------------------------ ##
5532 ## Report this to the AC_PACKAGE_NAME lists. ##
5533 ## ------------------------------------------ ##
5536 sed "s/^/$as_me: WARNING: /" >&2
5539 echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 eval "$as_ac_Header=\$ac_header_preproc"
5546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5551 cat >>confdefs.h
<<_ACEOF
5552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559 # Emulation library used on NetBSD.
5560 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5561 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5562 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 ac_check_lib_save_LIBS
=$LIBS
5566 LIBS
="-lossaudio $LIBS"
5567 cat >conftest.
$ac_ext <<_ACEOF
5570 cat confdefs.h
>>conftest.
$ac_ext
5571 cat >>conftest.
$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5574 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5589 rm -f conftest.
$ac_objext conftest
$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5593 grep -v '^ *+' conftest.er1
>conftest.err
5595 cat conftest.err
>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try
='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try
='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_ossaudio__oss_ioctl
=yes
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.
$ac_ext >&5
5616 ac_cv_lib_ossaudio__oss_ioctl
=no
5618 rm -f conftest.err conftest.
$ac_objext \
5619 conftest
$ac_exeext conftest.
$ac_ext
5620 LIBS
=$ac_check_lib_save_LIBS
5622 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5623 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5624 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5658 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5659 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5660 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5661 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5664 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666 echo "$as_me:$LINENO: checking for $ac_header" >&5
5667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5674 # Is the header compilable?
5675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5677 cat >conftest.
$ac_ext <<_ACEOF
5680 cat confdefs.h
>>conftest.
$ac_ext
5681 cat >>conftest.
$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683 $ac_includes_default
5684 #include <$ac_header>
5686 rm -f conftest.
$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>conftest.er1
5690 grep -v '^ *+' conftest.er1
>conftest.err
5692 cat conftest.err
>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try
='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try
='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_header_compiler
=yes
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.
$ac_ext >&5
5713 ac_header_compiler
=no
5715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5717 echo "${ECHO_T}$ac_header_compiler" >&6
5719 # Is the header present?
5720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5722 cat >conftest.
$ac_ext <<_ACEOF
5725 cat confdefs.h
>>conftest.
$ac_ext
5726 cat >>conftest.
$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <$ac_header>
5730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5731 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5733 grep -v '^ *+' conftest.er1
>conftest.err
5735 cat conftest.err
>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } >/dev
/null
; then
5738 if test -s conftest.err
; then
5739 ac_cpp_err
=$ac_c_preproc_warn_flag
5740 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5747 if test -z "$ac_cpp_err"; then
5748 ac_header_preproc
=yes
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.
$ac_ext >&5
5753 ac_header_preproc
=no
5755 rm -f conftest.err conftest.
$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5757 echo "${ECHO_T}$ac_header_preproc" >&6
5759 # So? What about this header?
5760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5766 ac_header_preproc
=yes
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5783 ## ------------------------------------------ ##
5784 ## Report this to the AC_PACKAGE_NAME lists. ##
5785 ## ------------------------------------------ ##
5788 sed "s/^/$as_me: WARNING: /" >&2
5791 echo "$as_me:$LINENO: checking for $ac_header" >&5
5792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 eval "$as_ac_Header=\$ac_header_preproc"
5798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h
<<_ACEOF
5804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5813 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5814 cat >conftest.
$ac_ext <<_ACEOF
5817 cat confdefs.h
>>conftest.
$ac_ext
5818 cat >>conftest.
$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <sys/personality.h>
5824 personality (PER_LINUX32)
5829 rm -f conftest.
$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5833 grep -v '^ *+' conftest.er1
>conftest.err
5835 cat conftest.err
>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try
='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try
='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 emacs_cv_personality_linux32
=yes
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.
$ac_ext >&5
5856 emacs_cv_personality_linux32
=no
5858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5859 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5860 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5862 if test $emacs_cv_personality_linux32 = yes; then
5864 cat >>confdefs.h
<<\_ACEOF
5865 #define HAVE_PERSONALITY_LINUX32 1
5871 for ac_header
in term.h
5873 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5874 echo "$as_me:$LINENO: checking for $ac_header" >&5
5875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 cat >conftest.
$ac_ext <<_ACEOF
5882 cat confdefs.h
>>conftest.
$ac_ext
5883 cat >>conftest.
$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <$ac_header>
5887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5888 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5890 grep -v '^ *+' conftest.er1
>conftest.err
5892 cat conftest.err
>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } >/dev
/null
; then
5895 if test -s conftest.err
; then
5896 ac_cpp_err
=$ac_c_preproc_warn_flag
5897 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5904 if test -z "$ac_cpp_err"; then
5905 eval "$as_ac_Header=yes"
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.
$ac_ext >&5
5910 eval "$as_ac_Header=no"
5912 rm -f conftest.err conftest.
$ac_ext
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5917 cat >>confdefs.h
<<_ACEOF
5918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5925 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5927 if test "${ac_cv_header_stdc+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 cat >conftest.
$ac_ext <<_ACEOF
5933 cat confdefs.h
>>conftest.
$ac_ext
5934 cat >>conftest.
$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5949 rm -f conftest.
$ac_objext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951 (eval $ac_compile) 2>conftest.er1
5953 grep -v '^ *+' conftest.er1
>conftest.err
5955 cat conftest.err
>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try
='test -z "$ac_c_werror_flag"
5959 || test ! -s conftest.err'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; } &&
5965 { ac_try
='test -s conftest.$ac_objext'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 ac_cv_header_stdc
=yes
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.
$ac_ext >&5
5976 ac_cv_header_stdc
=no
5978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5980 if test $ac_cv_header_stdc = yes; then
5981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "memchr" >/dev
/null
2>&1; then
5995 ac_cv_header_stdc
=no
6001 if test $ac_cv_header_stdc = yes; then
6002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6003 cat >conftest.
$ac_ext <<_ACEOF
6006 cat confdefs.h
>>conftest.
$ac_ext
6007 cat >>conftest.
$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "free" >/dev
/null
2>&1; then
6016 ac_cv_header_stdc
=no
6022 if test $ac_cv_header_stdc = yes; then
6023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6024 if test "$cross_compiling" = yes; then
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6034 #if ((' ' & 0x0FF) == 0x020)
6035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6038 # define ISLOWER(c) \
6039 (('a' <= (c) && (c) <= 'i') \
6040 || ('j' <= (c) && (c) <= 'r') \
6041 || ('s' <= (c) && (c) <= 'z'))
6042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6050 for (i = 0; i < 256; i++)
6051 if (XOR (islower (i), ISLOWER (i))
6052 || toupper (i) != TOUPPER (i))
6057 rm -f conftest
$ac_exeext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6070 echo "$as_me: program exited with status $ac_status" >&5
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.
$ac_ext >&5
6075 ac_cv_header_stdc
=no
6077 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6082 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6083 if test $ac_cv_header_stdc = yes; then
6085 cat >>confdefs.h
<<\_ACEOF
6086 #define STDC_HEADERS 1
6091 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6092 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6093 if test "${ac_cv_header_time+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 cat >conftest.
$ac_ext <<_ACEOF
6099 cat confdefs.h
>>conftest.
$ac_ext
6100 cat >>conftest.
$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 #include <sys/types.h>
6103 #include <sys/time.h>
6109 if ((struct tm *) 0)
6115 rm -f conftest.
$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1
>conftest.err
6121 cat conftest.err
>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try
='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try
='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_header_time
=yes
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.
$ac_ext >&5
6142 ac_cv_header_time
=no
6144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6146 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6147 echo "${ECHO_T}$ac_cv_header_time" >&6
6148 if test $ac_cv_header_time = yes; then
6150 cat >>confdefs.h
<<\_ACEOF
6151 #define TIME_WITH_SYS_TIME 1
6156 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6157 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6158 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 cat >conftest.
$ac_ext <<_ACEOF
6164 cat confdefs.h
>>conftest.
$ac_ext
6165 cat >>conftest.
$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6172 char *p = (char *) sys_siglist;
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try
='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_have_decl_sys_siglist
=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_cv_have_decl_sys_siglist
=no
6208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6211 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6212 if test $ac_cv_have_decl_sys_siglist = yes; then
6214 cat >>confdefs.h
<<_ACEOF
6215 #define HAVE_DECL_SYS_SIGLIST 1
6220 cat >>confdefs.h
<<_ACEOF
6221 #define HAVE_DECL_SYS_SIGLIST 0
6228 if test $ac_cv_have_decl_sys_siglist != yes; then
6229 # For Tru64, at least:
6230 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6231 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6232 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 cat >conftest.
$ac_ext <<_ACEOF
6238 cat confdefs.h
>>conftest.
$ac_ext
6239 cat >>conftest.
$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6245 #ifndef __sys_siglist
6246 char *p = (char *) __sys_siglist;
6253 rm -f conftest.
$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255 (eval $ac_compile) 2>conftest.er1
6257 grep -v '^ *+' conftest.er1
>conftest.err
6259 cat conftest.err
>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try
='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try
='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_have_decl___sys_siglist
=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.
$ac_ext >&5
6280 ac_cv_have_decl___sys_siglist
=no
6282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6284 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6285 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6286 if test $ac_cv_have_decl___sys_siglist = yes; then
6288 cat >>confdefs.h
<<_ACEOF
6289 #define HAVE_DECL___SYS_SIGLIST 1
6294 cat >>confdefs.h
<<_ACEOF
6295 #define HAVE_DECL___SYS_SIGLIST 0
6302 if test $ac_cv_have_decl___sys_siglist = yes; then
6304 cat >>confdefs.h
<<\_ACEOF
6305 #define sys_siglist __sys_siglist
6310 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6311 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6312 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 cat >conftest.
$ac_ext <<_ACEOF
6318 cat confdefs.h
>>conftest.
$ac_ext
6319 cat >>conftest.
$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <sys/types.h>
6322 #include <sys/wait.h>
6324 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6327 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6335 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6340 rm -f conftest.
$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6344 grep -v '^ *+' conftest.er1
>conftest.err
6346 cat conftest.err
>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try
='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try
='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_header_sys_wait_h
=yes
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.
$ac_ext >&5
6367 ac_cv_header_sys_wait_h
=no
6369 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6371 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6372 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6373 if test $ac_cv_header_sys_wait_h = yes; then
6375 cat >>confdefs.h
<<\_ACEOF
6376 #define HAVE_SYS_WAIT_H 1
6382 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6383 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6384 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 cat >conftest.
$ac_ext <<_ACEOF
6390 cat confdefs.h
>>conftest.
$ac_ext
6391 cat >>conftest.
$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 #ifdef TIME_WITH_SYS_TIME
6394 #include <sys/time.h>
6397 #ifdef HAVE_SYS_TIME_H
6398 #include <sys/time.h>
6409 static struct utimbuf x; x.actime = x.modtime;
6414 rm -f conftest.
$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>conftest.er1
6418 grep -v '^ *+' conftest.er1
>conftest.err
6420 cat conftest.err
>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try
='test -z "$ac_c_werror_flag"
6424 || test ! -s conftest.err'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; } &&
6430 { ac_try
='test -s conftest.$ac_objext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 emacs_cv_struct_utimbuf
=yes
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.
$ac_ext >&5
6441 emacs_cv_struct_utimbuf
=no
6443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6445 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6446 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6447 if test $emacs_cv_struct_utimbuf = yes; then
6449 cat >>confdefs.h
<<\_ACEOF
6450 #define HAVE_STRUCT_UTIMBUF 1
6455 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6456 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6457 if test "${ac_cv_type_signal+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.
$ac_ext <<_ACEOF
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6472 extern "C" void (*signal (int, void (*)(int)))(int);
6474 void (*signal ()) ();
6485 rm -f conftest.
$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>conftest.er1
6489 grep -v '^ *+' conftest.er1
>conftest.err
6491 cat conftest.err
>&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try
='test -z "$ac_c_werror_flag"
6495 || test ! -s conftest.err'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try
='test -s conftest.$ac_objext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507 ac_cv_type_signal
=void
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.
$ac_ext >&5
6512 ac_cv_type_signal
=int
6514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6517 echo "${ECHO_T}$ac_cv_type_signal" >&6
6519 cat >>confdefs.h
<<_ACEOF
6520 #define RETSIGTYPE $ac_cv_type_signal
6525 echo "$as_me:$LINENO: checking for speed_t" >&5
6526 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6527 if test "${emacs_cv_speed_t+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 cat >conftest.
$ac_ext <<_ACEOF
6533 cat confdefs.h
>>conftest.
$ac_ext
6534 cat >>conftest.
$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #include <termios.h>
6545 rm -f conftest.
$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>conftest.er1
6549 grep -v '^ *+' conftest.er1
>conftest.err
6551 cat conftest.err
>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try
='test -z "$ac_c_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try
='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 emacs_cv_speed_t
=yes
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.
$ac_ext >&5
6574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6576 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6577 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6578 if test $emacs_cv_speed_t = yes; then
6580 cat >>confdefs.h
<<\_ACEOF
6581 #define HAVE_SPEED_T 1
6586 echo "$as_me:$LINENO: checking for struct timeval" >&5
6587 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6588 if test "${emacs_cv_struct_timeval+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 cat >conftest.
$ac_ext <<_ACEOF
6594 cat confdefs.h
>>conftest.
$ac_ext
6595 cat >>conftest.
$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #ifdef TIME_WITH_SYS_TIME
6598 #include <sys/time.h>
6601 #ifdef HAVE_SYS_TIME_H
6602 #include <sys/time.h>
6610 static struct timeval x; x.tv_sec = x.tv_usec;
6615 rm -f conftest.
$ac_objext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617 (eval $ac_compile) 2>conftest.er1
6619 grep -v '^ *+' conftest.er1
>conftest.err
6621 cat conftest.err
>&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try
='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try
='test -s conftest.$ac_objext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 emacs_cv_struct_timeval
=yes
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.
$ac_ext >&5
6642 emacs_cv_struct_timeval
=no
6644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6646 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6647 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6648 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6649 if test $emacs_cv_struct_timeval = yes; then
6651 cat >>confdefs.h
<<\_ACEOF
6652 #define HAVE_TIMEVAL 1
6657 echo "$as_me:$LINENO: checking for struct exception" >&5
6658 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6659 if test "${emacs_cv_struct_exception+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 cat >conftest.
$ac_ext <<_ACEOF
6665 cat confdefs.h
>>conftest.
$ac_ext
6666 cat >>conftest.
$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6672 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6677 rm -f conftest.
$ac_objext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679 (eval $ac_compile) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1
>conftest.err
6683 cat conftest.err
>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try
='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try
='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 emacs_cv_struct_exception
=yes
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.
$ac_ext >&5
6704 emacs_cv_struct_exception
=no
6706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6708 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6709 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6710 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6711 if test $emacs_cv_struct_exception != yes; then
6713 cat >>confdefs.h
<<\_ACEOF
6714 #define NO_MATHERR 1
6720 for ac_header
in sys
/socket.h
6722 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo "$as_me:$LINENO: checking for $ac_header" >&5
6725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 # Is the header compilable?
6733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6735 cat >conftest.
$ac_ext <<_ACEOF
6738 cat confdefs.h
>>conftest.
$ac_ext
6739 cat >>conftest.
$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6742 #include <$ac_header>
6744 rm -f conftest.
$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try
='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try
='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_header_compiler
=yes
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.
$ac_ext >&5
6771 ac_header_compiler
=no
6773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6775 echo "${ECHO_T}$ac_header_compiler" >&6
6777 # Is the header present?
6778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <$ac_header>
6788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6789 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1
>conftest.err
6793 cat conftest.err
>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } >/dev
/null
; then
6796 if test -s conftest.err
; then
6797 ac_cpp_err
=$ac_c_preproc_warn_flag
6798 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6805 if test -z "$ac_cpp_err"; then
6806 ac_header_preproc
=yes
6808 echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.
$ac_ext >&5
6811 ac_header_preproc
=no
6813 rm -f conftest.err conftest.
$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6815 echo "${ECHO_T}$ac_header_preproc" >&6
6817 # So? What about this header?
6818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6824 ac_header_preproc
=yes
6827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6841 ## ------------------------------------------ ##
6842 ## Report this to the AC_PACKAGE_NAME lists. ##
6843 ## ------------------------------------------ ##
6846 sed "s/^/$as_me: WARNING: /" >&2
6849 echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 eval "$as_ac_Header=\$ac_header_preproc"
6856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6861 cat >>confdefs.h
<<_ACEOF
6862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6870 for ac_header
in net
/if.h
6872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6873 echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 cat >conftest.
$ac_ext <<_ACEOF
6881 cat confdefs.h
>>conftest.
$ac_ext
6882 cat >>conftest.
$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 #if HAVE_SYS_SOCKET_H
6886 #include <sys/socket.h>
6889 #include <$ac_header>
6891 rm -f conftest.
$ac_objext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893 (eval $ac_compile) 2>conftest.er1
6895 grep -v '^ *+' conftest.er1
>conftest.err
6897 cat conftest.err
>&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try
='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try
='test -s conftest.$ac_objext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 eval "$as_ac_Header=yes"
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.
$ac_ext >&5
6918 eval "$as_ac_Header=no"
6920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6925 cat >>confdefs.h
<<_ACEOF
6926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6935 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6936 if test "${ac_cv_struct_tm+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 cat >conftest.
$ac_ext <<_ACEOF
6942 cat confdefs.h
>>conftest.
$ac_ext
6943 cat >>conftest.
$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <sys/types.h>
6951 struct tm *tp; tp->tm_sec;
6956 rm -f conftest.
$ac_objext
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>conftest.er1
6960 grep -v '^ *+' conftest.er1
>conftest.err
6962 cat conftest.err
>&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try
='test -z "$ac_c_werror_flag"
6966 || test ! -s conftest.err'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; } &&
6972 { ac_try
='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_struct_tm
=time.h
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.
$ac_ext >&5
6983 ac_cv_struct_tm
=sys
/time.h
6985 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6987 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6988 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6989 if test $ac_cv_struct_tm = sys
/time.h
; then
6991 cat >>confdefs.h
<<\_ACEOF
6992 #define TM_IN_SYS_TIME 1
6997 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6998 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6999 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 cat >conftest.
$ac_ext <<_ACEOF
7005 cat confdefs.h
>>conftest.
$ac_ext
7006 cat >>conftest.
$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 #include <sys/types.h>
7009 #include <$ac_cv_struct_tm>
7015 static struct tm ac_aggr;
7016 if (ac_aggr.tm_zone)
7022 rm -f conftest.
$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7026 grep -v '^ *+' conftest.er1
>conftest.err
7028 cat conftest.err
>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try
='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try
='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_member_struct_tm_tm_zone
=yes
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.
$ac_ext >&5
7049 cat >conftest.
$ac_ext <<_ACEOF
7052 cat confdefs.h
>>conftest.
$ac_ext
7053 cat >>conftest.
$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 #include <sys/types.h>
7056 #include <$ac_cv_struct_tm>
7062 static struct tm ac_aggr;
7063 if (sizeof ac_aggr.tm_zone)
7069 rm -f conftest.
$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7073 grep -v '^ *+' conftest.er1
>conftest.err
7075 cat conftest.err
>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try
='test -z "$ac_c_werror_flag"
7079 || test ! -s conftest.err'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; } &&
7085 { ac_try
='test -s conftest.$ac_objext'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7091 ac_cv_member_struct_tm_tm_zone
=yes
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.
$ac_ext >&5
7096 ac_cv_member_struct_tm_tm_zone
=no
7098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7102 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7103 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7104 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7106 cat >>confdefs.h
<<_ACEOF
7107 #define HAVE_STRUCT_TM_TM_ZONE 1
7113 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7115 cat >>confdefs.h
<<\_ACEOF
7116 #define HAVE_TM_ZONE 1
7120 echo "$as_me:$LINENO: checking for tzname" >&5
7121 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7122 if test "${ac_cv_var_tzname+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 cat >conftest.
$ac_ext <<_ACEOF
7128 cat confdefs.h
>>conftest.
$ac_ext
7129 cat >>conftest.
$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7132 #ifndef tzname /* For SGI. */
7133 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7144 rm -f conftest.
$ac_objext conftest
$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>conftest.er1
7148 grep -v '^ *+' conftest.er1
>conftest.err
7150 cat conftest.err
>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try
='test -z "$ac_c_werror_flag"
7154 || test ! -s conftest.err'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; } &&
7160 { ac_try
='test -s conftest$ac_exeext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 ac_cv_var_tzname
=yes
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.
$ac_ext >&5
7173 rm -f conftest.err conftest.
$ac_objext \
7174 conftest
$ac_exeext conftest.
$ac_ext
7176 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7177 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7178 if test $ac_cv_var_tzname = yes; then
7180 cat >>confdefs.h
<<\_ACEOF
7181 #define HAVE_TZNAME 1
7187 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7188 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7189 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.
$ac_ext <<_ACEOF
7195 cat confdefs.h
>>conftest.
$ac_ext
7196 cat >>conftest.
$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7203 static struct tm ac_aggr;
7204 if (ac_aggr.tm_gmtoff)
7210 rm -f conftest.
$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1
>conftest.err
7216 cat conftest.err
>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try
='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try
='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_member_struct_tm_tm_gmtoff
=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.
$ac_ext >&5
7237 cat >conftest.
$ac_ext <<_ACEOF
7240 cat confdefs.h
>>conftest.
$ac_ext
7241 cat >>conftest.
$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7248 static struct tm ac_aggr;
7249 if (sizeof ac_aggr.tm_gmtoff)
7255 rm -f conftest.
$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>conftest.er1
7259 grep -v '^ *+' conftest.er1
>conftest.err
7261 cat conftest.err
>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try
='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try
='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_cv_member_struct_tm_tm_gmtoff
=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.
$ac_ext >&5
7282 ac_cv_member_struct_tm_tm_gmtoff
=no
7284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7289 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7290 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7292 cat >>confdefs.h
<<\_ACEOF
7293 #define HAVE_TM_GMTOFF 1
7298 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7299 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7300 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #if HAVE_SYS_SOCKET_H
7311 #include <sys/socket.h>
7320 static struct ifreq ac_aggr;
7321 if (ac_aggr.ifr_flags)
7327 rm -f conftest.
$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>conftest.er1
7331 grep -v '^ *+' conftest.er1
>conftest.err
7333 cat conftest.err
>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try
='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try
='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_member_struct_ifreq_ifr_flags
=yes
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.
$ac_ext >&5
7354 cat >conftest.
$ac_ext <<_ACEOF
7357 cat confdefs.h
>>conftest.
$ac_ext
7358 cat >>conftest.
$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 $ac_includes_default
7361 #if HAVE_SYS_SOCKET_H
7362 #include <sys/socket.h>
7371 static struct ifreq ac_aggr;
7372 if (sizeof ac_aggr.ifr_flags)
7378 rm -f conftest.
$ac_objext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>conftest.er1
7382 grep -v '^ *+' conftest.er1
>conftest.err
7384 cat conftest.err
>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try
='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try
='test -s conftest.$ac_objext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_member_struct_ifreq_ifr_flags
=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.
$ac_ext >&5
7405 ac_cv_member_struct_ifreq_ifr_flags
=no
7407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7412 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7413 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7415 cat >>confdefs.h
<<_ACEOF
7416 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7421 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7422 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7423 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 cat >conftest.
$ac_ext <<_ACEOF
7429 cat confdefs.h
>>conftest.
$ac_ext
7430 cat >>conftest.
$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 #if HAVE_SYS_SOCKET_H
7434 #include <sys/socket.h>
7443 static struct ifreq ac_aggr;
7444 if (ac_aggr.ifr_hwaddr)
7450 rm -f conftest.
$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>conftest.er1
7454 grep -v '^ *+' conftest.er1
>conftest.err
7456 cat conftest.err
>&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try
='test -z "$ac_c_werror_flag"
7460 || test ! -s conftest.err'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try
='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.
$ac_ext >&5
7477 cat >conftest.
$ac_ext <<_ACEOF
7480 cat confdefs.h
>>conftest.
$ac_ext
7481 cat >>conftest.
$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 #if HAVE_SYS_SOCKET_H
7485 #include <sys/socket.h>
7494 static struct ifreq ac_aggr;
7495 if (sizeof ac_aggr.ifr_hwaddr)
7501 rm -f conftest.
$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7505 grep -v '^ *+' conftest.er1
>conftest.err
7507 cat conftest.err
>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try
='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try
='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.
$ac_ext >&5
7528 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7536 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7538 cat >>confdefs.h
<<_ACEOF
7539 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7544 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7545 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7546 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 cat >conftest.
$ac_ext <<_ACEOF
7552 cat confdefs.h
>>conftest.
$ac_ext
7553 cat >>conftest.
$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7555 $ac_includes_default
7556 #if HAVE_SYS_SOCKET_H
7557 #include <sys/socket.h>
7566 static struct ifreq ac_aggr;
7567 if (ac_aggr.ifr_netmask)
7573 rm -f conftest.
$ac_objext
7574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7575 (eval $ac_compile) 2>conftest.er1
7577 grep -v '^ *+' conftest.er1
>conftest.err
7579 cat conftest.err
>&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } &&
7582 { ac_try
='test -z "$ac_c_werror_flag"
7583 || test ! -s conftest.err'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; } &&
7589 { ac_try
='test -s conftest.$ac_objext'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7595 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.
$ac_ext >&5
7600 cat >conftest.
$ac_ext <<_ACEOF
7603 cat confdefs.h
>>conftest.
$ac_ext
7604 cat >>conftest.
$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7607 #if HAVE_SYS_SOCKET_H
7608 #include <sys/socket.h>
7617 static struct ifreq ac_aggr;
7618 if (sizeof ac_aggr.ifr_netmask)
7624 rm -f conftest.
$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1
>conftest.err
7630 cat conftest.err
>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try
='test -z "$ac_c_werror_flag"
7634 || test ! -s conftest.err'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; } &&
7640 { ac_try
='test -s conftest.$ac_objext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.
$ac_ext >&5
7651 ac_cv_member_struct_ifreq_ifr_netmask
=no
7653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7658 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7659 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7661 cat >>confdefs.h
<<_ACEOF
7662 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7667 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7668 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7669 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7679 #if HAVE_SYS_SOCKET_H
7680 #include <sys/socket.h>
7689 static struct ifreq ac_aggr;
7690 if (ac_aggr.ifr_broadaddr)
7696 rm -f conftest.
$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7700 grep -v '^ *+' conftest.er1
>conftest.err
7702 cat conftest.err
>&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try
='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try
='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7723 cat >conftest.
$ac_ext <<_ACEOF
7726 cat confdefs.h
>>conftest.
$ac_ext
7727 cat >>conftest.
$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7730 #if HAVE_SYS_SOCKET_H
7731 #include <sys/socket.h>
7740 static struct ifreq ac_aggr;
7741 if (sizeof ac_aggr.ifr_broadaddr)
7747 rm -f conftest.
$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7751 grep -v '^ *+' conftest.er1
>conftest.err
7753 cat conftest.err
>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try
='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try
='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.
$ac_ext >&5
7774 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7780 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7781 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7782 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7784 cat >>confdefs.h
<<_ACEOF
7785 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7790 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7791 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7792 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 cat >conftest.
$ac_ext <<_ACEOF
7798 cat confdefs.h
>>conftest.
$ac_ext
7799 cat >>conftest.
$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7801 $ac_includes_default
7802 #if HAVE_SYS_SOCKET_H
7803 #include <sys/socket.h>
7812 static struct ifreq ac_aggr;
7813 if (ac_aggr.ifr_addr)
7819 rm -f conftest.
$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>conftest.er1
7823 grep -v '^ *+' conftest.er1
>conftest.err
7825 cat conftest.err
>&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try
='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try
='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_member_struct_ifreq_ifr_addr
=yes
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.
$ac_ext >&5
7846 cat >conftest.
$ac_ext <<_ACEOF
7849 cat confdefs.h
>>conftest.
$ac_ext
7850 cat >>conftest.
$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 $ac_includes_default
7853 #if HAVE_SYS_SOCKET_H
7854 #include <sys/socket.h>
7863 static struct ifreq ac_aggr;
7864 if (sizeof ac_aggr.ifr_addr)
7870 rm -f conftest.
$ac_objext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872 (eval $ac_compile) 2>conftest.er1
7874 grep -v '^ *+' conftest.er1
>conftest.err
7876 cat conftest.err
>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try
='test -z "$ac_c_werror_flag"
7880 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try
='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_member_struct_ifreq_ifr_addr
=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.
$ac_ext >&5
7897 ac_cv_member_struct_ifreq_ifr_addr
=no
7899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7903 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7904 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7905 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7907 cat >>confdefs.h
<<_ACEOF
7908 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7916 echo "$as_me:$LINENO: checking for function prototypes" >&5
7917 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7918 if test "$ac_cv_prog_cc_stdc" != no
; then
7919 echo "$as_me:$LINENO: result: yes" >&5
7920 echo "${ECHO_T}yes" >&6
7922 cat >>confdefs.h
<<\_ACEOF
7923 #define PROTOTYPES 1
7927 cat >>confdefs.h
<<\_ACEOF
7928 #define __PROTOTYPES 1
7932 echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6
7936 echo "$as_me:$LINENO: checking for working volatile" >&5
7937 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7938 if test "${ac_cv_c_volatile+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 cat >conftest.
$ac_ext <<_ACEOF
7944 cat confdefs.h
>>conftest.
$ac_ext
7945 cat >>conftest.
$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7958 rm -f conftest.
$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1
>conftest.err
7964 cat conftest.err
>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try
='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try
='test -s conftest.$ac_objext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_c_volatile
=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.
$ac_ext >&5
7987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7990 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7991 if test $ac_cv_c_volatile = no
; then
7993 cat >>confdefs.h
<<\_ACEOF
7999 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8000 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8001 if test "${ac_cv_c_const+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 cat >conftest.
$ac_ext <<_ACEOF
8007 cat confdefs.h
>>conftest.
$ac_ext
8008 cat >>conftest.
$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8014 /* FIXME: Include the comments suggested by Paul. */
8016 /* Ultrix mips cc rejects this. */
8017 typedef int charset[2];
8019 /* SunOS 4.1.1 cc rejects this. */
8020 char const *const *ccp;
8022 /* NEC SVR4.0.2 mips cc rejects this. */
8023 struct point {int x, y;};
8024 static struct point const zero = {0,0};
8025 /* AIX XL C 1.02.0.0 rejects this.
8026 It does not let you subtract one const X* pointer from another in
8027 an arm of an if-expression whose if-part is not a constant
8029 const char *g = "string";
8030 ccp = &g + (g ? g-g : 0);
8031 /* HPUX 7.0 cc rejects these. */
8034 ccp = (char const *const *) p;
8035 { /* SCO 3.2v4 cc rejects this. */
8037 char const *s = 0 ? (char *) 0 : (char const *) 0;
8041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8043 const int *foo = &x[0];
8046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8047 typedef const int *iptr;
8051 { /* AIX XL C 1.02.0.0 rejects this saying
8052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8053 struct s { int j; const int *ap[3]; };
8054 struct s *b; b->j = 5;
8056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8065 rm -f conftest.
$ac_objext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8067 (eval $ac_compile) 2>conftest.er1
8069 grep -v '^ *+' conftest.er1
>conftest.err
8071 cat conftest.err
>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try
='test -z "$ac_c_werror_flag"
8075 || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try
='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.
$ac_ext >&5
8094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8096 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8097 echo "${ECHO_T}$ac_cv_c_const" >&6
8098 if test $ac_cv_c_const = no
; then
8100 cat >>confdefs.h
<<\_ACEOF
8106 echo "$as_me:$LINENO: checking for void * support" >&5
8107 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8108 if test "${emacs_cv_void_star+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 cat >conftest.
$ac_ext <<_ACEOF
8114 cat confdefs.h
>>conftest.
$ac_ext
8115 cat >>conftest.
$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8126 rm -f conftest.
$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1
>conftest.err
8132 cat conftest.err
>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try
='test -z "$ac_c_werror_flag"
8136 || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try
='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 emacs_cv_void_star
=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.
$ac_ext >&5
8153 emacs_cv_void_star
=no
8155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8157 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8158 echo "${ECHO_T}$emacs_cv_void_star" >&6
8159 if test $emacs_cv_void_star = yes; then
8160 cat >>confdefs.h
<<\_ACEOF
8161 #define POINTER_TYPE void
8165 cat >>confdefs.h
<<\_ACEOF
8166 #define POINTER_TYPE char
8175 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8176 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8177 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8178 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 cat >conftest.
make <<\_ACEOF
8183 @
echo 'ac_maketemp="$(MAKE)"'
8185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8186 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8187 if test -n "$ac_maketemp"; then
8188 eval ac_cv_prog_make_
${ac_make}_set
=yes
8190 eval ac_cv_prog_make_
${ac_make}_set
=no
8194 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8199 echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8201 SET_MAKE
="MAKE=${MAKE-make}"
8205 echo "$as_me:$LINENO: checking for long file names" >&5
8206 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8207 if test "${ac_cv_sys_long_file_names+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 ac_cv_sys_long_file_names
=yes
8211 # Test for long file names in all the places we know might matter:
8212 # . the current directory, where building will happen
8213 # $prefix/lib where we will be installing things
8214 # $exec_prefix/lib likewise
8215 # eval it to expand exec_prefix.
8216 # $TMPDIR if set, where it might want to write temporary files
8217 # if $TMPDIR is not set:
8218 # /tmp where it might want to write temporary files
8221 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8224 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8226 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8227 test -d $ac_dir ||
continue
8228 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8229 ac_xdir
=$ac_dir/cf$$
8230 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8231 ac_tf1
=$ac_xdir/conftest9012345
8232 ac_tf2
=$ac_xdir/conftest9012346
8233 (echo 1 >$ac_tf1) 2>/dev
/null
8234 (echo 2 >$ac_tf2) 2>/dev
/null
8235 ac_val
=`cat $ac_tf1 2>/dev/null`
8236 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8237 ac_cv_sys_long_file_names
=no
8238 rm -rf $ac_xdir 2>/dev
/null
8241 rm -rf $ac_xdir 2>/dev
/null
8244 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8245 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8246 if test $ac_cv_sys_long_file_names = yes; then
8248 cat >>confdefs.h
<<\_ACEOF
8249 #define HAVE_LONG_FILE_NAMES 1
8255 #### Choose a window system.
8257 echo "$as_me:$LINENO: checking for X" >&5
8258 echo $ECHO_N "checking for X... $ECHO_C" >&6
8261 # Check whether --with-x or --without-x was given.
8262 if test "${with_x+set}" = set; then
8266 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8267 if test "x$with_x" = xno
; then
8268 # The user explicitly disabled X.
8271 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8272 # Both variables are already set.
8275 if test "${ac_cv_have_x+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 # One or both of the vars are not set, and there is no cached value.
8279 ac_x_includes
=no ac_x_libraries
=no
8281 if mkdir conftest.dir
; then
8283 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8284 cat >Imakefile
<<'_ACEOF'
8286 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8288 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8290 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8291 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8292 for ac_extension
in a so sl
; do
8293 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8294 test -f $ac_im_libdir/libX11.
$ac_extension; then
8295 ac_im_usrlibdir
=$ac_im_libdir; break
8298 # Screen out bogus values from the imake configuration. They are
8299 # bogus both because they are the default anyway, and because
8300 # using them would break gcc on systems where it needs fixed includes.
8301 case $ac_im_incroot in
8303 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8305 case $ac_im_usrlibdir in
8307 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8314 # Standard set of common directories for X headers.
8315 # Check X11 before X11Rn because it is often a symlink to the current release.
8327 /usr/local/X11/include
8328 /usr/local/X11R6/include
8329 /usr/local/X11R5/include
8330 /usr/local/X11R4/include
8332 /usr/local/include/X11
8333 /usr/local/include/X11R6
8334 /usr/local/include/X11R5
8335 /usr/local/include/X11R4
8339 /usr/XFree86/include/X11
8343 /usr/unsupported/include
8345 /usr/local/x11r5/include
8346 /usr/lpp/Xamples/include
8348 /usr/openwin/include
8349 /usr/openwin/share/include'
8351 if test "$ac_x_includes" = no
; then
8352 # Guess where to find include files, by looking for Intrinsic.h.
8353 # First, try using that file with no special directory specified.
8354 cat >conftest.
$ac_ext <<_ACEOF
8357 cat confdefs.h
>>conftest.
$ac_ext
8358 cat >>conftest.
$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 #include <X11/Intrinsic.h>
8362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8365 grep -v '^ *+' conftest.er1
>conftest.err
8367 cat conftest.err
>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } >/dev
/null
; then
8370 if test -s conftest.err
; then
8371 ac_cpp_err
=$ac_c_preproc_warn_flag
8372 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8379 if test -z "$ac_cpp_err"; then
8380 # We can compile using X headers with no special include directory.
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.
$ac_ext >&5
8386 for ac_dir
in $ac_x_header_dirs; do
8387 if test -r "$ac_dir/X11/Intrinsic.h"; then
8388 ac_x_includes
=$ac_dir
8393 rm -f conftest.err conftest.
$ac_ext
8394 fi # $ac_x_includes = no
8396 if test "$ac_x_libraries" = no
; then
8397 # Check for the libraries.
8398 # See if we find them without any special options.
8399 # Don't add to $LIBS permanently.
8402 cat >conftest.
$ac_ext <<_ACEOF
8405 cat confdefs.h
>>conftest.
$ac_ext
8406 cat >>conftest.
$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 #include <X11/Intrinsic.h>
8417 rm -f conftest.
$ac_objext conftest
$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>conftest.er1
8421 grep -v '^ *+' conftest.er1
>conftest.err
8423 cat conftest.err
>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try
='test -z "$ac_c_werror_flag"
8427 || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try
='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8440 # We can link X programs with no special library path.
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.
$ac_ext >&5
8447 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8449 # Don't even attempt the hair of trying to link an X program!
8450 for ac_extension
in a so sl
; do
8451 if test -r $ac_dir/libXt.
$ac_extension; then
8452 ac_x_libraries
=$ac_dir
8458 rm -f conftest.err conftest.
$ac_objext \
8459 conftest
$ac_exeext conftest.
$ac_ext
8460 fi # $ac_x_libraries = no
8462 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8463 # Didn't find X anywhere. Cache the known absence of X.
8464 ac_cv_have_x
="have_x=no"
8466 # Record where we found X for the cache.
8467 ac_cv_have_x
="have_x=yes \
8468 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8473 eval "$ac_cv_have_x"
8476 if test "$have_x" != yes; then
8477 echo "$as_me:$LINENO: result: $have_x" >&5
8478 echo "${ECHO_T}$have_x" >&6
8481 # If each of the values was on the command line, it overrides each guess.
8482 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8483 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8484 # Update the cache value to reflect the command line values.
8485 ac_cv_have_x
="have_x=yes \
8486 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8487 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8488 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8491 if test "$no_x" = yes; then
8497 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8498 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8499 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8500 x_default_search_path
=""
8501 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8503 ${x_library}/X11/%L/%T/%N%C%S:\
8504 ${x_library}/X11/%l/%T/%N%C%S:\
8505 ${x_library}/X11/%T/%N%C%S:\
8506 ${x_library}/X11/%L/%T/%N%S:\
8507 ${x_library}/X11/%l/%T/%N%S:\
8508 ${x_library}/X11/%T/%N%S"
8509 if test x
"${x_default_search_path}" = x
; then
8510 x_default_search_path
=${x_search_path}
8512 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8516 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8517 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8520 if test x
"${x_includes}" = x
; then
8521 bitmapdir
=/usr
/include
/X11
/bitmaps
8523 # accumulate include directories that have X11 bitmap subdirectories
8525 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8526 if test -d "${bmd}/X11/bitmaps"; then
8527 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8529 if test -d "${bmd}/bitmaps"; then
8530 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8533 if test ${bmd_acc} != "dummyval"; then
8534 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8539 if test "${with_carbon}" != no
; then
8540 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8541 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8542 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8543 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8547 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8549 # Is the header compilable?
8550 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8551 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8552 cat >conftest.
$ac_ext <<_ACEOF
8555 cat confdefs.h
>>conftest.
$ac_ext
8556 cat >>conftest.
$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 $ac_includes_default
8559 #include <Carbon/Carbon.h>
8561 rm -f conftest.
$ac_objext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563 (eval $ac_compile) 2>conftest.er1
8565 grep -v '^ *+' conftest.er1
>conftest.err
8567 cat conftest.err
>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try
='test -z "$ac_c_werror_flag"
8571 || test ! -s conftest.err'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try
='test -s conftest.$ac_objext'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 ac_header_compiler
=yes
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.
$ac_ext >&5
8588 ac_header_compiler
=no
8590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8592 echo "${ECHO_T}$ac_header_compiler" >&6
8594 # Is the header present?
8595 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8596 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8597 cat >conftest.
$ac_ext <<_ACEOF
8600 cat confdefs.h
>>conftest.
$ac_ext
8601 cat >>conftest.
$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 #include <Carbon/Carbon.h>
8605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8606 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8608 grep -v '^ *+' conftest.er1
>conftest.err
8610 cat conftest.err
>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } >/dev
/null
; then
8613 if test -s conftest.err
; then
8614 ac_cpp_err
=$ac_c_preproc_warn_flag
8615 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8622 if test -z "$ac_cpp_err"; then
8623 ac_header_preproc
=yes
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.
$ac_ext >&5
8628 ac_header_preproc
=no
8630 rm -f conftest.err conftest.
$ac_ext
8631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8632 echo "${ECHO_T}$ac_header_preproc" >&6
8634 # So? What about this header?
8635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8637 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8638 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8640 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8641 ac_header_preproc
=yes
8644 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8645 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8647 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8649 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8651 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8653 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8655 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8658 ## ------------------------------------------ ##
8659 ## Report this to the AC_PACKAGE_NAME lists. ##
8660 ## ------------------------------------------ ##
8663 sed "s/^/$as_me: WARNING: /" >&2
8666 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8667 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8668 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8673 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8674 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8677 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8683 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8684 if test "${with_carbon+set}" != set \
8685 && test "${carbon_appdir_x+set}" != set; then
8689 if test "${HAVE_CARBON}" = yes; then
8693 case "${window_system}" in
8697 case "${with_x_toolkit}" in
8698 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8699 motif
) USE_X_TOOLKIT
=MOTIF
;;
8701 USE_X_TOOLKIT
=none
;;
8702 no
) USE_X_TOOLKIT
=none
;;
8703 * ) USE_X_TOOLKIT
=maybe
;;
8713 ### If we're using X11, we should use the X menu package.
8716 yes ) HAVE_MENUS
=yes ;;
8719 if test "${opsys}" = "hpux9"; then
8720 case "${x_libraries}" in
8722 opsysfile
="s/hpux9-x11r4.h"
8727 if test "${opsys}" = "hpux9shr"; then
8728 case "${x_libraries}" in
8730 opsysfile
="s/hpux9shxr4.h"
8735 ### Compute the unexec source name from the object name.
8736 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8738 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8739 # Assume not, until told otherwise.
8742 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8743 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8744 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 cat >conftest.
$ac_ext <<_ACEOF
8750 cat confdefs.h
>>conftest.
$ac_ext
8751 cat >>conftest.
$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8755 #define malloc_get_state innocuous_malloc_get_state
8757 /* System header to define __stub macros and hopefully few prototypes,
8758 which can conflict with char malloc_get_state (); below.
8759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8760 <limits.h> exists even on freestanding compilers. */
8763 # include <limits.h>
8765 # include <assert.h>
8768 #undef malloc_get_state
8770 /* Override any gcc2 internal prototype to avoid an error. */
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8777 char malloc_get_state ();
8778 /* The GNU C library defines this for functions which it implements
8779 to always fail with ENOSYS. Some functions are actually named
8780 something starting with __ and the normal name is an alias. */
8781 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8784 char (*f) () = malloc_get_state;
8793 return f != malloc_get_state;
8798 rm -f conftest.
$ac_objext conftest
$ac_exeext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8800 (eval $ac_link) 2>conftest.er1
8802 grep -v '^ *+' conftest.er1
>conftest.err
8804 cat conftest.err
>&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try
='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try
='test -s conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_func_malloc_get_state
=yes
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.
$ac_ext >&5
8825 ac_cv_func_malloc_get_state
=no
8827 rm -f conftest.err conftest.
$ac_objext \
8828 conftest
$ac_exeext conftest.
$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8831 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8832 if test $ac_cv_func_malloc_get_state = yes; then
8838 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8839 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8840 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.
$ac_ext <<_ACEOF
8846 cat confdefs.h
>>conftest.
$ac_ext
8847 cat >>conftest.
$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8851 #define malloc_set_state innocuous_malloc_set_state
8853 /* System header to define __stub macros and hopefully few prototypes,
8854 which can conflict with char malloc_set_state (); below.
8855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8856 <limits.h> exists even on freestanding compilers. */
8859 # include <limits.h>
8861 # include <assert.h>
8864 #undef malloc_set_state
8866 /* Override any gcc2 internal prototype to avoid an error. */
8871 /* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873 char malloc_set_state ();
8874 /* The GNU C library defines this for functions which it implements
8875 to always fail with ENOSYS. Some functions are actually named
8876 something starting with __ and the normal name is an alias. */
8877 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8880 char (*f) () = malloc_set_state;
8889 return f != malloc_set_state;
8894 rm -f conftest.
$ac_objext conftest
$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>conftest.er1
8898 grep -v '^ *+' conftest.er1
>conftest.err
8900 cat conftest.err
>&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try
='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try
='test -s conftest$ac_exeext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_func_malloc_set_state
=yes
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.
$ac_ext >&5
8921 ac_cv_func_malloc_set_state
=no
8923 rm -f conftest.err conftest.
$ac_objext \
8924 conftest
$ac_exeext conftest.
$ac_ext
8926 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8927 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8928 if test $ac_cv_func_malloc_set_state = yes; then
8934 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8935 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8936 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 cat >conftest.
$ac_ext <<_ACEOF
8942 cat confdefs.h
>>conftest.
$ac_ext
8943 cat >>conftest.
$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 extern void (* __after_morecore_hook)();
8949 __after_morecore_hook = 0
8954 rm -f conftest.
$ac_objext conftest
$ac_exeext
8955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956 (eval $ac_link) 2>conftest.er1
8958 grep -v '^ *+' conftest.er1
>conftest.err
8960 cat conftest.err
>&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try
='test -z "$ac_c_werror_flag"
8964 || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try
='test -s conftest$ac_exeext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 emacs_cv_var___after_morecore_hook
=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.
$ac_ext >&5
8981 emacs_cv_var___after_morecore_hook
=no
8983 rm -f conftest.err conftest.
$ac_objext \
8984 conftest
$ac_exeext conftest.
$ac_ext
8986 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8987 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8988 if test $emacs_cv_var___after_morecore_hook = no
; then
8991 if test "${system_malloc}" = "yes"; then
8994 (The GNU allocators don't work with this system configuration.)"
8996 if test "$doug_lea_malloc" = "yes" ; then
8997 if test "$GNU_MALLOC" = yes ; then
8999 (Using Doug Lea's new malloc from the GNU C Library.)"
9002 cat >>confdefs.h
<<\_ACEOF
9003 #define DOUG_LEA_MALLOC 1
9008 if test x
"${REL_ALLOC}" = x
; then
9009 REL_ALLOC
=${GNU_MALLOC}
9015 for ac_header
in stdlib.h unistd.h
9017 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo "$as_me:$LINENO: checking for $ac_header" >&5
9020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027 # Is the header compilable?
9028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9030 cat >conftest.
$ac_ext <<_ACEOF
9033 cat confdefs.h
>>conftest.
$ac_ext
9034 cat >>conftest.
$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 $ac_includes_default
9037 #include <$ac_header>
9039 rm -f conftest.
$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041 (eval $ac_compile) 2>conftest.er1
9043 grep -v '^ *+' conftest.er1
>conftest.err
9045 cat conftest.err
>&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try
='test -z "$ac_c_werror_flag"
9049 || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } &&
9055 { ac_try
='test -s conftest.$ac_objext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_header_compiler
=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.
$ac_ext >&5
9066 ac_header_compiler
=no
9068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9070 echo "${ECHO_T}$ac_header_compiler" >&6
9072 # Is the header present?
9073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9075 cat >conftest.
$ac_ext <<_ACEOF
9078 cat confdefs.h
>>conftest.
$ac_ext
9079 cat >>conftest.
$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 #include <$ac_header>
9083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9084 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9086 grep -v '^ *+' conftest.er1
>conftest.err
9088 cat conftest.err
>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } >/dev
/null
; then
9091 if test -s conftest.err
; then
9092 ac_cpp_err
=$ac_c_preproc_warn_flag
9093 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9100 if test -z "$ac_cpp_err"; then
9101 ac_header_preproc
=yes
9103 echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.
$ac_ext >&5
9106 ac_header_preproc
=no
9108 rm -f conftest.err conftest.
$ac_ext
9109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9110 echo "${ECHO_T}$ac_header_preproc" >&6
9112 # So? What about this header?
9113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9119 ac_header_preproc
=yes
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9136 ## ------------------------------------------ ##
9137 ## Report this to the AC_PACKAGE_NAME lists. ##
9138 ## ------------------------------------------ ##
9141 sed "s/^/$as_me: WARNING: /" >&2
9144 echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 eval "$as_ac_Header=\$ac_header_preproc"
9151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9156 cat >>confdefs.h
<<_ACEOF
9157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9165 for ac_func
in getpagesize
9167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9168 echo "$as_me:$LINENO: checking for $ac_func" >&5
9169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_var+set}\" = set"; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 cat >conftest.
$ac_ext <<_ACEOF
9176 cat confdefs.h
>>conftest.
$ac_ext
9177 cat >>conftest.
$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9181 #define $ac_func innocuous_$ac_func
9183 /* System header to define __stub macros and hopefully few prototypes,
9184 which can conflict with char $ac_func (); below.
9185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9186 <limits.h> exists even on freestanding compilers. */
9189 # include <limits.h>
9191 # include <assert.h>
9196 /* Override any gcc2 internal prototype to avoid an error. */
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9204 /* The GNU C library defines this for functions which it implements
9205 to always fail with ENOSYS. Some functions are actually named
9206 something starting with __ and the normal name is an alias. */
9207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9210 char (*f) () = $ac_func;
9219 return f != $ac_func;
9224 rm -f conftest.
$ac_objext conftest
$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226 (eval $ac_link) 2>conftest.er1
9228 grep -v '^ *+' conftest.er1
>conftest.err
9230 cat conftest.err
>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try
='test -z "$ac_c_werror_flag"
9234 || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try
='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 eval "$as_ac_var=yes"
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.
$ac_ext >&5
9251 eval "$as_ac_var=no"
9253 rm -f conftest.err conftest.
$ac_objext \
9254 conftest
$ac_exeext conftest.
$ac_ext
9256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9258 if test `eval echo '${'$as_ac_var'}'` = yes; then
9259 cat >>confdefs.h
<<_ACEOF
9260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9266 echo "$as_me:$LINENO: checking for working mmap" >&5
9267 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 if test "$cross_compiling" = yes; then
9272 ac_cv_func_mmap_fixed_mapped
=no
9274 cat >conftest.
$ac_ext <<_ACEOF
9277 cat confdefs.h
>>conftest.
$ac_ext
9278 cat >>conftest.
$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 $ac_includes_default
9281 /* malloc might have been renamed as rpl_malloc. */
9284 /* Thanks to Mike Haertel and Jim Avera for this test.
9285 Here is a matrix of mmap possibilities:
9286 mmap private not fixed
9287 mmap private fixed at somewhere currently unmapped
9288 mmap private fixed at somewhere already mapped
9289 mmap shared not fixed
9290 mmap shared fixed at somewhere currently unmapped
9291 mmap shared fixed at somewhere already mapped
9292 For private mappings, we should verify that changes cannot be read()
9293 back from the file, nor mmap's back from the file at a different
9294 address. (There have been systems where private was not correctly
9295 implemented like the infamous i386 svr4.0, and systems where the
9296 VM page cache was not coherent with the file system buffer cache
9297 like early versions of FreeBSD and possibly contemporary NetBSD.)
9298 For shared mappings, we should conversely verify that changes get
9299 propagated back to all the places they're supposed to be.
9301 Grep wants private fixed already mapped.
9302 The main things grep needs to know about mmap are:
9303 * does it exist and is it safe to write into the mmap'd area
9304 * how to use it (BSD variants) */
9307 #include <sys/mman.h>
9309 #if !STDC_HEADERS && !HAVE_STDLIB_H
9313 /* This mess was copied from the GNU getpagesize.h. */
9314 #if !HAVE_GETPAGESIZE
9315 /* Assume that all systems that can run configure have sys/param.h. */
9316 # if !HAVE_SYS_PARAM_H
9317 # define HAVE_SYS_PARAM_H 1
9320 # ifdef _SC_PAGESIZE
9321 # define getpagesize() sysconf(_SC_PAGESIZE)
9322 # else /* no _SC_PAGESIZE */
9323 # if HAVE_SYS_PARAM_H
9324 # include <sys/param.h>
9325 # ifdef EXEC_PAGESIZE
9326 # define getpagesize() EXEC_PAGESIZE
9327 # else /* no EXEC_PAGESIZE */
9329 # define getpagesize() NBPG * CLSIZE
9332 # endif /* no CLSIZE */
9333 # else /* no NBPG */
9335 # define getpagesize() NBPC
9336 # else /* no NBPC */
9338 # define getpagesize() PAGESIZE
9339 # endif /* PAGESIZE */
9340 # endif /* no NBPC */
9341 # endif /* no NBPG */
9342 # endif /* no EXEC_PAGESIZE */
9343 # else /* no HAVE_SYS_PARAM_H */
9344 # define getpagesize() 8192 /* punt totally */
9345 # endif /* no HAVE_SYS_PARAM_H */
9346 # endif /* no _SC_PAGESIZE */
9348 #endif /* no HAVE_GETPAGESIZE */
9353 char *data, *data2, *data3;
9357 pagesize = getpagesize ();
9359 /* First, make a file with some known garbage in it. */
9360 data = (char *) malloc (pagesize);
9363 for (i = 0; i < pagesize; ++i)
9364 *(data + i) = rand ();
9366 fd = creat ("conftest.mmap", 0600);
9369 if (write (fd, data, pagesize) != pagesize)
9373 /* Next, try to mmap the file at a fixed address which already has
9374 something else allocated at it. If we can, also make sure that
9375 we see the same garbage. */
9376 fd = open ("conftest.mmap", O_RDWR);
9379 data2 = (char *) malloc (2 * pagesize);
9382 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9383 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9386 for (i = 0; i < pagesize; ++i)
9387 if (*(data + i) != *(data2 + i))
9390 /* Finally, make sure that changes to the mapped area do not
9391 percolate back to the file as seen by read(). (This is a bug on
9392 some variants of i386 svr4.0.) */
9393 for (i = 0; i < pagesize; ++i)
9394 *(data2 + i) = *(data2 + i) + 1;
9395 data3 = (char *) malloc (pagesize);
9398 if (read (fd, data3, pagesize) != pagesize)
9400 for (i = 0; i < pagesize; ++i)
9401 if (*(data + i) != *(data3 + i))
9407 rm -f conftest
$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_func_mmap_fixed_mapped
=yes
9420 echo "$as_me: program exited with status $ac_status" >&5
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9425 ac_cv_func_mmap_fixed_mapped
=no
9427 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9430 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9431 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9432 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9434 cat >>confdefs.h
<<\_ACEOF
9441 if test $use_mmap_for_buffers = yes; then
9445 LIBS
="$libsrc_libs $LIBS"
9448 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9449 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9450 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 ac_check_lib_save_LIBS
=$LIBS
9455 cat >conftest.
$ac_ext <<_ACEOF
9458 cat confdefs.h
>>conftest.
$ac_ext
9459 cat >>conftest.
$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9462 /* Override any gcc2 internal prototype to avoid an error. */
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9477 rm -f conftest.
$ac_objext conftest
$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>conftest.er1
9481 grep -v '^ *+' conftest.er1
>conftest.err
9483 cat conftest.err
>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try
='test -z "$ac_c_werror_flag"
9487 || test ! -s conftest.err'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try
='test -s conftest$ac_exeext'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_cv_lib_dnet_dnet_ntoa
=yes
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.
$ac_ext >&5
9504 ac_cv_lib_dnet_dnet_ntoa
=no
9506 rm -f conftest.err conftest.
$ac_objext \
9507 conftest
$ac_exeext conftest.
$ac_ext
9508 LIBS
=$ac_check_lib_save_LIBS
9510 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9511 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9512 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9513 cat >>confdefs.h
<<_ACEOF
9514 #define HAVE_LIBDNET 1
9522 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9523 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9524 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 ac_check_lib_save_LIBS
=$LIBS
9529 cat >conftest.
$ac_ext <<_ACEOF
9532 cat confdefs.h
>>conftest.
$ac_ext
9533 cat >>conftest.
$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9545 rm -f conftest.
$ac_objext conftest
$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547 (eval $ac_link) 2>conftest.er1
9549 grep -v '^ *+' conftest.er1
>conftest.err
9551 cat conftest.err
>&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try
='test -z "$ac_c_werror_flag"
9555 || test ! -s conftest.err'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; } &&
9561 { ac_try
='test -s conftest$ac_exeext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_lib_Xbsd_main
=yes
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.
$ac_ext >&5
9572 ac_cv_lib_Xbsd_main
=no
9574 rm -f conftest.err conftest.
$ac_objext \
9575 conftest
$ac_exeext conftest.
$ac_ext
9576 LIBS
=$ac_check_lib_save_LIBS
9578 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9579 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9580 if test $ac_cv_lib_Xbsd_main = yes; then
9581 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9586 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9587 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9588 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 ac_check_lib_save_LIBS
=$LIBS
9592 LIBS
="-lpthreads $LIBS"
9593 cat >conftest.
$ac_ext <<_ACEOF
9596 cat confdefs.h
>>conftest.
$ac_ext
9597 cat >>conftest.
$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9600 /* Override any gcc2 internal prototype to avoid an error. */
9604 /* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9615 rm -f conftest.
$ac_objext conftest
$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>conftest.er1
9619 grep -v '^ *+' conftest.er1
>conftest.err
9621 cat conftest.err
>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try
='test -z "$ac_c_werror_flag"
9625 || test ! -s conftest.err'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; } &&
9631 { ac_try
='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_cv_lib_pthreads_cma_open
=yes
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.
$ac_ext >&5
9642 ac_cv_lib_pthreads_cma_open
=no
9644 rm -f conftest.err conftest.
$ac_objext \
9645 conftest
$ac_exeext conftest.
$ac_ext
9646 LIBS
=$ac_check_lib_save_LIBS
9648 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9649 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9650 if test $ac_cv_lib_pthreads_cma_open = yes; then
9651 cat >>confdefs.h
<<_ACEOF
9652 #define HAVE_LIBPTHREADS 1
9655 LIBS
="-lpthreads $LIBS"
9660 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9661 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9662 if test -d /usr
/X386
/include
; then
9664 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9668 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9669 echo "${ECHO_T}$HAVE_XFREE386" >&6
9674 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9675 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9676 if test "${gdb_cv_bigtoc+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9682 *) gdb_cv_bigtoc
=-bbigtoc ;;
9685 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9686 cat >conftest.
$ac_ext <<_ACEOF
9689 cat confdefs.h
>>conftest.
$ac_ext
9690 cat >>conftest.
$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9701 rm -f conftest.
$ac_objext conftest
$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9705 grep -v '^ *+' conftest.er1
>conftest.err
9707 cat conftest.err
>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try
='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try
='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.
$ac_ext >&5
9730 rm -f conftest.err conftest.
$ac_objext \
9731 conftest
$ac_exeext conftest.
$ac_ext
9734 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9735 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9739 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9740 # used for the tests that follow. We set them back to REAL_CFLAGS and
9741 # REAL_CPPFLAGS later on.
9743 REAL_CPPFLAGS
="$CPPFLAGS"
9745 if test "${HAVE_X11}" = "yes"; then
9746 DEFS
="$C_SWITCH_X_SITE $DEFS"
9747 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9749 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9750 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9752 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9753 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9754 # but it's more convenient here to set LD_RUN_PATH
9755 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9756 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9757 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9761 if test "${opsys}" = "gnu-linux"; then
9762 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9763 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9764 cat >conftest.
$ac_ext <<_ACEOF
9767 cat confdefs.h
>>conftest.
$ac_ext
9768 cat >>conftest.
$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9774 XOpenDisplay ("foo");
9779 rm -f conftest.
$ac_objext conftest
$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9783 grep -v '^ *+' conftest.er1
>conftest.err
9785 cat conftest.err
>&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try
='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try
='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 xlinux_first_failure
=no
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.
$ac_ext >&5
9806 xlinux_first_failure
=yes
9808 rm -f conftest.err conftest.
$ac_objext \
9809 conftest
$ac_exeext conftest.
$ac_ext
9810 if test "${xlinux_first_failure}" = "yes"; then
9811 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9812 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9813 OLD_CPPFLAGS
="$CPPFLAGS"
9815 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9816 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9817 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9818 LIBS
="$LIBS -b i486-linuxaout"
9819 cat >conftest.
$ac_ext <<_ACEOF
9822 cat confdefs.h
>>conftest.
$ac_ext
9823 cat >>conftest.
$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9829 XOpenDisplay ("foo");
9834 rm -f conftest.
$ac_objext conftest
$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1
>conftest.err
9840 cat conftest.err
>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try
='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try
='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 xlinux_second_failure
=no
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.
$ac_ext >&5
9861 xlinux_second_failure
=yes
9863 rm -f conftest.err conftest.
$ac_objext \
9864 conftest
$ac_exeext conftest.
$ac_ext
9865 if test "${xlinux_second_failure}" = "yes"; then
9866 # If we get the same failure with -b, there is no use adding -b.
9867 # So take it out. This plays safe.
9868 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9869 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9870 CPPFLAGS
="$OLD_CPPFLAGS"
9872 echo "$as_me:$LINENO: result: no" >&5
9873 echo "${ECHO_T}no" >&6
9875 echo "$as_me:$LINENO: result: yes" >&5
9876 echo "${ECHO_T}yes" >&6
9879 echo "$as_me:$LINENO: result: no" >&5
9880 echo "${ECHO_T}no" >&6
9884 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9885 # header files included from there.
9886 echo "$as_me:$LINENO: checking for Xkb" >&5
9887 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9888 cat >conftest.
$ac_ext <<_ACEOF
9891 cat confdefs.h
>>conftest.
$ac_ext
9892 cat >>conftest.
$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 #include <X11/Xlib.h>
9895 #include <X11/XKBlib.h>
9899 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9904 rm -f conftest.
$ac_objext conftest
$ac_exeext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>conftest.er1
9908 grep -v '^ *+' conftest.er1
>conftest.err
9910 cat conftest.err
>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try
='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try
='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.
$ac_ext >&5
9933 rm -f conftest.err conftest.
$ac_objext \
9934 conftest
$ac_exeext conftest.
$ac_ext
9935 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9936 echo "${ECHO_T}$emacs_xkb" >&6
9937 if test $emacs_xkb = yes; then
9939 cat >>confdefs.h
<<\_ACEOF
9940 #define HAVE_XKBGETKEYBOARD 1
9949 for ac_func
in XrmSetDatabase XScreenResourceString \
9950 XScreenNumberOfScreen XSetWMProtocols
9952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9953 echo "$as_me:$LINENO: checking for $ac_func" >&5
9954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9955 if eval "test \"\${$as_ac_var+set}\" = set"; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 cat >conftest.
$ac_ext <<_ACEOF
9961 cat confdefs.h
>>conftest.
$ac_ext
9962 cat >>conftest.
$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9966 #define $ac_func innocuous_$ac_func
9968 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char $ac_func (); below.
9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9971 <limits.h> exists even on freestanding compilers. */
9974 # include <limits.h>
9976 # include <assert.h>
9981 /* Override any gcc2 internal prototype to avoid an error. */
9986 /* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9989 /* The GNU C library defines this for functions which it implements
9990 to always fail with ENOSYS. Some functions are actually named
9991 something starting with __ and the normal name is an alias. */
9992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9995 char (*f) () = $ac_func;
10004 return f != $ac_func;
10009 rm -f conftest.
$ac_objext conftest
$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>conftest.er1
10013 grep -v '^ *+' conftest.er1
>conftest.err
10015 cat conftest.err
>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try
='test -z "$ac_c_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try
='test -s conftest$ac_exeext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 eval "$as_ac_var=yes"
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.
$ac_ext >&5
10036 eval "$as_ac_var=no"
10038 rm -f conftest.err conftest.
$ac_objext \
10039 conftest
$ac_exeext conftest.
$ac_ext
10041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10043 if test `eval echo '${'$as_ac_var'}'` = yes; then
10044 cat >>confdefs.h
<<_ACEOF
10045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10053 if test "${window_system}" = "x11"; then
10054 echo "$as_me:$LINENO: checking X11 version 6" >&5
10055 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10056 if test "${emacs_cv_x11_version_6+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 cat >conftest.
$ac_ext <<_ACEOF
10062 cat confdefs.h
>>conftest.
$ac_ext
10063 cat >>conftest.
$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 #include <X11/Xlib.h>
10069 #if XlibSpecificationRelease < 6
10077 rm -f conftest.
$ac_objext conftest
$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>conftest.er1
10081 grep -v '^ *+' conftest.er1
>conftest.err
10083 cat conftest.err
>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try
='test -z "$ac_c_werror_flag"
10087 || test ! -s conftest.err'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try
='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 emacs_cv_x11_version_6
=yes
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.
$ac_ext >&5
10104 emacs_cv_x11_version_6
=no
10106 rm -f conftest.err conftest.
$ac_objext \
10107 conftest
$ac_exeext conftest.
$ac_ext
10110 if test $emacs_cv_x11_version_6 = yes; then
10111 echo "$as_me:$LINENO: result: 6 or newer" >&5
10112 echo "${ECHO_T}6 or newer" >&6
10114 cat >>confdefs.h
<<\_ACEOF
10115 #define HAVE_X11R6 1
10119 echo "$as_me:$LINENO: result: before 6" >&5
10120 echo "${ECHO_T}before 6" >&6
10124 if test "${window_system}" = "x11"; then
10125 echo "$as_me:$LINENO: checking X11 version 5" >&5
10126 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10127 if test "${emacs_cv_x11_version_5+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 cat >conftest.
$ac_ext <<_ACEOF
10133 cat confdefs.h
>>conftest.
$ac_ext
10134 cat >>conftest.
$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 #include <X11/Xlib.h>
10140 #if XlibSpecificationRelease < 5
10148 rm -f conftest.
$ac_objext conftest
$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1
>conftest.err
10154 cat conftest.err
>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try
='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try
='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 emacs_cv_x11_version_5
=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.
$ac_ext >&5
10175 emacs_cv_x11_version_5
=no
10177 rm -f conftest.err conftest.
$ac_objext \
10178 conftest
$ac_exeext conftest.
$ac_ext
10181 if test $emacs_cv_x11_version_5 = yes; then
10182 echo "$as_me:$LINENO: result: 5 or newer" >&5
10183 echo "${ECHO_T}5 or newer" >&6
10186 cat >>confdefs.h
<<\_ACEOF
10187 #define HAVE_X11R5 1
10192 echo "$as_me:$LINENO: result: before 5" >&5
10193 echo "${ECHO_T}before 5" >&6
10200 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10201 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10202 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10203 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10204 { (exit 1); exit 1; }; };
10208 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10210 if test "X${with_pkg_config_prog}" != X
; then
10211 PKG_CONFIG
="${with_pkg_config_prog}"
10216 if test -z "$PKG_CONFIG"; then
10217 # Extract the first word of "pkg-config", so it can be a program name with args.
10218 set dummy pkg-config
; ac_word
=$2
10219 echo "$as_me:$LINENO: checking for $ac_word" >&5
10220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10221 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 case $PKG_CONFIG in
10226 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10230 for as_dir
in $PATH
10233 test -z "$as_dir" && as_dir
=.
10234 for ac_exec_ext
in '' $ac_executable_extensions; do
10235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10243 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10247 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10249 if test -n "$PKG_CONFIG"; then
10250 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10251 echo "${ECHO_T}$PKG_CONFIG" >&6
10253 echo "$as_me:$LINENO: result: no" >&5
10254 echo "${ECHO_T}no" >&6
10259 if test "$PKG_CONFIG" = "no" ; then
10260 echo "*** The pkg-config script could not be found. Make sure it is"
10261 echo "*** in your path, or give the full path to pkg-config with"
10262 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10263 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10265 PKG_CONFIG_MIN_VERSION
=0.9.0
10266 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10267 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10268 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10270 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10271 echo "$as_me:$LINENO: result: yes" >&5
10272 echo "${ECHO_T}yes" >&6
10275 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10276 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10277 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10278 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10279 echo "${ECHO_T}$GTK_CFLAGS" >&6
10281 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10282 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10283 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10284 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10285 echo "${ECHO_T}$GTK_LIBS" >&6
10289 ## If we have a custom action on failure, don't print errors, but
10290 ## do set a variable so people can do so.
10291 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10292 echo $GTK_PKG_ERRORS
10298 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10299 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10303 if test $succeeded = yes; then
10306 { { 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
10307 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;}
10308 { (exit 1); exit 1; }; }
10313 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10314 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10315 LIBS
="$GTK_LIBS $LIBS"
10318 cat >>confdefs.h
<<\_ACEOF
10324 if test "$with_toolkit_scroll_bars" != no
; then
10325 with_toolkit_scroll_bars
=yes
10328 HAVE_GTK_MULTIDISPLAY
=no
10330 for ac_func
in gdk_display_open
10332 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10333 echo "$as_me:$LINENO: checking for $ac_func" >&5
10334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10335 if eval "test \"\${$as_ac_var+set}\" = set"; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 cat >conftest.
$ac_ext <<_ACEOF
10341 cat confdefs.h
>>conftest.
$ac_ext
10342 cat >>conftest.
$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10346 #define $ac_func innocuous_$ac_func
10348 /* System header to define __stub macros and hopefully few prototypes,
10349 which can conflict with char $ac_func (); below.
10350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10351 <limits.h> exists even on freestanding compilers. */
10354 # include <limits.h>
10356 # include <assert.h>
10361 /* Override any gcc2 internal prototype to avoid an error. */
10366 /* We use char because int might match the return type of a gcc2
10367 builtin and then its argument prototype would still apply. */
10369 /* The GNU C library defines this for functions which it implements
10370 to always fail with ENOSYS. Some functions are actually named
10371 something starting with __ and the normal name is an alias. */
10372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10375 char (*f) () = $ac_func;
10384 return f != $ac_func;
10389 rm -f conftest.
$ac_objext conftest
$ac_exeext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>conftest.er1
10393 grep -v '^ *+' conftest.er1
>conftest.err
10395 cat conftest.err
>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try
='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try
='test -s conftest$ac_exeext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 eval "$as_ac_var=yes"
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.
$ac_ext >&5
10416 eval "$as_ac_var=no"
10418 rm -f conftest.err conftest.
$ac_objext \
10419 conftest
$ac_exeext conftest.
$ac_ext
10421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10423 if test `eval echo '${'$as_ac_var'}'` = yes; then
10424 cat >>confdefs.h
<<_ACEOF
10425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10427 HAVE_GTK_MULTIDISPLAY
=yes
10431 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10433 cat >>confdefs.h
<<\_ACEOF
10434 #define HAVE_GTK_MULTIDISPLAY 1
10438 HAVE_GTK_FILE_SELECTION
=no
10440 for ac_func
in gtk_file_selection_new
10442 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10443 echo "$as_me:$LINENO: checking for $ac_func" >&5
10444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10445 if eval "test \"\${$as_ac_var+set}\" = set"; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 cat >conftest.
$ac_ext <<_ACEOF
10451 cat confdefs.h
>>conftest.
$ac_ext
10452 cat >>conftest.
$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10456 #define $ac_func innocuous_$ac_func
10458 /* System header to define __stub macros and hopefully few prototypes,
10459 which can conflict with char $ac_func (); below.
10460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10461 <limits.h> exists even on freestanding compilers. */
10464 # include <limits.h>
10466 # include <assert.h>
10471 /* Override any gcc2 internal prototype to avoid an error. */
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10479 /* The GNU C library defines this for functions which it implements
10480 to always fail with ENOSYS. Some functions are actually named
10481 something starting with __ and the normal name is an alias. */
10482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10485 char (*f) () = $ac_func;
10494 return f != $ac_func;
10499 rm -f conftest.
$ac_objext conftest
$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501 (eval $ac_link) 2>conftest.er1
10503 grep -v '^ *+' conftest.er1
>conftest.err
10505 cat conftest.err
>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try
='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try
='test -s conftest$ac_exeext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 eval "$as_ac_var=yes"
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.
$ac_ext >&5
10526 eval "$as_ac_var=no"
10528 rm -f conftest.err conftest.
$ac_objext \
10529 conftest
$ac_exeext conftest.
$ac_ext
10531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10533 if test `eval echo '${'$as_ac_var'}'` = yes; then
10534 cat >>confdefs.h
<<_ACEOF
10535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10537 HAVE_GTK_FILE_SELECTION
=yes
10542 HAVE_GTK_FILE_CHOOSER
=no
10544 for ac_func
in gtk_file_chooser_dialog_new
10546 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10547 echo "$as_me:$LINENO: checking for $ac_func" >&5
10548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_var+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 cat >conftest.
$ac_ext <<_ACEOF
10555 cat confdefs.h
>>conftest.
$ac_ext
10556 cat >>conftest.
$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10560 #define $ac_func innocuous_$ac_func
10562 /* System header to define __stub macros and hopefully few prototypes,
10563 which can conflict with char $ac_func (); below.
10564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10565 <limits.h> exists even on freestanding compilers. */
10568 # include <limits.h>
10570 # include <assert.h>
10575 /* Override any gcc2 internal prototype to avoid an error. */
10580 /* We use char because int might match the return type of a gcc2
10581 builtin and then its argument prototype would still apply. */
10583 /* The GNU C library defines this for functions which it implements
10584 to always fail with ENOSYS. Some functions are actually named
10585 something starting with __ and the normal name is an alias. */
10586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10589 char (*f) () = $ac_func;
10598 return f != $ac_func;
10603 rm -f conftest.
$ac_objext conftest
$ac_exeext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605 (eval $ac_link) 2>conftest.er1
10607 grep -v '^ *+' conftest.er1
>conftest.err
10609 cat conftest.err
>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try
='test -z "$ac_c_werror_flag"
10613 || test ! -s conftest.err'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; } &&
10619 { ac_try
='test -s conftest$ac_exeext'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 eval "$as_ac_var=yes"
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.
$ac_ext >&5
10630 eval "$as_ac_var=no"
10632 rm -f conftest.err conftest.
$ac_objext \
10633 conftest
$ac_exeext conftest.
$ac_ext
10635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10637 if test `eval echo '${'$as_ac_var'}'` = yes; then
10638 cat >>confdefs.h
<<_ACEOF
10639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10641 HAVE_GTK_FILE_CHOOSER
=yes
10646 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10647 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10649 cat >>confdefs.h
<<\_ACEOF
10650 #define HAVE_GTK_FILE_BOTH 1
10655 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10656 HAVE_GTK_AND_PTHREAD
=no
10658 for ac_header
in pthread.h
10660 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662 echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10670 # Is the header compilable?
10671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10673 cat >conftest.
$ac_ext <<_ACEOF
10676 cat confdefs.h
>>conftest.
$ac_ext
10677 cat >>conftest.
$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 $ac_includes_default
10680 #include <$ac_header>
10682 rm -f conftest.
$ac_objext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10686 grep -v '^ *+' conftest.er1
>conftest.err
10688 cat conftest.err
>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try
='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try
='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_header_compiler
=yes
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.
$ac_ext >&5
10709 ac_header_compiler
=no
10711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10713 echo "${ECHO_T}$ac_header_compiler" >&6
10715 # Is the header present?
10716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10718 cat >conftest.
$ac_ext <<_ACEOF
10721 cat confdefs.h
>>conftest.
$ac_ext
10722 cat >>conftest.
$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 #include <$ac_header>
10726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10729 grep -v '^ *+' conftest.er1
>conftest.err
10731 cat conftest.err
>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } >/dev
/null
; then
10734 if test -s conftest.err
; then
10735 ac_cpp_err
=$ac_c_preproc_warn_flag
10736 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10743 if test -z "$ac_cpp_err"; then
10744 ac_header_preproc
=yes
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.
$ac_ext >&5
10749 ac_header_preproc
=no
10751 rm -f conftest.err conftest.
$ac_ext
10752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10753 echo "${ECHO_T}$ac_header_preproc" >&6
10755 # So? What about this header?
10756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10762 ac_header_preproc
=yes
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10779 ## ------------------------------------------ ##
10780 ## Report this to the AC_PACKAGE_NAME lists. ##
10781 ## ------------------------------------------ ##
10784 sed "s/^/$as_me: WARNING: /" >&2
10787 echo "$as_me:$LINENO: checking for $ac_header" >&5
10788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 eval "$as_ac_Header=\$ac_header_preproc"
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10799 cat >>confdefs.h
<<_ACEOF
10800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807 if test "$ac_cv_header_pthread_h"; then
10808 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10809 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10810 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 ac_check_lib_save_LIBS
=$LIBS
10814 LIBS
="-lpthread $LIBS"
10815 cat >conftest.
$ac_ext <<_ACEOF
10818 cat confdefs.h
>>conftest.
$ac_ext
10819 cat >>conftest.
$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10822 /* Override any gcc2 internal prototype to avoid an error. */
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char pthread_self ();
10837 rm -f conftest.
$ac_objext conftest
$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10841 grep -v '^ *+' conftest.er1
>conftest.err
10843 cat conftest.err
>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try
='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try
='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_lib_pthread_pthread_self
=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.
$ac_ext >&5
10864 ac_cv_lib_pthread_pthread_self
=no
10866 rm -f conftest.err conftest.
$ac_objext \
10867 conftest
$ac_exeext conftest.
$ac_ext
10868 LIBS
=$ac_check_lib_save_LIBS
10870 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10871 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10872 if test $ac_cv_lib_pthread_pthread_self = yes; then
10873 HAVE_GTK_AND_PTHREAD
=yes
10877 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10878 GTK_LIBS
="$GTK_LIBS -lpthread"
10880 cat >>confdefs.h
<<\_ACEOF
10881 #define HAVE_GTK_AND_PTHREAD 1
10888 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10889 if test x
"${HAVE_X11R5}" = xyes
; then
10890 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10891 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10892 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 cat >conftest.
$ac_ext <<_ACEOF
10898 cat confdefs.h
>>conftest.
$ac_ext
10899 cat >>conftest.
$ac_ext <<_ACEOF
10900 /* end confdefs.h. */
10902 #include <X11/Intrinsic.h>
10903 #include <X11/Xaw/Simple.h>
10912 rm -f conftest.
$ac_objext conftest
$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>conftest.er1
10916 grep -v '^ *+' conftest.er1
>conftest.err
10918 cat conftest.err
>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try
='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try
='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 emacs_cv_x11_version_5_with_xaw
=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.
$ac_ext >&5
10939 emacs_cv_x11_version_5_with_xaw
=no
10941 rm -f conftest.err conftest.
$ac_objext \
10942 conftest
$ac_exeext conftest.
$ac_ext
10945 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10946 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10947 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10948 USE_X_TOOLKIT
=LUCID
10950 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10951 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10959 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10961 if test "${USE_X_TOOLKIT}" != "none"; then
10962 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10963 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10964 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 cat >conftest.
$ac_ext <<_ACEOF
10970 cat confdefs.h
>>conftest.
$ac_ext
10971 cat >>conftest.
$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 #include <X11/Intrinsic.h>
10977 #if XtSpecificationRelease < 6
10985 rm -f conftest.
$ac_objext conftest
$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>conftest.er1
10989 grep -v '^ *+' conftest.er1
>conftest.err
10991 cat conftest.err
>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try
='test -z "$ac_c_werror_flag"
10995 || test ! -s conftest.err'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try
='test -s conftest$ac_exeext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 emacs_cv_x11_toolkit_version_6
=yes
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.
$ac_ext >&5
11012 emacs_cv_x11_toolkit_version_6
=no
11014 rm -f conftest.err conftest.
$ac_objext \
11015 conftest
$ac_exeext conftest.
$ac_ext
11018 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11019 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11020 echo "$as_me:$LINENO: result: 6 or newer" >&5
11021 echo "${ECHO_T}6 or newer" >&6
11023 cat >>confdefs.h
<<\_ACEOF
11024 #define HAVE_X11XTR6 1
11028 echo "$as_me:$LINENO: result: before 6" >&5
11029 echo "${ECHO_T}before 6" >&6
11033 if test x
$HAVE_X11XTR6 = xyes
; then
11034 LIBS
="-lXt -lSM -lICE $LIBS"
11039 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11040 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11041 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_check_lib_save_LIBS
=$LIBS
11046 cat >conftest.
$ac_ext <<_ACEOF
11049 cat confdefs.h
>>conftest.
$ac_ext
11050 cat >>conftest.
$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11053 /* Override any gcc2 internal prototype to avoid an error. */
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059 char XmuConvertStandardSelection ();
11063 XmuConvertStandardSelection ();
11068 rm -f conftest.
$ac_objext conftest
$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
11072 grep -v '^ *+' conftest.er1
>conftest.err
11074 cat conftest.err
>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try
='test -z "$ac_c_werror_flag"
11078 || test ! -s conftest.err'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try
='test -s conftest$ac_exeext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.
$ac_ext >&5
11095 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11097 rm -f conftest.err conftest.
$ac_objext \
11098 conftest
$ac_exeext conftest.
$ac_ext
11099 LIBS
=$ac_check_lib_save_LIBS
11101 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11102 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11103 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11104 cat >>confdefs.h
<<_ACEOF
11105 #define HAVE_LIBXMU 1
11112 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11115 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11116 if test "${HAVE_X11}" = "yes"; then
11117 if test "${USE_X_TOOLKIT}" != "none"; then
11119 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11120 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11121 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 ac_check_lib_save_LIBS
=$LIBS
11125 LIBS
="-lXext $LIBS"
11126 cat >conftest.
$ac_ext <<_ACEOF
11129 cat confdefs.h
>>conftest.
$ac_ext
11130 cat >>conftest.
$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11133 /* Override any gcc2 internal prototype to avoid an error. */
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11139 char XShapeQueryExtension ();
11143 XShapeQueryExtension ();
11148 rm -f conftest.
$ac_objext conftest
$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11152 grep -v '^ *+' conftest.er1
>conftest.err
11154 cat conftest.err
>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try
='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try
='test -s conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.
$ac_ext >&5
11175 ac_cv_lib_Xext_XShapeQueryExtension
=no
11177 rm -f conftest.err conftest.
$ac_objext \
11178 conftest
$ac_exeext conftest.
$ac_ext
11179 LIBS
=$ac_check_lib_save_LIBS
11181 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11182 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11183 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11184 cat >>confdefs.h
<<_ACEOF
11185 #define HAVE_LIBXEXT 1
11188 LIBS
="-lXext $LIBS"
11195 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11196 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11197 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11198 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.
$ac_ext <<_ACEOF
11204 cat confdefs.h
>>conftest.
$ac_ext
11205 cat >>conftest.
$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11211 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11214 Motif version prior to 2.1.
11220 rm -f conftest.
$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>conftest.er1
11224 grep -v '^ *+' conftest.er1
>conftest.err
11226 cat conftest.err
>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try
='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try
='test -s conftest.$ac_objext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 emacs_cv_motif_version_2_1
=yes
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.
$ac_ext >&5
11247 emacs_cv_motif_version_2_1
=no
11249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11251 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11252 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11253 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11254 if test $emacs_cv_motif_version_2_1 = yes; then
11257 cat >>confdefs.h
<<\_ACEOF
11258 #define HAVE_MOTIF_2_1 1
11261 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11262 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11263 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 ac_check_lib_save_LIBS
=$LIBS
11268 cat >conftest.
$ac_ext <<_ACEOF
11271 cat confdefs.h
>>conftest.
$ac_ext
11272 cat >>conftest.
$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11275 /* Override any gcc2 internal prototype to avoid an error. */
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281 char XpCreateContext ();
11285 XpCreateContext ();
11290 rm -f conftest.
$ac_objext conftest
$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11294 grep -v '^ *+' conftest.er1
>conftest.err
11296 cat conftest.err
>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try
='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try
='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_lib_Xp_XpCreateContext
=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.
$ac_ext >&5
11317 ac_cv_lib_Xp_XpCreateContext
=no
11319 rm -f conftest.err conftest.
$ac_objext \
11320 conftest
$ac_exeext conftest.
$ac_ext
11321 LIBS
=$ac_check_lib_save_LIBS
11323 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11324 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11325 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11329 if test ${HAVE_LIBXP} = yes; then
11331 cat >>confdefs.h
<<\_ACEOF
11332 #define HAVE_LIBXP 1
11337 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11338 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11339 if test "${emacs_cv_lesstif+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 # We put this in CFLAGS temporarily to precede other -I options
11343 # that might be in CFLAGS temporarily.
11344 # We put this in CPPFLAGS where it precedes the other -I options.
11345 OLD_CPPFLAGS
=$CPPFLAGS
11347 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11348 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11349 cat >conftest.
$ac_ext <<_ACEOF
11352 cat confdefs.h
>>conftest.
$ac_ext
11353 cat >>conftest.
$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11364 rm -f conftest.
$ac_objext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366 (eval $ac_compile) 2>conftest.er1
11368 grep -v '^ *+' conftest.er1
>conftest.err
11370 cat conftest.err
>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try
='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try
='test -s conftest.$ac_objext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 emacs_cv_lesstif
=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.
$ac_ext >&5
11391 emacs_cv_lesstif
=no
11393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11395 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11396 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11397 if test $emacs_cv_lesstif = yes; then
11398 # Make sure this -I option remains in CPPFLAGS after it is set
11399 # back to REAL_CPPFLAGS.
11400 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11401 # have those other -I options anyway. Ultimately, having this
11402 # directory ultimately in CPPFLAGS will be enough.
11403 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11404 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11407 CPPFLAGS
=$OLD_CPPFLAGS
11412 ### Is -lXaw3d available?
11414 if test "${HAVE_X11}" = "yes"; then
11415 if test "${USE_X_TOOLKIT}" != "none"; then
11416 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11417 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11418 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 cat >conftest.
$ac_ext <<_ACEOF
11424 cat confdefs.h
>>conftest.
$ac_ext
11425 cat >>conftest.
$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <X11/Xaw3d/Scrollbar.h>
11429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11432 grep -v '^ *+' conftest.er1
>conftest.err
11434 cat conftest.err
>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } >/dev
/null
; then
11437 if test -s conftest.err
; then
11438 ac_cpp_err
=$ac_c_preproc_warn_flag
11439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11446 if test -z "$ac_cpp_err"; then
11447 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.
$ac_ext >&5
11452 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11454 rm -f conftest.err conftest.
$ac_ext
11456 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11457 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11458 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11459 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11460 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11461 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 ac_check_lib_save_LIBS
=$LIBS
11465 LIBS
="-lXaw3d $LIBS"
11466 cat >conftest.
$ac_ext <<_ACEOF
11469 cat confdefs.h
>>conftest.
$ac_ext
11470 cat >>conftest.
$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11473 /* Override any gcc2 internal prototype to avoid an error. */
11477 /* We use char because int might match the return type of a gcc2
11478 builtin and then its argument prototype would still apply. */
11479 char XawScrollbarSetThumb ();
11483 XawScrollbarSetThumb ();
11488 rm -f conftest.
$ac_objext conftest
$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1
>conftest.err
11494 cat conftest.err
>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try
='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try
='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.
$ac_ext >&5
11515 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11517 rm -f conftest.err conftest.
$ac_objext \
11518 conftest
$ac_exeext conftest.
$ac_ext
11519 LIBS
=$ac_check_lib_save_LIBS
11521 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11522 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11523 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11530 if test "${HAVE_XAW3D}" = "yes"; then
11532 cat >>confdefs.h
<<\_ACEOF
11533 #define HAVE_XAW3D 1
11542 USE_TOOLKIT_SCROLL_BARS
=no
11543 if test "${with_toolkit_scroll_bars}" != "no"; then
11544 if test "${USE_X_TOOLKIT}" != "none"; then
11545 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11546 cat >>confdefs.h
<<\_ACEOF
11547 #define USE_TOOLKIT_SCROLL_BARS 1
11551 USE_TOOLKIT_SCROLL_BARS
=yes
11552 elif test "${HAVE_XAW3D}" = "yes"; then
11553 cat >>confdefs.h
<<\_ACEOF
11554 #define USE_TOOLKIT_SCROLL_BARS 1
11557 USE_TOOLKIT_SCROLL_BARS
=yes
11559 elif test "${HAVE_GTK}" = "yes"; then
11560 cat >>confdefs.h
<<\_ACEOF
11561 #define USE_TOOLKIT_SCROLL_BARS 1
11564 USE_TOOLKIT_SCROLL_BARS
=yes
11565 elif test "${HAVE_CARBON}" = "yes"; then
11566 cat >>confdefs.h
<<\_ACEOF
11567 #define USE_TOOLKIT_SCROLL_BARS 1
11570 USE_TOOLKIT_SCROLL_BARS
=yes
11574 cat >conftest.
$ac_ext <<_ACEOF
11577 cat confdefs.h
>>conftest.
$ac_ext
11578 cat >>conftest.
$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11581 #include <X11/Xlib.h>
11582 #include <X11/Xresource.h>
11591 rm -f conftest.
$ac_objext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11593 (eval $ac_compile) 2>conftest.er1
11595 grep -v '^ *+' conftest.er1
>conftest.err
11597 cat conftest.err
>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try
='test -z "$ac_c_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try
='test -s conftest.$ac_objext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11615 cat >>confdefs.h
<<\_ACEOF
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.
$ac_ext >&5
11625 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11628 if test "${with_xim}" != "no"; then
11630 cat >>confdefs.h
<<\_ACEOF
11637 if test "${HAVE_XIM}" != "no"; then
11638 late_CFLAGS
=$CFLAGS
11639 if test "$GCC" = yes; then
11640 CFLAGS
="$CFLAGS --pedantic-errors"
11642 cat >conftest.
$ac_ext <<_ACEOF
11645 cat confdefs.h
>>conftest.
$ac_ext
11646 cat >>conftest.
$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 #include <X11/Xlib.h>
11650 #include <X11/Xresource.h>
11659 XPointer *client_data;
11661 /* If we're not using GCC, it's probably not XFree86, and this is
11662 probably right, but we can't use something like --pedantic-errors. */
11663 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11664 char*, XIMProc, XPointer*);
11666 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11672 rm -f conftest.
$ac_objext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674 (eval $ac_compile) 2>conftest.er1
11676 grep -v '^ *+' conftest.er1
>conftest.err
11678 cat conftest.err
>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try
='test -z "$ac_c_werror_flag"
11682 || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try
='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 emacs_cv_arg6_star
=yes
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.
$ac_ext >&5
11700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11702 if test "$emacs_cv_arg6_star" = yes; then
11703 cat >>confdefs.h
<<\_ACEOF
11704 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11708 cat >>confdefs.h
<<\_ACEOF
11709 #define XRegisterIMInstantiateCallback_arg6 XPointer
11713 CFLAGS
=$late_CFLAGS
11716 ### Use -lXpm if available, unless `--with-xpm=no'.
11718 if test "${HAVE_X11}" = "yes"; then
11719 if test "${with_xpm}" != "no"; then
11720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11721 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11722 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11723 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11727 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11729 # Is the header compilable?
11730 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11731 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11732 cat >conftest.
$ac_ext <<_ACEOF
11735 cat confdefs.h
>>conftest.
$ac_ext
11736 cat >>conftest.
$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 $ac_includes_default
11739 #include <X11/xpm.h>
11741 rm -f conftest.
$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11745 grep -v '^ *+' conftest.er1
>conftest.err
11747 cat conftest.err
>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try
='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try
='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_header_compiler
=yes
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.
$ac_ext >&5
11768 ac_header_compiler
=no
11770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11772 echo "${ECHO_T}$ac_header_compiler" >&6
11774 # Is the header present?
11775 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11776 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11777 cat >conftest.
$ac_ext <<_ACEOF
11780 cat confdefs.h
>>conftest.
$ac_ext
11781 cat >>conftest.
$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 #include <X11/xpm.h>
11785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11786 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11788 grep -v '^ *+' conftest.er1
>conftest.err
11790 cat conftest.err
>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } >/dev
/null
; then
11793 if test -s conftest.err
; then
11794 ac_cpp_err
=$ac_c_preproc_warn_flag
11795 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11802 if test -z "$ac_cpp_err"; then
11803 ac_header_preproc
=yes
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.
$ac_ext >&5
11808 ac_header_preproc
=no
11810 rm -f conftest.err conftest.
$ac_ext
11811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11812 echo "${ECHO_T}$ac_header_preproc" >&6
11814 # So? What about this header?
11815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11817 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11818 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11820 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11821 ac_header_preproc
=yes
11824 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11825 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11827 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11829 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11831 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11833 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11835 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11838 ## ------------------------------------------ ##
11839 ## Report this to the AC_PACKAGE_NAME lists. ##
11840 ## ------------------------------------------ ##
11843 sed "s/^/$as_me: WARNING: /" >&2
11846 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11847 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11848 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11853 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11854 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11857 if test $ac_cv_header_X11_xpm_h = yes; then
11858 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11859 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11860 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 ac_check_lib_save_LIBS
=$LIBS
11864 LIBS
="-lXpm -lX11 $LIBS"
11865 cat >conftest.
$ac_ext <<_ACEOF
11868 cat confdefs.h
>>conftest.
$ac_ext
11869 cat >>conftest.
$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11872 /* Override any gcc2 internal prototype to avoid an error. */
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11878 char XpmReadFileToPixmap ();
11882 XpmReadFileToPixmap ();
11887 rm -f conftest.
$ac_objext conftest
$ac_exeext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>conftest.er1
11891 grep -v '^ *+' conftest.er1
>conftest.err
11893 cat conftest.err
>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try
='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try
='test -s conftest$ac_exeext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.
$ac_ext >&5
11914 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11916 rm -f conftest.err conftest.
$ac_objext \
11917 conftest
$ac_exeext conftest.
$ac_ext
11918 LIBS
=$ac_check_lib_save_LIBS
11920 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11921 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11922 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11929 if test "${HAVE_XPM}" = "yes"; then
11930 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11931 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11932 cat >conftest.
$ac_ext <<_ACEOF
11935 cat confdefs.h
>>conftest.
$ac_ext
11936 cat >>conftest.
$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 #include "X11/xpm.h"
11939 #ifndef XpmReturnAllocPixels
11940 no_return_alloc_pixels
11944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11945 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11953 if test "${HAVE_XPM}" = "yes"; then
11954 echo "$as_me:$LINENO: result: yes" >&5
11955 echo "${ECHO_T}yes" >&6
11957 echo "$as_me:$LINENO: result: no" >&5
11958 echo "${ECHO_T}no" >&6
11963 if test "${HAVE_XPM}" = "yes"; then
11965 cat >>confdefs.h
<<\_ACEOF
11972 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11974 if test "${HAVE_X11}" = "yes"; then
11975 if test "${with_jpeg}" != "no"; then
11976 if test "${ac_cv_header_jerror_h+set}" = set; then
11977 echo "$as_me:$LINENO: checking for jerror.h" >&5
11978 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11979 if test "${ac_cv_header_jerror_h+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11983 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11985 # Is the header compilable?
11986 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11987 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11988 cat >conftest.
$ac_ext <<_ACEOF
11991 cat confdefs.h
>>conftest.
$ac_ext
11992 cat >>conftest.
$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
11995 #include <jerror.h>
11997 rm -f conftest.
$ac_objext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11999 (eval $ac_compile) 2>conftest.er1
12001 grep -v '^ *+' conftest.er1
>conftest.err
12003 cat conftest.err
>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try
='test -z "$ac_c_werror_flag"
12007 || test ! -s conftest.err'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; } &&
12013 { ac_try
='test -s conftest.$ac_objext'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 ac_header_compiler
=yes
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.
$ac_ext >&5
12024 ac_header_compiler
=no
12026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12028 echo "${ECHO_T}$ac_header_compiler" >&6
12030 # Is the header present?
12031 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12032 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12033 cat >conftest.
$ac_ext <<_ACEOF
12036 cat confdefs.h
>>conftest.
$ac_ext
12037 cat >>conftest.
$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 #include <jerror.h>
12041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12044 grep -v '^ *+' conftest.er1
>conftest.err
12046 cat conftest.err
>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } >/dev
/null
; then
12049 if test -s conftest.err
; then
12050 ac_cpp_err
=$ac_c_preproc_warn_flag
12051 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12058 if test -z "$ac_cpp_err"; then
12059 ac_header_preproc
=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.
$ac_ext >&5
12064 ac_header_preproc
=no
12066 rm -f conftest.err conftest.
$ac_ext
12067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12068 echo "${ECHO_T}$ac_header_preproc" >&6
12070 # So? What about this header?
12071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12073 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12074 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12076 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12077 ac_header_preproc
=yes
12080 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12081 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12083 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12085 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12087 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12089 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12091 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12094 ## ------------------------------------------ ##
12095 ## Report this to the AC_PACKAGE_NAME lists. ##
12096 ## ------------------------------------------ ##
12099 sed "s/^/$as_me: WARNING: /" >&2
12102 echo "$as_me:$LINENO: checking for jerror.h" >&5
12103 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12104 if test "${ac_cv_header_jerror_h+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 ac_cv_header_jerror_h
=$ac_header_preproc
12109 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12110 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12113 if test $ac_cv_header_jerror_h = yes; then
12114 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12115 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12116 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 ac_check_lib_save_LIBS
=$LIBS
12120 LIBS
="-ljpeg $LIBS"
12121 cat >conftest.
$ac_ext <<_ACEOF
12124 cat confdefs.h
>>conftest.
$ac_ext
12125 cat >>conftest.
$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12128 /* Override any gcc2 internal prototype to avoid an error. */
12132 /* We use char because int might match the return type of a gcc2
12133 builtin and then its argument prototype would still apply. */
12134 char jpeg_destroy_compress ();
12138 jpeg_destroy_compress ();
12143 rm -f conftest.
$ac_objext conftest
$ac_exeext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145 (eval $ac_link) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1
>conftest.err
12149 cat conftest.err
>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try
='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try
='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.
$ac_ext >&5
12170 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12172 rm -f conftest.err conftest.
$ac_objext \
12173 conftest
$ac_exeext conftest.
$ac_ext
12174 LIBS
=$ac_check_lib_save_LIBS
12176 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12177 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12178 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12188 if test "${HAVE_JPEG}" = "yes"; then
12189 cat >>confdefs.h
<<\_ACEOF
12190 #define HAVE_JPEG 1
12193 cat >conftest.
$ac_ext <<_ACEOF
12196 cat confdefs.h
>>conftest.
$ac_ext
12197 cat >>conftest.
$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 #include <jpeglib.h>
12200 version=JPEG_LIB_VERSION
12203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12204 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12205 cat >>confdefs.h
<<\_ACEOF
12206 #define HAVE_JPEG 1
12210 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12211 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12219 ### Use -lpng if available, unless `--with-png=no'.
12221 if test "${HAVE_X11}" = "yes"; then
12222 if test "${with_png}" != "no"; then
12223 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12224 # in /usr/include/libpng.
12227 for ac_header
in png.h libpng
/png.h
12229 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231 echo "$as_me:$LINENO: checking for $ac_header" >&5
12232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12239 # Is the header compilable?
12240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12242 cat >conftest.
$ac_ext <<_ACEOF
12245 cat confdefs.h
>>conftest.
$ac_ext
12246 cat >>conftest.
$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12248 $ac_includes_default
12249 #include <$ac_header>
12251 rm -f conftest.
$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12255 grep -v '^ *+' conftest.er1
>conftest.err
12257 cat conftest.err
>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try
='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try
='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_header_compiler
=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.
$ac_ext >&5
12278 ac_header_compiler
=no
12280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12282 echo "${ECHO_T}$ac_header_compiler" >&6
12284 # Is the header present?
12285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12287 cat >conftest.
$ac_ext <<_ACEOF
12290 cat confdefs.h
>>conftest.
$ac_ext
12291 cat >>conftest.
$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 #include <$ac_header>
12295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12296 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12298 grep -v '^ *+' conftest.er1
>conftest.err
12300 cat conftest.err
>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } >/dev
/null
; then
12303 if test -s conftest.err
; then
12304 ac_cpp_err
=$ac_c_preproc_warn_flag
12305 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12312 if test -z "$ac_cpp_err"; then
12313 ac_header_preproc
=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.
$ac_ext >&5
12318 ac_header_preproc
=no
12320 rm -f conftest.err conftest.
$ac_ext
12321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12322 echo "${ECHO_T}$ac_header_preproc" >&6
12324 # So? What about this header?
12325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12331 ac_header_preproc
=yes
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12348 ## ------------------------------------------ ##
12349 ## Report this to the AC_PACKAGE_NAME lists. ##
12350 ## ------------------------------------------ ##
12353 sed "s/^/$as_me: WARNING: /" >&2
12356 echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 eval "$as_ac_Header=\$ac_header_preproc"
12363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12368 cat >>confdefs.h
<<_ACEOF
12369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12376 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12377 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12378 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12379 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 ac_check_lib_save_LIBS
=$LIBS
12383 LIBS
="-lpng -lz -lm $LIBS"
12384 cat >conftest.
$ac_ext <<_ACEOF
12387 cat confdefs.h
>>conftest.
$ac_ext
12388 cat >>conftest.
$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 /* Override any gcc2 internal prototype to avoid an error. */
12395 /* We use char because int might match the return type of a gcc2
12396 builtin and then its argument prototype would still apply. */
12397 char png_get_channels ();
12401 png_get_channels ();
12406 rm -f conftest.
$ac_objext conftest
$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408 (eval $ac_link) 2>conftest.er1
12410 grep -v '^ *+' conftest.er1
>conftest.err
12412 cat conftest.err
>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try
='test -z "$ac_c_werror_flag"
12416 || test ! -s conftest.err'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try
='test -s conftest$ac_exeext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_cv_lib_png_png_get_channels
=yes
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.
$ac_ext >&5
12433 ac_cv_lib_png_png_get_channels
=no
12435 rm -f conftest.err conftest.
$ac_objext \
12436 conftest
$ac_exeext conftest.
$ac_ext
12437 LIBS
=$ac_check_lib_save_LIBS
12439 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12440 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12441 if test $ac_cv_lib_png_png_get_channels = yes; then
12448 if test "${HAVE_PNG}" = "yes"; then
12450 cat >>confdefs.h
<<\_ACEOF
12457 ### Use -ltiff if available, unless `--with-tiff=no'.
12459 if test "${HAVE_X11}" = "yes"; then
12460 if test "${with_tiff}" != "no"; then
12461 if test "${ac_cv_header_tiffio_h+set}" = set; then
12462 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12463 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12464 if test "${ac_cv_header_tiffio_h+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12468 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12470 # Is the header compilable?
12471 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12472 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12473 cat >conftest.
$ac_ext <<_ACEOF
12476 cat confdefs.h
>>conftest.
$ac_ext
12477 cat >>conftest.
$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 $ac_includes_default
12480 #include <tiffio.h>
12482 rm -f conftest.
$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12486 grep -v '^ *+' conftest.er1
>conftest.err
12488 cat conftest.err
>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try
='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try
='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_header_compiler
=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.
$ac_ext >&5
12509 ac_header_compiler
=no
12511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12513 echo "${ECHO_T}$ac_header_compiler" >&6
12515 # Is the header present?
12516 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12517 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12518 cat >conftest.
$ac_ext <<_ACEOF
12521 cat confdefs.h
>>conftest.
$ac_ext
12522 cat >>conftest.
$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 #include <tiffio.h>
12526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12529 grep -v '^ *+' conftest.er1
>conftest.err
12531 cat conftest.err
>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } >/dev
/null
; then
12534 if test -s conftest.err
; then
12535 ac_cpp_err
=$ac_c_preproc_warn_flag
12536 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12543 if test -z "$ac_cpp_err"; then
12544 ac_header_preproc
=yes
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.
$ac_ext >&5
12549 ac_header_preproc
=no
12551 rm -f conftest.err conftest.
$ac_ext
12552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12553 echo "${ECHO_T}$ac_header_preproc" >&6
12555 # So? What about this header?
12556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12558 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12559 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12561 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12562 ac_header_preproc
=yes
12565 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12566 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12568 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12570 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12572 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12574 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12576 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12579 ## ------------------------------------------ ##
12580 ## Report this to the AC_PACKAGE_NAME lists. ##
12581 ## ------------------------------------------ ##
12584 sed "s/^/$as_me: WARNING: /" >&2
12587 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12588 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12589 if test "${ac_cv_header_tiffio_h+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 ac_cv_header_tiffio_h
=$ac_header_preproc
12594 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12595 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12598 if test $ac_cv_header_tiffio_h = yes; then
12600 # At least one tiff package requires the jpeg library.
12601 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12602 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12603 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12604 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 ac_check_lib_save_LIBS
=$LIBS
12608 LIBS
="-ltiff $tifflibs $LIBS"
12609 cat >conftest.
$ac_ext <<_ACEOF
12612 cat confdefs.h
>>conftest.
$ac_ext
12613 cat >>conftest.
$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char TIFFGetVersion ();
12631 rm -f conftest.
$ac_objext conftest
$ac_exeext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633 (eval $ac_link) 2>conftest.er1
12635 grep -v '^ *+' conftest.er1
>conftest.err
12637 cat conftest.err
>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try
='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try
='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_lib_tiff_TIFFGetVersion
=yes
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.
$ac_ext >&5
12658 ac_cv_lib_tiff_TIFFGetVersion
=no
12660 rm -f conftest.err conftest.
$ac_objext \
12661 conftest
$ac_exeext conftest.
$ac_ext
12662 LIBS
=$ac_check_lib_save_LIBS
12664 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12665 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12666 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12675 if test "${HAVE_TIFF}" = "yes"; then
12677 cat >>confdefs.h
<<\_ACEOF
12678 #define HAVE_TIFF 1
12684 ### Use -lgif if available, unless `--with-gif=no'.
12686 if test "${HAVE_X11}" = "yes"; then
12687 if test "${with_gif}" != "no"; then
12688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12689 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12690 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12691 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12695 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12697 # Is the header compilable?
12698 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12699 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12700 cat >conftest.
$ac_ext <<_ACEOF
12703 cat confdefs.h
>>conftest.
$ac_ext
12704 cat >>conftest.
$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 #include <gif_lib.h>
12709 rm -f conftest.
$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>conftest.er1
12713 grep -v '^ *+' conftest.er1
>conftest.err
12715 cat conftest.err
>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try
='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try
='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 ac_header_compiler
=yes
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.
$ac_ext >&5
12736 ac_header_compiler
=no
12738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12740 echo "${ECHO_T}$ac_header_compiler" >&6
12742 # Is the header present?
12743 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12744 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12745 cat >conftest.
$ac_ext <<_ACEOF
12748 cat confdefs.h
>>conftest.
$ac_ext
12749 cat >>conftest.
$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #include <gif_lib.h>
12753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12756 grep -v '^ *+' conftest.er1
>conftest.err
12758 cat conftest.err
>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } >/dev
/null
; then
12761 if test -s conftest.err
; then
12762 ac_cpp_err
=$ac_c_preproc_warn_flag
12763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12770 if test -z "$ac_cpp_err"; then
12771 ac_header_preproc
=yes
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.
$ac_ext >&5
12776 ac_header_preproc
=no
12778 rm -f conftest.err conftest.
$ac_ext
12779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12780 echo "${ECHO_T}$ac_header_preproc" >&6
12782 # So? What about this header?
12783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12785 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12786 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12788 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12789 ac_header_preproc
=yes
12792 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12793 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12795 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12797 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12799 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12801 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12803 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12806 ## ------------------------------------------ ##
12807 ## Report this to the AC_PACKAGE_NAME lists. ##
12808 ## ------------------------------------------ ##
12811 sed "s/^/$as_me: WARNING: /" >&2
12814 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12815 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12816 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 ac_cv_header_gif_lib_h
=$ac_header_preproc
12821 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12822 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12825 if test $ac_cv_header_gif_lib_h = yes; then
12826 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12827 # Earlier versions can crash Emacs.
12828 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12829 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12830 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 ac_check_lib_save_LIBS
=$LIBS
12834 LIBS
="-lungif $LIBS"
12835 cat >conftest.
$ac_ext <<_ACEOF
12838 cat confdefs.h
>>conftest.
$ac_ext
12839 cat >>conftest.
$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12842 /* Override any gcc2 internal prototype to avoid an error. */
12846 /* We use char because int might match the return type of a gcc2
12847 builtin and then its argument prototype would still apply. */
12848 char EGifPutExtensionLast ();
12852 EGifPutExtensionLast ();
12857 rm -f conftest.
$ac_objext conftest
$ac_exeext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859 (eval $ac_link) 2>conftest.er1
12861 grep -v '^ *+' conftest.er1
>conftest.err
12863 cat conftest.err
>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try
='test -z "$ac_c_werror_flag"
12867 || test ! -s conftest.err'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try
='test -s conftest$ac_exeext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.
$ac_ext >&5
12884 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12886 rm -f conftest.err conftest.
$ac_objext \
12887 conftest
$ac_exeext conftest.
$ac_ext
12888 LIBS
=$ac_check_lib_save_LIBS
12890 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12891 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12892 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12901 if test "${HAVE_GIF}" = "yes"; then
12903 cat >>confdefs.h
<<\_ACEOF
12910 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12911 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12912 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12913 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12917 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12919 # Is the header compilable?
12920 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12921 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12922 cat >conftest.
$ac_ext <<_ACEOF
12925 cat confdefs.h
>>conftest.
$ac_ext
12926 cat >>conftest.
$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 $ac_includes_default
12929 #include <malloc/malloc.h>
12931 rm -f conftest.
$ac_objext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933 (eval $ac_compile) 2>conftest.er1
12935 grep -v '^ *+' conftest.er1
>conftest.err
12937 cat conftest.err
>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try
='test -z "$ac_c_werror_flag"
12941 || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try
='test -s conftest.$ac_objext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_header_compiler
=yes
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.
$ac_ext >&5
12958 ac_header_compiler
=no
12960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12962 echo "${ECHO_T}$ac_header_compiler" >&6
12964 # Is the header present?
12965 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12966 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12967 cat >conftest.
$ac_ext <<_ACEOF
12970 cat confdefs.h
>>conftest.
$ac_ext
12971 cat >>conftest.
$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 #include <malloc/malloc.h>
12975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12976 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12978 grep -v '^ *+' conftest.er1
>conftest.err
12980 cat conftest.err
>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev
/null
; then
12983 if test -s conftest.err
; then
12984 ac_cpp_err
=$ac_c_preproc_warn_flag
12985 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12992 if test -z "$ac_cpp_err"; then
12993 ac_header_preproc
=yes
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.
$ac_ext >&5
12998 ac_header_preproc
=no
13000 rm -f conftest.err conftest.
$ac_ext
13001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13002 echo "${ECHO_T}$ac_header_preproc" >&6
13004 # So? What about this header?
13005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13007 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13008 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13009 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13010 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13011 ac_header_preproc
=yes
13014 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13015 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13017 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13019 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13021 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13023 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13025 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13028 ## ------------------------------------------ ##
13029 ## Report this to the AC_PACKAGE_NAME lists. ##
13030 ## ------------------------------------------ ##
13033 sed "s/^/$as_me: WARNING: /" >&2
13036 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13037 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13038 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13043 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13044 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13047 if test $ac_cv_header_malloc_malloc_h = yes; then
13049 cat >>confdefs.h
<<\_ACEOF
13050 #define HAVE_MALLOC_MALLOC_H 1
13057 ### Use Mac OS X Carbon API to implement GUI.
13058 if test "${HAVE_CARBON}" = "yes"; then
13060 cat >>confdefs.h
<<\_ACEOF
13061 #define HAVE_CARBON 1
13064 ## Specify the install directory
13066 if test "${carbon_appdir_x}" != ""; then
13067 case ${carbon_appdir_x} in
13068 y | ye |
yes) carbon_appdir
=/Applications
;;
13069 * ) carbon_appdir
=${carbon_appdir_x} ;;
13072 # We also have mouse menus.
13075 tmp_CFLAGS
="$CFLAGS"
13076 CFLAGS
="$CFLAGS -framework Carbon"
13077 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13078 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13079 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 cat >conftest.
$ac_ext <<_ACEOF
13085 cat confdefs.h
>>conftest.
$ac_ext
13086 cat >>conftest.
$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13090 #define CancelMenuTracking innocuous_CancelMenuTracking
13092 /* System header to define __stub macros and hopefully few prototypes,
13093 which can conflict with char CancelMenuTracking (); below.
13094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095 <limits.h> exists even on freestanding compilers. */
13098 # include <limits.h>
13100 # include <assert.h>
13103 #undef CancelMenuTracking
13105 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13112 char CancelMenuTracking ();
13113 /* The GNU C library defines this for functions which it implements
13114 to always fail with ENOSYS. Some functions are actually named
13115 something starting with __ and the normal name is an alias. */
13116 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13119 char (*f) () = CancelMenuTracking;
13128 return f != CancelMenuTracking;
13133 rm -f conftest.
$ac_objext conftest
$ac_exeext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13135 (eval $ac_link) 2>conftest.er1
13137 grep -v '^ *+' conftest.er1
>conftest.err
13139 cat conftest.err
>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try
='test -z "$ac_c_werror_flag"
13143 || test ! -s conftest.err'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; } &&
13149 { ac_try
='test -s conftest$ac_exeext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_func_CancelMenuTracking
=yes
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.
$ac_ext >&5
13160 ac_cv_func_CancelMenuTracking
=no
13162 rm -f conftest.err conftest.
$ac_objext \
13163 conftest
$ac_exeext conftest.
$ac_ext
13165 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13166 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13167 if test $ac_cv_func_CancelMenuTracking = yes; then
13173 if test "$have_cmt" = yes; then
13175 cat >>confdefs.h
<<\_ACEOF
13176 #define HAVE_CANCELMENUTRACKING 1
13180 CFLAGS
="$tmp_CFLAGS"
13183 ### Use session management (-lSM -lICE) if available
13185 if test "${HAVE_X11}" = "yes"; then
13186 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13187 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13188 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13189 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13195 # Is the header compilable?
13196 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13197 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13198 cat >conftest.
$ac_ext <<_ACEOF
13201 cat confdefs.h
>>conftest.
$ac_ext
13202 cat >>conftest.
$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 $ac_includes_default
13205 #include <X11/SM/SMlib.h>
13207 rm -f conftest.
$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13211 grep -v '^ *+' conftest.er1
>conftest.err
13213 cat conftest.err
>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try
='test -z "$ac_c_werror_flag"
13217 || test ! -s conftest.err'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try
='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_header_compiler
=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.
$ac_ext >&5
13234 ac_header_compiler
=no
13236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238 echo "${ECHO_T}$ac_header_compiler" >&6
13240 # Is the header present?
13241 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13242 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13243 cat >conftest.
$ac_ext <<_ACEOF
13246 cat confdefs.h
>>conftest.
$ac_ext
13247 cat >>conftest.
$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 #include <X11/SM/SMlib.h>
13251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13254 grep -v '^ *+' conftest.er1
>conftest.err
13256 cat conftest.err
>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } >/dev
/null
; then
13259 if test -s conftest.err
; then
13260 ac_cpp_err
=$ac_c_preproc_warn_flag
13261 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13268 if test -z "$ac_cpp_err"; then
13269 ac_header_preproc
=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.
$ac_ext >&5
13274 ac_header_preproc
=no
13276 rm -f conftest.err conftest.
$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278 echo "${ECHO_T}$ac_header_preproc" >&6
13280 # So? What about this header?
13281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13283 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13284 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13286 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13287 ac_header_preproc
=yes
13290 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13291 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13293 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13295 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13297 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13299 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13301 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13304 ## ------------------------------------------ ##
13305 ## Report this to the AC_PACKAGE_NAME lists. ##
13306 ## ------------------------------------------ ##
13309 sed "s/^/$as_me: WARNING: /" >&2
13312 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13313 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13314 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13319 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13320 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13323 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13324 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13325 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13326 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 ac_check_lib_save_LIBS
=$LIBS
13330 LIBS
="-lSM -lICE $LIBS"
13331 cat >conftest.
$ac_ext <<_ACEOF
13334 cat confdefs.h
>>conftest.
$ac_ext
13335 cat >>conftest.
$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13338 /* Override any gcc2 internal prototype to avoid an error. */
13342 /* We use char because int might match the return type of a gcc2
13343 builtin and then its argument prototype would still apply. */
13344 char SmcOpenConnection ();
13348 SmcOpenConnection ();
13353 rm -f conftest.
$ac_objext conftest
$ac_exeext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13355 (eval $ac_link) 2>conftest.er1
13357 grep -v '^ *+' conftest.er1
>conftest.err
13359 cat conftest.err
>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } &&
13362 { ac_try
='test -z "$ac_c_werror_flag"
13363 || test ! -s conftest.err'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try
='test -s conftest$ac_exeext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_lib_SM_SmcOpenConnection
=yes
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.
$ac_ext >&5
13380 ac_cv_lib_SM_SmcOpenConnection
=no
13382 rm -f conftest.err conftest.
$ac_objext \
13383 conftest
$ac_exeext conftest.
$ac_ext
13384 LIBS
=$ac_check_lib_save_LIBS
13386 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13387 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13388 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13396 if test "${HAVE_X_SM}" = "yes"; then
13398 cat >>confdefs.h
<<\_ACEOF
13399 #define HAVE_X_SM 1
13404 *) LIBS
="-lSM -lICE $LIBS" ;;
13409 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13410 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13411 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13412 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 cat >conftest.
$ac_ext <<_ACEOF
13418 cat confdefs.h
>>conftest.
$ac_ext
13419 cat >>conftest.
$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13430 rm -f conftest.
$ac_objext conftest
$ac_exeext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13432 (eval $ac_link) 2>conftest.er1
13434 grep -v '^ *+' conftest.er1
>conftest.err
13436 cat conftest.err
>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try
='test -z "$ac_c_werror_flag"
13440 || test ! -s conftest.err'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try
='test -s conftest$ac_exeext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 emacs_cv_netdb_declares_h_errno
=yes
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.
$ac_ext >&5
13457 emacs_cv_netdb_declares_h_errno
=no
13459 rm -f conftest.err conftest.
$ac_objext \
13460 conftest
$ac_exeext conftest.
$ac_ext
13462 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13463 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13464 if test $emacs_cv_netdb_declares_h_errno = yes; then
13466 cat >>confdefs.h
<<\_ACEOF
13467 #define HAVE_H_ERRNO 1
13472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13473 # for constant arguments. Useless!
13474 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13475 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13476 if test "${ac_cv_working_alloca_h+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 cat >conftest.
$ac_ext <<_ACEOF
13482 cat confdefs.h
>>conftest.
$ac_ext
13483 cat >>conftest.
$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <alloca.h>
13489 char *p = (char *) alloca (2 * sizeof (int));
13494 rm -f conftest.
$ac_objext conftest
$ac_exeext
13495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13496 (eval $ac_link) 2>conftest.er1
13498 grep -v '^ *+' conftest.er1
>conftest.err
13500 cat conftest.err
>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try
='test -z "$ac_c_werror_flag"
13504 || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try
='test -s conftest$ac_exeext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_cv_working_alloca_h
=yes
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.
$ac_ext >&5
13521 ac_cv_working_alloca_h
=no
13523 rm -f conftest.err conftest.
$ac_objext \
13524 conftest
$ac_exeext conftest.
$ac_ext
13526 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13527 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13528 if test $ac_cv_working_alloca_h = yes; then
13530 cat >>confdefs.h
<<\_ACEOF
13531 #define HAVE_ALLOCA_H 1
13536 echo "$as_me:$LINENO: checking for alloca" >&5
13537 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13538 if test "${ac_cv_func_alloca_works+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 cat >conftest.
$ac_ext <<_ACEOF
13544 cat confdefs.h
>>conftest.
$ac_ext
13545 cat >>conftest.
$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 # define alloca __builtin_alloca
13551 # include <malloc.h>
13552 # define alloca _alloca
13555 # include <alloca.h>
13560 # ifndef alloca /* predefined by HP cc +Olibcalls */
13571 char *p = (char *) alloca (1);
13576 rm -f conftest.
$ac_objext conftest
$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578 (eval $ac_link) 2>conftest.er1
13580 grep -v '^ *+' conftest.er1
>conftest.err
13582 cat conftest.err
>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try
='test -z "$ac_c_werror_flag"
13586 || test ! -s conftest.err'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try
='test -s conftest$ac_exeext'
13593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594 (eval $ac_try) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_func_alloca_works
=yes
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.
$ac_ext >&5
13603 ac_cv_func_alloca_works
=no
13605 rm -f conftest.err conftest.
$ac_objext \
13606 conftest
$ac_exeext conftest.
$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13609 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13611 if test $ac_cv_func_alloca_works = yes; then
13613 cat >>confdefs.h
<<\_ACEOF
13614 #define HAVE_ALLOCA 1
13618 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13619 # that cause trouble. Some versions do not even contain alloca or
13620 # contain a buggy version. If you still want to use their alloca,
13621 # use ar to extract alloca.o from them instead of compiling alloca.c.
13623 ALLOCA
=alloca.
$ac_objext
13625 cat >>confdefs.h
<<\_ACEOF
13630 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13631 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13632 if test "${ac_cv_os_cray+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 cat >conftest.
$ac_ext <<_ACEOF
13638 cat confdefs.h
>>conftest.
$ac_ext
13639 cat >>conftest.
$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #if defined(CRAY) && ! defined(CRAY2)
13648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13649 $EGREP "webecray" >/dev
/null
2>&1; then
13657 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13658 echo "${ECHO_T}$ac_cv_os_cray" >&6
13659 if test $ac_cv_os_cray = yes; then
13660 for ac_func
in _getb67 GETB67 getb67
; do
13661 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13662 echo "$as_me:$LINENO: checking for $ac_func" >&5
13663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13664 if eval "test \"\${$as_ac_var+set}\" = set"; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 cat >conftest.
$ac_ext <<_ACEOF
13670 cat confdefs.h
>>conftest.
$ac_ext
13671 cat >>conftest.
$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13675 #define $ac_func innocuous_$ac_func
13677 /* System header to define __stub macros and hopefully few prototypes,
13678 which can conflict with char $ac_func (); below.
13679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13680 <limits.h> exists even on freestanding compilers. */
13683 # include <limits.h>
13685 # include <assert.h>
13690 /* Override any gcc2 internal prototype to avoid an error. */
13695 /* We use char because int might match the return type of a gcc2
13696 builtin and then its argument prototype would still apply. */
13698 /* The GNU C library defines this for functions which it implements
13699 to always fail with ENOSYS. Some functions are actually named
13700 something starting with __ and the normal name is an alias. */
13701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13704 char (*f) () = $ac_func;
13713 return f != $ac_func;
13718 rm -f conftest.
$ac_objext conftest
$ac_exeext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720 (eval $ac_link) 2>conftest.er1
13722 grep -v '^ *+' conftest.er1
>conftest.err
13724 cat conftest.err
>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try
='test -z "$ac_c_werror_flag"
13728 || test ! -s conftest.err'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try
='test -s conftest$ac_exeext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 eval "$as_ac_var=yes"
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.
$ac_ext >&5
13745 eval "$as_ac_var=no"
13747 rm -f conftest.err conftest.
$ac_objext \
13748 conftest
$ac_exeext conftest.
$ac_ext
13750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13752 if test `eval echo '${'$as_ac_var'}'` = yes; then
13754 cat >>confdefs.h
<<_ACEOF
13755 #define CRAY_STACKSEG_END $ac_func
13764 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13765 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13766 if test "${ac_cv_c_stack_direction+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 if test "$cross_compiling" = yes; then
13770 ac_cv_c_stack_direction
=0
13772 cat >conftest.
$ac_ext <<_ACEOF
13775 cat confdefs.h
>>conftest.
$ac_ext
13776 cat >>conftest.
$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 find_stack_direction ()
13781 static char *addr = 0;
13786 return find_stack_direction ();
13789 return (&dummy > addr) ? 1 : -1;
13795 exit (find_stack_direction () < 0);
13798 rm -f conftest
$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13809 ac_cv_c_stack_direction
=1
13811 echo "$as_me: program exited with status $ac_status" >&5
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.
$ac_ext >&5
13815 ( exit $ac_status )
13816 ac_cv_c_stack_direction
=-1
13818 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13821 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13822 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13824 cat >>confdefs.h
<<_ACEOF
13825 #define STACK_DIRECTION $ac_cv_c_stack_direction
13832 # fmod, logb, and frexp are found in -lm on most systems.
13833 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13835 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13836 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13837 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 ac_check_lib_save_LIBS
=$LIBS
13842 cat >conftest.
$ac_ext <<_ACEOF
13845 cat confdefs.h
>>conftest.
$ac_ext
13846 cat >>conftest.
$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 /* Override any gcc2 internal prototype to avoid an error. */
13853 /* We use char because int might match the return type of a gcc2
13854 builtin and then its argument prototype would still apply. */
13864 rm -f conftest.
$ac_objext conftest
$ac_exeext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13866 (eval $ac_link) 2>conftest.er1
13868 grep -v '^ *+' conftest.er1
>conftest.err
13870 cat conftest.err
>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try
='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try
='test -s conftest$ac_exeext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_cv_lib_m_sqrt
=yes
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.
$ac_ext >&5
13891 ac_cv_lib_m_sqrt
=no
13893 rm -f conftest.err conftest.
$ac_objext \
13894 conftest
$ac_exeext conftest.
$ac_ext
13895 LIBS
=$ac_check_lib_save_LIBS
13897 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13898 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13899 if test $ac_cv_lib_m_sqrt = yes; then
13900 cat >>confdefs.h
<<_ACEOF
13901 #define HAVE_LIBM 1
13909 # Check for mail-locking functions in a "mail" library. Probably this should
13910 # have the same check as for liblockfile below.
13912 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13913 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13914 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 ac_check_lib_save_LIBS
=$LIBS
13918 LIBS
="-lmail $LIBS"
13919 cat >conftest.
$ac_ext <<_ACEOF
13922 cat confdefs.h
>>conftest.
$ac_ext
13923 cat >>conftest.
$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13926 /* Override any gcc2 internal prototype to avoid an error. */
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13941 rm -f conftest.
$ac_objext conftest
$ac_exeext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13943 (eval $ac_link) 2>conftest.er1
13945 grep -v '^ *+' conftest.er1
>conftest.err
13947 cat conftest.err
>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try
='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try
='test -s conftest$ac_exeext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_cv_lib_mail_maillock
=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.
$ac_ext >&5
13968 ac_cv_lib_mail_maillock
=no
13970 rm -f conftest.err conftest.
$ac_objext \
13971 conftest
$ac_exeext conftest.
$ac_ext
13972 LIBS
=$ac_check_lib_save_LIBS
13974 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13975 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13976 if test $ac_cv_lib_mail_maillock = yes; then
13977 cat >>confdefs.h
<<_ACEOF
13978 #define HAVE_LIBMAIL 1
13981 LIBS
="-lmail $LIBS"
13986 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13987 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13988 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 ac_check_lib_save_LIBS
=$LIBS
13992 LIBS
="-llockfile $LIBS"
13993 cat >conftest.
$ac_ext <<_ACEOF
13996 cat confdefs.h
>>conftest.
$ac_ext
13997 cat >>conftest.
$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
14000 /* Override any gcc2 internal prototype to avoid an error. */
14004 /* We use char because int might match the return type of a gcc2
14005 builtin and then its argument prototype would still apply. */
14015 rm -f conftest.
$ac_objext conftest
$ac_exeext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14017 (eval $ac_link) 2>conftest.er1
14019 grep -v '^ *+' conftest.er1
>conftest.err
14021 cat conftest.err
>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } &&
14024 { ac_try
='test -z "$ac_c_werror_flag"
14025 || test ! -s conftest.err'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try
='test -s conftest$ac_exeext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_lib_lockfile_maillock
=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.
$ac_ext >&5
14042 ac_cv_lib_lockfile_maillock
=no
14044 rm -f conftest.err conftest.
$ac_objext \
14045 conftest
$ac_exeext conftest.
$ac_ext
14046 LIBS
=$ac_check_lib_save_LIBS
14048 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14049 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14050 if test $ac_cv_lib_lockfile_maillock = yes; then
14051 cat >>confdefs.h
<<_ACEOF
14052 #define HAVE_LIBLOCKFILE 1
14055 LIBS
="-llockfile $LIBS"
14059 # If we have the shared liblockfile, assume we must use it for mail
14060 # locking (e.g. Debian). If we couldn't link against liblockfile
14061 # (no liblockfile.a installed), ensure that we don't need to.
14062 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14063 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14064 set dummy liblockfile.so
; ac_word
=$2
14065 echo "$as_me:$LINENO: checking for $ac_word" >&5
14066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14067 if test "${ac_cv_prog_liblockfile+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 if test -n "$liblockfile"; then
14071 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14074 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14075 for as_dir
in $as_dummy
14078 test -z "$as_dir" && as_dir
=.
14079 for ac_exec_ext
in '' $ac_executable_extensions; do
14080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14081 ac_cv_prog_liblockfile
="yes"
14082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14088 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14091 liblockfile
=$ac_cv_prog_liblockfile
14092 if test -n "$liblockfile"; then
14093 echo "$as_me:$LINENO: result: $liblockfile" >&5
14094 echo "${ECHO_T}$liblockfile" >&6
14096 echo "$as_me:$LINENO: result: no" >&5
14097 echo "${ECHO_T}no" >&6
14100 if test $ac_cv_prog_liblockfile = yes; then
14101 { { echo "$as_me:$LINENO: 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." >&5
14104 echo "$as_me: error: Shared liblockfile found but can't link against it.
14105 This probably means that movemail could lose mail.
14106 There may be a \`development' package to install containing liblockfile." >&2;}
14107 { (exit 1); exit 1; }; }
14112 for ac_func
in touchlock
14114 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_var+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 cat >conftest.
$ac_ext <<_ACEOF
14123 cat confdefs.h
>>conftest.
$ac_ext
14124 cat >>conftest.
$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14136 # include <limits.h>
14138 # include <assert.h>
14143 /* Override any gcc2 internal prototype to avoid an error. */
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14157 char (*f) () = $ac_func;
14166 return f != $ac_func;
14171 rm -f conftest.
$ac_objext conftest
$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14175 grep -v '^ *+' conftest.er1
>conftest.err
14177 cat conftest.err
>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try
='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try
='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 eval "$as_ac_var=yes"
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.
$ac_ext >&5
14198 eval "$as_ac_var=no"
14200 rm -f conftest.err conftest.
$ac_objext \
14201 conftest
$ac_exeext conftest.
$ac_ext
14203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14205 if test `eval echo '${'$as_ac_var'}'` = yes; then
14206 cat >>confdefs.h
<<_ACEOF
14207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14214 for ac_header
in maillock.h
14216 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 # Is the header compilable?
14227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14229 cat >conftest.
$ac_ext <<_ACEOF
14232 cat confdefs.h
>>conftest.
$ac_ext
14233 cat >>conftest.
$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14236 #include <$ac_header>
14238 rm -f conftest.
$ac_objext
14239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14240 (eval $ac_compile) 2>conftest.er1
14242 grep -v '^ *+' conftest.er1
>conftest.err
14244 cat conftest.err
>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } &&
14247 { ac_try
='test -z "$ac_c_werror_flag"
14248 || test ! -s conftest.err'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; } &&
14254 { ac_try
='test -s conftest.$ac_objext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 ac_header_compiler
=yes
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.
$ac_ext >&5
14265 ac_header_compiler
=no
14267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6
14271 # Is the header present?
14272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14274 cat >conftest.
$ac_ext <<_ACEOF
14277 cat confdefs.h
>>conftest.
$ac_ext
14278 cat >>conftest.
$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <$ac_header>
14282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14283 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14285 grep -v '^ *+' conftest.er1
>conftest.err
14287 cat conftest.err
>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } >/dev
/null
; then
14290 if test -s conftest.err
; then
14291 ac_cpp_err
=$ac_c_preproc_warn_flag
14292 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14299 if test -z "$ac_cpp_err"; then
14300 ac_header_preproc
=yes
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.
$ac_ext >&5
14305 ac_header_preproc
=no
14307 rm -f conftest.err conftest.
$ac_ext
14308 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14309 echo "${ECHO_T}$ac_header_preproc" >&6
14311 # So? What about this header?
14312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14318 ac_header_preproc
=yes
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14335 ## ------------------------------------------ ##
14336 ## Report this to the AC_PACKAGE_NAME lists. ##
14337 ## ------------------------------------------ ##
14340 sed "s/^/$as_me: WARNING: /" >&2
14343 echo "$as_me:$LINENO: checking for $ac_header" >&5
14344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 eval "$as_ac_Header=\$ac_header_preproc"
14350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h
<<_ACEOF
14356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14432 for ac_func
in gethostname getdomainname dup2 \
14433 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14434 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14435 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14436 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14437 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14438 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14439 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14440 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14442 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14443 echo "$as_me:$LINENO: checking for $ac_func" >&5
14444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14445 if eval "test \"\${$as_ac_var+set}\" = set"; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 cat >conftest.
$ac_ext <<_ACEOF
14451 cat confdefs.h
>>conftest.
$ac_ext
14452 cat >>conftest.
$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14456 #define $ac_func innocuous_$ac_func
14458 /* System header to define __stub macros and hopefully few prototypes,
14459 which can conflict with char $ac_func (); below.
14460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14461 <limits.h> exists even on freestanding compilers. */
14464 # include <limits.h>
14466 # include <assert.h>
14471 /* Override any gcc2 internal prototype to avoid an error. */
14476 /* We use char because int might match the return type of a gcc2
14477 builtin and then its argument prototype would still apply. */
14479 /* The GNU C library defines this for functions which it implements
14480 to always fail with ENOSYS. Some functions are actually named
14481 something starting with __ and the normal name is an alias. */
14482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14485 char (*f) () = $ac_func;
14494 return f != $ac_func;
14499 rm -f conftest.
$ac_objext conftest
$ac_exeext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501 (eval $ac_link) 2>conftest.er1
14503 grep -v '^ *+' conftest.er1
>conftest.err
14505 cat conftest.err
>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try
='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try
='test -s conftest$ac_exeext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 eval "$as_ac_var=yes"
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.
$ac_ext >&5
14526 eval "$as_ac_var=no"
14528 rm -f conftest.err conftest.
$ac_objext \
14529 conftest
$ac_exeext conftest.
$ac_ext
14531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14533 if test `eval echo '${'$as_ac_var'}'` = yes; then
14534 cat >>confdefs.h
<<_ACEOF
14535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14543 for ac_header
in sys
/un.h
14545 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14547 echo "$as_me:$LINENO: checking for $ac_header" >&5
14548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14555 # Is the header compilable?
14556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14558 cat >conftest.
$ac_ext <<_ACEOF
14561 cat confdefs.h
>>conftest.
$ac_ext
14562 cat >>conftest.
$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 $ac_includes_default
14565 #include <$ac_header>
14567 rm -f conftest.
$ac_objext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569 (eval $ac_compile) 2>conftest.er1
14571 grep -v '^ *+' conftest.er1
>conftest.err
14573 cat conftest.err
>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try
='test -z "$ac_c_werror_flag"
14577 || test ! -s conftest.err'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try
='test -s conftest.$ac_objext'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 ac_header_compiler
=yes
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.
$ac_ext >&5
14594 ac_header_compiler
=no
14596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14598 echo "${ECHO_T}$ac_header_compiler" >&6
14600 # Is the header present?
14601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14603 cat >conftest.
$ac_ext <<_ACEOF
14606 cat confdefs.h
>>conftest.
$ac_ext
14607 cat >>conftest.
$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 #include <$ac_header>
14611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14612 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14614 grep -v '^ *+' conftest.er1
>conftest.err
14616 cat conftest.err
>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } >/dev
/null
; then
14619 if test -s conftest.err
; then
14620 ac_cpp_err
=$ac_c_preproc_warn_flag
14621 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14628 if test -z "$ac_cpp_err"; then
14629 ac_header_preproc
=yes
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.
$ac_ext >&5
14634 ac_header_preproc
=no
14636 rm -f conftest.err conftest.
$ac_ext
14637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14638 echo "${ECHO_T}$ac_header_preproc" >&6
14640 # So? What about this header?
14641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14647 ac_header_preproc
=yes
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14664 ## ------------------------------------------ ##
14665 ## Report this to the AC_PACKAGE_NAME lists. ##
14666 ## ------------------------------------------ ##
14669 sed "s/^/$as_me: WARNING: /" >&2
14672 echo "$as_me:$LINENO: checking for $ac_header" >&5
14673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 eval "$as_ac_Header=\$ac_header_preproc"
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14684 cat >>confdefs.h
<<_ACEOF
14685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696 for ac_header
in stdlib.h sys
/time.h unistd.h
14698 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14700 echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14708 # Is the header compilable?
14709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14711 cat >conftest.
$ac_ext <<_ACEOF
14714 cat confdefs.h
>>conftest.
$ac_ext
14715 cat >>conftest.
$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 $ac_includes_default
14718 #include <$ac_header>
14720 rm -f conftest.
$ac_objext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14724 grep -v '^ *+' conftest.er1
>conftest.err
14726 cat conftest.err
>&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try
='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try
='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_header_compiler
=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.
$ac_ext >&5
14747 ac_header_compiler
=no
14749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14751 echo "${ECHO_T}$ac_header_compiler" >&6
14753 # Is the header present?
14754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14756 cat >conftest.
$ac_ext <<_ACEOF
14759 cat confdefs.h
>>conftest.
$ac_ext
14760 cat >>conftest.
$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 #include <$ac_header>
14764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14765 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14767 grep -v '^ *+' conftest.er1
>conftest.err
14769 cat conftest.err
>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } >/dev
/null
; then
14772 if test -s conftest.err
; then
14773 ac_cpp_err
=$ac_c_preproc_warn_flag
14774 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14781 if test -z "$ac_cpp_err"; then
14782 ac_header_preproc
=yes
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.
$ac_ext >&5
14787 ac_header_preproc
=no
14789 rm -f conftest.err conftest.
$ac_ext
14790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14791 echo "${ECHO_T}$ac_header_preproc" >&6
14793 # So? What about this header?
14794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14800 ac_header_preproc
=yes
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14817 ## ------------------------------------------ ##
14818 ## Report this to the AC_PACKAGE_NAME lists. ##
14819 ## ------------------------------------------ ##
14822 sed "s/^/$as_me: WARNING: /" >&2
14825 echo "$as_me:$LINENO: checking for $ac_header" >&5
14826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 eval "$as_ac_Header=\$ac_header_preproc"
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14837 cat >>confdefs.h
<<_ACEOF
14838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14846 for ac_func
in alarm
14848 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14849 echo "$as_me:$LINENO: checking for $ac_func" >&5
14850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14851 if eval "test \"\${$as_ac_var+set}\" = set"; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 cat >conftest.
$ac_ext <<_ACEOF
14857 cat confdefs.h
>>conftest.
$ac_ext
14858 cat >>conftest.
$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14862 #define $ac_func innocuous_$ac_func
14864 /* System header to define __stub macros and hopefully few prototypes,
14865 which can conflict with char $ac_func (); below.
14866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14867 <limits.h> exists even on freestanding compilers. */
14870 # include <limits.h>
14872 # include <assert.h>
14877 /* Override any gcc2 internal prototype to avoid an error. */
14882 /* We use char because int might match the return type of a gcc2
14883 builtin and then its argument prototype would still apply. */
14885 /* The GNU C library defines this for functions which it implements
14886 to always fail with ENOSYS. Some functions are actually named
14887 something starting with __ and the normal name is an alias. */
14888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14891 char (*f) () = $ac_func;
14900 return f != $ac_func;
14905 rm -f conftest.
$ac_objext conftest
$ac_exeext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>conftest.er1
14909 grep -v '^ *+' conftest.er1
>conftest.err
14911 cat conftest.err
>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try
='test -z "$ac_c_werror_flag"
14915 || test ! -s conftest.err'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try
='test -s conftest$ac_exeext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 eval "$as_ac_var=yes"
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.
$ac_ext >&5
14932 eval "$as_ac_var=no"
14934 rm -f conftest.err conftest.
$ac_objext \
14935 conftest
$ac_exeext conftest.
$ac_ext
14937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14939 if test `eval echo '${'$as_ac_var'}'` = yes; then
14940 cat >>confdefs.h
<<_ACEOF
14941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14947 echo "$as_me:$LINENO: checking for working mktime" >&5
14948 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14949 if test "${ac_cv_func_working_mktime+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 if test "$cross_compiling" = yes; then
14953 ac_cv_func_working_mktime
=no
14955 cat >conftest.
$ac_ext <<_ACEOF
14958 cat confdefs.h
>>conftest.
$ac_ext
14959 cat >>conftest.
$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 /* Test program from Paul Eggert and Tony Leneis. */
14962 #if TIME_WITH_SYS_TIME
14963 # include <sys/time.h>
14966 # if HAVE_SYS_TIME_H
14967 # include <sys/time.h>
14974 # include <stdlib.h>
14978 # include <unistd.h>
14982 # define alarm(X) /* empty */
14985 /* Work around redefinition to rpl_putenv by other config tests. */
14988 static time_t time_t_max;
14989 static time_t time_t_min;
14991 /* Values we'll use to set the TZ environment variable. */
14992 static char *tz_strings[] = {
14993 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14994 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14996 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14998 /* Fail if mktime fails to convert a date in the spring-forward gap.
14999 Based on a problem report from Andreas Jaeger. */
15001 spring_forward_gap ()
15003 /* glibc (up to about 1998-10-07) failed this test. */
15006 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15007 instead of "TZ=America/Vancouver" in order to detect the bug even
15008 on systems that don't support the Olson extension, or don't have the
15009 full zoneinfo tables installed. */
15010 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15019 if (mktime (&tm) == (time_t)-1)
15028 if ((lt = localtime (&now)) && mktime (lt) != now)
15036 mktime_test1 (now);
15037 mktime_test1 ((time_t) (time_t_max - now));
15038 mktime_test1 ((time_t) (time_t_min + now));
15044 /* Based on code from Ariel Faigon. */
15054 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15064 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15065 now = mktime (&tm);
15066 if (now != (time_t) -1)
15068 struct tm *lt = localtime (&now);
15070 && lt->tm_year == tm.tm_year
15071 && lt->tm_mon == tm.tm_mon
15072 && lt->tm_mday == tm.tm_mday
15073 && lt->tm_hour == tm.tm_hour
15074 && lt->tm_min == tm.tm_min
15075 && lt->tm_sec == tm.tm_sec
15076 && lt->tm_yday == tm.tm_yday
15077 && lt->tm_wday == tm.tm_wday
15078 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15079 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15090 /* This test makes some buggy mktime implementations loop.
15091 Give up after 60 seconds; a mktime slower than that
15092 isn't worth using anyway. */
15095 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15098 if ((time_t) -1 < 0)
15099 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15101 delta = time_t_max / 997; /* a suitable prime number */
15102 for (i = 0; i < N_STRINGS; i++)
15105 putenv (tz_strings[i]);
15107 for (t = 0; t <= time_t_max - delta; t += delta)
15109 mktime_test ((time_t) 1);
15110 mktime_test ((time_t) (60 * 60));
15111 mktime_test ((time_t) (60 * 60 * 24));
15113 for (j = 1; 0 < j; j *= 2)
15115 bigtime_test (j - 1);
15118 spring_forward_gap ();
15122 rm -f conftest
$ac_exeext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124 (eval $ac_link) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_func_working_mktime
=yes
15135 echo "$as_me: program exited with status $ac_status" >&5
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.
$ac_ext >&5
15139 ( exit $ac_status )
15140 ac_cv_func_working_mktime
=no
15142 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15145 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15146 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15147 if test $ac_cv_func_working_mktime = no
; then
15149 "mktime.$ac_objext" | \
15150 *" mktime.$ac_objext" | \
15151 "mktime.$ac_objext "* | \
15152 *" mktime.$ac_objext "* ) ;;
15153 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15158 if test "$ac_cv_func_working_mktime" = no
; then
15160 cat >>confdefs.h
<<\_ACEOF
15161 #define BROKEN_MKTIME 1
15166 ac_have_func
=no
# yes means we've found a way to get the load average.
15168 # Make sure getloadavg.c is where it belongs, at configure-time.
15169 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15170 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15171 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15172 { (exit 1); exit 1; }; }
15176 # Check for getloadavg, but be sure not to touch the cache variable.
15177 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15178 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15179 if test "${ac_cv_func_getloadavg+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 cat >conftest.
$ac_ext <<_ACEOF
15185 cat confdefs.h
>>conftest.
$ac_ext
15186 cat >>conftest.
$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15190 #define getloadavg innocuous_getloadavg
15192 /* System header to define __stub macros and hopefully few prototypes,
15193 which can conflict with char getloadavg (); below.
15194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15195 <limits.h> exists even on freestanding compilers. */
15198 # include <limits.h>
15200 # include <assert.h>
15205 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15212 char getloadavg ();
15213 /* The GNU C library defines this for functions which it implements
15214 to always fail with ENOSYS. Some functions are actually named
15215 something starting with __ and the normal name is an alias. */
15216 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15219 char (*f) () = getloadavg;
15228 return f != getloadavg;
15233 rm -f conftest.
$ac_objext conftest
$ac_exeext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15235 (eval $ac_link) 2>conftest.er1
15237 grep -v '^ *+' conftest.er1
>conftest.err
15239 cat conftest.err
>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try
='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try
='test -s conftest$ac_exeext'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_cv_func_getloadavg
=yes
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.
$ac_ext >&5
15260 ac_cv_func_getloadavg
=no
15262 rm -f conftest.err conftest.
$ac_objext \
15263 conftest
$ac_exeext conftest.
$ac_ext
15265 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15266 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15267 if test $ac_cv_func_getloadavg = yes; then
15272 ) && ac_have_func
=yes
15274 # On HPUX9, an unprivileged user can get load averages through this function.
15276 for ac_func
in pstat_getdynamic
15278 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15279 echo "$as_me:$LINENO: checking for $ac_func" >&5
15280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15281 if eval "test \"\${$as_ac_var+set}\" = set"; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 cat >conftest.
$ac_ext <<_ACEOF
15287 cat confdefs.h
>>conftest.
$ac_ext
15288 cat >>conftest.
$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15292 #define $ac_func innocuous_$ac_func
15294 /* System header to define __stub macros and hopefully few prototypes,
15295 which can conflict with char $ac_func (); below.
15296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15297 <limits.h> exists even on freestanding compilers. */
15300 # include <limits.h>
15302 # include <assert.h>
15307 /* Override any gcc2 internal prototype to avoid an error. */
15312 /* We use char because int might match the return type of a gcc2
15313 builtin and then its argument prototype would still apply. */
15315 /* The GNU C library defines this for functions which it implements
15316 to always fail with ENOSYS. Some functions are actually named
15317 something starting with __ and the normal name is an alias. */
15318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15321 char (*f) () = $ac_func;
15330 return f != $ac_func;
15335 rm -f conftest.
$ac_objext conftest
$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>conftest.er1
15339 grep -v '^ *+' conftest.er1
>conftest.err
15341 cat conftest.err
>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try
='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try
='test -s conftest$ac_exeext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 eval "$as_ac_var=yes"
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.
$ac_ext >&5
15362 eval "$as_ac_var=no"
15364 rm -f conftest.err conftest.
$ac_objext \
15365 conftest
$ac_exeext conftest.
$ac_ext
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h
<<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15378 # Solaris has libkstat which does not require root.
15380 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15381 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15382 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 ac_check_lib_save_LIBS
=$LIBS
15386 LIBS
="-lkstat $LIBS"
15387 cat >conftest.
$ac_ext <<_ACEOF
15390 cat confdefs.h
>>conftest.
$ac_ext
15391 cat >>conftest.
$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15394 /* Override any gcc2 internal prototype to avoid an error. */
15398 /* We use char because int might match the return type of a gcc2
15399 builtin and then its argument prototype would still apply. */
15400 char kstat_open ();
15409 rm -f conftest.
$ac_objext conftest
$ac_exeext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15411 (eval $ac_link) 2>conftest.er1
15413 grep -v '^ *+' conftest.er1
>conftest.err
15415 cat conftest.err
>&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try
='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try
='test -s conftest$ac_exeext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_cv_lib_kstat_kstat_open
=yes
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.
$ac_ext >&5
15436 ac_cv_lib_kstat_kstat_open
=no
15438 rm -f conftest.err conftest.
$ac_objext \
15439 conftest
$ac_exeext conftest.
$ac_ext
15440 LIBS
=$ac_check_lib_save_LIBS
15442 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15443 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15444 if test $ac_cv_lib_kstat_kstat_open = yes; then
15445 cat >>confdefs.h
<<_ACEOF
15446 #define HAVE_LIBKSTAT 1
15449 LIBS
="-lkstat $LIBS"
15453 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15455 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15456 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15457 # to get the right answer into the cache.
15458 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15459 if test $ac_have_func = no
; then
15460 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15461 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15462 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 ac_check_lib_save_LIBS
=$LIBS
15467 cat >conftest.
$ac_ext <<_ACEOF
15470 cat confdefs.h
>>conftest.
$ac_ext
15471 cat >>conftest.
$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15474 /* Override any gcc2 internal prototype to avoid an error. */
15478 /* We use char because int might match the return type of a gcc2
15479 builtin and then its argument prototype would still apply. */
15489 rm -f conftest.
$ac_objext conftest
$ac_exeext
15490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15491 (eval $ac_link) 2>conftest.er1
15493 grep -v '^ *+' conftest.er1
>conftest.err
15495 cat conftest.err
>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try
='test -z "$ac_c_werror_flag"
15499 || test ! -s conftest.err'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } &&
15505 { ac_try
='test -s conftest$ac_exeext'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 ac_cv_lib_elf_elf_begin
=yes
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.
$ac_ext >&5
15516 ac_cv_lib_elf_elf_begin
=no
15518 rm -f conftest.err conftest.
$ac_objext \
15519 conftest
$ac_exeext conftest.
$ac_ext
15520 LIBS
=$ac_check_lib_save_LIBS
15522 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15523 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15524 if test $ac_cv_lib_elf_elf_begin = yes; then
15529 if test $ac_have_func = no
; then
15530 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15531 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15532 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 ac_check_lib_save_LIBS
=$LIBS
15537 cat >conftest.
$ac_ext <<_ACEOF
15540 cat confdefs.h
>>conftest.
$ac_ext
15541 cat >>conftest.
$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15544 /* Override any gcc2 internal prototype to avoid an error. */
15548 /* We use char because int might match the return type of a gcc2
15549 builtin and then its argument prototype would still apply. */
15559 rm -f conftest.
$ac_objext conftest
$ac_exeext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15561 (eval $ac_link) 2>conftest.er1
15563 grep -v '^ *+' conftest.er1
>conftest.err
15565 cat conftest.err
>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } &&
15568 { ac_try
='test -z "$ac_c_werror_flag"
15569 || test ! -s conftest.err'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try
='test -s conftest$ac_exeext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_cv_lib_kvm_kvm_open
=yes
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.
$ac_ext >&5
15586 ac_cv_lib_kvm_kvm_open
=no
15588 rm -f conftest.err conftest.
$ac_objext \
15589 conftest
$ac_exeext conftest.
$ac_ext
15590 LIBS
=$ac_check_lib_save_LIBS
15592 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15593 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15594 if test $ac_cv_lib_kvm_kvm_open = yes; then
15598 # Check for the 4.4BSD definition of getloadavg.
15599 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15600 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15601 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 ac_check_lib_save_LIBS
=$LIBS
15605 LIBS
="-lutil $LIBS"
15606 cat >conftest.
$ac_ext <<_ACEOF
15609 cat confdefs.h
>>conftest.
$ac_ext
15610 cat >>conftest.
$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any gcc2 internal prototype to avoid an error. */
15617 /* We use char because int might match the return type of a gcc2
15618 builtin and then its argument prototype would still apply. */
15619 char getloadavg ();
15628 rm -f conftest.
$ac_objext conftest
$ac_exeext
15629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15630 (eval $ac_link) 2>conftest.er1
15632 grep -v '^ *+' conftest.er1
>conftest.err
15634 cat conftest.err
>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try
='test -z "$ac_c_werror_flag"
15638 || test ! -s conftest.err'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try
='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_lib_util_getloadavg
=yes
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.
$ac_ext >&5
15655 ac_cv_lib_util_getloadavg
=no
15657 rm -f conftest.err conftest.
$ac_objext \
15658 conftest
$ac_exeext conftest.
$ac_ext
15659 LIBS
=$ac_check_lib_save_LIBS
15661 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15662 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15663 if test $ac_cv_lib_util_getloadavg = yes; then
15664 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15669 if test $ac_have_func = no
; then
15670 # There is a commonly available library for RS/6000 AIX.
15671 # Since it is not a standard part of AIX, it might be installed locally.
15672 ac_getloadavg_LIBS
=$LIBS
15673 LIBS
="-L/usr/local/lib $LIBS"
15674 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15675 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15676 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 ac_check_lib_save_LIBS
=$LIBS
15680 LIBS
="-lgetloadavg $LIBS"
15681 cat >conftest.
$ac_ext <<_ACEOF
15684 cat confdefs.h
>>conftest.
$ac_ext
15685 cat >>conftest.
$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15688 /* Override any gcc2 internal prototype to avoid an error. */
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15694 char getloadavg ();
15703 rm -f conftest.
$ac_objext conftest
$ac_exeext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15705 (eval $ac_link) 2>conftest.er1
15707 grep -v '^ *+' conftest.er1
>conftest.err
15709 cat conftest.err
>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
15712 { ac_try
='test -z "$ac_c_werror_flag"
15713 || test ! -s conftest.err'
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try
='test -s conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_cv_lib_getloadavg_getloadavg
=yes
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.
$ac_ext >&5
15730 ac_cv_lib_getloadavg_getloadavg
=no
15732 rm -f conftest.err conftest.
$ac_objext \
15733 conftest
$ac_exeext conftest.
$ac_ext
15734 LIBS
=$ac_check_lib_save_LIBS
15736 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15737 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15738 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15739 LIBS
="-lgetloadavg $LIBS"
15741 LIBS
=$ac_getloadavg_LIBS
15746 # Make sure it is really in the library, if we think we found it,
15747 # otherwise set up the replacement function.
15749 for ac_func
in getloadavg
15751 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15752 echo "$as_me:$LINENO: checking for $ac_func" >&5
15753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15754 if eval "test \"\${$as_ac_var+set}\" = set"; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 cat >conftest.
$ac_ext <<_ACEOF
15760 cat confdefs.h
>>conftest.
$ac_ext
15761 cat >>conftest.
$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15765 #define $ac_func innocuous_$ac_func
15767 /* System header to define __stub macros and hopefully few prototypes,
15768 which can conflict with char $ac_func (); below.
15769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15770 <limits.h> exists even on freestanding compilers. */
15773 # include <limits.h>
15775 # include <assert.h>
15780 /* Override any gcc2 internal prototype to avoid an error. */
15785 /* We use char because int might match the return type of a gcc2
15786 builtin and then its argument prototype would still apply. */
15788 /* The GNU C library defines this for functions which it implements
15789 to always fail with ENOSYS. Some functions are actually named
15790 something starting with __ and the normal name is an alias. */
15791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15794 char (*f) () = $ac_func;
15803 return f != $ac_func;
15808 rm -f conftest.
$ac_objext conftest
$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>conftest.er1
15812 grep -v '^ *+' conftest.er1
>conftest.err
15814 cat conftest.err
>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try
='test -z "$ac_c_werror_flag"
15818 || test ! -s conftest.err'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try
='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 eval "$as_ac_var=yes"
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.
$ac_ext >&5
15835 eval "$as_ac_var=no"
15837 rm -f conftest.err conftest.
$ac_objext \
15838 conftest
$ac_exeext conftest.
$ac_ext
15840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15842 if test `eval echo '${'$as_ac_var'}'` = yes; then
15843 cat >>confdefs.h
<<_ACEOF
15844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15849 "getloadavg.$ac_objext" | \
15850 *" getloadavg.$ac_objext" | \
15851 "getloadavg.$ac_objext "* | \
15852 *" getloadavg.$ac_objext "* ) ;;
15853 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15857 cat >>confdefs.h
<<\_ACEOF
15858 #define C_GETLOADAVG 1
15861 # Figure out what our getloadavg.c needs.
15863 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15864 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15865 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15866 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15870 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15872 # Is the header compilable?
15873 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15874 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15875 cat >conftest.
$ac_ext <<_ACEOF
15878 cat confdefs.h
>>conftest.
$ac_ext
15879 cat >>conftest.
$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 $ac_includes_default
15882 #include <sys/dg_sys_info.h>
15884 rm -f conftest.
$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>conftest.er1
15888 grep -v '^ *+' conftest.er1
>conftest.err
15890 cat conftest.err
>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try
='test -z "$ac_c_werror_flag"
15894 || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try
='test -s conftest.$ac_objext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_header_compiler
=yes
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.
$ac_ext >&5
15911 ac_header_compiler
=no
15913 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15915 echo "${ECHO_T}$ac_header_compiler" >&6
15917 # Is the header present?
15918 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15919 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15920 cat >conftest.
$ac_ext <<_ACEOF
15923 cat confdefs.h
>>conftest.
$ac_ext
15924 cat >>conftest.
$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <sys/dg_sys_info.h>
15928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15931 grep -v '^ *+' conftest.er1
>conftest.err
15933 cat conftest.err
>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } >/dev
/null
; then
15936 if test -s conftest.err
; then
15937 ac_cpp_err
=$ac_c_preproc_warn_flag
15938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15945 if test -z "$ac_cpp_err"; then
15946 ac_header_preproc
=yes
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.
$ac_ext >&5
15951 ac_header_preproc
=no
15953 rm -f conftest.err conftest.
$ac_ext
15954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6
15957 # So? What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc
=yes
15967 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15981 ## ------------------------------------------ ##
15982 ## Report this to the AC_PACKAGE_NAME lists. ##
15983 ## ------------------------------------------ ##
15986 sed "s/^/$as_me: WARNING: /" >&2
15989 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15990 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15991 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15996 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15997 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16000 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16003 cat >>confdefs.h
<<\_ACEOF
16008 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16009 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16010 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 ac_check_lib_save_LIBS
=$LIBS
16015 cat >conftest.
$ac_ext <<_ACEOF
16018 cat confdefs.h
>>conftest.
$ac_ext
16019 cat >>conftest.
$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16022 /* Override any gcc2 internal prototype to avoid an error. */
16026 /* We use char because int might match the return type of a gcc2
16027 builtin and then its argument prototype would still apply. */
16028 char dg_sys_info ();
16037 rm -f conftest.
$ac_objext conftest
$ac_exeext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039 (eval $ac_link) 2>conftest.er1
16041 grep -v '^ *+' conftest.er1
>conftest.err
16043 cat conftest.err
>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try
='test -z "$ac_c_werror_flag"
16047 || test ! -s conftest.err'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try
='test -s conftest$ac_exeext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_cv_lib_dgc_dg_sys_info
=yes
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.
$ac_ext >&5
16064 ac_cv_lib_dgc_dg_sys_info
=no
16066 rm -f conftest.err conftest.
$ac_objext \
16067 conftest
$ac_exeext conftest.
$ac_ext
16068 LIBS
=$ac_check_lib_save_LIBS
16070 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16071 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16072 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16073 cat >>confdefs.h
<<_ACEOF
16074 #define HAVE_LIBDGC 1
16085 if test "${ac_cv_header_locale_h+set}" = set; then
16086 echo "$as_me:$LINENO: checking for locale.h" >&5
16087 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16088 if test "${ac_cv_header_locale_h+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16092 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16094 # Is the header compilable?
16095 echo "$as_me:$LINENO: checking locale.h usability" >&5
16096 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16097 cat >conftest.
$ac_ext <<_ACEOF
16100 cat confdefs.h
>>conftest.
$ac_ext
16101 cat >>conftest.
$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 #include <locale.h>
16106 rm -f conftest.
$ac_objext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16108 (eval $ac_compile) 2>conftest.er1
16110 grep -v '^ *+' conftest.er1
>conftest.err
16112 cat conftest.err
>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try
='test -z "$ac_c_werror_flag"
16116 || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try
='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_header_compiler
=yes
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.
$ac_ext >&5
16133 ac_header_compiler
=no
16135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16137 echo "${ECHO_T}$ac_header_compiler" >&6
16139 # Is the header present?
16140 echo "$as_me:$LINENO: checking locale.h presence" >&5
16141 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16142 cat >conftest.
$ac_ext <<_ACEOF
16145 cat confdefs.h
>>conftest.
$ac_ext
16146 cat >>conftest.
$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <locale.h>
16150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16153 grep -v '^ *+' conftest.er1
>conftest.err
16155 cat conftest.err
>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } >/dev
/null
; then
16158 if test -s conftest.err
; then
16159 ac_cpp_err
=$ac_c_preproc_warn_flag
16160 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16167 if test -z "$ac_cpp_err"; then
16168 ac_header_preproc
=yes
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.
$ac_ext >&5
16173 ac_header_preproc
=no
16175 rm -f conftest.err conftest.
$ac_ext
16176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16177 echo "${ECHO_T}$ac_header_preproc" >&6
16179 # So? What about this header?
16180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16182 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16183 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16185 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16186 ac_header_preproc
=yes
16189 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16190 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16192 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16194 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16195 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16196 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16197 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16198 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16200 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16203 ## ------------------------------------------ ##
16204 ## Report this to the AC_PACKAGE_NAME lists. ##
16205 ## ------------------------------------------ ##
16208 sed "s/^/$as_me: WARNING: /" >&2
16211 echo "$as_me:$LINENO: checking for locale.h" >&5
16212 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16213 if test "${ac_cv_header_locale_h+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 ac_cv_header_locale_h
=$ac_header_preproc
16218 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16219 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16225 for ac_func
in setlocale
16227 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16228 echo "$as_me:$LINENO: checking for $ac_func" >&5
16229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16230 if eval "test \"\${$as_ac_var+set}\" = set"; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 cat >conftest.
$ac_ext <<_ACEOF
16236 cat confdefs.h
>>conftest.
$ac_ext
16237 cat >>conftest.
$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16241 #define $ac_func innocuous_$ac_func
16243 /* System header to define __stub macros and hopefully few prototypes,
16244 which can conflict with char $ac_func (); below.
16245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16246 <limits.h> exists even on freestanding compilers. */
16249 # include <limits.h>
16251 # include <assert.h>
16256 /* Override any gcc2 internal prototype to avoid an error. */
16261 /* We use char because int might match the return type of a gcc2
16262 builtin and then its argument prototype would still apply. */
16264 /* The GNU C library defines this for functions which it implements
16265 to always fail with ENOSYS. Some functions are actually named
16266 something starting with __ and the normal name is an alias. */
16267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16270 char (*f) () = $ac_func;
16279 return f != $ac_func;
16284 rm -f conftest.
$ac_objext conftest
$ac_exeext
16285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16286 (eval $ac_link) 2>conftest.er1
16288 grep -v '^ *+' conftest.er1
>conftest.err
16290 cat conftest.err
>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try
='test -z "$ac_c_werror_flag"
16294 || test ! -s conftest.err'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; } &&
16300 { ac_try
='test -s conftest$ac_exeext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 eval "$as_ac_var=yes"
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.
$ac_ext >&5
16311 eval "$as_ac_var=no"
16313 rm -f conftest.err conftest.
$ac_objext \
16314 conftest
$ac_exeext conftest.
$ac_ext
16316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16318 if test `eval echo '${'$as_ac_var'}'` = yes; then
16319 cat >>confdefs.h
<<_ACEOF
16320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16327 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16328 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16329 # Irix 4.0.5F has the header but not the library.
16330 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16333 cat >>confdefs.h
<<\_ACEOF
16339 if test $ac_have_func = no
; then
16340 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16341 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16342 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16343 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16347 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16349 # Is the header compilable?
16350 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16351 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16352 cat >conftest.
$ac_ext <<_ACEOF
16355 cat confdefs.h
>>conftest.
$ac_ext
16356 cat >>conftest.
$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 $ac_includes_default
16359 #include <inq_stats/cpustats.h>
16361 rm -f conftest.
$ac_objext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16363 (eval $ac_compile) 2>conftest.er1
16365 grep -v '^ *+' conftest.er1
>conftest.err
16367 cat conftest.err
>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try
='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try
='test -s conftest.$ac_objext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ac_header_compiler
=yes
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.
$ac_ext >&5
16388 ac_header_compiler
=no
16390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16392 echo "${ECHO_T}$ac_header_compiler" >&6
16394 # Is the header present?
16395 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16396 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16397 cat >conftest.
$ac_ext <<_ACEOF
16400 cat confdefs.h
>>conftest.
$ac_ext
16401 cat >>conftest.
$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <inq_stats/cpustats.h>
16405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16406 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16408 grep -v '^ *+' conftest.er1
>conftest.err
16410 cat conftest.err
>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } >/dev
/null
; then
16413 if test -s conftest.err
; then
16414 ac_cpp_err
=$ac_c_preproc_warn_flag
16415 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16422 if test -z "$ac_cpp_err"; then
16423 ac_header_preproc
=yes
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.
$ac_ext >&5
16428 ac_header_preproc
=no
16430 rm -f conftest.err conftest.
$ac_ext
16431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16432 echo "${ECHO_T}$ac_header_preproc" >&6
16434 # So? What about this header?
16435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16437 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16438 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16440 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16441 ac_header_preproc
=yes
16444 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16445 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16447 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16449 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16451 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16453 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16455 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16458 ## ------------------------------------------ ##
16459 ## Report this to the AC_PACKAGE_NAME lists. ##
16460 ## ------------------------------------------ ##
16463 sed "s/^/$as_me: WARNING: /" >&2
16466 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16467 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16468 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16473 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16474 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16477 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16480 cat >>confdefs.h
<<\_ACEOF
16485 cat >>confdefs.h
<<\_ACEOF
16494 if test $ac_have_func = no
; then
16495 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16496 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16497 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16498 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16502 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16504 # Is the header compilable?
16505 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16506 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16507 cat >conftest.
$ac_ext <<_ACEOF
16510 cat confdefs.h
>>conftest.
$ac_ext
16511 cat >>conftest.
$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 $ac_includes_default
16514 #include <sys/cpustats.h>
16516 rm -f conftest.
$ac_objext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518 (eval $ac_compile) 2>conftest.er1
16520 grep -v '^ *+' conftest.er1
>conftest.err
16522 cat conftest.err
>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try
='test -z "$ac_c_werror_flag"
16526 || test ! -s conftest.err'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try
='test -s conftest.$ac_objext'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_header_compiler
=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.
$ac_ext >&5
16543 ac_header_compiler
=no
16545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16547 echo "${ECHO_T}$ac_header_compiler" >&6
16549 # Is the header present?
16550 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16551 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16552 cat >conftest.
$ac_ext <<_ACEOF
16555 cat confdefs.h
>>conftest.
$ac_ext
16556 cat >>conftest.
$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 #include <sys/cpustats.h>
16560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16563 grep -v '^ *+' conftest.er1
>conftest.err
16565 cat conftest.err
>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } >/dev
/null
; then
16568 if test -s conftest.err
; then
16569 ac_cpp_err
=$ac_c_preproc_warn_flag
16570 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16577 if test -z "$ac_cpp_err"; then
16578 ac_header_preproc
=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.
$ac_ext >&5
16583 ac_header_preproc
=no
16585 rm -f conftest.err conftest.
$ac_ext
16586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16587 echo "${ECHO_T}$ac_header_preproc" >&6
16589 # So? What about this header?
16590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16592 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16593 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16595 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16596 ac_header_preproc
=yes
16599 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16600 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16602 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16604 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16606 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16608 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16610 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16613 ## ------------------------------------------ ##
16614 ## Report this to the AC_PACKAGE_NAME lists. ##
16615 ## ------------------------------------------ ##
16618 sed "s/^/$as_me: WARNING: /" >&2
16621 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16622 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16623 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16628 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16629 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16632 if test $ac_cv_header_sys_cpustats_h = yes; then
16633 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16642 if test $ac_have_func = no
; then
16644 for ac_header
in mach
/mach.h
16646 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16656 # Is the header compilable?
16657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16659 cat >conftest.
$ac_ext <<_ACEOF
16662 cat confdefs.h
>>conftest.
$ac_ext
16663 cat >>conftest.
$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16665 $ac_includes_default
16666 #include <$ac_header>
16668 rm -f conftest.
$ac_objext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16670 (eval $ac_compile) 2>conftest.er1
16672 grep -v '^ *+' conftest.er1
>conftest.err
16674 cat conftest.err
>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try
='test -z "$ac_c_werror_flag"
16678 || test ! -s conftest.err'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } &&
16684 { ac_try
='test -s conftest.$ac_objext'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_header_compiler
=yes
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.
$ac_ext >&5
16695 ac_header_compiler
=no
16697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16699 echo "${ECHO_T}$ac_header_compiler" >&6
16701 # Is the header present?
16702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16704 cat >conftest.
$ac_ext <<_ACEOF
16707 cat confdefs.h
>>conftest.
$ac_ext
16708 cat >>conftest.
$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 #include <$ac_header>
16712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16713 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16715 grep -v '^ *+' conftest.er1
>conftest.err
16717 cat conftest.err
>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } >/dev
/null
; then
16720 if test -s conftest.err
; then
16721 ac_cpp_err
=$ac_c_preproc_warn_flag
16722 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16729 if test -z "$ac_cpp_err"; then
16730 ac_header_preproc
=yes
16732 echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.
$ac_ext >&5
16735 ac_header_preproc
=no
16737 rm -f conftest.err conftest.
$ac_ext
16738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16739 echo "${ECHO_T}$ac_header_preproc" >&6
16741 # So? What about this header?
16742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16748 ac_header_preproc
=yes
16751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16765 ## ------------------------------------------ ##
16766 ## Report this to the AC_PACKAGE_NAME lists. ##
16767 ## ------------------------------------------ ##
16770 sed "s/^/$as_me: WARNING: /" >&2
16773 echo "$as_me:$LINENO: checking for $ac_header" >&5
16774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 eval "$as_ac_Header=\$ac_header_preproc"
16780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16785 cat >>confdefs.h
<<_ACEOF
16786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16796 for ac_header
in nlist.h
16798 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16800 echo "$as_me:$LINENO: checking for $ac_header" >&5
16801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16808 # Is the header compilable?
16809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16811 cat >conftest.
$ac_ext <<_ACEOF
16814 cat confdefs.h
>>conftest.
$ac_ext
16815 cat >>conftest.
$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 $ac_includes_default
16818 #include <$ac_header>
16820 rm -f conftest.
$ac_objext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822 (eval $ac_compile) 2>conftest.er1
16824 grep -v '^ *+' conftest.er1
>conftest.err
16826 cat conftest.err
>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try
='test -z "$ac_c_werror_flag"
16830 || test ! -s conftest.err'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; } &&
16836 { ac_try
='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 ac_header_compiler
=yes
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.
$ac_ext >&5
16847 ac_header_compiler
=no
16849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851 echo "${ECHO_T}$ac_header_compiler" >&6
16853 # Is the header present?
16854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16856 cat >conftest.
$ac_ext <<_ACEOF
16859 cat confdefs.h
>>conftest.
$ac_ext
16860 cat >>conftest.
$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #include <$ac_header>
16864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16867 grep -v '^ *+' conftest.er1
>conftest.err
16869 cat conftest.err
>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } >/dev
/null
; then
16872 if test -s conftest.err
; then
16873 ac_cpp_err
=$ac_c_preproc_warn_flag
16874 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16881 if test -z "$ac_cpp_err"; then
16882 ac_header_preproc
=yes
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.
$ac_ext >&5
16887 ac_header_preproc
=no
16889 rm -f conftest.err conftest.
$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16891 echo "${ECHO_T}$ac_header_preproc" >&6
16893 # So? What about this header?
16894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16900 ac_header_preproc
=yes
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16917 ## ------------------------------------------ ##
16918 ## Report this to the AC_PACKAGE_NAME lists. ##
16919 ## ------------------------------------------ ##
16922 sed "s/^/$as_me: WARNING: /" >&2
16925 echo "$as_me:$LINENO: checking for $ac_header" >&5
16926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 eval "$as_ac_Header=\$ac_header_preproc"
16932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16937 cat >>confdefs.h
<<_ACEOF
16938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16940 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16941 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16942 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16945 cat >conftest.
$ac_ext <<_ACEOF
16948 cat confdefs.h
>>conftest.
$ac_ext
16949 cat >>conftest.
$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16956 static struct nlist ac_aggr;
16957 if (ac_aggr.n_un.n_name)
16963 rm -f conftest.
$ac_objext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16965 (eval $ac_compile) 2>conftest.er1
16967 grep -v '^ *+' conftest.er1
>conftest.err
16969 cat conftest.err
>&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } &&
16972 { ac_try
='test -z "$ac_c_werror_flag"
16973 || test ! -s conftest.err'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; } &&
16979 { ac_try
='test -s conftest.$ac_objext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_member_struct_nlist_n_un_n_name
=yes
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.
$ac_ext >&5
16990 cat >conftest.
$ac_ext <<_ACEOF
16993 cat confdefs.h
>>conftest.
$ac_ext
16994 cat >>conftest.
$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
17001 static struct nlist ac_aggr;
17002 if (sizeof ac_aggr.n_un.n_name)
17008 rm -f conftest.
$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010 (eval $ac_compile) 2>conftest.er1
17012 grep -v '^ *+' conftest.er1
>conftest.err
17014 cat conftest.err
>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try
='test -z "$ac_c_werror_flag"
17018 || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try
='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_cv_member_struct_nlist_n_un_n_name
=yes
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.
$ac_ext >&5
17035 ac_cv_member_struct_nlist_n_un_n_name
=no
17037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17041 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17042 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17043 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17045 cat >>confdefs.h
<<_ACEOF
17046 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17050 cat >>confdefs.h
<<\_ACEOF
17051 #define NLIST_NAME_UNION 1
17065 # Some definitions of getloadavg require that the program be installed setgid.
17066 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17067 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17068 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 cat >conftest.
$ac_ext <<_ACEOF
17074 cat confdefs.h
>>conftest.
$ac_ext
17075 cat >>conftest.
$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17078 #ifdef LDAV_PRIVILEGED
17079 Yowza Am I SETGID yet
17082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17083 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17084 ac_cv_func_getloadavg_setgid
=yes
17086 ac_cv_func_getloadavg_setgid
=no
17091 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17092 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17093 if test $ac_cv_func_getloadavg_setgid = yes; then
17096 cat >>confdefs.h
<<\_ACEOF
17097 #define GETLOADAVG_PRIVILEGED 1
17104 if test $ac_cv_func_getloadavg_setgid = yes; then
17105 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17106 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17107 if test "${ac_cv_group_kmem+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17111 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17112 # If we got an error (system does not support symlinks), try without -L.
17113 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17114 ac_cv_group_kmem
=`echo $ac_ls_output \
17115 | sed -ne 's/[ ][ ]*/ /g;
17116 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17120 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17121 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17122 KMEM_GROUP
=$ac_cv_group_kmem
17124 if test "x$ac_save_LIBS" = x
; then
17125 GETLOADAVG_LIBS
=$LIBS
17127 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17133 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17134 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17135 if test "${ac_cv_sys_largefile_source+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 ac_cv_sys_largefile_source
=no
17140 cat >conftest.
$ac_ext <<_ACEOF
17143 cat confdefs.h
>>conftest.
$ac_ext
17144 cat >>conftest.
$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17155 rm -f conftest.
$ac_objext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>conftest.er1
17159 grep -v '^ *+' conftest.er1
>conftest.err
17161 cat conftest.err
>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try
='test -z "$ac_c_werror_flag"
17165 || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try
='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.
$ac_ext >&5
17183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17184 cat >conftest.
$ac_ext <<_ACEOF
17187 cat confdefs.h
>>conftest.
$ac_ext
17188 cat >>conftest.
$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 #define _LARGEFILE_SOURCE 1
17200 rm -f conftest.
$ac_objext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17202 (eval $ac_compile) 2>conftest.er1
17204 grep -v '^ *+' conftest.er1
>conftest.err
17206 cat conftest.err
>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try
='test -z "$ac_c_werror_flag"
17210 || test ! -s conftest.err'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try
='test -s conftest.$ac_objext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_cv_sys_largefile_source
=1; break
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.
$ac_ext >&5
17228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17232 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17233 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17234 if test "$ac_cv_sys_largefile_source" != no
; then
17236 cat >>confdefs.h
<<_ACEOF
17237 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17243 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17244 # in glibc 2.1.3, but that breaks too many other things.
17245 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17246 echo "$as_me:$LINENO: checking for fseeko" >&5
17247 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17248 if test "${ac_cv_func_fseeko+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.
$ac_ext <<_ACEOF
17254 cat confdefs.h
>>conftest.
$ac_ext
17255 cat >>conftest.
$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17261 return fseeko && fseeko (stdin, 0, 0);
17266 rm -f conftest.
$ac_objext conftest
$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>conftest.er1
17270 grep -v '^ *+' conftest.er1
>conftest.err
17272 cat conftest.err
>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try
='test -z "$ac_c_werror_flag"
17276 || test ! -s conftest.err'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try
='test -s conftest$ac_exeext'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_cv_func_fseeko
=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.
$ac_ext >&5
17293 ac_cv_func_fseeko
=no
17295 rm -f conftest.err conftest.
$ac_objext \
17296 conftest
$ac_exeext conftest.
$ac_ext
17298 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17299 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17300 if test $ac_cv_func_fseeko = yes; then
17302 cat >>confdefs.h
<<\_ACEOF
17303 #define HAVE_FSEEKO 1
17309 # Configure getopt.
17310 # getopt.m4 serial 10
17312 # The getopt module assume you want GNU getopt, with getopt_long etc,
17313 # rather than vanilla POSIX getopt. This means your your code should
17314 # always include <getopt.h> for the getopt prototypes.
17326 # Prerequisites of lib/getopt*.
17333 for ac_header
in getopt.h
17335 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17337 echo "$as_me:$LINENO: checking for $ac_header" >&5
17338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17345 # Is the header compilable?
17346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17348 cat >conftest.
$ac_ext <<_ACEOF
17351 cat confdefs.h
>>conftest.
$ac_ext
17352 cat >>conftest.
$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 $ac_includes_default
17355 #include <$ac_header>
17357 rm -f conftest.
$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359 (eval $ac_compile) 2>conftest.er1
17361 grep -v '^ *+' conftest.er1
>conftest.err
17363 cat conftest.err
>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try
='test -z "$ac_c_werror_flag"
17367 || test ! -s conftest.err'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try
='test -s conftest.$ac_objext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_header_compiler
=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.
$ac_ext >&5
17384 ac_header_compiler
=no
17386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17388 echo "${ECHO_T}$ac_header_compiler" >&6
17390 # Is the header present?
17391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17393 cat >conftest.
$ac_ext <<_ACEOF
17396 cat confdefs.h
>>conftest.
$ac_ext
17397 cat >>conftest.
$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 #include <$ac_header>
17401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17404 grep -v '^ *+' conftest.er1
>conftest.err
17406 cat conftest.err
>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } >/dev
/null
; then
17409 if test -s conftest.err
; then
17410 ac_cpp_err
=$ac_c_preproc_warn_flag
17411 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17418 if test -z "$ac_cpp_err"; then
17419 ac_header_preproc
=yes
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.
$ac_ext >&5
17424 ac_header_preproc
=no
17426 rm -f conftest.err conftest.
$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17428 echo "${ECHO_T}$ac_header_preproc" >&6
17430 # So? What about this header?
17431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17437 ac_header_preproc
=yes
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17454 ## ------------------------------------------ ##
17455 ## Report this to the AC_PACKAGE_NAME lists. ##
17456 ## ------------------------------------------ ##
17459 sed "s/^/$as_me: WARNING: /" >&2
17462 echo "$as_me:$LINENO: checking for $ac_header" >&5
17463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 eval "$as_ac_Header=\$ac_header_preproc"
17469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17474 cat >>confdefs.h
<<_ACEOF
17475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17484 if test -z "$GETOPT_H"; then
17486 for ac_func
in getopt_long_only
17488 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17489 echo "$as_me:$LINENO: checking for $ac_func" >&5
17490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17491 if eval "test \"\${$as_ac_var+set}\" = set"; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17494 cat >conftest.
$ac_ext <<_ACEOF
17497 cat confdefs.h
>>conftest.
$ac_ext
17498 cat >>conftest.
$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17502 #define $ac_func innocuous_$ac_func
17504 /* System header to define __stub macros and hopefully few prototypes,
17505 which can conflict with char $ac_func (); below.
17506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17507 <limits.h> exists even on freestanding compilers. */
17510 # include <limits.h>
17512 # include <assert.h>
17517 /* Override any gcc2 internal prototype to avoid an error. */
17522 /* We use char because int might match the return type of a gcc2
17523 builtin and then its argument prototype would still apply. */
17525 /* The GNU C library defines this for functions which it implements
17526 to always fail with ENOSYS. Some functions are actually named
17527 something starting with __ and the normal name is an alias. */
17528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17531 char (*f) () = $ac_func;
17540 return f != $ac_func;
17545 rm -f conftest.
$ac_objext conftest
$ac_exeext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>conftest.er1
17549 grep -v '^ *+' conftest.er1
>conftest.err
17551 cat conftest.err
>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try
='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try
='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 eval "$as_ac_var=yes"
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.
$ac_ext >&5
17572 eval "$as_ac_var=no"
17574 rm -f conftest.err conftest.
$ac_objext \
17575 conftest
$ac_exeext conftest.
$ac_ext
17577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17579 if test `eval echo '${'$as_ac_var'}'` = yes; then
17580 cat >>confdefs.h
<<_ACEOF
17581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17591 if test -z "$GETOPT_H"; then
17592 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17593 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17594 if test "${ac_cv_have_decl_optreset+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 cat >conftest.
$ac_ext <<_ACEOF
17600 cat confdefs.h
>>conftest.
$ac_ext
17601 cat >>conftest.
$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 #include <getopt.h>
17609 char *p = (char *) optreset;
17616 rm -f conftest.
$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>conftest.er1
17620 grep -v '^ *+' conftest.er1
>conftest.err
17622 cat conftest.err
>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try
='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try
='test -s conftest.$ac_objext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_have_decl_optreset
=yes
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.
$ac_ext >&5
17643 ac_cv_have_decl_optreset
=no
17645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17647 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17648 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17649 if test $ac_cv_have_decl_optreset = yes; then
17655 if test -z "$GETOPT_H"; then
17656 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17657 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17658 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 if test "$cross_compiling" = yes; then
17662 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17663 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17664 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 cat >conftest.
$ac_ext <<_ACEOF
17670 cat confdefs.h
>>conftest.
$ac_ext
17671 cat >>conftest.
$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 #include <getopt.h>
17678 #ifndef getopt_clip
17679 char *p = (char *) getopt_clip;
17686 rm -f conftest.
$ac_objext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17688 (eval $ac_compile) 2>conftest.er1
17690 grep -v '^ *+' conftest.er1
>conftest.err
17692 cat conftest.err
>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try
='test -z "$ac_c_werror_flag"
17696 || test ! -s conftest.err'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try
='test -s conftest.$ac_objext'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_cv_have_decl_getopt_clip
=yes
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.
$ac_ext >&5
17713 ac_cv_have_decl_getopt_clip
=no
17715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17717 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17718 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17719 if test $ac_cv_have_decl_getopt_clip = yes; then
17720 gl_cv_func_gnu_getopt
=no
17722 gl_cv_func_gnu_getopt
=yes
17726 cat >conftest.
$ac_ext <<_ACEOF
17729 cat confdefs.h
>>conftest.
$ac_ext
17730 cat >>conftest.
$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 #include <getopt.h>
17738 myargv[0] = "conftest";
17741 return getopt (2, myargv, "+a") != '?';
17747 rm -f conftest
$ac_exeext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749 (eval $ac_link) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 gl_cv_func_gnu_getopt
=yes
17760 echo "$as_me: program exited with status $ac_status" >&5
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.
$ac_ext >&5
17764 ( exit $ac_status )
17765 gl_cv_func_gnu_getopt
=no
17767 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17770 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17771 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17772 if test "$gl_cv_func_gnu_getopt" = "no"; then
17779 if test -n "$GETOPT_H"; then
17784 cat >>confdefs.h
<<\_ACEOF
17785 #define __GETOPT_PREFIX rpl_
17791 GETOPTOBJS
='getopt.o getopt1.o'
17798 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17799 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17800 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 # Use it with a single arg.
17804 cat >conftest.
$ac_ext <<_ACEOF
17807 cat confdefs.h
>>conftest.
$ac_ext
17808 cat >>conftest.
$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 $ac_includes_default
17819 rm -f conftest.
$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17823 grep -v '^ *+' conftest.er1
>conftest.err
17825 cat conftest.err
>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try
='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try
='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_func_getpgrp_void
=no
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.
$ac_ext >&5
17846 ac_cv_func_getpgrp_void
=yes
17848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17851 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17852 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17853 if test $ac_cv_func_getpgrp_void = yes; then
17855 cat >>confdefs.h
<<\_ACEOF
17856 #define GETPGRP_VOID 1
17863 for ac_func
in strftime
17865 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17866 echo "$as_me:$LINENO: checking for $ac_func" >&5
17867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17868 if eval "test \"\${$as_ac_var+set}\" = set"; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 cat >conftest.
$ac_ext <<_ACEOF
17874 cat confdefs.h
>>conftest.
$ac_ext
17875 cat >>conftest.
$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17879 #define $ac_func innocuous_$ac_func
17881 /* System header to define __stub macros and hopefully few prototypes,
17882 which can conflict with char $ac_func (); below.
17883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17884 <limits.h> exists even on freestanding compilers. */
17887 # include <limits.h>
17889 # include <assert.h>
17894 /* Override any gcc2 internal prototype to avoid an error. */
17899 /* We use char because int might match the return type of a gcc2
17900 builtin and then its argument prototype would still apply. */
17902 /* The GNU C library defines this for functions which it implements
17903 to always fail with ENOSYS. Some functions are actually named
17904 something starting with __ and the normal name is an alias. */
17905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17908 char (*f) () = $ac_func;
17917 return f != $ac_func;
17922 rm -f conftest.
$ac_objext conftest
$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924 (eval $ac_link) 2>conftest.er1
17926 grep -v '^ *+' conftest.er1
>conftest.err
17928 cat conftest.err
>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try
='test -z "$ac_c_werror_flag"
17932 || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try
='test -s conftest$ac_exeext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 eval "$as_ac_var=yes"
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.
$ac_ext >&5
17949 eval "$as_ac_var=no"
17951 rm -f conftest.err conftest.
$ac_objext \
17952 conftest
$ac_exeext conftest.
$ac_ext
17954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17956 if test `eval echo '${'$as_ac_var'}'` = yes; then
17957 cat >>confdefs.h
<<_ACEOF
17958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17962 # strftime is in -lintl on SCO UNIX.
17963 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17964 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17965 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 ac_check_lib_save_LIBS
=$LIBS
17969 LIBS
="-lintl $LIBS"
17970 cat >conftest.
$ac_ext <<_ACEOF
17973 cat confdefs.h
>>conftest.
$ac_ext
17974 cat >>conftest.
$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17977 /* Override any gcc2 internal prototype to avoid an error. */
17981 /* We use char because int might match the return type of a gcc2
17982 builtin and then its argument prototype would still apply. */
17992 rm -f conftest.
$ac_objext conftest
$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17996 grep -v '^ *+' conftest.er1
>conftest.err
17998 cat conftest.err
>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try
='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try
='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_lib_intl_strftime
=yes
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.
$ac_ext >&5
18019 ac_cv_lib_intl_strftime
=no
18021 rm -f conftest.err conftest.
$ac_objext \
18022 conftest
$ac_exeext conftest.
$ac_ext
18023 LIBS
=$ac_check_lib_save_LIBS
18025 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18026 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18027 if test $ac_cv_lib_intl_strftime = yes; then
18028 cat >>confdefs.h
<<\_ACEOF
18029 #define HAVE_STRFTIME 1
18032 LIBS
="-lintl $LIBS"
18041 for ac_func
in grantpt
18043 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044 echo "$as_me:$LINENO: checking for $ac_func" >&5
18045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18046 if eval "test \"\${$as_ac_var+set}\" = set"; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 cat >conftest.
$ac_ext <<_ACEOF
18052 cat confdefs.h
>>conftest.
$ac_ext
18053 cat >>conftest.
$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18057 #define $ac_func innocuous_$ac_func
18059 /* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func (); below.
18061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062 <limits.h> exists even on freestanding compilers. */
18065 # include <limits.h>
18067 # include <assert.h>
18072 /* Override any gcc2 internal prototype to avoid an error. */
18077 /* We use char because int might match the return type of a gcc2
18078 builtin and then its argument prototype would still apply. */
18080 /* The GNU C library defines this for functions which it implements
18081 to always fail with ENOSYS. Some functions are actually named
18082 something starting with __ and the normal name is an alias. */
18083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18086 char (*f) () = $ac_func;
18095 return f != $ac_func;
18100 rm -f conftest.
$ac_objext conftest
$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102 (eval $ac_link) 2>conftest.er1
18104 grep -v '^ *+' conftest.er1
>conftest.err
18106 cat conftest.err
>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try
='test -z "$ac_c_werror_flag"
18110 || test ! -s conftest.err'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try
='test -s conftest$ac_exeext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 eval "$as_ac_var=yes"
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.
$ac_ext >&5
18127 eval "$as_ac_var=no"
18129 rm -f conftest.err conftest.
$ac_objext \
18130 conftest
$ac_exeext conftest.
$ac_ext
18132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18134 if test `eval echo '${'$as_ac_var'}'` = yes; then
18135 cat >>confdefs.h
<<_ACEOF
18136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18143 # PTY-related GNU extensions.
18145 for ac_func
in getpt
18147 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148 echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18150 if eval "test \"\${$as_ac_var+set}\" = set"; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 cat >conftest.
$ac_ext <<_ACEOF
18156 cat confdefs.h
>>conftest.
$ac_ext
18157 cat >>conftest.
$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18169 # include <limits.h>
18171 # include <assert.h>
18176 /* Override any gcc2 internal prototype to avoid an error. */
18181 /* We use char because int might match the return type of a gcc2
18182 builtin and then its argument prototype would still apply. */
18184 /* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18190 char (*f) () = $ac_func;
18199 return f != $ac_func;
18204 rm -f conftest.
$ac_objext conftest
$ac_exeext
18205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18206 (eval $ac_link) 2>conftest.er1
18208 grep -v '^ *+' conftest.er1
>conftest.err
18210 cat conftest.err
>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } &&
18213 { ac_try
='test -z "$ac_c_werror_flag"
18214 || test ! -s conftest.err'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try
='test -s conftest$ac_exeext'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226 eval "$as_ac_var=yes"
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.
$ac_ext >&5
18231 eval "$as_ac_var=no"
18233 rm -f conftest.err conftest.
$ac_objext \
18234 conftest
$ac_exeext conftest.
$ac_ext
18236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18238 if test `eval echo '${'$as_ac_var'}'` = yes; then
18239 cat >>confdefs.h
<<_ACEOF
18240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18247 # Check this now, so that we will NOT find the above functions in ncurses.
18248 # That is because we have not set up to link ncurses in lib-src.
18249 # It's better to believe a function is not available
18250 # than to expect to find it in ncurses.
18252 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18253 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18254 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18257 ac_check_lib_save_LIBS
=$LIBS
18258 LIBS
="-lncurses $LIBS"
18259 cat >conftest.
$ac_ext <<_ACEOF
18262 cat confdefs.h
>>conftest.
$ac_ext
18263 cat >>conftest.
$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18266 /* Override any gcc2 internal prototype to avoid an error. */
18270 /* We use char because int might match the return type of a gcc2
18271 builtin and then its argument prototype would still apply. */
18281 rm -f conftest.
$ac_objext conftest
$ac_exeext
18282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18283 (eval $ac_link) 2>conftest.er1
18285 grep -v '^ *+' conftest.er1
>conftest.err
18287 cat conftest.err
>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try
='test -z "$ac_c_werror_flag"
18291 || test ! -s conftest.err'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try
='test -s conftest$ac_exeext'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_cv_lib_ncurses_tparm
=yes
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.
$ac_ext >&5
18308 ac_cv_lib_ncurses_tparm
=no
18310 rm -f conftest.err conftest.
$ac_objext \
18311 conftest
$ac_exeext conftest.
$ac_ext
18312 LIBS
=$ac_check_lib_save_LIBS
18314 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18315 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18316 if test $ac_cv_lib_ncurses_tparm = yes; then
18317 cat >>confdefs.h
<<_ACEOF
18318 #define HAVE_LIBNCURSES 1
18321 LIBS
="-lncurses $LIBS"
18326 # Do we need the Hesiod library to provide the support routines?
18327 if test "$with_hesiod" = yes ; then
18328 # Don't set $LIBS here -- see comments above.
18330 echo "$as_me:$LINENO: checking for res_send" >&5
18331 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18332 if test "${ac_cv_func_res_send+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 cat >conftest.
$ac_ext <<_ACEOF
18338 cat confdefs.h
>>conftest.
$ac_ext
18339 cat >>conftest.
$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18341 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18343 #define res_send innocuous_res_send
18345 /* System header to define __stub macros and hopefully few prototypes,
18346 which can conflict with char res_send (); below.
18347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18348 <limits.h> exists even on freestanding compilers. */
18351 # include <limits.h>
18353 # include <assert.h>
18358 /* Override any gcc2 internal prototype to avoid an error. */
18363 /* We use char because int might match the return type of a gcc2
18364 builtin and then its argument prototype would still apply. */
18366 /* The GNU C library defines this for functions which it implements
18367 to always fail with ENOSYS. Some functions are actually named
18368 something starting with __ and the normal name is an alias. */
18369 #if defined (__stub_res_send) || defined (__stub___res_send)
18372 char (*f) () = res_send;
18381 return f != res_send;
18386 rm -f conftest.
$ac_objext conftest
$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>conftest.er1
18390 grep -v '^ *+' conftest.er1
>conftest.err
18392 cat conftest.err
>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try
='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try
='test -s conftest$ac_exeext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_func_res_send
=yes
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.
$ac_ext >&5
18413 ac_cv_func_res_send
=no
18415 rm -f conftest.err conftest.
$ac_objext \
18416 conftest
$ac_exeext conftest.
$ac_ext
18418 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18419 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18420 if test $ac_cv_func_res_send = yes; then
18423 echo "$as_me:$LINENO: checking for __res_send" >&5
18424 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18425 if test "${ac_cv_func___res_send+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 cat >conftest.
$ac_ext <<_ACEOF
18431 cat confdefs.h
>>conftest.
$ac_ext
18432 cat >>conftest.
$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18436 #define __res_send innocuous___res_send
18438 /* System header to define __stub macros and hopefully few prototypes,
18439 which can conflict with char __res_send (); below.
18440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18441 <limits.h> exists even on freestanding compilers. */
18444 # include <limits.h>
18446 # include <assert.h>
18451 /* Override any gcc2 internal prototype to avoid an error. */
18456 /* We use char because int might match the return type of a gcc2
18457 builtin and then its argument prototype would still apply. */
18458 char __res_send ();
18459 /* The GNU C library defines this for functions which it implements
18460 to always fail with ENOSYS. Some functions are actually named
18461 something starting with __ and the normal name is an alias. */
18462 #if defined (__stub___res_send) || defined (__stub_____res_send)
18465 char (*f) () = __res_send;
18474 return f != __res_send;
18479 rm -f conftest.
$ac_objext conftest
$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481 (eval $ac_link) 2>conftest.er1
18483 grep -v '^ *+' conftest.er1
>conftest.err
18485 cat conftest.err
>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
18488 { ac_try
='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try
='test -s conftest$ac_exeext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_func___res_send
=yes
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.
$ac_ext >&5
18506 ac_cv_func___res_send
=no
18508 rm -f conftest.err conftest.
$ac_objext \
18509 conftest
$ac_exeext conftest.
$ac_ext
18511 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18512 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18513 if test $ac_cv_func___res_send = yes; then
18516 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18517 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18518 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 ac_check_lib_save_LIBS
=$LIBS
18522 LIBS
="-lresolv $LIBS"
18523 cat >conftest.
$ac_ext <<_ACEOF
18526 cat confdefs.h
>>conftest.
$ac_ext
18527 cat >>conftest.
$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18530 /* Override any gcc2 internal prototype to avoid an error. */
18534 /* We use char because int might match the return type of a gcc2
18535 builtin and then its argument prototype would still apply. */
18545 rm -f conftest.
$ac_objext conftest
$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>conftest.er1
18549 grep -v '^ *+' conftest.er1
>conftest.err
18551 cat conftest.err
>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try
='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try
='test -s conftest$ac_exeext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_lib_resolv_res_send
=yes
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.
$ac_ext >&5
18572 ac_cv_lib_resolv_res_send
=no
18574 rm -f conftest.err conftest.
$ac_objext \
18575 conftest
$ac_exeext conftest.
$ac_ext
18576 LIBS
=$ac_check_lib_save_LIBS
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18579 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18580 if test $ac_cv_lib_resolv_res_send = yes; then
18583 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18584 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18585 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 ac_check_lib_save_LIBS
=$LIBS
18589 LIBS
="-lresolv $LIBS"
18590 cat >conftest.
$ac_ext <<_ACEOF
18593 cat confdefs.h
>>conftest.
$ac_ext
18594 cat >>conftest.
$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any gcc2 internal prototype to avoid an error. */
18601 /* We use char because int might match the return type of a gcc2
18602 builtin and then its argument prototype would still apply. */
18603 char __res_send ();
18612 rm -f conftest.
$ac_objext conftest
$ac_exeext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614 (eval $ac_link) 2>conftest.er1
18616 grep -v '^ *+' conftest.er1
>conftest.err
18618 cat conftest.err
>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try
='test -z "$ac_c_werror_flag"
18622 || test ! -s conftest.err'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; } &&
18628 { ac_try
='test -s conftest$ac_exeext'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_cv_lib_resolv___res_send
=yes
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.
$ac_ext >&5
18639 ac_cv_lib_resolv___res_send
=no
18641 rm -f conftest.err conftest.
$ac_objext \
18642 conftest
$ac_exeext conftest.
$ac_ext
18643 LIBS
=$ac_check_lib_save_LIBS
18645 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18646 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18647 if test $ac_cv_lib_resolv___res_send = yes; then
18657 if test "$resolv" = yes ; then
18660 cat >>confdefs.h
<<\_ACEOF
18661 #define HAVE_LIBRESOLV 1
18667 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18668 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18669 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 cat >conftest.
$ac_ext <<_ACEOF
18675 cat confdefs.h
>>conftest.
$ac_ext
18676 cat >>conftest.
$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18680 #define hes_getmailhost innocuous_hes_getmailhost
18682 /* System header to define __stub macros and hopefully few prototypes,
18683 which can conflict with char hes_getmailhost (); below.
18684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18685 <limits.h> exists even on freestanding compilers. */
18688 # include <limits.h>
18690 # include <assert.h>
18693 #undef hes_getmailhost
18695 /* Override any gcc2 internal prototype to avoid an error. */
18700 /* We use char because int might match the return type of a gcc2
18701 builtin and then its argument prototype would still apply. */
18702 char hes_getmailhost ();
18703 /* The GNU C library defines this for functions which it implements
18704 to always fail with ENOSYS. Some functions are actually named
18705 something starting with __ and the normal name is an alias. */
18706 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18709 char (*f) () = hes_getmailhost;
18718 return f != hes_getmailhost;
18723 rm -f conftest.
$ac_objext conftest
$ac_exeext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>conftest.er1
18727 grep -v '^ *+' conftest.er1
>conftest.err
18729 cat conftest.err
>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try
='test -z "$ac_c_werror_flag"
18733 || test ! -s conftest.err'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; } &&
18739 { ac_try
='test -s conftest$ac_exeext'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
18745 ac_cv_func_hes_getmailhost
=yes
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.
$ac_ext >&5
18750 ac_cv_func_hes_getmailhost
=no
18752 rm -f conftest.err conftest.
$ac_objext \
18753 conftest
$ac_exeext conftest.
$ac_ext
18755 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18756 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18757 if test $ac_cv_func_hes_getmailhost = yes; then
18760 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18761 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18762 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 ac_check_lib_save_LIBS
=$LIBS
18766 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18767 cat >conftest.
$ac_ext <<_ACEOF
18770 cat confdefs.h
>>conftest.
$ac_ext
18771 cat >>conftest.
$ac_ext <<_ACEOF
18772 /* end confdefs.h. */
18774 /* Override any gcc2 internal prototype to avoid an error. */
18778 /* We use char because int might match the return type of a gcc2
18779 builtin and then its argument prototype would still apply. */
18780 char hes_getmailhost ();
18784 hes_getmailhost ();
18789 rm -f conftest.
$ac_objext conftest
$ac_exeext
18790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18791 (eval $ac_link) 2>conftest.er1
18793 grep -v '^ *+' conftest.er1
>conftest.err
18795 cat conftest.err
>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try
='test -z "$ac_c_werror_flag"
18799 || test ! -s conftest.err'
18800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18801 (eval $ac_try) 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; } &&
18805 { ac_try
='test -s conftest$ac_exeext'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_lib_hesiod_hes_getmailhost
=yes
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.
$ac_ext >&5
18816 ac_cv_lib_hesiod_hes_getmailhost
=no
18818 rm -f conftest.err conftest.
$ac_objext \
18819 conftest
$ac_exeext conftest.
$ac_ext
18820 LIBS
=$ac_check_lib_save_LIBS
18822 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18823 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18824 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18826 cat >>confdefs.h
<<\_ACEOF
18827 #define HAVE_LIBHESIOD 1
18838 # These tell us which Kerberos-related libraries to use.
18839 if test "${with_kerberos+set}" = set; then
18841 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18842 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18843 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 ac_check_lib_save_LIBS
=$LIBS
18847 LIBS
="-lcom_err $LIBS"
18848 cat >conftest.
$ac_ext <<_ACEOF
18851 cat confdefs.h
>>conftest.
$ac_ext
18852 cat >>conftest.
$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18855 /* Override any gcc2 internal prototype to avoid an error. */
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18870 rm -f conftest.
$ac_objext conftest
$ac_exeext
18871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872 (eval $ac_link) 2>conftest.er1
18874 grep -v '^ *+' conftest.er1
>conftest.err
18876 cat conftest.err
>&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try
='test -z "$ac_c_werror_flag"
18880 || test ! -s conftest.err'
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try
='test -s conftest$ac_exeext'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_lib_com_err_com_err
=yes
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.
$ac_ext >&5
18897 ac_cv_lib_com_err_com_err
=no
18899 rm -f conftest.err conftest.
$ac_objext \
18900 conftest
$ac_exeext conftest.
$ac_ext
18901 LIBS
=$ac_check_lib_save_LIBS
18903 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18904 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18905 if test $ac_cv_lib_com_err_com_err = yes; then
18906 cat >>confdefs.h
<<_ACEOF
18907 #define HAVE_LIBCOM_ERR 1
18910 LIBS
="-lcom_err $LIBS"
18915 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18916 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18917 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 ac_check_lib_save_LIBS
=$LIBS
18921 LIBS
="-lk5crypto $LIBS"
18922 cat >conftest.
$ac_ext <<_ACEOF
18925 cat confdefs.h
>>conftest.
$ac_ext
18926 cat >>conftest.
$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18929 /* Override any gcc2 internal prototype to avoid an error. */
18933 /* We use char because int might match the return type of a gcc2
18934 builtin and then its argument prototype would still apply. */
18935 char mit_des_cbc_encrypt ();
18939 mit_des_cbc_encrypt ();
18944 rm -f conftest.
$ac_objext conftest
$ac_exeext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18946 (eval $ac_link) 2>conftest.er1
18948 grep -v '^ *+' conftest.er1
>conftest.err
18950 cat conftest.err
>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try
='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try
='test -s conftest$ac_exeext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.
$ac_ext >&5
18971 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18973 rm -f conftest.err conftest.
$ac_objext \
18974 conftest
$ac_exeext conftest.
$ac_ext
18975 LIBS
=$ac_check_lib_save_LIBS
18977 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18978 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18979 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18980 cat >>confdefs.h
<<_ACEOF
18981 #define HAVE_LIBK5CRYPTO 1
18984 LIBS
="-lk5crypto $LIBS"
18989 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18990 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18991 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 ac_check_lib_save_LIBS
=$LIBS
18995 LIBS
="-lcrypto $LIBS"
18996 cat >conftest.
$ac_ext <<_ACEOF
18999 cat confdefs.h
>>conftest.
$ac_ext
19000 cat >>conftest.
$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19003 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19009 char mit_des_cbc_encrypt ();
19013 mit_des_cbc_encrypt ();
19018 rm -f conftest.
$ac_objext conftest
$ac_exeext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020 (eval $ac_link) 2>conftest.er1
19022 grep -v '^ *+' conftest.er1
>conftest.err
19024 cat conftest.err
>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try
='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try
='test -s conftest$ac_exeext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.
$ac_ext >&5
19045 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19047 rm -f conftest.err conftest.
$ac_objext \
19048 conftest
$ac_exeext conftest.
$ac_ext
19049 LIBS
=$ac_check_lib_save_LIBS
19051 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19052 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19053 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19054 cat >>confdefs.h
<<_ACEOF
19055 #define HAVE_LIBCRYPTO 1
19058 LIBS
="-lcrypto $LIBS"
19063 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19064 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19065 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 ac_check_lib_save_LIBS
=$LIBS
19069 LIBS
="-lkrb5 $LIBS"
19070 cat >conftest.
$ac_ext <<_ACEOF
19073 cat confdefs.h
>>conftest.
$ac_ext
19074 cat >>conftest.
$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19077 /* Override any gcc2 internal prototype to avoid an error. */
19081 /* We use char because int might match the return type of a gcc2
19082 builtin and then its argument prototype would still apply. */
19083 char krb5_init_context ();
19087 krb5_init_context ();
19092 rm -f conftest.
$ac_objext conftest
$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094 (eval $ac_link) 2>conftest.er1
19096 grep -v '^ *+' conftest.er1
>conftest.err
19098 cat conftest.err
>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
19101 { ac_try
='test -z "$ac_c_werror_flag"
19102 || test ! -s conftest.err'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try
='test -s conftest$ac_exeext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_lib_krb5_krb5_init_context
=yes
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.
$ac_ext >&5
19119 ac_cv_lib_krb5_krb5_init_context
=no
19121 rm -f conftest.err conftest.
$ac_objext \
19122 conftest
$ac_exeext conftest.
$ac_ext
19123 LIBS
=$ac_check_lib_save_LIBS
19125 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19126 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19127 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19128 cat >>confdefs.h
<<_ACEOF
19129 #define HAVE_LIBKRB5 1
19132 LIBS
="-lkrb5 $LIBS"
19136 if test "${with_kerberos5+set}" != set; then
19138 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19139 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19140 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 ac_check_lib_save_LIBS
=$LIBS
19144 LIBS
="-ldes425 $LIBS"
19145 cat >conftest.
$ac_ext <<_ACEOF
19148 cat confdefs.h
>>conftest.
$ac_ext
19149 cat >>conftest.
$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19152 /* Override any gcc2 internal prototype to avoid an error. */
19156 /* We use char because int might match the return type of a gcc2
19157 builtin and then its argument prototype would still apply. */
19158 char des_cbc_encrypt ();
19162 des_cbc_encrypt ();
19167 rm -f conftest.
$ac_objext conftest
$ac_exeext
19168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19169 (eval $ac_link) 2>conftest.er1
19171 grep -v '^ *+' conftest.er1
>conftest.err
19173 cat conftest.err
>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try
='test -z "$ac_c_werror_flag"
19177 || test ! -s conftest.err'
19178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19179 (eval $ac_try) 2>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; } &&
19183 { ac_try
='test -s conftest$ac_exeext'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; }; then
19189 ac_cv_lib_des425_des_cbc_encrypt
=yes
19191 echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.
$ac_ext >&5
19194 ac_cv_lib_des425_des_cbc_encrypt
=no
19196 rm -f conftest.err conftest.
$ac_objext \
19197 conftest
$ac_exeext conftest.
$ac_ext
19198 LIBS
=$ac_check_lib_save_LIBS
19200 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19201 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19202 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19203 cat >>confdefs.h
<<_ACEOF
19204 #define HAVE_LIBDES425 1
19207 LIBS
="-ldes425 $LIBS"
19211 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19212 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19213 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 ac_check_lib_save_LIBS
=$LIBS
19218 cat >conftest.
$ac_ext <<_ACEOF
19221 cat confdefs.h
>>conftest.
$ac_ext
19222 cat >>conftest.
$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19225 /* Override any gcc2 internal prototype to avoid an error. */
19229 /* We use char because int might match the return type of a gcc2
19230 builtin and then its argument prototype would still apply. */
19231 char des_cbc_encrypt ();
19235 des_cbc_encrypt ();
19240 rm -f conftest.
$ac_objext conftest
$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19244 grep -v '^ *+' conftest.er1
>conftest.err
19246 cat conftest.err
>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try
='test -z "$ac_c_werror_flag"
19250 || test ! -s conftest.err'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try
='test -s conftest$ac_exeext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 ac_cv_lib_des_des_cbc_encrypt
=yes
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.
$ac_ext >&5
19267 ac_cv_lib_des_des_cbc_encrypt
=no
19269 rm -f conftest.err conftest.
$ac_objext \
19270 conftest
$ac_exeext conftest.
$ac_ext
19271 LIBS
=$ac_check_lib_save_LIBS
19273 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19274 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19275 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19276 cat >>confdefs.h
<<_ACEOF
19277 #define HAVE_LIBDES 1
19287 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19288 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19289 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 ac_check_lib_save_LIBS
=$LIBS
19293 LIBS
="-lkrb4 $LIBS"
19294 cat >conftest.
$ac_ext <<_ACEOF
19297 cat confdefs.h
>>conftest.
$ac_ext
19298 cat >>conftest.
$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19301 /* Override any gcc2 internal prototype to avoid an error. */
19305 /* We use char because int might match the return type of a gcc2
19306 builtin and then its argument prototype would still apply. */
19307 char krb_get_cred ();
19316 rm -f conftest.
$ac_objext conftest
$ac_exeext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19318 (eval $ac_link) 2>conftest.er1
19320 grep -v '^ *+' conftest.er1
>conftest.err
19322 cat conftest.err
>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try
='test -z "$ac_c_werror_flag"
19326 || test ! -s conftest.err'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try
='test -s conftest$ac_exeext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 ac_cv_lib_krb4_krb_get_cred
=yes
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.
$ac_ext >&5
19343 ac_cv_lib_krb4_krb_get_cred
=no
19345 rm -f conftest.err conftest.
$ac_objext \
19346 conftest
$ac_exeext conftest.
$ac_ext
19347 LIBS
=$ac_check_lib_save_LIBS
19349 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19350 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19351 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19352 cat >>confdefs.h
<<_ACEOF
19353 #define HAVE_LIBKRB4 1
19356 LIBS
="-lkrb4 $LIBS"
19360 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19361 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19362 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 ac_check_lib_save_LIBS
=$LIBS
19367 cat >conftest.
$ac_ext <<_ACEOF
19370 cat confdefs.h
>>conftest.
$ac_ext
19371 cat >>conftest.
$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19374 /* Override any gcc2 internal prototype to avoid an error. */
19378 /* We use char because int might match the return type of a gcc2
19379 builtin and then its argument prototype would still apply. */
19380 char krb_get_cred ();
19389 rm -f conftest.
$ac_objext conftest
$ac_exeext
19390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19391 (eval $ac_link) 2>conftest.er1
19393 grep -v '^ *+' conftest.er1
>conftest.err
19395 cat conftest.err
>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
19398 { ac_try
='test -z "$ac_c_werror_flag"
19399 || test ! -s conftest.err'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } &&
19405 { ac_try
='test -s conftest$ac_exeext'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 ac_cv_lib_krb_krb_get_cred
=yes
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.
$ac_ext >&5
19416 ac_cv_lib_krb_krb_get_cred
=no
19418 rm -f conftest.err conftest.
$ac_objext \
19419 conftest
$ac_exeext conftest.
$ac_ext
19420 LIBS
=$ac_check_lib_save_LIBS
19422 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19423 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19424 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19425 cat >>confdefs.h
<<_ACEOF
19426 #define HAVE_LIBKRB 1
19437 if test "${with_kerberos5+set}" = set; then
19439 for ac_header
in krb5.h
19441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19443 echo "$as_me:$LINENO: checking for $ac_header" >&5
19444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19451 # Is the header compilable?
19452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19454 cat >conftest.
$ac_ext <<_ACEOF
19457 cat confdefs.h
>>conftest.
$ac_ext
19458 cat >>conftest.
$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 $ac_includes_default
19461 #include <$ac_header>
19463 rm -f conftest.
$ac_objext
19464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19465 (eval $ac_compile) 2>conftest.er1
19467 grep -v '^ *+' conftest.er1
>conftest.err
19469 cat conftest.err
>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try
='test -z "$ac_c_werror_flag"
19473 || test ! -s conftest.err'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try
='test -s conftest.$ac_objext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_header_compiler
=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.
$ac_ext >&5
19490 ac_header_compiler
=no
19492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19494 echo "${ECHO_T}$ac_header_compiler" >&6
19496 # Is the header present?
19497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19499 cat >conftest.
$ac_ext <<_ACEOF
19502 cat confdefs.h
>>conftest.
$ac_ext
19503 cat >>conftest.
$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 #include <$ac_header>
19507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19508 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19510 grep -v '^ *+' conftest.er1
>conftest.err
19512 cat conftest.err
>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } >/dev
/null
; then
19515 if test -s conftest.err
; then
19516 ac_cpp_err
=$ac_c_preproc_warn_flag
19517 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19524 if test -z "$ac_cpp_err"; then
19525 ac_header_preproc
=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.
$ac_ext >&5
19530 ac_header_preproc
=no
19532 rm -f conftest.err conftest.
$ac_ext
19533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19534 echo "${ECHO_T}$ac_header_preproc" >&6
19536 # So? What about this header?
19537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19543 ac_header_preproc
=yes
19546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19560 ## ------------------------------------------ ##
19561 ## Report this to the AC_PACKAGE_NAME lists. ##
19562 ## ------------------------------------------ ##
19565 sed "s/^/$as_me: WARNING: /" >&2
19568 echo "$as_me:$LINENO: checking for $ac_header" >&5
19569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 eval "$as_ac_Header=\$ac_header_preproc"
19575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19580 cat >>confdefs.h
<<_ACEOF
19581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19590 for ac_header
in des.h
19592 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594 echo "$as_me:$LINENO: checking for $ac_header" >&5
19595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19602 # Is the header compilable?
19603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19605 cat >conftest.
$ac_ext <<_ACEOF
19608 cat confdefs.h
>>conftest.
$ac_ext
19609 cat >>conftest.
$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 $ac_includes_default
19612 #include <$ac_header>
19614 rm -f conftest.
$ac_objext
19615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19616 (eval $ac_compile) 2>conftest.er1
19618 grep -v '^ *+' conftest.er1
>conftest.err
19620 cat conftest.err
>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try
='test -z "$ac_c_werror_flag"
19624 || test ! -s conftest.err'
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; } &&
19630 { ac_try
='test -s conftest.$ac_objext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_header_compiler
=yes
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.
$ac_ext >&5
19641 ac_header_compiler
=no
19643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19645 echo "${ECHO_T}$ac_header_compiler" >&6
19647 # Is the header present?
19648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19650 cat >conftest.
$ac_ext <<_ACEOF
19653 cat confdefs.h
>>conftest.
$ac_ext
19654 cat >>conftest.
$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #include <$ac_header>
19658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19661 grep -v '^ *+' conftest.er1
>conftest.err
19663 cat conftest.err
>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } >/dev
/null
; then
19666 if test -s conftest.err
; then
19667 ac_cpp_err
=$ac_c_preproc_warn_flag
19668 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19675 if test -z "$ac_cpp_err"; then
19676 ac_header_preproc
=yes
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.
$ac_ext >&5
19681 ac_header_preproc
=no
19683 rm -f conftest.err conftest.
$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19685 echo "${ECHO_T}$ac_header_preproc" >&6
19687 # So? What about this header?
19688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19694 ac_header_preproc
=yes
19697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19711 ## ------------------------------------------ ##
19712 ## Report this to the AC_PACKAGE_NAME lists. ##
19713 ## ------------------------------------------ ##
19716 sed "s/^/$as_me: WARNING: /" >&2
19719 echo "$as_me:$LINENO: checking for $ac_header" >&5
19720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 eval "$as_ac_Header=\$ac_header_preproc"
19726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19731 cat >>confdefs.h
<<_ACEOF
19732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19737 for ac_header
in kerberosIV
/des.h
19739 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741 echo "$as_me:$LINENO: checking for $ac_header" >&5
19742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19749 # Is the header compilable?
19750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19752 cat >conftest.
$ac_ext <<_ACEOF
19755 cat confdefs.h
>>conftest.
$ac_ext
19756 cat >>conftest.
$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19758 $ac_includes_default
19759 #include <$ac_header>
19761 rm -f conftest.
$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763 (eval $ac_compile) 2>conftest.er1
19765 grep -v '^ *+' conftest.er1
>conftest.err
19767 cat conftest.err
>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try
='test -z "$ac_c_werror_flag"
19771 || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try
='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_header_compiler
=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.
$ac_ext >&5
19788 ac_header_compiler
=no
19790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19792 echo "${ECHO_T}$ac_header_compiler" >&6
19794 # Is the header present?
19795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19797 cat >conftest.
$ac_ext <<_ACEOF
19800 cat confdefs.h
>>conftest.
$ac_ext
19801 cat >>conftest.
$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 #include <$ac_header>
19805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19806 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19808 grep -v '^ *+' conftest.er1
>conftest.err
19810 cat conftest.err
>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev
/null
; then
19813 if test -s conftest.err
; then
19814 ac_cpp_err
=$ac_c_preproc_warn_flag
19815 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19822 if test -z "$ac_cpp_err"; then
19823 ac_header_preproc
=yes
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.
$ac_ext >&5
19828 ac_header_preproc
=no
19830 rm -f conftest.err conftest.
$ac_ext
19831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19832 echo "${ECHO_T}$ac_header_preproc" >&6
19834 # So? What about this header?
19835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19841 ac_header_preproc
=yes
19844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19858 ## ------------------------------------------ ##
19859 ## Report this to the AC_PACKAGE_NAME lists. ##
19860 ## ------------------------------------------ ##
19863 sed "s/^/$as_me: WARNING: /" >&2
19866 echo "$as_me:$LINENO: checking for $ac_header" >&5
19867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 eval "$as_ac_Header=\$ac_header_preproc"
19873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19878 cat >>confdefs.h
<<_ACEOF
19879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19884 for ac_header
in kerberos
/des.h
19886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19888 echo "$as_me:$LINENO: checking for $ac_header" >&5
19889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19896 # Is the header compilable?
19897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19899 cat >conftest.
$ac_ext <<_ACEOF
19902 cat confdefs.h
>>conftest.
$ac_ext
19903 cat >>conftest.
$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19906 #include <$ac_header>
19908 rm -f conftest.
$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910 (eval $ac_compile) 2>conftest.er1
19912 grep -v '^ *+' conftest.er1
>conftest.err
19914 cat conftest.err
>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try
='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try
='test -s conftest.$ac_objext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_header_compiler
=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.
$ac_ext >&5
19935 ac_header_compiler
=no
19937 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6
19941 # Is the header present?
19942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19944 cat >conftest.
$ac_ext <<_ACEOF
19947 cat confdefs.h
>>conftest.
$ac_ext
19948 cat >>conftest.
$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <$ac_header>
19952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19953 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19955 grep -v '^ *+' conftest.er1
>conftest.err
19957 cat conftest.err
>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } >/dev
/null
; then
19960 if test -s conftest.err
; then
19961 ac_cpp_err
=$ac_c_preproc_warn_flag
19962 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19969 if test -z "$ac_cpp_err"; then
19970 ac_header_preproc
=yes
19972 echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.
$ac_ext >&5
19975 ac_header_preproc
=no
19977 rm -f conftest.err conftest.
$ac_ext
19978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19979 echo "${ECHO_T}$ac_header_preproc" >&6
19981 # So? What about this header?
19982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19988 ac_header_preproc
=yes
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20005 ## ------------------------------------------ ##
20006 ## Report this to the AC_PACKAGE_NAME lists. ##
20007 ## ------------------------------------------ ##
20010 sed "s/^/$as_me: WARNING: /" >&2
20013 echo "$as_me:$LINENO: checking for $ac_header" >&5
20014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 eval "$as_ac_Header=\$ac_header_preproc"
20020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025 cat >>confdefs.h
<<_ACEOF
20026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20042 for ac_header
in krb.h
20044 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20046 echo "$as_me:$LINENO: checking for $ac_header" >&5
20047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20054 # Is the header compilable?
20055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20057 cat >conftest.
$ac_ext <<_ACEOF
20060 cat confdefs.h
>>conftest.
$ac_ext
20061 cat >>conftest.
$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 $ac_includes_default
20064 #include <$ac_header>
20066 rm -f conftest.
$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>conftest.er1
20070 grep -v '^ *+' conftest.er1
>conftest.err
20072 cat conftest.err
>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
20075 { ac_try
='test -z "$ac_c_werror_flag"
20076 || test ! -s conftest.err'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try
='test -s conftest.$ac_objext'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; }; then
20088 ac_header_compiler
=yes
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.
$ac_ext >&5
20093 ac_header_compiler
=no
20095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20097 echo "${ECHO_T}$ac_header_compiler" >&6
20099 # Is the header present?
20100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20102 cat >conftest.
$ac_ext <<_ACEOF
20105 cat confdefs.h
>>conftest.
$ac_ext
20106 cat >>conftest.
$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 #include <$ac_header>
20110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20113 grep -v '^ *+' conftest.er1
>conftest.err
20115 cat conftest.err
>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } >/dev
/null
; then
20118 if test -s conftest.err
; then
20119 ac_cpp_err
=$ac_c_preproc_warn_flag
20120 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20127 if test -z "$ac_cpp_err"; then
20128 ac_header_preproc
=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.
$ac_ext >&5
20133 ac_header_preproc
=no
20135 rm -f conftest.err conftest.
$ac_ext
20136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20137 echo "${ECHO_T}$ac_header_preproc" >&6
20139 # So? What about this header?
20140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20146 ac_header_preproc
=yes
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20163 ## ------------------------------------------ ##
20164 ## Report this to the AC_PACKAGE_NAME lists. ##
20165 ## ------------------------------------------ ##
20168 sed "s/^/$as_me: WARNING: /" >&2
20171 echo "$as_me:$LINENO: checking for $ac_header" >&5
20172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 eval "$as_ac_Header=\$ac_header_preproc"
20178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20183 cat >>confdefs.h
<<_ACEOF
20184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20189 for ac_header
in kerberosIV
/krb.h
20191 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20193 echo "$as_me:$LINENO: checking for $ac_header" >&5
20194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20201 # Is the header compilable?
20202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20204 cat >conftest.
$ac_ext <<_ACEOF
20207 cat confdefs.h
>>conftest.
$ac_ext
20208 cat >>conftest.
$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 $ac_includes_default
20211 #include <$ac_header>
20213 rm -f conftest.
$ac_objext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>conftest.er1
20217 grep -v '^ *+' conftest.er1
>conftest.err
20219 cat conftest.err
>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try
='test -z "$ac_c_werror_flag"
20223 || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try
='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_header_compiler
=yes
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.
$ac_ext >&5
20240 ac_header_compiler
=no
20242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6
20246 # Is the header present?
20247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20249 cat >conftest.
$ac_ext <<_ACEOF
20252 cat confdefs.h
>>conftest.
$ac_ext
20253 cat >>conftest.
$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <$ac_header>
20257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20258 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20260 grep -v '^ *+' conftest.er1
>conftest.err
20262 cat conftest.err
>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } >/dev
/null
; then
20265 if test -s conftest.err
; then
20266 ac_cpp_err
=$ac_c_preproc_warn_flag
20267 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20274 if test -z "$ac_cpp_err"; then
20275 ac_header_preproc
=yes
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.
$ac_ext >&5
20280 ac_header_preproc
=no
20282 rm -f conftest.err conftest.
$ac_ext
20283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20284 echo "${ECHO_T}$ac_header_preproc" >&6
20286 # So? What about this header?
20287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20293 ac_header_preproc
=yes
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20310 ## ------------------------------------------ ##
20311 ## Report this to the AC_PACKAGE_NAME lists. ##
20312 ## ------------------------------------------ ##
20315 sed "s/^/$as_me: WARNING: /" >&2
20318 echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 eval "$as_ac_Header=\$ac_header_preproc"
20325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20330 cat >>confdefs.h
<<_ACEOF
20331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20336 for ac_header
in kerberos
/krb.h
20338 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20340 echo "$as_me:$LINENO: checking for $ac_header" >&5
20341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20348 # Is the header compilable?
20349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20351 cat >conftest.
$ac_ext <<_ACEOF
20354 cat confdefs.h
>>conftest.
$ac_ext
20355 cat >>conftest.
$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 $ac_includes_default
20358 #include <$ac_header>
20360 rm -f conftest.
$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>conftest.er1
20364 grep -v '^ *+' conftest.er1
>conftest.err
20366 cat conftest.err
>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try
='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try
='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_header_compiler
=yes
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.
$ac_ext >&5
20387 ac_header_compiler
=no
20389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20391 echo "${ECHO_T}$ac_header_compiler" >&6
20393 # Is the header present?
20394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20396 cat >conftest.
$ac_ext <<_ACEOF
20399 cat confdefs.h
>>conftest.
$ac_ext
20400 cat >>conftest.
$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402 #include <$ac_header>
20404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20407 grep -v '^ *+' conftest.er1
>conftest.err
20409 cat conftest.err
>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } >/dev
/null
; then
20412 if test -s conftest.err
; then
20413 ac_cpp_err
=$ac_c_preproc_warn_flag
20414 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20421 if test -z "$ac_cpp_err"; then
20422 ac_header_preproc
=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.
$ac_ext >&5
20427 ac_header_preproc
=no
20429 rm -f conftest.err conftest.
$ac_ext
20430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20431 echo "${ECHO_T}$ac_header_preproc" >&6
20433 # So? What about this header?
20434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20440 ac_header_preproc
=yes
20443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20457 ## ------------------------------------------ ##
20458 ## Report this to the AC_PACKAGE_NAME lists. ##
20459 ## ------------------------------------------ ##
20462 sed "s/^/$as_me: WARNING: /" >&2
20465 echo "$as_me:$LINENO: checking for $ac_header" >&5
20466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 eval "$as_ac_Header=\$ac_header_preproc"
20472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20477 cat >>confdefs.h
<<_ACEOF
20478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20495 for ac_header
in com_err.h
20497 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20499 echo "$as_me:$LINENO: checking for $ac_header" >&5
20500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20507 # Is the header compilable?
20508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20510 cat >conftest.
$ac_ext <<_ACEOF
20513 cat confdefs.h
>>conftest.
$ac_ext
20514 cat >>conftest.
$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20516 $ac_includes_default
20517 #include <$ac_header>
20519 rm -f conftest.
$ac_objext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20521 (eval $ac_compile) 2>conftest.er1
20523 grep -v '^ *+' conftest.er1
>conftest.err
20525 cat conftest.err
>&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try
='test -z "$ac_c_werror_flag"
20529 || test ! -s conftest.err'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } &&
20535 { ac_try
='test -s conftest.$ac_objext'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_header_compiler
=yes
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.
$ac_ext >&5
20546 ac_header_compiler
=no
20548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20550 echo "${ECHO_T}$ac_header_compiler" >&6
20552 # Is the header present?
20553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20555 cat >conftest.
$ac_ext <<_ACEOF
20558 cat confdefs.h
>>conftest.
$ac_ext
20559 cat >>conftest.
$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <$ac_header>
20563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20564 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20566 grep -v '^ *+' conftest.er1
>conftest.err
20568 cat conftest.err
>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } >/dev
/null
; then
20571 if test -s conftest.err
; then
20572 ac_cpp_err
=$ac_c_preproc_warn_flag
20573 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20580 if test -z "$ac_cpp_err"; then
20581 ac_header_preproc
=yes
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.
$ac_ext >&5
20586 ac_header_preproc
=no
20588 rm -f conftest.err conftest.
$ac_ext
20589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20590 echo "${ECHO_T}$ac_header_preproc" >&6
20592 # So? What about this header?
20593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20599 ac_header_preproc
=yes
20602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20616 ## ------------------------------------------ ##
20617 ## Report this to the AC_PACKAGE_NAME lists. ##
20618 ## ------------------------------------------ ##
20621 sed "s/^/$as_me: WARNING: /" >&2
20624 echo "$as_me:$LINENO: checking for $ac_header" >&5
20625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 eval "$as_ac_Header=\$ac_header_preproc"
20631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20636 cat >>confdefs.h
<<_ACEOF
20637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20646 # Solaris requires -lintl if you want strerror (which calls dgettext)
20647 # to return localized messages.
20649 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20650 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20651 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 ac_check_lib_save_LIBS
=$LIBS
20655 LIBS
="-lintl $LIBS"
20656 cat >conftest.
$ac_ext <<_ACEOF
20659 cat confdefs.h
>>conftest.
$ac_ext
20660 cat >>conftest.
$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20663 /* Override any gcc2 internal prototype to avoid an error. */
20667 /* We use char because int might match the return type of a gcc2
20668 builtin and then its argument prototype would still apply. */
20678 rm -f conftest.
$ac_objext conftest
$ac_exeext
20679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20680 (eval $ac_link) 2>conftest.er1
20682 grep -v '^ *+' conftest.er1
>conftest.err
20684 cat conftest.err
>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
20687 { ac_try
='test -z "$ac_c_werror_flag"
20688 || test ! -s conftest.err'
20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); }; } &&
20694 { ac_try
='test -s conftest$ac_exeext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_lib_intl_dgettext
=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.
$ac_ext >&5
20705 ac_cv_lib_intl_dgettext
=no
20707 rm -f conftest.err conftest.
$ac_objext \
20708 conftest
$ac_exeext conftest.
$ac_ext
20709 LIBS
=$ac_check_lib_save_LIBS
20711 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20712 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20713 if test $ac_cv_lib_intl_dgettext = yes; then
20714 cat >>confdefs.h
<<_ACEOF
20715 #define HAVE_LIBINTL 1
20718 LIBS
="-lintl $LIBS"
20723 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20724 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20725 if test "${emacs_cv_localtime_cache+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 if test x
$ac_cv_func_tzset = xyes
; then
20729 if test "$cross_compiling" = yes; then
20730 # If we have tzset, assume the worst when cross-compiling.
20731 emacs_cv_localtime_cache
=yes
20733 cat >conftest.
$ac_ext <<_ACEOF
20736 cat confdefs.h
>>conftest.
$ac_ext
20737 cat >>conftest.
$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20740 extern char **environ;
20744 for (to = from = environ; (*to = *from); from++)
20745 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20748 char TZ_GMT0[] = "TZ=GMT0";
20749 char TZ_PST8[] = "TZ=PST8";
20752 time_t now = time ((time_t *) 0);
20753 int hour_GMT0, hour_unset;
20754 if (putenv (TZ_GMT0) != 0)
20756 hour_GMT0 = localtime (&now)->tm_hour;
20758 hour_unset = localtime (&now)->tm_hour;
20759 if (putenv (TZ_PST8) != 0)
20761 if (localtime (&now)->tm_hour == hour_GMT0)
20764 if (localtime (&now)->tm_hour != hour_unset)
20769 rm -f conftest
$ac_exeext
20770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20771 (eval $ac_link) 2>&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20776 (eval $ac_try) 2>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 emacs_cv_localtime_cache
=no
20782 echo "$as_me: program exited with status $ac_status" >&5
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.
$ac_ext >&5
20786 ( exit $ac_status )
20787 emacs_cv_localtime_cache
=yes
20789 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20792 # If we lack tzset, report that localtime does not cache TZ,
20793 # since we can't invalidate the cache if we don't have tzset.
20794 emacs_cv_localtime_cache
=no
20797 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20798 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20799 if test $emacs_cv_localtime_cache = yes; then
20801 cat >>confdefs.h
<<\_ACEOF
20802 #define LOCALTIME_CACHE 1
20807 if test "x$HAVE_TIMEVAL" = xyes
; then
20809 for ac_func
in gettimeofday
20811 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20812 echo "$as_me:$LINENO: checking for $ac_func" >&5
20813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20814 if eval "test \"\${$as_ac_var+set}\" = set"; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20817 cat >conftest.
$ac_ext <<_ACEOF
20820 cat confdefs.h
>>conftest.
$ac_ext
20821 cat >>conftest.
$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20825 #define $ac_func innocuous_$ac_func
20827 /* System header to define __stub macros and hopefully few prototypes,
20828 which can conflict with char $ac_func (); below.
20829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20830 <limits.h> exists even on freestanding compilers. */
20833 # include <limits.h>
20835 # include <assert.h>
20840 /* Override any gcc2 internal prototype to avoid an error. */
20845 /* We use char because int might match the return type of a gcc2
20846 builtin and then its argument prototype would still apply. */
20848 /* The GNU C library defines this for functions which it implements
20849 to always fail with ENOSYS. Some functions are actually named
20850 something starting with __ and the normal name is an alias. */
20851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20854 char (*f) () = $ac_func;
20863 return f != $ac_func;
20868 rm -f conftest.
$ac_objext conftest
$ac_exeext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>conftest.er1
20872 grep -v '^ *+' conftest.er1
>conftest.err
20874 cat conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try
='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try
='test -s conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 eval "$as_ac_var=yes"
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.
$ac_ext >&5
20895 eval "$as_ac_var=no"
20897 rm -f conftest.err conftest.
$ac_objext \
20898 conftest
$ac_exeext conftest.
$ac_ext
20900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20902 if test `eval echo '${'$as_ac_var'}'` = yes; then
20903 cat >>confdefs.h
<<_ACEOF
20904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20910 if test $ac_cv_func_gettimeofday = yes; then
20911 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20912 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20913 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 cat >conftest.
$ac_ext <<_ACEOF
20919 cat confdefs.h
>>conftest.
$ac_ext
20920 cat >>conftest.
$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20923 #ifdef TIME_WITH_SYS_TIME
20924 #include <sys/time.h>
20927 #ifdef HAVE_SYS_TIME_H
20928 #include <sys/time.h>
20936 struct timeval time;
20937 gettimeofday (&time, 0);
20942 rm -f conftest.
$ac_objext
20943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20944 (eval $ac_compile) 2>conftest.er1
20946 grep -v '^ *+' conftest.er1
>conftest.err
20948 cat conftest.err
>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } &&
20951 { ac_try
='test -z "$ac_c_werror_flag"
20952 || test ! -s conftest.err'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try
='test -s conftest.$ac_objext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 emacs_cv_gettimeofday_two_arguments
=yes
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.
$ac_ext >&5
20969 emacs_cv_gettimeofday_two_arguments
=no
20971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20973 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20974 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20975 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20977 cat >>confdefs.h
<<\_ACEOF
20978 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20985 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20986 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20987 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20988 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 cat >conftest.
$ac_ext <<_ACEOF
20994 cat confdefs.h
>>conftest.
$ac_ext
20995 cat >>conftest.
$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 #include <sys/types.h>
20998 #include <$ac_cv_struct_tm>
21004 static struct tm ac_aggr;
21005 if (ac_aggr.tm_zone)
21011 rm -f conftest.
$ac_objext
21012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>conftest.er1
21015 grep -v '^ *+' conftest.er1
>conftest.err
21017 cat conftest.err
>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
21020 { ac_try
='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try
='test -s conftest.$ac_objext'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_member_struct_tm_tm_zone
=yes
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.
$ac_ext >&5
21038 cat >conftest.
$ac_ext <<_ACEOF
21041 cat confdefs.h
>>conftest.
$ac_ext
21042 cat >>conftest.
$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <sys/types.h>
21045 #include <$ac_cv_struct_tm>
21051 static struct tm ac_aggr;
21052 if (sizeof ac_aggr.tm_zone)
21058 rm -f conftest.
$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21062 grep -v '^ *+' conftest.er1
>conftest.err
21064 cat conftest.err
>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try
='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try
='test -s conftest.$ac_objext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 ac_cv_member_struct_tm_tm_zone
=yes
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.
$ac_ext >&5
21085 ac_cv_member_struct_tm_tm_zone
=no
21087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21089 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21091 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21092 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21093 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21095 cat >>confdefs.h
<<_ACEOF
21096 #define HAVE_STRUCT_TM_TM_ZONE 1
21102 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21104 cat >>confdefs.h
<<\_ACEOF
21105 #define HAVE_TM_ZONE 1
21109 echo "$as_me:$LINENO: checking for tzname" >&5
21110 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21111 if test "${ac_cv_var_tzname+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 cat >conftest.
$ac_ext <<_ACEOF
21117 cat confdefs.h
>>conftest.
$ac_ext
21118 cat >>conftest.
$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 #ifndef tzname /* For SGI. */
21122 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21133 rm -f conftest.
$ac_objext conftest
$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135 (eval $ac_link) 2>conftest.er1
21137 grep -v '^ *+' conftest.er1
>conftest.err
21139 cat conftest.err
>&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } &&
21142 { ac_try
='test -z "$ac_c_werror_flag"
21143 || test ! -s conftest.err'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try
='test -s conftest$ac_exeext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_var_tzname
=yes
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.
$ac_ext >&5
21160 ac_cv_var_tzname
=no
21162 rm -f conftest.err conftest.
$ac_objext \
21163 conftest
$ac_exeext conftest.
$ac_ext
21165 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21166 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21167 if test $ac_cv_var_tzname = yes; then
21169 cat >>confdefs.h
<<\_ACEOF
21170 #define HAVE_TZNAME 1
21177 if test "$ac_cv_func_gettimeofday" = yes; then
21178 echo "$as_me:$LINENO: checking for struct timezone" >&5
21179 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21180 if test "${emacs_cv_struct_timezone+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 cat >conftest.
$ac_ext <<_ACEOF
21186 cat confdefs.h
>>conftest.
$ac_ext
21187 cat >>conftest.
$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 #include <sys/time.h>
21193 struct timezone tz;
21198 rm -f conftest.
$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21202 grep -v '^ *+' conftest.er1
>conftest.err
21204 cat conftest.err
>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try
='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try
='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 if test "$cross_compiling" = yes; then
21221 emacs_cv_struct_timezone
=yes
21223 cat >conftest.
$ac_ext <<_ACEOF
21226 cat confdefs.h
>>conftest.
$ac_ext
21227 cat >>conftest.
$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21230 #ifdef TIME_WITH_SYS_TIME
21231 #include <sys/time.h>
21234 #ifdef HAVE_SYS_TIME_H
21235 #include <sys/time.h>
21241 struct timeval time;
21242 struct timezone dummy;
21243 exit (gettimeofday (&time, &dummy));
21246 rm -f conftest
$ac_exeext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21248 (eval $ac_link) 2>&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 emacs_cv_struct_timezone
=yes
21259 echo "$as_me: program exited with status $ac_status" >&5
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.
$ac_ext >&5
21263 ( exit $ac_status )
21264 emacs_cv_struct_timezone
=no
21266 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.
$ac_ext >&5
21272 emacs_cv_struct_timezone
=no
21274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21276 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21277 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21281 echo "$as_me:$LINENO: checking for socket" >&5
21282 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21283 if test "${ac_cv_func_socket+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 cat >conftest.
$ac_ext <<_ACEOF
21289 cat confdefs.h
>>conftest.
$ac_ext
21290 cat >>conftest.
$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21292 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21294 #define socket innocuous_socket
21296 /* System header to define __stub macros and hopefully few prototypes,
21297 which can conflict with char socket (); below.
21298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21299 <limits.h> exists even on freestanding compilers. */
21302 # include <limits.h>
21304 # include <assert.h>
21309 /* Override any gcc2 internal prototype to avoid an error. */
21314 /* We use char because int might match the return type of a gcc2
21315 builtin and then its argument prototype would still apply. */
21317 /* The GNU C library defines this for functions which it implements
21318 to always fail with ENOSYS. Some functions are actually named
21319 something starting with __ and the normal name is an alias. */
21320 #if defined (__stub_socket) || defined (__stub___socket)
21323 char (*f) () = socket;
21332 return f != socket;
21337 rm -f conftest.
$ac_objext conftest
$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>conftest.er1
21341 grep -v '^ *+' conftest.er1
>conftest.err
21343 cat conftest.err
>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try
='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try
='test -s conftest$ac_exeext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_func_socket
=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.
$ac_ext >&5
21364 ac_cv_func_socket
=no
21366 rm -f conftest.err conftest.
$ac_objext \
21367 conftest
$ac_exeext conftest.
$ac_ext
21369 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21370 echo "${ECHO_T}$ac_cv_func_socket" >&6
21371 if test $ac_cv_func_socket = yes; then
21377 if test $ok_so_far = yes; then
21378 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21379 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21380 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21381 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21384 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21385 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21387 # Is the header compilable?
21388 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21389 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21390 cat >conftest.
$ac_ext <<_ACEOF
21393 cat confdefs.h
>>conftest.
$ac_ext
21394 cat >>conftest.
$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 $ac_includes_default
21397 #include <netinet/in.h>
21399 rm -f conftest.
$ac_objext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21401 (eval $ac_compile) 2>conftest.er1
21403 grep -v '^ *+' conftest.er1
>conftest.err
21405 cat conftest.err
>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
21408 { ac_try
='test -z "$ac_c_werror_flag"
21409 || test ! -s conftest.err'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try
='test -s conftest.$ac_objext'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_header_compiler
=yes
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.
$ac_ext >&5
21426 ac_header_compiler
=no
21428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21430 echo "${ECHO_T}$ac_header_compiler" >&6
21432 # Is the header present?
21433 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21434 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21435 cat >conftest.
$ac_ext <<_ACEOF
21438 cat confdefs.h
>>conftest.
$ac_ext
21439 cat >>conftest.
$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 #include <netinet/in.h>
21443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21444 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21446 grep -v '^ *+' conftest.er1
>conftest.err
21448 cat conftest.err
>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } >/dev
/null
; then
21451 if test -s conftest.err
; then
21452 ac_cpp_err
=$ac_c_preproc_warn_flag
21453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21460 if test -z "$ac_cpp_err"; then
21461 ac_header_preproc
=yes
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.
$ac_ext >&5
21466 ac_header_preproc
=no
21468 rm -f conftest.err conftest.
$ac_ext
21469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21470 echo "${ECHO_T}$ac_header_preproc" >&6
21472 # So? What about this header?
21473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21475 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21476 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21478 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21479 ac_header_preproc
=yes
21482 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21483 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21485 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21487 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21489 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21491 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21493 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21496 ## ------------------------------------------ ##
21497 ## Report this to the AC_PACKAGE_NAME lists. ##
21498 ## ------------------------------------------ ##
21501 sed "s/^/$as_me: WARNING: /" >&2
21504 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21505 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21506 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 ac_cv_header_netinet_in_h
=$ac_header_preproc
21511 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21512 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21515 if test $ac_cv_header_netinet_in_h = yes; then
21523 if test $ok_so_far = yes; then
21524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21525 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21526 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21527 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21531 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21533 # Is the header compilable?
21534 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21535 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21536 cat >conftest.
$ac_ext <<_ACEOF
21539 cat confdefs.h
>>conftest.
$ac_ext
21540 cat >>conftest.
$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 #include <arpa/inet.h>
21545 rm -f conftest.
$ac_objext
21546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21547 (eval $ac_compile) 2>conftest.er1
21549 grep -v '^ *+' conftest.er1
>conftest.err
21551 cat conftest.err
>&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } &&
21554 { ac_try
='test -z "$ac_c_werror_flag"
21555 || test ! -s conftest.err'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; } &&
21561 { ac_try
='test -s conftest.$ac_objext'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 ac_header_compiler
=yes
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.
$ac_ext >&5
21572 ac_header_compiler
=no
21574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6
21578 # Is the header present?
21579 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21580 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21581 cat >conftest.
$ac_ext <<_ACEOF
21584 cat confdefs.h
>>conftest.
$ac_ext
21585 cat >>conftest.
$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <arpa/inet.h>
21589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21590 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21592 grep -v '^ *+' conftest.er1
>conftest.err
21594 cat conftest.err
>&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } >/dev
/null
; then
21597 if test -s conftest.err
; then
21598 ac_cpp_err
=$ac_c_preproc_warn_flag
21599 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21606 if test -z "$ac_cpp_err"; then
21607 ac_header_preproc
=yes
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.
$ac_ext >&5
21612 ac_header_preproc
=no
21614 rm -f conftest.err conftest.
$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21616 echo "${ECHO_T}$ac_header_preproc" >&6
21618 # So? What about this header?
21619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21621 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21622 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21624 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21625 ac_header_preproc
=yes
21628 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21629 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21631 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21633 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21635 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21637 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21639 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21642 ## ------------------------------------------ ##
21643 ## Report this to the AC_PACKAGE_NAME lists. ##
21644 ## ------------------------------------------ ##
21647 sed "s/^/$as_me: WARNING: /" >&2
21650 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21651 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21652 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21657 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21658 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21661 if test $ac_cv_header_arpa_inet_h = yes; then
21669 if test $ok_so_far = yes; then
21671 cat >>confdefs.h
<<\_ACEOF
21672 #define HAVE_INET_SOCKETS 1
21678 for ac_header
in sys
/ioctl.h
21680 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21682 echo "$as_me:$LINENO: checking for $ac_header" >&5
21683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21690 # Is the header compilable?
21691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21693 cat >conftest.
$ac_ext <<_ACEOF
21696 cat confdefs.h
>>conftest.
$ac_ext
21697 cat >>conftest.
$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 $ac_includes_default
21700 #include <$ac_header>
21702 rm -f conftest.
$ac_objext
21703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21704 (eval $ac_compile) 2>conftest.er1
21706 grep -v '^ *+' conftest.er1
>conftest.err
21708 cat conftest.err
>&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } &&
21711 { ac_try
='test -z "$ac_c_werror_flag"
21712 || test ! -s conftest.err'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; } &&
21718 { ac_try
='test -s conftest.$ac_objext'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_header_compiler
=yes
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.
$ac_ext >&5
21729 ac_header_compiler
=no
21731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21733 echo "${ECHO_T}$ac_header_compiler" >&6
21735 # Is the header present?
21736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21738 cat >conftest.
$ac_ext <<_ACEOF
21741 cat confdefs.h
>>conftest.
$ac_ext
21742 cat >>conftest.
$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 #include <$ac_header>
21746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21749 grep -v '^ *+' conftest.er1
>conftest.err
21751 cat conftest.err
>&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } >/dev
/null
; then
21754 if test -s conftest.err
; then
21755 ac_cpp_err
=$ac_c_preproc_warn_flag
21756 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21763 if test -z "$ac_cpp_err"; then
21764 ac_header_preproc
=yes
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.
$ac_ext >&5
21769 ac_header_preproc
=no
21771 rm -f conftest.err conftest.
$ac_ext
21772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21773 echo "${ECHO_T}$ac_header_preproc" >&6
21775 # So? What about this header?
21776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21782 ac_header_preproc
=yes
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21799 ## ------------------------------------------ ##
21800 ## Report this to the AC_PACKAGE_NAME lists. ##
21801 ## ------------------------------------------ ##
21804 sed "s/^/$as_me: WARNING: /" >&2
21807 echo "$as_me:$LINENO: checking for $ac_header" >&5
21808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 eval "$as_ac_Header=\$ac_header_preproc"
21814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21819 cat >>confdefs.h
<<_ACEOF
21820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21828 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21830 cat >>confdefs.h
<<\_ACEOF
21831 #define HAVE_AIX_SMT_EXP 1
21836 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21837 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21838 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21839 echo "$as_me:$LINENO: result: yes" >&5
21840 echo "${ECHO_T}yes" >&6
21842 cat >>confdefs.h
<<\_ACEOF
21843 #define HAVE_DEV_PTMX 1
21847 echo "$as_me:$LINENO: result: no" >&5
21848 echo "${ECHO_T}no" >&6
21851 echo "$as_me:$LINENO: checking for pid_t" >&5
21852 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21853 if test "${ac_cv_type_pid_t+set}" = set; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 cat >conftest.
$ac_ext <<_ACEOF
21859 cat confdefs.h
>>conftest.
$ac_ext
21860 cat >>conftest.
$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 $ac_includes_default
21868 if (sizeof (pid_t))
21874 rm -f conftest.
$ac_objext
21875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21876 (eval $ac_compile) 2>conftest.er1
21878 grep -v '^ *+' conftest.er1
>conftest.err
21880 cat conftest.err
>&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } &&
21883 { ac_try
='test -z "$ac_c_werror_flag"
21884 || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try
='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 ac_cv_type_pid_t
=yes
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.
$ac_ext >&5
21901 ac_cv_type_pid_t
=no
21903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21905 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21906 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21907 if test $ac_cv_type_pid_t = yes; then
21911 cat >>confdefs.h
<<_ACEOF
21919 for ac_header
in unistd.h vfork.h
21921 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923 echo "$as_me:$LINENO: checking for $ac_header" >&5
21924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21931 # Is the header compilable?
21932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21934 cat >conftest.
$ac_ext <<_ACEOF
21937 cat confdefs.h
>>conftest.
$ac_ext
21938 cat >>conftest.
$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 $ac_includes_default
21941 #include <$ac_header>
21943 rm -f conftest.
$ac_objext
21944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21945 (eval $ac_compile) 2>conftest.er1
21947 grep -v '^ *+' conftest.er1
>conftest.err
21949 cat conftest.err
>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } &&
21952 { ac_try
='test -z "$ac_c_werror_flag"
21953 || test ! -s conftest.err'
21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955 (eval $ac_try) 2>&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; } &&
21959 { ac_try
='test -s conftest.$ac_objext'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; }; then
21965 ac_header_compiler
=yes
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.
$ac_ext >&5
21970 ac_header_compiler
=no
21972 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21974 echo "${ECHO_T}$ac_header_compiler" >&6
21976 # Is the header present?
21977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21979 cat >conftest.
$ac_ext <<_ACEOF
21982 cat confdefs.h
>>conftest.
$ac_ext
21983 cat >>conftest.
$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 #include <$ac_header>
21987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21988 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21990 grep -v '^ *+' conftest.er1
>conftest.err
21992 cat conftest.err
>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } >/dev
/null
; then
21995 if test -s conftest.err
; then
21996 ac_cpp_err
=$ac_c_preproc_warn_flag
21997 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22004 if test -z "$ac_cpp_err"; then
22005 ac_header_preproc
=yes
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.
$ac_ext >&5
22010 ac_header_preproc
=no
22012 rm -f conftest.err conftest.
$ac_ext
22013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22014 echo "${ECHO_T}$ac_header_preproc" >&6
22016 # So? What about this header?
22017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22023 ac_header_preproc
=yes
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22040 ## ------------------------------------------ ##
22041 ## Report this to the AC_PACKAGE_NAME lists. ##
22042 ## ------------------------------------------ ##
22045 sed "s/^/$as_me: WARNING: /" >&2
22048 echo "$as_me:$LINENO: checking for $ac_header" >&5
22049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 eval "$as_ac_Header=\$ac_header_preproc"
22055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22060 cat >>confdefs.h
<<_ACEOF
22061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22070 for ac_func
in fork vfork
22072 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22073 echo "$as_me:$LINENO: checking for $ac_func" >&5
22074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22075 if eval "test \"\${$as_ac_var+set}\" = set"; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 cat >conftest.
$ac_ext <<_ACEOF
22081 cat confdefs.h
>>conftest.
$ac_ext
22082 cat >>conftest.
$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22086 #define $ac_func innocuous_$ac_func
22088 /* System header to define __stub macros and hopefully few prototypes,
22089 which can conflict with char $ac_func (); below.
22090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22091 <limits.h> exists even on freestanding compilers. */
22094 # include <limits.h>
22096 # include <assert.h>
22101 /* Override any gcc2 internal prototype to avoid an error. */
22106 /* We use char because int might match the return type of a gcc2
22107 builtin and then its argument prototype would still apply. */
22109 /* The GNU C library defines this for functions which it implements
22110 to always fail with ENOSYS. Some functions are actually named
22111 something starting with __ and the normal name is an alias. */
22112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22115 char (*f) () = $ac_func;
22124 return f != $ac_func;
22129 rm -f conftest.
$ac_objext conftest
$ac_exeext
22130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22131 (eval $ac_link) 2>conftest.er1
22133 grep -v '^ *+' conftest.er1
>conftest.err
22135 cat conftest.err
>&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } &&
22138 { ac_try
='test -z "$ac_c_werror_flag"
22139 || test ! -s conftest.err'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try
='test -s conftest$ac_exeext'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 eval "$as_ac_var=yes"
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.
$ac_ext >&5
22156 eval "$as_ac_var=no"
22158 rm -f conftest.err conftest.
$ac_objext \
22159 conftest
$ac_exeext conftest.
$ac_ext
22161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22163 if test `eval echo '${'$as_ac_var'}'` = yes; then
22164 cat >>confdefs.h
<<_ACEOF
22165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22171 if test "x$ac_cv_func_fork" = xyes
; then
22172 echo "$as_me:$LINENO: checking for working fork" >&5
22173 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22174 if test "${ac_cv_func_fork_works+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 if test "$cross_compiling" = yes; then
22178 ac_cv_func_fork_works
=cross
22180 cat >conftest.
$ac_ext <<_ACEOF
22181 /* By Ruediger Kuhlmann. */
22182 #include <sys/types.h>
22184 # include <unistd.h>
22186 /* Some systems only have a dummy stub for fork() */
22194 rm -f conftest
$ac_exeext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22196 (eval $ac_link) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ac_cv_func_fork_works
=yes
22207 echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.
$ac_ext >&5
22211 ( exit $ac_status )
22212 ac_cv_func_fork_works
=no
22214 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22217 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22218 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22221 ac_cv_func_fork_works
=$ac_cv_func_fork
22223 if test "x$ac_cv_func_fork_works" = xcross
; then
22225 *-*-amigaos* |
*-*-msdosdjgpp*)
22226 # Override, as these systems have only a dummy fork() stub
22227 ac_cv_func_fork_works
=no
22230 ac_cv_func_fork_works
=yes
22233 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22234 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22236 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22237 if test "x$ac_cv_func_vfork" = xyes
; then
22238 echo "$as_me:$LINENO: checking for working vfork" >&5
22239 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22240 if test "${ac_cv_func_vfork_works+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 if test "$cross_compiling" = yes; then
22244 ac_cv_func_vfork_works
=cross
22246 cat >conftest.
$ac_ext <<_ACEOF
22249 cat confdefs.h
>>conftest.
$ac_ext
22250 cat >>conftest.
$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 /* Thanks to Paul Eggert for this test. */
22254 #include <stdlib.h>
22255 #include <sys/types.h>
22256 #include <sys/stat.h>
22257 #include <sys/wait.h>
22259 # include <unistd.h>
22262 # include <vfork.h>
22264 /* On some sparc systems, changes by the child to local and incoming
22265 argument registers are propagated back to the parent. The compiler
22266 is told about this with #include <vfork.h>, but some compilers
22267 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22268 static variable whose address is put into a register that is
22269 clobbered by the vfork. */
22272 sparc_address_test (int arg)
22274 sparc_address_test (arg) int arg;
22277 static pid_t child;
22295 pid_t parent = getpid ();
22298 sparc_address_test (0);
22303 /* Here is another test for sparc vfork register problems. This
22304 test uses lots of local variables, at least as many local
22305 variables as main has allocated so far including compiler
22306 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22307 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22308 reuse the register of parent for one of the local variables,
22309 since it will think that parent can't possibly be used any more
22310 in this routine. Assigning to the local variable will thus
22311 munge parent in the parent process. */
22313 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22314 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22315 /* Convince the compiler that p..p7 are live; otherwise, it might
22316 use the same hardware register for all 8 local variables. */
22317 if (p != p1 || p != p2 || p != p3 || p != p4
22318 || p != p5 || p != p6 || p != p7)
22321 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22322 from child file descriptors. If the child closes a descriptor
22323 before it execs or exits, this munges the parent's descriptor
22324 as well. Test for this by closing stdout in the child. */
22325 _exit(close(fileno(stdout)) != 0);
22330 while (wait(&status) != child)
22333 /* Was there some problem with vforking? */
22336 /* Did the child fail? (This shouldn't happen.) */
22339 /* Did the vfork/compiler bug occur? */
22340 || parent != getpid()
22342 /* Did the file descriptor bug occur? */
22343 || fstat(fileno(stdout), &st) != 0
22348 rm -f conftest
$ac_exeext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22350 (eval $ac_link) 2>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 ac_cv_func_vfork_works
=yes
22361 echo "$as_me: program exited with status $ac_status" >&5
22362 echo "$as_me: failed program was:" >&5
22363 sed 's/^/| /' conftest.
$ac_ext >&5
22365 ( exit $ac_status )
22366 ac_cv_func_vfork_works
=no
22368 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22371 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22372 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22375 if test "x$ac_cv_func_fork_works" = xcross
; then
22376 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22377 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22378 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22381 if test "x$ac_cv_func_vfork_works" = xyes
; then
22383 cat >>confdefs.h
<<\_ACEOF
22384 #define HAVE_WORKING_VFORK 1
22389 cat >>confdefs.h
<<\_ACEOF
22394 if test "x$ac_cv_func_fork_works" = xyes
; then
22396 cat >>confdefs.h
<<\_ACEOF
22397 #define HAVE_WORKING_FORK 1
22403 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22404 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22405 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 cat >conftest.
$ac_ext <<_ACEOF
22411 cat confdefs.h
>>conftest.
$ac_ext
22412 cat >>conftest.
$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414 #include <langinfo.h>
22418 char* cs = nl_langinfo(CODESET);
22423 rm -f conftest.
$ac_objext conftest
$ac_exeext
22424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22425 (eval $ac_link) 2>conftest.er1
22427 grep -v '^ *+' conftest.er1
>conftest.err
22429 cat conftest.err
>&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
22432 { ac_try
='test -z "$ac_c_werror_flag"
22433 || test ! -s conftest.err'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; } &&
22439 { ac_try
='test -s conftest$ac_exeext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 emacs_cv_langinfo_codeset
=yes
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.
$ac_ext >&5
22450 emacs_cv_langinfo_codeset
=no
22452 rm -f conftest.err conftest.
$ac_objext \
22453 conftest
$ac_exeext conftest.
$ac_ext
22456 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22457 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22458 if test $emacs_cv_langinfo_codeset = yes; then
22460 cat >>confdefs.h
<<\_ACEOF
22461 #define HAVE_LANGINFO_CODESET 1
22466 echo "$as_me:$LINENO: checking for size_t" >&5
22467 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22468 if test "${ac_cv_type_size_t+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22471 cat >conftest.
$ac_ext <<_ACEOF
22474 cat confdefs.h
>>conftest.
$ac_ext
22475 cat >>conftest.
$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22477 $ac_includes_default
22483 if (sizeof (size_t))
22489 rm -f conftest.
$ac_objext
22490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22491 (eval $ac_compile) 2>conftest.er1
22493 grep -v '^ *+' conftest.er1
>conftest.err
22495 cat conftest.err
>&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } &&
22498 { ac_try
='test -z "$ac_c_werror_flag"
22499 || test ! -s conftest.err'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; } &&
22505 { ac_try
='test -s conftest.$ac_objext'
22506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22507 (eval $ac_try) 2>&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); }; }; then
22511 ac_cv_type_size_t
=yes
22513 echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.
$ac_ext >&5
22516 ac_cv_type_size_t
=no
22518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22520 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22521 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22522 if test $ac_cv_type_size_t = yes; then
22524 cat >>confdefs.h
<<_ACEOF
22525 #define HAVE_SIZE_T 1
22532 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22533 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22534 if test "${ac_cv_type_mbstate_t+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 cat >conftest.
$ac_ext <<_ACEOF
22540 cat confdefs.h
>>conftest.
$ac_ext
22541 cat >>conftest.
$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 $ac_includes_default
22544 # include <wchar.h>
22548 mbstate_t x; return sizeof x;
22553 rm -f conftest.
$ac_objext
22554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22555 (eval $ac_compile) 2>conftest.er1
22557 grep -v '^ *+' conftest.er1
>conftest.err
22559 cat conftest.err
>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
22562 { ac_try
='test -z "$ac_c_werror_flag"
22563 || test ! -s conftest.err'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; } &&
22569 { ac_try
='test -s conftest.$ac_objext'
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 ac_cv_type_mbstate_t
=yes
22577 echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.
$ac_ext >&5
22580 ac_cv_type_mbstate_t
=no
22582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22584 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22585 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22586 if test $ac_cv_type_mbstate_t = yes; then
22588 cat >>confdefs.h
<<\_ACEOF
22589 #define HAVE_MBSTATE_T 1
22594 cat >>confdefs.h
<<\_ACEOF
22595 #define mbstate_t int
22600 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22601 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22602 if test "${emacs_cv_c_restrict+set}" = set; then
22603 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 cat >conftest.
$ac_ext <<_ACEOF
22608 cat confdefs.h
>>conftest.
$ac_ext
22609 cat >>conftest.
$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 void fred (int *restrict x);
22620 rm -f conftest.
$ac_objext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22622 (eval $ac_compile) 2>conftest.er1
22624 grep -v '^ *+' conftest.er1
>conftest.err
22626 cat conftest.err
>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } &&
22629 { ac_try
='test -z "$ac_c_werror_flag"
22630 || test ! -s conftest.err'
22631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632 (eval $ac_try) 2>&5
22634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635 (exit $ac_status); }; } &&
22636 { ac_try
='test -s conftest.$ac_objext'
22637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638 (eval $ac_try) 2>&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); }; }; then
22642 emacs_cv_c_restrict
=yes
22644 echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.
$ac_ext >&5
22647 cat >conftest.
$ac_ext <<_ACEOF
22650 cat confdefs.h
>>conftest.
$ac_ext
22651 cat >>conftest.
$ac_ext <<_ACEOF
22652 /* end confdefs.h. */
22653 void fred (int *__restrict x);
22662 rm -f conftest.
$ac_objext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664 (eval $ac_compile) 2>conftest.er1
22666 grep -v '^ *+' conftest.er1
>conftest.err
22668 cat conftest.err
>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } &&
22671 { ac_try
='test -z "$ac_c_werror_flag"
22672 || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try
='test -s conftest.$ac_objext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 emacs_cv_c_restrict
=__restrict
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.
$ac_ext >&5
22689 emacs_cv_c_restrict
=no
22691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22695 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22696 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22697 case "$emacs_cv_c_restrict" in
22698 yes) emacs_restrict
=restrict
;;
22699 no
) emacs_restrict
="";;
22700 *) emacs_restrict
="$emacs_cv_c_restrict";;
22702 if test "$emacs_restrict" != __restrict
; then
22704 cat >>confdefs.h
<<_ACEOF
22705 #define __restrict $emacs_restrict
22710 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22711 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22712 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22713 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 cat >conftest.
$ac_ext <<_ACEOF
22718 cat confdefs.h
>>conftest.
$ac_ext
22719 cat >>conftest.
$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 void fred (int x[__restrict]);
22730 rm -f conftest.
$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732 (eval $ac_compile) 2>conftest.er1
22734 grep -v '^ *+' conftest.er1
>conftest.err
22736 cat conftest.err
>&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } &&
22739 { ac_try
='test -z "$ac_c_werror_flag"
22740 || test ! -s conftest.err'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try
='test -s conftest.$ac_objext'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }; then
22752 emacs_cv_c_restrict_arr
=yes
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.
$ac_ext >&5
22757 emacs_cv_c_restrict_arr
=no
22759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22761 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22762 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22763 if test "$emacs_cv_c_restrict_arr" = yes; then
22765 cat >>confdefs.h
<<\_ACEOF
22766 #define __restrict_arr __restrict
22773 # Set up the CFLAGS for real compilation, so we can substitute it.
22774 CFLAGS
="$REAL_CFLAGS"
22775 CPPFLAGS
="$REAL_CPPFLAGS"
22777 #### Find out which version of Emacs this is.
22778 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22779 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22780 if test x
"${version}" = x
; then
22781 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22782 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22783 { (exit 1); exit 1; }; }
22786 ### Specify what sort of things we'll be editing into Makefile and config.h.
22787 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22823 cat >>confdefs.h
<<_ACEOF
22824 #define EMACS_CONFIGURATION "${canonical}"
22828 cat >>confdefs.h
<<_ACEOF
22829 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22833 cat >>confdefs.h
<<_ACEOF
22834 #define config_machfile "${machfile}"
22838 cat >>confdefs.h
<<_ACEOF
22839 #define config_opsysfile "${opsysfile}"
22843 cat >>confdefs.h
<<_ACEOF
22844 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22848 cat >>confdefs.h
<<_ACEOF
22849 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22853 cat >>confdefs.h
<<_ACEOF
22854 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22858 cat >>confdefs.h
<<_ACEOF
22859 #define UNEXEC_SRC ${UNEXEC_SRC}
22863 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22865 cat >>confdefs.h
<<\_ACEOF
22866 #define HAVE_X_WINDOWS 1
22870 if test "${USE_X_TOOLKIT}" != "none" ; then
22872 cat >>confdefs.h
<<\_ACEOF
22873 #define USE_X_TOOLKIT 1
22877 if test "${HAVE_X11}" = "yes" ; then
22879 cat >>confdefs.h
<<\_ACEOF
22884 if test "${HAVE_XFREE386}" = "yes" ; then
22886 cat >>confdefs.h
<<\_ACEOF
22887 #define HAVE_XFREE386 1
22891 if test "${HAVE_MENUS}" = "yes" ; then
22893 cat >>confdefs.h
<<\_ACEOF
22894 #define HAVE_MENUS 1
22898 if test "${GNU_MALLOC}" = "yes" ; then
22900 cat >>confdefs.h
<<\_ACEOF
22901 #define GNU_MALLOC 1
22905 if test "${REL_ALLOC}" = "yes" ; then
22907 cat >>confdefs.h
<<\_ACEOF
22908 #define REL_ALLOC 1
22917 #### Report on what we decided to do.
22918 #### Report GTK as a toolkit, even if it doesn't use Xt.
22919 #### It makes printing result more understandable as using GTK sets
22920 #### toolkit_scroll_bars to yes by default.
22921 if test "${HAVE_GTK}" = "yes"; then
22926 Configured for \`${canonical}'.
22928 Where should the build process find the source code? ${srcdir}
22929 What operating system and machine description files should Emacs use?
22930 \`${opsysfile}' and \`${machfile}'
22931 What compiler should emacs be built with? ${CC} ${CFLAGS}
22932 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22933 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22934 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22935 What window system should Emacs use? ${window_system}
22936 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22938 if test -n "${x_includes}"; then
22939 echo " Where do we find X Windows header files? ${x_includes}"
22941 echo " Where do we find X Windows header files? Standard dirs"
22943 if test -n "${x_libraries}"; then
22944 echo " Where do we find X Windows libraries? ${x_libraries}"
22946 echo " Where do we find X Windows libraries? Standard dirs"
22949 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22950 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22951 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22952 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22953 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22954 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22955 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22958 if test $USE_XASSERTS = yes; then
22959 echo " Compiling with asserts turned on."
22960 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22966 # Remove any trailing slashes in these variables.
22967 test "${prefix}" != NONE
&&
22968 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22969 test "${exec_prefix}" != NONE
&&
22970 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22972 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22973 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22974 ## from Makefile.c can correctly provide the arg `-traditional' to the
22977 cat >conftest.
$ac_ext <<_ACEOF
22980 cat confdefs.h
>>conftest.
$ac_ext
22981 cat >>conftest.
$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22986 $EGREP "yes..yes" >/dev
/null
2>&1; then
22987 CPP_NEED_TRADITIONAL
=no
22989 CPP_NEED_TRADITIONAL
=yes
22994 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"
22995 ac_config_commands
="$ac_config_commands default"
22996 cat >confcache
<<\_ACEOF
22997 # This file is a shell script that caches the results of configure
22998 # tests run on this system so they can be shared between configure
22999 # scripts and configure runs, see configure's option --config-cache.
23000 # It is not useful on other systems. If it contains results you don't
23001 # want to keep, you may remove or edit it.
23003 # config.status only pays attention to the cache file if you give it
23004 # the --recheck option to rerun configure.
23006 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23007 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23008 # following values.
23012 # The following way of writing the cache mishandles newlines in values,
23013 # but we know of no workaround that is simple, portable, and efficient.
23014 # So, don't put newlines in cache variables' values.
23015 # Ultrix sh set writes to stderr and can't be redirected directly,
23016 # and sets the high bit in the cache file unless we assign to the vars.
23019 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23021 # `set' does not quote correctly, so add quotes (double-quote
23022 # substitution turns \\\\ into \\, and sed turns \\ into \).
23025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23028 # `set' quotes correctly as required by POSIX, so do not add quotes.
23030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23039 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23041 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23042 if test -w $cache_file; then
23043 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23044 cat confcache
>$cache_file
23046 echo "not updating unwritable cache $cache_file"
23051 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23052 # Let make expand exec_prefix.
23053 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23055 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23056 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23057 # trailing colons and then remove the whole line if VPATH becomes empty
23058 # (actually we leave an empty line to preserve line numbers).
23059 if test "x$srcdir" = x.
; then
23060 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23061 s/:*\$(srcdir):*/:/;
23062 s/:*\${srcdir}:*/:/;
23064 s/^\([^=]*=[ ]*\):*/\1/;
23070 DEFS
=-DHAVE_CONFIG_H
23074 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23075 # 1. Remove the extension, and $U if already installed.
23076 ac_i
=`echo "$ac_i" |
23077 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23079 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23080 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23082 LIBOBJS
=$ac_libobjs
23084 LTLIBOBJS
=$ac_ltlibobjs
23088 : ${CONFIG_STATUS=./config.status}
23089 ac_clean_files_save
=$ac_clean_files
23090 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23091 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23092 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23093 cat >$CONFIG_STATUS <<_ACEOF
23095 # Generated by $as_me.
23096 # Run this file to recreate the current configuration.
23097 # Compiler output produced by configure, useful for debugging
23098 # configure, is in config.log if it exists.
23101 ac_cs_recheck=false
23103 SHELL=\${CONFIG_SHELL-$SHELL}
23106 cat >>$CONFIG_STATUS <<\_ACEOF
23107 ## --------------------- ##
23108 ## M4sh Initialization. ##
23109 ## --------------------- ##
23111 # Be Bourne compatible
23112 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23115 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23116 # is contrary to our usage. Disable this feature.
23117 alias -g '${1+"$@"}'='"$@"'
23118 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23121 DUALCASE
=1; export DUALCASE
# for MKS sh
23123 # Support unset when possible.
23124 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23131 # Work around bugs in pre-3.0 UWIN ksh.
23132 $as_unset ENV MAIL MAILPATH
23139 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23140 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23141 LC_TELEPHONE LC_TIME
23143 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23144 eval $as_var=C
; export $as_var
23150 # Required to use basename.
23151 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23157 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23158 as_basename
=basename
23164 # Name of the executable.
23165 as_me
=`$as_basename "$0" ||
23166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23167 X"$0" : 'X\(//\)$' \| \
23168 X"$0" : 'X\(/\)$' \| \
23169 . : '\(.\)' 2>/dev/null ||
23171 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23172 /^X\/\(\/\/\)$/{ s//\1/; q; }
23173 /^X\/\(\/\).*/{ s//\1/; q; }
23177 # PATH needs CR, and LINENO needs CR and PATH.
23178 # Avoid depending upon Character Ranges.
23179 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23180 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23181 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23182 as_cr_digits
='0123456789'
23183 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23185 # The user is always right.
23186 if test "${PATH_SEPARATOR+set}" != set; then
23187 echo "#! /bin/sh" >conf$$.sh
23188 echo "exit 0" >>conf$$.sh
23190 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23199 as_lineno_1
=$LINENO
23200 as_lineno_2
=$LINENO
23201 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23202 test "x$as_lineno_1" != "x$as_lineno_2" &&
23203 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23204 # Find who we are. Look in the path if we contain no path at all
23207 *[\\/]* ) as_myself
=$0 ;;
23208 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23209 for as_dir
in $PATH
23212 test -z "$as_dir" && as_dir
=.
23213 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23218 # We did not find ourselves, most probably we were run as `sh COMMAND'
23219 # in which case we are not to be found in the path.
23220 if test "x$as_myself" = x
; then
23223 if test ! -f "$as_myself"; then
23224 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23225 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23226 { (exit 1); exit 1; }; }
23228 case $CONFIG_SHELL in
23230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23231 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23234 test -z "$as_dir" && as_dir
=.
23235 for as_base
in sh bash ksh sh5
; do
23238 if ("$as_dir/$as_base" -c '
23239 as_lineno_1=$LINENO
23240 as_lineno_2=$LINENO
23241 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23242 test "x$as_lineno_1" != "x$as_lineno_2" &&
23243 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23244 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23245 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23246 CONFIG_SHELL
=$as_dir/$as_base
23247 export CONFIG_SHELL
23248 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23256 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23257 # uniformly replaced by the line number. The first 'sed' inserts a
23258 # line-number line before each line; the second 'sed' does the real
23259 # work. The second script uses 'N' to pair each line-number line
23260 # with the numbered line, and appends trailing '-' during
23261 # substitution so that $LINENO is not a special case at line end.
23262 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23263 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23264 sed '=' <$as_myself |
23269 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23272 s,^['$as_cr_digits']*\n,,
23273 ' >$as_me.lineno
&&
23274 chmod +x
$as_me.lineno ||
23275 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23276 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23277 { (exit 1); exit 1; }; }
23279 # Don't try to exec as it changes $[0], causing all sort of problems
23280 # (the dirname of $[0] is not the place where we might find the
23281 # original and so on. Autoconf is especially sensible to this).
23283 # Exit status is that of the last command.
23288 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23289 *c
*,-n*) ECHO_N
= ECHO_C
='
23291 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23292 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23295 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23301 rm -f conf$$ conf$$.exe conf$$.
file
23303 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23304 # We could just check for DJGPP; but this test a) works b) is more generic
23305 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23306 if test -f conf$$.exe
; then
23307 # Don't use ln at all; we don't have any links
23312 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23317 rm -f conf$$ conf$$.exe conf$$.
file
23319 if mkdir
-p .
2>/dev
/null
; then
23322 test -d .
/-p && rmdir .
/-p
23326 as_executable_p
="test -f"
23328 # Sed expression to map a string onto a valid CPP name.
23329 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23331 # Sed expression to map a string onto a valid variable name.
23332 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23336 # We need space, tab and new line, in precisely that order.
23346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23347 # report actual input values of CONFIG_FILES etc. instead of their
23348 # values after options handling. Logging --version etc. is OK.
23352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23353 ## Running $as_me. ##
23358 This file was extended by $as_me, which was
23359 generated by GNU Autoconf 2.59. Invocation command line was
23361 CONFIG_FILES = $CONFIG_FILES
23362 CONFIG_HEADERS = $CONFIG_HEADERS
23363 CONFIG_LINKS = $CONFIG_LINKS
23364 CONFIG_COMMANDS = $CONFIG_COMMANDS
23368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23372 # Files that config.status was made for.
23373 if test -n "$ac_config_files"; then
23374 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23377 if test -n "$ac_config_headers"; then
23378 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23381 if test -n "$ac_config_links"; then
23382 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23385 if test -n "$ac_config_commands"; then
23386 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23389 cat >>$CONFIG_STATUS <<\_ACEOF
23392 \`$as_me' instantiates files from templates according to the
23393 current configuration.
23395 Usage: $0 [OPTIONS] [FILE]...
23397 -h, --help print this help, then exit
23398 -V, --version print version number, then exit
23399 -q, --quiet do not print progress messages
23400 -d, --debug don't remove temporary files
23401 --recheck update $as_me by reconfiguring in the same conditions
23402 --file=FILE[:TEMPLATE]
23403 instantiate the configuration file FILE
23404 --header=FILE[:TEMPLATE]
23405 instantiate the configuration header FILE
23407 Configuration files:
23410 Configuration headers:
23413 Configuration commands:
23416 Report bugs to <bug-autoconf@gnu.org>."
23419 cat >>$CONFIG_STATUS <<_ACEOF
23422 configured by $0, generated by GNU Autoconf 2.59,
23423 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23425 Copyright (C) 2003 Free Software Foundation, Inc.
23426 This config.status script is free software; the Free Software Foundation
23427 gives unlimited permission to copy, distribute and modify it."
23432 cat >>$CONFIG_STATUS <<\_ACEOF
23433 # If no file are specified by the user, then we need to provide default
23434 # value. By we need to know if files were specified by the user.
23440 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23441 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23449 *) # This is not an option, so the user has probably given explicit
23452 ac_need_defaults
=false
;;
23456 # Handling of the options.
23458 cat >>$CONFIG_STATUS <<\_ACEOF
23459 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23461 --version |
--vers* |
-V )
23462 echo "$ac_cs_version"; exit 0 ;;
23464 # Conflict between --help and --header
23465 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23466 Try \`$0 --help' for more information." >&5
23467 echo "$as_me: error: ambiguous option: $1
23468 Try \`$0 --help' for more information." >&2;}
23469 { (exit 1); exit 1; }; };;
23470 --help |
--hel |
-h )
23471 echo "$ac_cs_usage"; exit 0 ;;
23472 --debug |
--d* |
-d )
23474 --file |
--fil |
--fi |
--f )
23476 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23477 ac_need_defaults
=false
;;
23478 --header |
--heade |
--head |
--hea )
23480 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23481 ac_need_defaults
=false
;;
23482 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23483 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23486 # This is an error.
23487 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23488 Try \`$0 --help' for more information." >&5
23489 echo "$as_me: error: unrecognized option: $1
23490 Try \`$0 --help' for more information." >&2;}
23491 { (exit 1); exit 1; }; } ;;
23493 *) ac_config_targets
="$ac_config_targets $1" ;;
23499 ac_configure_extra_args
=
23501 if $ac_cs_silent; then
23503 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23507 cat >>$CONFIG_STATUS <<_ACEOF
23508 if \$ac_cs_recheck; then
23509 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23510 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23515 cat >>$CONFIG_STATUS <<_ACEOF
23517 # INIT-COMMANDS section.
23520 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23526 cat >>$CONFIG_STATUS <<\_ACEOF
23527 for ac_config_target
in $ac_config_targets
23529 case "$ac_config_target" in
23530 # Handling of arguments.
23531 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23532 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23533 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23534 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23535 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23536 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23537 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23538 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23539 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23540 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23541 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23542 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23543 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23544 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23545 { (exit 1); exit 1; }; };;
23549 # If the user did not use the arguments to specify the items to instantiate,
23550 # then the envvar interface is used. Set only those that are not.
23551 # We use the long form for the default assignment because of an extremely
23552 # bizarre bug on SunOS 4.1.3.
23553 if $ac_need_defaults; then
23554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23559 # Have a temporary directory for convenience. Make it in the build tree
23560 # simply because there is no reason to put it here, and in addition,
23561 # creating and moving files from /tmp can sometimes cause problems.
23562 # Create a temporary directory, and hook for its removal unless debugging.
23565 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23566 trap '{ (exit 1); exit 1; }' 1 2 13 15
23569 # Create a (secure) tmp directory for tmp files.
23572 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23573 test -n "$tmp" && test -d "$tmp"
23576 tmp
=.
/confstat$$
-$RANDOM
23577 (umask 077 && mkdir
$tmp)
23580 echo "$me: cannot create a temporary directory in ." >&2
23581 { (exit 1); exit 1; }
23586 cat >>$CONFIG_STATUS <<_ACEOF
23589 # CONFIG_FILES section.
23592 # No need to generate the scripts if there are no CONFIG_FILES.
23593 # This happens for instance when ./config.status config.h
23594 if test -n "\$CONFIG_FILES"; then
23595 # Protect against being on the right side of a sed subst in config.status.
23596 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23597 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23598 s,@SHELL@,$SHELL,;t t
23599 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23600 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23601 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23602 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23603 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23604 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23605 s,@exec_prefix@,$exec_prefix,;t t
23606 s,@prefix@,$prefix,;t t
23607 s,@program_transform_name@,$program_transform_name,;t t
23608 s,@bindir@,$bindir,;t t
23609 s,@sbindir@,$sbindir,;t t
23610 s,@libexecdir@,$libexecdir,;t t
23611 s,@datadir@,$datadir,;t t
23612 s,@sysconfdir@,$sysconfdir,;t t
23613 s,@sharedstatedir@,$sharedstatedir,;t t
23614 s,@localstatedir@,$localstatedir,;t t
23615 s,@libdir@,$libdir,;t t
23616 s,@includedir@,$includedir,;t t
23617 s,@oldincludedir@,$oldincludedir,;t t
23618 s,@infodir@,$infodir,;t t
23619 s,@mandir@,$mandir,;t t
23620 s,@build_alias@,$build_alias,;t t
23621 s,@host_alias@,$host_alias,;t t
23622 s,@target_alias@,$target_alias,;t t
23623 s,@DEFS@,$DEFS,;t t
23624 s,@ECHO_C@,$ECHO_C,;t t
23625 s,@ECHO_N@,$ECHO_N,;t t
23626 s,@ECHO_T@,$ECHO_T,;t t
23627 s,@LIBS@,$LIBS,;t t
23628 s,@MAINT@,$MAINT,;t t
23629 s,@build@,$build,;t t
23630 s,@build_cpu@,$build_cpu,;t t
23631 s,@build_vendor@,$build_vendor,;t t
23632 s,@build_os@,$build_os,;t t
23633 s,@host@,$host,;t t
23634 s,@host_cpu@,$host_cpu,;t t
23635 s,@host_vendor@,$host_vendor,;t t
23636 s,@host_os@,$host_os,;t t
23638 s,@CFLAGS@,$CFLAGS,;t t
23639 s,@LDFLAGS@,$LDFLAGS,;t t
23640 s,@CPPFLAGS@,$CPPFLAGS,;t t
23641 s,@ac_ct_CC@,$ac_ct_CC,;t t
23642 s,@EXEEXT@,$EXEEXT,;t t
23643 s,@OBJEXT@,$OBJEXT,;t t
23645 s,@EGREP@,$EGREP,;t t
23646 s,@LN_S@,$LN_S,;t t
23647 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23648 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23649 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23650 s,@RANLIB@,$RANLIB,;t t
23651 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23652 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23653 s,@GZIP_PROG@,$GZIP_PROG,;t t
23654 s,@LIBSOUND@,$LIBSOUND,;t t
23655 s,@SET_MAKE@,$SET_MAKE,;t t
23656 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23657 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23658 s,@GTK_LIBS@,$GTK_LIBS,;t t
23659 s,@ALLOCA@,$ALLOCA,;t t
23660 s,@liblockfile@,$liblockfile,;t t
23661 s,@LIBOBJS@,$LIBOBJS,;t t
23662 s,@NEED_SETGID@,$NEED_SETGID,;t t
23663 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23664 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23665 s,@GETOPT_H@,$GETOPT_H,;t t
23666 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23667 s,@version@,$version,;t t
23668 s,@configuration@,$configuration,;t t
23669 s,@canonical@,$canonical,;t t
23670 s,@srcdir@,$srcdir,;t t
23671 s,@lispdir@,$lispdir,;t t
23672 s,@locallisppath@,$locallisppath,;t t
23673 s,@lisppath@,$lisppath,;t t
23674 s,@x_default_search_path@,$x_default_search_path,;t t
23675 s,@etcdir@,$etcdir,;t t
23676 s,@archlibdir@,$archlibdir,;t t
23677 s,@docdir@,$docdir,;t t
23678 s,@bitmapdir@,$bitmapdir,;t t
23679 s,@gamedir@,$gamedir,;t t
23680 s,@gameuser@,$gameuser,;t t
23681 s,@c_switch_system@,$c_switch_system,;t t
23682 s,@c_switch_machine@,$c_switch_machine,;t t
23683 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23684 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23685 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23686 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23687 s,@machfile@,$machfile,;t t
23688 s,@opsysfile@,$opsysfile,;t t
23689 s,@carbon_appdir@,$carbon_appdir,;t t
23690 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23695 cat >>$CONFIG_STATUS <<\_ACEOF
23696 # Split the substitutions into bite-sized pieces for seds with
23697 # small command number limits, like on Digital OSF/1 and HP-UX.
23698 ac_max_sed_lines
=48
23699 ac_sed_frag
=1 # Number of current file.
23700 ac_beg
=1 # First line for current file.
23701 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23704 while $ac_more_lines; do
23705 if test $ac_beg -gt 1; then
23706 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23708 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23710 if test ! -s $tmp/subs.frag
; then
23711 ac_more_lines
=false
23713 # The purpose of the label and of the branching condition is to
23714 # speed up the sed processing (if there are no `@' at all, there
23715 # is no need to browse any of the substitutions).
23716 # These are the two extra sed commands mentioned above.
23718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23719 if test -z "$ac_sed_cmds"; then
23720 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23722 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23724 ac_sed_frag
=`expr $ac_sed_frag + 1`
23726 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23729 if test -z "$ac_sed_cmds"; then
23732 fi # test -n "$CONFIG_FILES"
23735 cat >>$CONFIG_STATUS <<\_ACEOF
23736 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23739 - |
*:- |
*:-:* ) # input from stdin
23741 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23742 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23743 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23744 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23745 * ) ac_file_in
=$ac_file.
in ;;
23748 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23749 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23751 X"$ac_file" : 'X\(//\)[^/]' \| \
23752 X"$ac_file" : 'X\(//\)$' \| \
23753 X"$ac_file" : 'X\(/\)' \| \
23754 . : '\(.\)' 2>/dev/null ||
23756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23758 /^X\(\/\/\)$/{ s//\1/; q; }
23759 /^X\(\/\).*/{ s//\1/; q; }
23761 { if $as_mkdir_p; then
23766 while test ! -d "$as_dir"; do
23767 as_dirs
="$as_dir $as_dirs"
23768 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23770 X"$as_dir" : 'X\(//\)[^/]' \| \
23771 X"$as_dir" : 'X\(//\)$' \| \
23772 X"$as_dir" : 'X\(/\)' \| \
23773 . : '\(.\)' 2>/dev/null ||
23775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23777 /^X\(\/\/\)$/{ s//\1/; q; }
23778 /^X\(\/\).*/{ s//\1/; q; }
23781 test ! -n "$as_dirs" || mkdir
$as_dirs
23782 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23783 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23784 { (exit 1); exit 1; }; }; }
23788 if test "$ac_dir" != .
; then
23789 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23790 # A "../" for each directory in $ac_dir_suffix.
23791 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23793 ac_dir_suffix
= ac_top_builddir
=
23797 .
) # No --srcdir option. We are building in place.
23799 if test -z "$ac_top_builddir"; then
23802 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23804 [\\/]* | ?
:[\\/]* ) # Absolute path.
23805 ac_srcdir
=$srcdir$ac_dir_suffix;
23806 ac_top_srcdir
=$srcdir ;;
23807 *) # Relative path.
23808 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23809 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23812 # Do not use `cd foo && pwd` to compute absolute paths, because
23813 # the directories may not exist.
23815 .
) ac_abs_builddir
="$ac_dir";;
23818 .
) ac_abs_builddir
=`pwd`;;
23819 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23820 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23823 case $ac_abs_builddir in
23824 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23826 case ${ac_top_builddir}.
in
23827 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23828 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23829 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23832 case $ac_abs_builddir in
23833 .
) ac_abs_srcdir
=$ac_srcdir;;
23836 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23837 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23838 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23841 case $ac_abs_builddir in
23842 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23844 case $ac_top_srcdir in
23845 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23846 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23847 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23853 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23854 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23857 if test x
"$ac_file" != x-
; then
23858 { echo "$as_me:$LINENO: creating $ac_file" >&5
23859 echo "$as_me: creating $ac_file" >&6;}
23862 # Let's still pretend it is `configure' which instantiates (i.e., don't
23863 # use $as_me), people would be surprised to read:
23864 # /* config.h. Generated by config.status. */
23865 if test x
"$ac_file" = x-
; then
23868 configure_input
="$ac_file. "
23870 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23871 sed 's,.*/,,'` by configure."
23873 # First look for the input files in the build tree, otherwise in the
23875 ac_file_inputs
=`IFS=:
23876 for f in $ac_file_in; do
23878 -) echo $tmp/stdin ;;
23880 # Absolute (can't be DOS-style, as IFS=:)
23881 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23882 echo "$as_me: error: cannot find input file: $f" >&2;}
23883 { (exit 1); exit 1; }; }
23886 if test -f "$f"; then
23889 elif test -f "$srcdir/$f"; then
23894 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23895 echo "$as_me: error: cannot find input file: $f" >&2;}
23896 { (exit 1); exit 1; }; }
23899 done` ||
{ (exit 1); exit 1; }
23901 cat >>$CONFIG_STATUS <<_ACEOF
23905 cat >>$CONFIG_STATUS <<\_ACEOF
23907 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23908 s
,@configure_input@
,$configure_input,;t t
23909 s
,@srcdir@
,$ac_srcdir,;t t
23910 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23911 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23912 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23913 s
,@builddir@
,$ac_builddir,;t t
23914 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23915 s
,@top_builddir@
,$ac_top_builddir,;t t
23916 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23917 s
,@INSTALL@
,$ac_INSTALL,;t t
23918 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23920 if test x"$ac_file" != x-; then
23921 mv $tmp/out $ac_file
23929 cat >>$CONFIG_STATUS <<\_ACEOF
23932 # CONFIG_HEADER section.
23935 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23936 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23938 # ac_d sets the value in "#define NAME VALUE" lines.
23939 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23940 ac_dB
='[ ].*$,\1#\2'
23943 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23944 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23945 ac_uB
='$,\1#\2define\3'
23949 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23952 - |
*:- |
*:-:* ) # input from stdin
23954 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23955 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23956 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23957 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23958 * ) ac_file_in
=$ac_file.
in ;;
23961 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23962 echo "$as_me: creating $ac_file" >&6;}
23964 # First look for the input files in the build tree, otherwise in the
23966 ac_file_inputs
=`IFS=:
23967 for f in $ac_file_in; do
23969 -) echo $tmp/stdin ;;
23971 # Absolute (can't be DOS-style, as IFS=:)
23972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23973 echo "$as_me: error: cannot find input file: $f" >&2;}
23974 { (exit 1); exit 1; }; }
23975 # Do quote $f, to prevent DOS paths from being IFS'd.
23978 if test -f "$f"; then
23981 elif test -f "$srcdir/$f"; then
23986 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23987 echo "$as_me: error: cannot find input file: $f" >&2;}
23988 { (exit 1); exit 1; }; }
23991 done` ||
{ (exit 1); exit 1; }
23992 # Remove the trailing spaces.
23993 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23997 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23998 # `conftest.undefs', that substitutes the proper values into
23999 # config.h.in to produce config.h. The first handles `#define'
24000 # templates, and the second `#undef' templates.
24001 # And first: Protect against being on the right side of a sed subst in
24002 # config.status. Protect against being in an unquoted here document
24003 # in config.status.
24004 rm -f conftest.defines conftest.undefs
24005 # Using a here document instead of a string reduces the quoting nightmare.
24006 # Putting comments in sed scripts is not portable.
24008 # `end' is used to avoid that the second main sed command (meant for
24009 # 0-ary CPP macros) applies to n-ary macro definitions.
24010 # See the Autoconf documentation for `clear'.
24011 cat >confdef2sed.
sed <<\_ACEOF
24016 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24018 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24021 # If some macros were called several times there might be several times
24022 # the same #defines, which is useless. Nevertheless, we may not want to
24023 # sort them, since we want the *last* AC-DEFINE to be honored.
24024 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24025 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24026 rm -f confdef2sed.sed
24028 # This sed command replaces #undef with comments. This is necessary, for
24029 # example, in the case of _POSIX_SOURCE, which is predefined and required
24030 # on some systems where configure will not decide to define it.
24031 cat >>conftest.undefs <<\_ACEOF
24032 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24035 # Break up conftest.defines because some shells have a limit on the size
24036 # of here documents, and old seds have small limits too (100 cmds).
24037 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24038 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24039 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24040 echo ' :' >>$CONFIG_STATUS
24041 rm -f conftest.tail
24042 while grep . conftest.defines >/dev/null
24044 # Write a limited-size here document to $tmp/defines.sed.
24045 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24046 # Speed up: don't consider the non `#define' lines.
24047 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24048 # Work around the forget-to-reset-the-flag bug.
24049 echo 't clr' >>$CONFIG_STATUS
24050 echo ': clr' >>$CONFIG_STATUS
24051 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24053 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24055 mv $tmp/out $tmp/in
24057 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24058 rm -f conftest.defines
24059 mv conftest.
tail conftest.defines
24061 rm -f conftest.defines
24062 echo ' fi # grep' >>$CONFIG_STATUS
24063 echo >>$CONFIG_STATUS
24065 # Break up conftest.undefs because some shells have a limit on the size
24066 # of here documents, and old seds have small limits too (100 cmds).
24067 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24068 rm -f conftest.
tail
24069 while grep . conftest.undefs
>/dev
/null
24071 # Write a limited-size here document to $tmp/undefs.sed.
24072 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24073 # Speed up: don't consider the non
`#undef'
24074 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24075 # Work around the forget-to-reset-the-flag bug.
24076 echo 't clr' >>$CONFIG_STATUS
24077 echo ': clr' >>$CONFIG_STATUS
24078 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24080 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24082 mv $tmp/out $tmp/in
24084 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24085 rm -f conftest.undefs
24086 mv conftest.tail conftest.undefs
24088 rm -f conftest.undefs
24090 cat >>$CONFIG_STATUS <<\_ACEOF
24091 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24092 # use $as_me), people would be surprised to read:
24093 # /* config.h. Generated by config.status. */
24094 if test x
"$ac_file" = x-
; then
24095 echo "/* Generated by configure. */" >$tmp/config.h
24097 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24099 cat $tmp/in >>$tmp/config.h
24101 if test x
"$ac_file" != x-
; then
24102 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24103 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24104 echo "$as_me: $ac_file is unchanged" >&6;}
24106 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108 X"$ac_file" : 'X\(//\)[^/]' \| \
24109 X"$ac_file" : 'X\(//\)$' \| \
24110 X"$ac_file" : 'X\(/\)' \| \
24111 . : '\(.\)' 2>/dev/null ||
24113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24115 /^X\(\/\/\)$/{ s//\1/; q; }
24116 /^X\(\/\).*/{ s//\1/; q; }
24118 { if $as_mkdir_p; then
24123 while test ! -d "$as_dir"; do
24124 as_dirs
="$as_dir $as_dirs"
24125 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24127 X"$as_dir" : 'X\(//\)[^/]' \| \
24128 X"$as_dir" : 'X\(//\)$' \| \
24129 X"$as_dir" : 'X\(/\)' \| \
24130 . : '\(.\)' 2>/dev/null ||
24132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24134 /^X\(\/\/\)$/{ s//\1/; q; }
24135 /^X\(\/\).*/{ s//\1/; q; }
24138 test ! -n "$as_dirs" || mkdir
$as_dirs
24139 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24140 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24141 { (exit 1); exit 1; }; }; }
24144 mv $tmp/config.h
$ac_file
24148 rm -f $tmp/config.h
24152 cat >>$CONFIG_STATUS <<\_ACEOF
24155 # CONFIG_COMMANDS section.
24157 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24158 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24159 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24160 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24161 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24162 X"$ac_dest" : 'X\(//\)[^/]' \| \
24163 X"$ac_dest" : 'X\(//\)$' \| \
24164 X"$ac_dest" : 'X\(/\)' \| \
24165 . : '\(.\)' 2>/dev/null ||
24167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24169 /^X\(\/\/\)$/{ s//\1/; q; }
24170 /^X\(\/\).*/{ s//\1/; q; }
24172 { if $as_mkdir_p; then
24177 while test ! -d "$as_dir"; do
24178 as_dirs
="$as_dir $as_dirs"
24179 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24181 X"$as_dir" : 'X\(//\)[^/]' \| \
24182 X"$as_dir" : 'X\(//\)$' \| \
24183 X"$as_dir" : 'X\(/\)' \| \
24184 . : '\(.\)' 2>/dev/null ||
24186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24188 /^X\(\/\/\)$/{ s//\1/; q; }
24189 /^X\(\/\).*/{ s//\1/; q; }
24192 test ! -n "$as_dirs" || mkdir
$as_dirs
24193 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24195 { (exit 1); exit 1; }; }; }
24199 if test "$ac_dir" != .
; then
24200 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24201 # A "../" for each directory in $ac_dir_suffix.
24202 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24204 ac_dir_suffix
= ac_top_builddir
=
24208 .
) # No --srcdir option. We are building in place.
24210 if test -z "$ac_top_builddir"; then
24213 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24215 [\\/]* | ?
:[\\/]* ) # Absolute path.
24216 ac_srcdir
=$srcdir$ac_dir_suffix;
24217 ac_top_srcdir
=$srcdir ;;
24218 *) # Relative path.
24219 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24220 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24223 # Do not use `cd foo && pwd` to compute absolute paths, because
24224 # the directories may not exist.
24226 .
) ac_abs_builddir
="$ac_dir";;
24229 .
) ac_abs_builddir
=`pwd`;;
24230 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24231 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24234 case $ac_abs_builddir in
24235 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24237 case ${ac_top_builddir}.
in
24238 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24239 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24240 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24243 case $ac_abs_builddir in
24244 .
) ac_abs_srcdir
=$ac_srcdir;;
24247 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24248 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24249 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24252 case $ac_abs_builddir in
24253 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24255 case $ac_top_srcdir in
24256 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24257 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24258 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24263 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24264 echo "$as_me: executing $ac_dest commands" >&6;}
24268 ### Make the necessary directories, if they don't exist.
24269 for dir
in etc lisp
; do
24270 test -d ${dir} || mkdir
${dir}
24273 # Build src/Makefile from ${srcdir}/src/Makefile.c
24274 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24275 # This must be done after src/config.h is built, since we rely on that file.
24277 # Now get this: Some word that is part of the ${srcdir} directory name
24278 # or the ${configuration} value might, just might, happen to be an
24279 # identifier like `sun4' or `i386' or something, and be predefined by
24280 # the C preprocessor to some helpful value like 1, or maybe the empty
24281 # string. Needless to say consequent macro substitutions are less
24282 # than conducive to the makefile finding the correct directory.
24283 undefs
="`echo $top_srcdir $configuration $canonical |
24284 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24285 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24288 echo creating src
/epaths.h
24289 ${MAKE-make} epaths-force
24291 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24292 # `..' to `. .' unless invoked with -traditional
24294 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24295 CPPFLAGS
="$CPPFLAGS -traditional"
24298 echo creating lib-src
/Makefile
24300 rm -f junk.c junk1.c junk2.c
24301 sed -e '/start of cpp stuff/q' \
24302 < Makefile.c
> junk1.c
24303 sed -e '1,/start of cpp stuff/d'\
24304 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24305 < Makefile.c
> junk.c
24306 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24307 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24308 cat junk1.c junk2.c
> Makefile.new
24309 rm -f junk.c junk1.c junk2.c
24310 chmod 444 Makefile.new
24311 mv -f Makefile.new Makefile
24314 echo creating src
/Makefile
24316 rm -f junk.c junk1.c junk2.c
24317 sed -e '/start of cpp stuff/q' \
24318 < Makefile.c
> junk1.c
24319 sed -e '1,/start of cpp stuff/d'\
24320 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24321 < Makefile.c
> junk.c
24322 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24323 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24324 cat junk1.c junk2.c
> Makefile.new
24325 rm -f junk.c junk1.c junk2.c
24326 chmod 444 Makefile.new
24327 mv -f Makefile.new Makefile
24330 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24331 echo creating src
/.gdbinit
24332 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24335 # This is how we know whether to re-run configure in certain cases.
24336 touch src
/config.stamp
24343 cat >>$CONFIG_STATUS <<\_ACEOF
24345 { (exit 0); exit 0; }
24347 chmod +x
$CONFIG_STATUS
24348 ac_clean_files
=$ac_clean_files_save
24351 # configure is writing to config.log, and then calls config.status.
24352 # config.status does its own redirection, appending to config.log.
24353 # Unfortunately, on DOS this fails, as config.log is still kept open
24354 # by configure, so config.status won't be able to write to it; its
24355 # output is simply discarded. So we exec the FD to /dev/null,
24356 # effectively closing config.log, so it can be properly (re)opened and
24357 # appended to by config.status. When coming back to configure, we
24358 # need to make the FD available again.
24359 if test "$no_create" != yes; then
24361 ac_config_status_args
=
24362 test "$silent" = yes &&
24363 ac_config_status_args
="$ac_config_status_args --quiet"
24365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24368 # would make configure fail if this is the last instruction.
24369 $ac_cs_success ||
{ (exit 1); exit 1; }