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
2096 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2099 hppa
*-*-linux-gnu* )
2100 machine
=hp800 opsys
=gnu-linux
2103 ## HP 9000 series 700 and 800, running HP/UX
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2111 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2112 *) machine
=hp800 opsys
=hpux10
;;
2116 machine
=hp800 opsys
=nextstep
2121 machine
=orion opsys
=bsd4-2
2123 clipper-orion-bsd
* )
2124 machine
=orion105 opsys
=bsd4-2
2128 i
[3456]86-ibm-aix1.1
* )
2129 machine
=ibmps2-aix opsys
=usg5-2-2
2131 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2132 machine
=ibmps2-aix opsys
=usg5-3
2135 machine
=ibm370aix opsys
=usg5-3
2138 machine
=ibms390 opsys
=gnu-linux
2140 s390x-
*-linux-gnu* )
2141 machine
=ibms390x opsys
=gnu-linux
2143 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2144 machine
=ibmrs6000 opsys
=aix3-1
2146 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2147 machine
=ibmrs6000 opsys
=aix3-2-5
2149 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2150 machine
=ibmrs6000 opsys
=aix4-1
2152 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2153 machine
=ibmrs6000 opsys
=aix4-2
2155 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2156 machine
=ibmrs6000 opsys
=aix4-2
2158 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2159 machine
=ibmrs6000 opsys
=aix4
2161 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2162 machine
=ibmrs6000 opsys
=aix4-1
2164 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2165 machine
=ibmrs6000 opsys
=aix3-2
2168 machine
=ibmrt opsys
=bsd4-3
2171 machine
=ibmrt opsys
=bsd4-2
2174 machine
=ibmrt opsys
=bsd4-3
2177 machine
=ibmrt opsys
=bsd4-2
2180 machine
=ibmrt opsys
=bsd4-3
2183 machine
=ibmrt opsys
=bsd4-3
2186 machine
=ibmrt-aix opsys
=usg5-2-2
2189 ## Integrated Solutions `Optimum V'
2191 machine
=isi-ov opsys
=bsd4-2
2194 machine
=isi-ov opsys
=bsd4-3
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i
[3456]86-intsys-sysv* )
2199 machine
=is386 opsys
=usg5-2-2
2203 i
[3456]86-prime-sysv* )
2204 machine
=i386 opsys
=usg5-3
2207 ## Sequent Symmetry running Dynix
2208 i
[3456]86-sequent-bsd* )
2209 machine
=symmetry opsys
=bsd4-3
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2214 machine
=sequent-ptx opsys
=ptx4
2215 NON_GNU_CPP
=/lib
/cpp
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i
[3456]86-sequent-ptx* )
2221 machine
=sequent-ptx opsys
=ptx
2222 NON_GNU_CPP
="/lib/cpp"
2225 ## ncr machine running svr4.3.
2226 i
[3456]86-ncr-sysv4.3
)
2227 machine
=ncr386 opsys
=usg5-4-3
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i
[3456]86-ncr-sysv* )
2233 machine
=ncr386 opsys
=usg5-4-2
2236 ## Intel Paragon OSF/1
2238 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2243 machine
=i860 opsys
=usg5-4
2244 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2248 ## Macintosh PowerPC
2249 powerpc
*-*-linux-gnu* )
2250 machine
=macppc opsys
=gnu-linux
2253 ## Masscomp machines
2254 m68
*-masscomp-rtu* )
2255 machine
=masscomp opsys
=rtu
2258 ## Megatest machines
2259 m68
*-megatest-bsd* )
2260 machine
=mega68 opsys
=bsd4-2
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2276 ## Fall through to the general code at the bottom to decide on the OS.
2278 mips-mips-riscos4
* )
2279 machine
=mips4 opsys
=bsd4-3
2280 NON_GNU_CC
="cc -systype bsd43"
2281 NON_GNU_CPP
="cc -systype bsd43 -E"
2283 mips-mips-riscos5
* )
2284 machine
=mips4 opsys
=riscos5
2285 NON_GNU_CC
="cc -systype bsd43"
2286 NON_GNU_CPP
="cc -systype bsd43 -E"
2289 machine
=mips opsys
=bsd4-3
2292 machine
=mips opsys
=usg5-2-2
2296 m68
*-next-* | m68k-
*-nextstep* )
2297 machine
=m68k opsys
=nextstep
2300 ## The complete machine from National Semiconductor
2302 machine
=ns32000 opsys
=usg5-2
2306 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2307 machine
=tower32 opsys
=usg5-2-2
2309 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2310 machine
=tower32v3 opsys
=usg5-3
2315 machine
=ews4800 opsys
=ux4800
2318 ## Nixdorf Targon 31
2319 m68
*-nixdorf-sysv* )
2320 machine
=targon31 opsys
=usg5-2-2
2325 machine
=nu opsys
=usg5-2
2330 machine
=plexus opsys
=usg5-2
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd
* )
2337 machine
=pyramid opsys
=bsd4-2
2341 ns32k-sequent-bsd4.2
* )
2342 machine
=sequent opsys
=bsd4-2
2344 ns32k-sequent-bsd4.3
* )
2345 machine
=sequent opsys
=bsd4-3
2349 mips-siemens-sysv
* | mips-sni-sysv
*)
2350 machine
=mips-siemens opsys
=usg5-4
2351 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2352 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2358 machine
=irist opsys
=iris3-5
2360 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2361 machine
=irist opsys
=iris3-6
2365 machine
=iris4d opsys
=irix3-3
2368 machine
=iris4d opsys
=irix4-0
2371 machine
=iris4d opsys
=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2379 machine
=iris4d opsys
=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS
=-32
2386 mips-sgi-irix5.
[01]* )
2387 machine
=iris4d opsys
=irix5-0
2389 mips-sgi-irix5
* | mips-sgi-irix
* )
2390 machine
=iris4d opsys
=irix5-2
2395 machine
=news opsys
=bsd4-2
2398 machine
=news opsys
=bsd4-3
2400 m68
*-sony-newsos3* | m68
*-sony-news3*)
2401 machine
=news opsys
=bsd4-3
2403 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2404 machine
=news-risc opsys
=bsd4-3
2406 mips-sony-newsos6
* )
2407 machine
=news-r6 opsys
=newsos6
2410 machine
=news-risc opsys
=newsos5
2415 machine
=stride opsys
=usg5-2
2419 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2420 machine
=sparc opsys
=gnu-linux
2423 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2424 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2425 | rs6000-
*-solaris2*)
2426 case "${canonical}" in
2427 m68
*-sunos1* ) machine
=sun1
;;
2428 m68
*-sunos2* ) machine
=sun2
;;
2429 m68
* ) machine
=sun3
;;
2430 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2431 i
[3456]86-*-* ) machine
=intel386
;;
2432 powerpcle
* ) machine
=powerpcle
;;
2433 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2434 sparc
* ) machine
=sparc
;;
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2440 *-sunos4.0
* ) opsys
=sunos4-0
;;
2441 *-sunos4.1.
[3-9]*noshare
)
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2445 NON_GNU_CPP
=/usr
/lib
/cpp
2446 NON_GCC_TEST_OPTIONS
=-Bstatic
2447 GCC_TEST_OPTIONS
=-static
2449 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2451 NON_GNU_CPP
=/usr
/lib
/cpp
2453 *-sunos4* |
*-sunos )
2455 NON_GCC_TEST_OPTIONS
=-Bstatic
2456 GCC_TEST_OPTIONS
=-static
2458 *-sunos5.3
* |
*-solaris2.3
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2462 *-sunos5.4
* |
*-solaris2.4
* )
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2467 *-sunos5.5
* |
*-solaris2.5
* )
2469 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2472 *-sunos5.6
* |
*-solaris2.6
* )
2474 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2477 *-sunos5* |
*-solaris* )
2479 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* |
*-sunos5* )
2486 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2496 machine
=sparc opsys
=nextstep
2500 m68
*-tadpole-sysv* )
2501 machine
=tad68k opsys
=usg5-3
2505 tahoe-tahoe-bsd4.2
* )
2506 machine
=tahoe opsys
=bsd4-2
2508 tahoe-tahoe-bsd4.3
* )
2509 machine
=tahoe opsys
=bsd4-3
2512 ## Tandem Integrity S2
2514 machine
=tandem-s2 opsys
=usg5-3
2518 m88k-tektronix-sysv3
* )
2519 machine
=tekxd88 opsys
=usg5-3
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd
* )
2524 machine
=ns16000 opsys
=bsd4-2
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68
*-tektronix-bsd* )
2529 machine
=tek4300 opsys
=bsd4-3
2533 ## We seem to have lost the machine-description file titan.h!
2535 machine
=titan opsys
=usg5-3
2538 ## Ustation E30 (SS5E)
2539 m68
*-unisys-uniplus* )
2540 machine
=ustation opsystem
=unipl5-2
2546 case "${canonical}" in
2547 *-bsd4.1
* ) opsys
=bsd4-1
;;
2548 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2549 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2550 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2551 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2552 *-vms* ) opsys
=vms
;;
2558 ns16k-whitechapel-
* )
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2566 machine
=wicat opsys
=usg5-2
2571 machine
=ia64 opsys
=gnu-linux
2574 ## Intel 386 machines where we don't care about the manufacturer
2577 case "${canonical}" in
2578 *-cygwin ) opsys
=cygwin
;;
2579 *-darwin* ) opsys
=darwin
2580 CPP
="${CC-cc} -E -no-cpp-precomp"
2582 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2583 *-isc2.2
* ) opsys
=isc2-2
;;
2584 *-isc4.0
* ) opsys
=isc4-0
;;
2585 *-isc4.
* ) opsys
=isc4-1
2586 GCC_TEST_OPTIONS
=-posix
2587 NON_GCC_TEST_OPTIONS
=-Xp
2589 *-isc* ) opsys
=isc3-0
;;
2590 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2591 *-esix* ) opsys
=esix
;;
2592 *-xenix* ) opsys
=xenix
;;
2593 *-linux-gnu* ) opsys
=gnu-linux
;;
2594 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2595 *-sco3.2v5
* ) opsys
=sco5
2596 NON_GNU_CPP
=/lib
/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS
=" "
2601 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2602 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2603 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2604 *-386bsd* ) opsys
=386bsd
;;
2605 *-nextstep* ) opsys
=nextstep
;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2610 ## m68k Linux-based GNU system
2612 machine
=m68k opsys
=gnu-linux
2615 ## Mips Linux-based GNU system
2616 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2617 machine
=mips opsys
=gnu-linux
2621 sparc-fujitsu-sysv4
* )
2622 machine
=sparc opsys
=uxpds
2623 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2628 f301-fujitsu-uxpv4.1
)
2629 machine
=f301 opsys
=uxpv
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin
* )
2634 machine
=powermac opsys
=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP
="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw
/include
&& test -d /sw
/lib
; then
2639 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2640 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-
*-linux-gnu* )
2647 machine
=amdx86-64 opsys
=gnu-linux
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2661 if test x
"${opsys}" = x
; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys
=gnu
;;
2664 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2665 *-bsd4.2
) opsys
=bsd4-2
;;
2666 *-bsd4.3
) opsys
=bsd4-3
;;
2667 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2668 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2669 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2670 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2671 *-sysv4.2uw
* ) opsys
=unixware
;;
2672 *-sysv5uw* ) opsys
=unixware
;;
2673 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2674 *-sysv4.1
* |
*-sysvr4.1
* )
2675 NON_GNU_CPP
=/usr
/lib
/cpp
2677 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2678 if [ x
$NON_GNU_CPP = x
]; then
2679 if [ -f /usr
/ccs
/lib
/cpp
]; then
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 NON_GNU_CPP
=/lib
/cpp
2686 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2703 machfile
="m/${machine}.h"
2704 opsysfile
="s/${opsys}.h"
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified
=yes
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS
="$CFLAGS"
2714 "yes" ) CC
="gcc" GCC
=yes ;;
2715 "no" ) : ${CC=cc} ;;
2719 ac_cpp
='$CPP $CPPFLAGS'
2720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC
="$CC" # Let the user override the test.
2734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir
=.
2739 for ac_exec_ext
in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_CC"; then
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc
; ac_word
=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir
=.
2777 for ac_exec_ext
in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC
="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC
="$CC" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc
; ac_word
=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir
=.
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC
="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc
; ac_word
=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC
="$CC" # Let the user override the test.
2895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir
=.
2900 for ac_exec_ext
in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected
=yes
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy
$ac_cv_prog_CC
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2922 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC
="$CC" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CC" && break
2979 if test -z "$CC"; then
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy
$ac_prog; ac_word
=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir
=.
2998 for ac_exec_ext
in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC
="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ac_ct_CC" && break
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler
=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 ac_clean_files_save
=$ac_clean_files
3069 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3088 # b.out is created by i960 compilers.
3089 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3091 test -f "$ac_file" ||
continue
3093 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3096 # This is the source file.
3099 # We found the default executable, but exeext='' is most
3103 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3124 ac_exeext
=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try
='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 if test "$cross_compiling" = maybe
; then
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3159 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3160 ac_clean_files
=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 for ac_file
in conftest.exe conftest conftest.
*; do
3180 test -f "$ac_file" ||
continue
3182 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3183 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3197 rm -f conftest
$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3201 rm -f conftest.
$ac_ext
3202 EXEEXT
=$ac_cv_exeext
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 cat >conftest.
$ac_ext <<_ACEOF
3212 cat confdefs.h
>>conftest.
$ac_ext
3213 cat >>conftest.
$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3233 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.
$ac_ext >&5
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT
=$ac_cv_objext
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 cat >conftest.
$ac_ext <<_ACEOF
3262 cat confdefs.h
>>conftest.
$ac_ext
3263 cat >>conftest.
$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3277 rm -f conftest.
$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try
='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.
$ac_ext >&5
3305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3306 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CFLAGS
=${CFLAGS+set}
3313 ac_save_CFLAGS
=$CFLAGS
3315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317 if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.
$ac_ext <<_ACEOF
3323 cat confdefs.h
>>conftest.
$ac_ext
3324 cat >>conftest.
$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3335 rm -f conftest.
$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3339 grep -v '^ *+' conftest.er1
>conftest.err
3341 cat conftest.err
>&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try
='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.
$ac_ext >&5
3363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3367 if test "$ac_test_CFLAGS" = set; then
3368 CFLAGS
=$ac_save_CFLAGS
3369 elif test $ac_cv_prog_cc_g = yes; then
3370 if test "$GCC" = yes; then
3376 if test "$GCC" = yes; then
3382 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3383 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3384 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_prog_cc_stdc
=no
3389 cat >conftest.
$ac_ext <<_ACEOF
3392 cat confdefs.h
>>conftest.
$ac_ext
3393 cat >>conftest.
$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3397 #include <sys/types.h>
3398 #include <sys/stat.h>
3399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3400 struct buf { int x; };
3401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402 static char *e (p, i)
3408 static char *f (char * (*g) (char **, int), char **p, ...)
3413 s = g (p, va_arg (v,int));
3418 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3419 function prototypes and stuff, but not '\xHH' hex character constants.
3420 These don't provoke an error unfortunately, instead are silently treated
3421 as 'x'. The following induces an error, until -std1 is added to get
3422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3423 array size at least. It's necessary to write '\x00'==0 to get something
3424 that's true only with -std1. */
3425 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 # Don't try gcc -ansi; that turns off useful extensions and
3442 # breaks some systems' header files.
3443 # AIX -qlanglvl=ansi
3444 # Ultrix and OSF/1 -std1
3445 # HP-UX 10.20 and later -Ae
3446 # HP-UX older versions -Aa -D_HPUX_SOURCE
3447 # SVR4 -Xc -D__EXTENSIONS__
3448 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 CC
="$ac_save_CC $ac_arg"
3451 rm -f conftest.
$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1
>conftest.err
3457 cat conftest.err
>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try
='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_prog_cc_stdc
=$ac_arg
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.
$ac_ext >&5
3479 rm -f conftest.err conftest.
$ac_objext
3481 rm -f conftest.
$ac_ext conftest.
$ac_objext
3486 case "x$ac_cv_prog_cc_stdc" in
3488 echo "$as_me:$LINENO: result: none needed" >&5
3489 echo "${ECHO_T}none needed" >&6 ;;
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3493 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3496 # Some people use a C++ compiler to compile C. Since we use `exit',
3497 # in C++ we need to declare it. In case someone uses the same compiler
3498 # for both compiling C and C++ we need to have the C++ compiler decide
3499 # the declaration of exit, since it's the most demanding environment.
3500 cat >conftest.
$ac_ext <<_ACEOF
3505 rm -f conftest.
$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3509 grep -v '^ *+' conftest.er1
>conftest.err
3511 cat conftest.err
>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try
='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 for ac_declaration
in \
3528 'extern "C" void std::exit (int) throw (); using std::exit;' \
3529 'extern "C" void std::exit (int); using std::exit;' \
3530 'extern "C" void exit (int) throw ();' \
3531 'extern "C" void exit (int);' \
3534 cat >conftest.
$ac_ext <<_ACEOF
3537 cat confdefs.h
>>conftest.
$ac_ext
3538 cat >>conftest.
$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3550 rm -f conftest.
$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3554 grep -v '^ *+' conftest.er1
>conftest.err
3556 cat conftest.err
>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try
='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.
$ac_ext >&5
3578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.
$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3598 grep -v '^ *+' conftest.er1
>conftest.err
3600 cat conftest.err
>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try
='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.
$ac_ext >&5
3621 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3624 if test -n "$ac_declaration"; then
3625 echo '#ifdef __cplusplus' >>confdefs.h
3626 echo $ac_declaration >>confdefs.h
3627 echo '#endif' >>confdefs.h
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.
$ac_ext >&5
3635 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3637 ac_cpp
='$CPP $CPPFLAGS'
3638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3643 # On Suns, sometimes $CPP names a directory.
3644 if test -n "$CPP" && test -d "$CPP"; then
3648 #### Some systems specify a CPP to use unless we are using GCC.
3649 #### Now that we know whether we are using GCC, we can decide whether
3650 #### to use that one.
3651 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3656 #### Some systems specify a CC to use unless we are using GCC.
3657 #### Now that we know whether we are using GCC, we can decide whether
3658 #### to use that one.
3659 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3660 test x
$cc_specified != xyes
3665 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3667 CC
="$CC $GCC_TEST_OPTIONS"
3670 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3672 CC
="$CC $NON_GCC_TEST_OPTIONS"
3677 ac_cpp
='$CPP $CPPFLAGS'
3678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3681 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3682 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3683 # On Suns, sometimes $CPP names a directory.
3684 if test -n "$CPP" && test -d "$CPP"; then
3687 if test -z "$CPP"; then
3688 if test "${ac_cv_prog_CPP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 # Double quotes because CPP needs to be expanded
3692 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3695 for ac_c_preproc_warn_flag
in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.
$ac_ext <<_ACEOF
3706 cat confdefs.h
>>conftest.
$ac_ext
3707 cat >>conftest.
$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3710 # include <limits.h>
3712 # include <assert.h>
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
3721 cat conftest.err
>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev
/null
; then
3724 if test -s conftest.err
; then
3725 ac_cpp_err
=$ac_c_preproc_warn_flag
3726 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3733 if test -z "$ac_cpp_err"; then
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.
$ac_ext >&5
3739 # Broken: fails on valid input.
3742 rm -f conftest.err conftest.
$ac_ext
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.
$ac_ext <<_ACEOF
3749 cat confdefs.h
>>conftest.
$ac_ext
3750 cat >>conftest.
$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3757 grep -v '^ *+' conftest.er1
>conftest.err
3759 cat conftest.err
>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev
/null
; then
3762 if test -s conftest.err
; then
3763 ac_cpp_err
=$ac_c_preproc_warn_flag
3764 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.
$ac_ext >&5
3778 # Passes both tests.
3782 rm -f conftest.err conftest.
$ac_ext
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.
$ac_ext
3787 if $ac_preproc_ok; then
3799 echo "$as_me:$LINENO: result: $CPP" >&5
3800 echo "${ECHO_T}$CPP" >&6
3802 for ac_c_preproc_warn_flag
in '' yes
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat >conftest.
$ac_ext <<_ACEOF
3813 cat confdefs.h
>>conftest.
$ac_ext
3814 cat >>conftest.
$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 # include <limits.h>
3819 # include <assert.h>
3823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3826 grep -v '^ *+' conftest.er1
>conftest.err
3828 cat conftest.err
>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev
/null
; then
3831 if test -s conftest.err
; then
3832 ac_cpp_err
=$ac_c_preproc_warn_flag
3833 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3840 if test -z "$ac_cpp_err"; then
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.
$ac_ext >&5
3846 # Broken: fails on valid input.
3849 rm -f conftest.err conftest.
$ac_ext
3851 # OK, works on sane cases. Now check whether non-existent headers
3852 # can be detected and how.
3853 cat >conftest.
$ac_ext <<_ACEOF
3856 cat confdefs.h
>>conftest.
$ac_ext
3857 cat >>conftest.
$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1
>conftest.err
3866 cat conftest.err
>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev
/null
; then
3869 if test -s conftest.err
; then
3870 ac_cpp_err
=$ac_c_preproc_warn_flag
3871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3878 if test -z "$ac_cpp_err"; then
3879 # Broken: success on invalid input.
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3885 # Passes both tests.
3889 rm -f conftest.err conftest.
$ac_ext
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.
$ac_ext
3894 if $ac_preproc_ok; then
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; }
3905 ac_cpp
='$CPP $CPPFLAGS'
3906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3917 then ac_cv_prog_egrep
='grep -E'
3918 else ac_cv_prog_egrep
='egrep'
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923 EGREP
=$ac_cv_prog_egrep
3927 echo "$as_me:$LINENO: checking for AIX" >&5
3928 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3929 cat >conftest.
$ac_ext <<_ACEOF
3932 cat confdefs.h
>>conftest.
$ac_ext
3933 cat >>conftest.
$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "yes" >/dev
/null
2>&1; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 cat >>confdefs.h
<<\_ACEOF
3945 #define _ALL_SOURCE 1
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3956 cat >>confdefs.h
<<\_ACEOF
3957 #define _GNU_SOURCE 1
3962 ### Use -Wno-pointer-sign if the compiler supports it
3963 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3964 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3965 SAVE_CFLAGS
="$CFLAGS"
3966 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3967 cat >conftest.
$ac_ext <<_ACEOF
3970 cat confdefs.h
>>conftest.
$ac_ext
3971 cat >>conftest.
$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3982 rm -f conftest.
$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3986 grep -v '^ *+' conftest.er1
>conftest.err
3988 cat conftest.err
>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try
='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.
$ac_ext >&5
4010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4011 if test $has_option = yes; then
4012 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4014 echo "$as_me:$LINENO: result: $has_option" >&5
4015 echo "${ECHO_T}$has_option" >&6
4016 CFLAGS
="$SAVE_CFLAGS"
4020 #### Some other nice autoconf tests.
4022 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4023 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4025 if test "$LN_S" = "ln -s"; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027 echo "${ECHO_T}yes" >&6
4029 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4030 echo "${ECHO_T}no, using $LN_S" >&6
4034 ac_cpp
='$CPP $CPPFLAGS'
4035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4038 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 # Double quotes because CPP needs to be expanded
4049 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4052 for ac_c_preproc_warn_flag
in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 # include <limits.h>
4069 # include <assert.h>
4073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4074 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4076 grep -v '^ *+' conftest.er1
>conftest.err
4078 cat conftest.err
>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } >/dev
/null
; then
4081 if test -s conftest.err
; then
4082 ac_cpp_err
=$ac_c_preproc_warn_flag
4083 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4090 if test -z "$ac_cpp_err"; then
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.
$ac_ext >&5
4096 # Broken: fails on valid input.
4099 rm -f conftest.err conftest.
$ac_ext
4101 # OK, works on sane cases. Now check whether non-existent headers
4102 # can be detected and how.
4103 cat >conftest.
$ac_ext <<_ACEOF
4106 cat confdefs.h
>>conftest.
$ac_ext
4107 cat >>conftest.
$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4112 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4114 grep -v '^ *+' conftest.er1
>conftest.err
4116 cat conftest.err
>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } >/dev
/null
; then
4119 if test -s conftest.err
; then
4120 ac_cpp_err
=$ac_c_preproc_warn_flag
4121 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4128 if test -z "$ac_cpp_err"; then
4129 # Broken: success on invalid input.
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.
$ac_ext >&5
4135 # Passes both tests.
4139 rm -f conftest.err conftest.
$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.
$ac_ext
4144 if $ac_preproc_ok; then
4156 echo "$as_me:$LINENO: result: $CPP" >&5
4157 echo "${ECHO_T}$CPP" >&6
4159 for ac_c_preproc_warn_flag
in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.
$ac_ext <<_ACEOF
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1
>conftest.err
4185 cat conftest.err
>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev
/null
; then
4188 if test -s conftest.err
; then
4189 ac_cpp_err
=$ac_c_preproc_warn_flag
4190 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4197 if test -z "$ac_cpp_err"; then
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.
$ac_ext >&5
4203 # Broken: fails on valid input.
4206 rm -f conftest.err conftest.
$ac_ext
4208 # OK, works on sane cases. Now check whether non-existent headers
4209 # can be detected and how.
4210 cat >conftest.
$ac_ext <<_ACEOF
4213 cat confdefs.h
>>conftest.
$ac_ext
4214 cat >>conftest.
$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev
/null
; then
4226 if test -s conftest.err
; then
4227 ac_cpp_err
=$ac_c_preproc_warn_flag
4228 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4235 if test -z "$ac_cpp_err"; then
4236 # Broken: success on invalid input.
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.
$ac_ext >&5
4242 # Passes both tests.
4246 rm -f conftest.err conftest.
$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.
$ac_ext
4251 if $ac_preproc_ok; then
4254 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details." >&5
4256 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&2;}
4258 { (exit 1); exit 1; }; }
4262 ac_cpp
='$CPP $CPPFLAGS'
4263 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4267 # Find a good install program. We prefer a C program (faster),
4268 # so one script is as good as another. But avoid the broken or
4269 # incompatible versions:
4270 # SysV /etc/install, /usr/sbin/install
4271 # SunOS /usr/etc/install
4272 # IRIX /sbin/install
4274 # AmigaOS /C/install, which installs bootblocks on floppy discs
4275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4278 # OS/2's system install, which has a completely different semantic
4279 # ./install, which can be erroneously created by make from ./install.sh.
4280 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4281 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4282 if test -z "$INSTALL"; then
4283 if test "${ac_cv_path_install+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir
=.
4291 # Account for people who put trailing slashes in PATH elements.
4293 .
/ | .
// |
/cC
/* | \
4294 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4295 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4298 # OSF1 and SCO ODT 3.0 have their own names for install.
4299 # Don't use installbsd from OSF since it installs stuff as root
4301 for ac_prog
in ginstall scoinst
install; do
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4304 if test $ac_prog = install &&
4305 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4306 # AIX install. It has an incompatible calling convention.
4308 elif test $ac_prog = install &&
4309 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4310 # program-specific install script used by HP pwplus--don't use.
4313 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4325 if test "${ac_cv_path_install+set}" = set; then
4326 INSTALL
=$ac_cv_path_install
4328 # As a last resort, use the slow shell script. We don't cache a
4329 # path for INSTALL within a source directory, because that will
4330 # break other packages using the cache if that directory is
4331 # removed, or if the path is relative.
4332 INSTALL
=$ac_install_sh
4335 echo "$as_me:$LINENO: result: $INSTALL" >&5
4336 echo "${ECHO_T}$INSTALL" >&6
4338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4339 # It thinks the first close brace ends the variable substitution.
4340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4344 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4346 if test "x$RANLIB" = x
; then
4347 if test -n "$ac_tool_prefix"; then
4348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4349 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_RANLIB+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 if test -n "$RANLIB"; then
4356 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir
=.
4363 for ac_exec_ext
in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 RANLIB
=$ac_cv_prog_RANLIB
4375 if test -n "$RANLIB"; then
4376 echo "$as_me:$LINENO: result: $RANLIB" >&5
4377 echo "${ECHO_T}$RANLIB" >&6
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4384 if test -z "$ac_cv_prog_RANLIB"; then
4385 ac_ct_RANLIB
=$RANLIB
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib
; ac_word
=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$ac_ct_RANLIB"; then
4394 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir
=.
4401 for ac_exec_ext
in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4413 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4414 if test -n "$ac_ct_RANLIB"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4416 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4418 echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4422 RANLIB
=$ac_ct_RANLIB
4424 RANLIB
="$ac_cv_prog_RANLIB"
4428 # Extract the first word of "install-info", so it can be a program name with args.
4429 set dummy install-info
; ac_word
=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 case $INSTALL_INFO in
4437 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_exec_ext
in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4459 if test -n "$INSTALL_INFO"; then
4460 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4461 echo "${ECHO_T}$INSTALL_INFO" >&6
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 # Extract the first word of "install-info", so it can be a program name with args.
4468 set dummy install-info
; ac_word
=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 case $INSTALL_INFO in
4476 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4480 for as_dir
in /usr
/sbin
4483 test -z "$as_dir" && as_dir
=.
4484 for ac_exec_ext
in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4498 if test -n "$INSTALL_INFO"; then
4499 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4500 echo "${ECHO_T}$INSTALL_INFO" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 # Extract the first word of "install-info", so it can be a program name with args.
4507 set dummy install-info
; ac_word
=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 case $INSTALL_INFO in
4515 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir
=.
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4536 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4538 if test -n "$INSTALL_INFO"; then
4539 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4540 echo "${ECHO_T}$INSTALL_INFO" >&6
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4546 # Extract the first word of "gzip", so it can be a program name with args.
4547 set dummy
gzip; ac_word
=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir
=.
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4577 if test -n "$GZIP_PROG"; then
4578 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4579 echo "${ECHO_T}$GZIP_PROG" >&6
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4587 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4589 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4592 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4594 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4598 late_LDFLAGS
=$LDFLAGS
4599 if test "$GCC" = yes; then
4600 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4602 LDFLAGS
="$LDFLAGS -znocombreloc"
4605 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4606 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 rm -f conftest.
$ac_objext conftest
$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1
>conftest.err
4616 cat conftest.err
>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try
='test -s conftest$ac_exeext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.
$ac_ext >&5
4637 LDFLAGS
=$late_LDFLAGS
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4641 rm -f conftest.err conftest.
$ac_objext \
4642 conftest
$ac_exeext conftest.
$ac_ext
4644 #### Extract some information from the operating system and machine files.
4646 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4647 - which libraries the lib-src programs will want, and
4648 - whether the GNU malloc routines are usable..." >&5
4649 echo "$as_me: checking the machine- and system-dependent files to find out
4650 - which libraries the lib-src programs will want, and
4651 - whether the GNU malloc routines are usable..." >&6;}
4653 ### First figure out CFLAGS (which we use for running the compiler here)
4654 ### and REAL_CFLAGS (which we use for real compilation).
4655 ### The two are the same except on a few systems, where they are made
4656 ### different to work around various lossages. For example,
4657 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4658 ### as implying static linking.
4660 ### If the CFLAGS env var is specified, we use that value
4661 ### instead of the default.
4663 ### It's not important that this name contain the PID; you can't run
4664 ### two configures in the same directory and have anything work
4666 tempcname
="conftest.c"
4669 #include "'${srcdir}'/src/'${opsysfile}'"
4670 #include "'${srcdir}'/src/'${machfile}'"
4671 #ifndef LIBS_MACHINE
4672 #define LIBS_MACHINE
4677 #ifndef C_SWITCH_SYSTEM
4678 #define C_SWITCH_SYSTEM
4680 #ifndef C_SWITCH_MACHINE
4681 #define C_SWITCH_MACHINE
4683 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4684 configure___ c_switch_system=C_SWITCH_SYSTEM
4685 configure___ c_switch_machine=C_SWITCH_MACHINE
4688 #define LIB_X11_LIB -lX11
4691 #ifndef LIBX11_MACHINE
4692 #define LIBX11_MACHINE
4695 #ifndef LIBX11_SYSTEM
4696 #define LIBX11_SYSTEM
4698 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4701 configure___ unexec=UNEXEC
4703 configure___ unexec=unexec.o
4706 #ifdef SYSTEM_MALLOC
4707 configure___ system_malloc=yes
4709 configure___ system_malloc=no
4712 #ifdef USE_MMAP_FOR_BUFFERS
4713 configure___ use_mmap_for_buffers=yes
4715 configure___ use_mmap_for_buffers=no
4718 #ifndef C_DEBUG_SWITCH
4719 #define C_DEBUG_SWITCH -g
4722 #ifndef C_OPTIMIZE_SWITCH
4724 #define C_OPTIMIZE_SWITCH -O2
4726 #define C_OPTIMIZE_SWITCH -O
4730 #ifndef C_WARNINGS_SWITCH
4731 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4734 #ifndef LD_SWITCH_MACHINE
4735 #define LD_SWITCH_MACHINE
4738 #ifndef LD_SWITCH_SYSTEM
4739 #define LD_SWITCH_SYSTEM
4742 #ifndef LD_SWITCH_X_SITE_AUX
4743 #define LD_SWITCH_X_SITE_AUX
4746 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4747 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4749 #ifdef THIS_IS_CONFIGURE
4751 /* Get the CFLAGS for tests in configure. */
4753 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4755 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4758 #else /* not THIS_IS_CONFIGURE */
4760 /* Get the CFLAGS for real compilation. */
4762 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4764 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4767 #endif /* not THIS_IS_CONFIGURE */
4770 # The value of CPP is a quoted variable reference, so we need to do this
4771 # to get its actual value...
4772 CPP
=`eval "echo $CPP"`
4773 eval `${CPP} -Isrc ${tempcname} \
4774 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4775 if test "x$SPECIFIED_CFLAGS" = x
; then
4776 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4777 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4779 REAL_CFLAGS
="$CFLAGS"
4783 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4785 ### Make sure subsequent tests use flags consistent with the build flags.
4787 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4788 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4790 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4795 # Check whether --enable-largefile or --disable-largefile was given.
4796 if test "${enable_largefile+set}" = set; then
4797 enableval
="$enable_largefile"
4800 if test "$enable_largefile" != no
; then
4802 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4803 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4804 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 ac_cv_sys_largefile_CC
=no
4808 if test "$GCC" != yes; then
4811 # IRIX 6.2 and later do not support large files by default,
4812 # so use the C compiler's -n32 option if that helps.
4813 cat >conftest.
$ac_ext <<_ACEOF
4816 cat confdefs.h
>>conftest.
$ac_ext
4817 cat >>conftest.
$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 /* Check that off_t can represent 2**63 - 1 correctly.
4821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4822 since some C++ compilers masquerading as C compilers
4823 incorrectly reject 9223372036854775807. */
4824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4826 && LARGE_OFF_T % 2147483647 == 1)
4836 rm -f conftest.
$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4840 grep -v '^ *+' conftest.er1
>conftest.err
4842 cat conftest.err
>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try
='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4863 rm -f conftest.err conftest.
$ac_objext
4865 rm -f conftest.
$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sys_largefile_CC
=' -n32'; break
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4892 rm -f conftest.err conftest.
$ac_objext
4896 rm -f conftest.
$ac_ext
4899 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4900 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4901 if test "$ac_cv_sys_largefile_CC" != no
; then
4902 CC
=$CC$ac_cv_sys_largefile_CC
4905 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4906 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4907 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_cv_sys_file_offset_bits
=no
4912 cat >conftest.
$ac_ext <<_ACEOF
4915 cat confdefs.h
>>conftest.
$ac_ext
4916 cat >>conftest.
$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4935 rm -f conftest.
$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1
>conftest.err
4941 cat conftest.err
>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try
='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.
$ac_ext >&5
4962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 cat >conftest.
$ac_ext <<_ACEOF
4966 cat confdefs.h
>>conftest.
$ac_ext
4967 cat >>conftest.
$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #define _FILE_OFFSET_BITS 64
4970 #include <sys/types.h>
4971 /* Check that off_t can represent 2**63 - 1 correctly.
4972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4973 since some C++ compilers masquerading as C compilers
4974 incorrectly reject 9223372036854775807. */
4975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4977 && LARGE_OFF_T % 2147483647 == 1)
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1
>conftest.err
4993 cat conftest.err
>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try
='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_sys_file_offset_bits
=64; break
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.
$ac_ext >&5
5014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5019 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5020 if test "$ac_cv_sys_file_offset_bits" != no
; then
5022 cat >>confdefs.h
<<_ACEOF
5023 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5028 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5029 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5030 if test "${ac_cv_sys_large_files+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 ac_cv_sys_large_files
=no
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <sys/types.h>
5042 /* Check that off_t can represent 2**63 - 1 correctly.
5043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5044 since some C++ compilers masquerading as C compilers
5045 incorrectly reject 9223372036854775807. */
5046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5048 && LARGE_OFF_T % 2147483647 == 1)
5058 rm -f conftest.
$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>conftest.er1
5062 grep -v '^ *+' conftest.er1
>conftest.err
5064 cat conftest.err
>&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try
='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.
$ac_ext >&5
5085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #define _LARGE_FILES 1
5093 #include <sys/types.h>
5094 /* Check that off_t can represent 2**63 - 1 correctly.
5095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5096 since some C++ compilers masquerading as C compilers
5097 incorrectly reject 9223372036854775807. */
5098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5100 && LARGE_OFF_T % 2147483647 == 1)
5110 rm -f conftest.
$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1
>conftest.err
5116 cat conftest.err
>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try
='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_sys_large_files
=1; break
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.
$ac_ext >&5
5137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5141 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5142 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5143 if test "$ac_cv_sys_large_files" != no
; then
5145 cat >>confdefs.h
<<_ACEOF
5146 #define _LARGE_FILES $ac_cv_sys_large_files
5154 if test "${with_sound}" != "no"; then
5155 # Sound support for GNU/Linux and the free BSDs.
5156 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5157 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5158 if test "${ac_cv_header_stdc+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 cat >conftest.
$ac_ext <<_ACEOF
5164 cat confdefs.h
>>conftest.
$ac_ext
5165 cat >>conftest.
$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5180 rm -f conftest.
$ac_objext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182 (eval $ac_compile) 2>conftest.er1
5184 grep -v '^ *+' conftest.er1
>conftest.err
5186 cat conftest.err
>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } &&
5189 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try
='test -s conftest.$ac_objext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_header_stdc
=yes
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.
$ac_ext >&5
5206 ac_cv_header_stdc
=no
5208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5210 if test $ac_cv_header_stdc = yes; then
5211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5212 cat >conftest.
$ac_ext <<_ACEOF
5215 cat confdefs.h
>>conftest.
$ac_ext
5216 cat >>conftest.
$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5222 $EGREP "memchr" >/dev
/null
2>&1; then
5225 ac_cv_header_stdc
=no
5231 if test $ac_cv_header_stdc = yes; then
5232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5233 cat >conftest.
$ac_ext <<_ACEOF
5236 cat confdefs.h
>>conftest.
$ac_ext
5237 cat >>conftest.
$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5243 $EGREP "free" >/dev
/null
2>&1; then
5246 ac_cv_header_stdc
=no
5252 if test $ac_cv_header_stdc = yes; then
5253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5254 if test "$cross_compiling" = yes; then
5257 cat >conftest.
$ac_ext <<_ACEOF
5260 cat confdefs.h
>>conftest.
$ac_ext
5261 cat >>conftest.
$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5264 #if ((' ' & 0x0FF) == 0x020)
5265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5268 # define ISLOWER(c) \
5269 (('a' <= (c) && (c) <= 'i') \
5270 || ('j' <= (c) && (c) <= 'r') \
5271 || ('s' <= (c) && (c) <= 'z'))
5272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5280 for (i = 0; i < 256; i++)
5281 if (XOR (islower (i), ISLOWER (i))
5282 || toupper (i) != TOUPPER (i))
5287 rm -f conftest
$ac_exeext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5289 (eval $ac_link) 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5300 echo "$as_me: program exited with status $ac_status" >&5
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.
$ac_ext >&5
5305 ac_cv_header_stdc
=no
5307 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5312 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5313 if test $ac_cv_header_stdc = yes; then
5315 cat >>confdefs.h
<<\_ACEOF
5316 #define STDC_HEADERS 1
5321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5331 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5332 inttypes.h stdint.h unistd.h
5334 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5335 echo "$as_me:$LINENO: checking for $ac_header" >&5
5336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 cat >conftest.
$ac_ext <<_ACEOF
5343 cat confdefs.h
>>conftest.
$ac_ext
5344 cat >>conftest.
$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5348 #include <$ac_header>
5350 rm -f conftest.
$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1
>conftest.err
5356 cat conftest.err
>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try
='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 eval "$as_ac_Header=yes"
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.
$ac_ext >&5
5376 eval "$as_ac_Header=no"
5378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5383 cat >>confdefs.h
<<_ACEOF
5384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5397 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5399 echo "$as_me:$LINENO: checking for $ac_header" >&5
5400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407 # Is the header compilable?
5408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5410 cat >conftest.
$ac_ext <<_ACEOF
5413 cat confdefs.h
>>conftest.
$ac_ext
5414 cat >>conftest.
$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 $ac_includes_default
5417 #include <$ac_header>
5419 rm -f conftest.
$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5423 grep -v '^ *+' conftest.er1
>conftest.err
5425 cat conftest.err
>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try
='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_header_compiler
=yes
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.
$ac_ext >&5
5445 ac_header_compiler
=no
5447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5449 echo "${ECHO_T}$ac_header_compiler" >&6
5451 # Is the header present?
5452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5454 cat >conftest.
$ac_ext <<_ACEOF
5457 cat confdefs.h
>>conftest.
$ac_ext
5458 cat >>conftest.
$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #include <$ac_header>
5462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5465 grep -v '^ *+' conftest.er1
>conftest.err
5467 cat conftest.err
>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } >/dev
/null
; then
5470 if test -s conftest.err
; then
5471 ac_cpp_err
=$ac_c_preproc_warn_flag
5472 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5479 if test -z "$ac_cpp_err"; then
5480 ac_header_preproc
=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.
$ac_ext >&5
5485 ac_header_preproc
=no
5487 rm -f conftest.err conftest.
$ac_ext
5488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5489 echo "${ECHO_T}$ac_header_preproc" >&6
5491 # So? What about this header?
5492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5498 ac_header_preproc
=yes
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5515 ## ------------------------------------------ ##
5516 ## Report this to the AC_PACKAGE_NAME lists. ##
5517 ## ------------------------------------------ ##
5520 sed "s/^/$as_me: WARNING: /" >&2
5523 echo "$as_me:$LINENO: checking for $ac_header" >&5
5524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 eval "$as_ac_Header=\$ac_header_preproc"
5530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5535 cat >>confdefs.h
<<_ACEOF
5536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5543 # Emulation library used on NetBSD.
5544 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5545 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5546 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 ac_check_lib_save_LIBS
=$LIBS
5550 LIBS
="-lossaudio $LIBS"
5551 cat >conftest.
$ac_ext <<_ACEOF
5554 cat confdefs.h
>>conftest.
$ac_ext
5555 cat >>conftest.
$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5558 /* Override any gcc2 internal prototype to avoid an error. */
5562 /* We use char because int might match the return type of a gcc2
5563 builtin and then its argument prototype would still apply. */
5573 rm -f conftest.
$ac_objext conftest
$ac_exeext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>conftest.er1
5577 grep -v '^ *+' conftest.er1
>conftest.err
5579 cat conftest.err
>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try
='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_cv_lib_ossaudio__oss_ioctl
=yes
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.
$ac_ext >&5
5599 ac_cv_lib_ossaudio__oss_ioctl
=no
5601 rm -f conftest.err conftest.
$ac_objext \
5602 conftest
$ac_exeext conftest.
$ac_ext
5603 LIBS
=$ac_check_lib_save_LIBS
5605 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5606 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5607 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5641 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5642 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5643 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5644 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5647 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649 echo "$as_me:$LINENO: checking for $ac_header" >&5
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5657 # Is the header compilable?
5658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5660 cat >conftest.
$ac_ext <<_ACEOF
5663 cat confdefs.h
>>conftest.
$ac_ext
5664 cat >>conftest.
$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 $ac_includes_default
5667 #include <$ac_header>
5669 rm -f conftest.
$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>conftest.er1
5673 grep -v '^ *+' conftest.er1
>conftest.err
5675 cat conftest.err
>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try
='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_header_compiler
=yes
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.
$ac_ext >&5
5695 ac_header_compiler
=no
5697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699 echo "${ECHO_T}$ac_header_compiler" >&6
5701 # Is the header present?
5702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5704 cat >conftest.
$ac_ext <<_ACEOF
5707 cat confdefs.h
>>conftest.
$ac_ext
5708 cat >>conftest.
$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <$ac_header>
5712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5713 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1
>conftest.err
5717 cat conftest.err
>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev
/null
; then
5720 if test -s conftest.err
; then
5721 ac_cpp_err
=$ac_c_preproc_warn_flag
5722 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5729 if test -z "$ac_cpp_err"; then
5730 ac_header_preproc
=yes
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.
$ac_ext >&5
5735 ac_header_preproc
=no
5737 rm -f conftest.err conftest.
$ac_ext
5738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5739 echo "${ECHO_T}$ac_header_preproc" >&6
5741 # So? What about this header?
5742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5748 ac_header_preproc
=yes
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5765 ## ------------------------------------------ ##
5766 ## Report this to the AC_PACKAGE_NAME lists. ##
5767 ## ------------------------------------------ ##
5770 sed "s/^/$as_me: WARNING: /" >&2
5773 echo "$as_me:$LINENO: checking for $ac_header" >&5
5774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 eval "$as_ac_Header=\$ac_header_preproc"
5780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5785 cat >>confdefs.h
<<_ACEOF
5786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5794 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5795 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5796 cat >conftest.
$ac_ext <<_ACEOF
5799 cat confdefs.h
>>conftest.
$ac_ext
5800 cat >>conftest.
$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <sys/personality.h>
5806 personality (PER_LINUX32)
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try
='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 emacs_cv_personality_linux32
=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.
$ac_ext >&5
5837 emacs_cv_personality_linux32
=no
5839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5840 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5841 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5843 if test $emacs_cv_personality_linux32 = yes; then
5845 cat >>confdefs.h
<<\_ACEOF
5846 #define HAVE_PERSONALITY_LINUX32 1
5852 for ac_header
in term.h
5854 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5855 echo "$as_me:$LINENO: checking for $ac_header" >&5
5856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 cat >conftest.
$ac_ext <<_ACEOF
5863 cat confdefs.h
>>conftest.
$ac_ext
5864 cat >>conftest.
$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 #include <$ac_header>
5868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5871 grep -v '^ *+' conftest.er1
>conftest.err
5873 cat conftest.err
>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } >/dev
/null
; then
5876 if test -s conftest.err
; then
5877 ac_cpp_err
=$ac_c_preproc_warn_flag
5878 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5885 if test -z "$ac_cpp_err"; then
5886 eval "$as_ac_Header=yes"
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5891 eval "$as_ac_Header=no"
5893 rm -f conftest.err conftest.
$ac_ext
5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5898 cat >>confdefs.h
<<_ACEOF
5899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5906 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5907 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5908 if test "${ac_cv_header_stdc+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 cat >conftest.
$ac_ext <<_ACEOF
5914 cat confdefs.h
>>conftest.
$ac_ext
5915 cat >>conftest.
$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5930 rm -f conftest.
$ac_objext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>conftest.er1
5934 grep -v '^ *+' conftest.er1
>conftest.err
5936 cat conftest.err
>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try
='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_header_stdc
=yes
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.
$ac_ext >&5
5956 ac_cv_header_stdc
=no
5958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 if test $ac_cv_header_stdc = yes; then
5961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5972 $EGREP "memchr" >/dev
/null
2>&1; then
5975 ac_cv_header_stdc
=no
5981 if test $ac_cv_header_stdc = yes; then
5982 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "free" >/dev
/null
2>&1; then
5996 ac_cv_header_stdc
=no
6002 if test $ac_cv_header_stdc = yes; then
6003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6004 if test "$cross_compiling" = yes; then
6007 cat >conftest.
$ac_ext <<_ACEOF
6010 cat confdefs.h
>>conftest.
$ac_ext
6011 cat >>conftest.
$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6014 #if ((' ' & 0x0FF) == 0x020)
6015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6018 # define ISLOWER(c) \
6019 (('a' <= (c) && (c) <= 'i') \
6020 || ('j' <= (c) && (c) <= 'r') \
6021 || ('s' <= (c) && (c) <= 'z'))
6022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6030 for (i = 0; i < 256; i++)
6031 if (XOR (islower (i), ISLOWER (i))
6032 || toupper (i) != TOUPPER (i))
6037 rm -f conftest
$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6050 echo "$as_me: program exited with status $ac_status" >&5
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.
$ac_ext >&5
6055 ac_cv_header_stdc
=no
6057 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6061 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6062 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6063 if test $ac_cv_header_stdc = yes; then
6065 cat >>confdefs.h
<<\_ACEOF
6066 #define STDC_HEADERS 1
6071 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6073 if test "${ac_cv_header_time+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 cat >conftest.
$ac_ext <<_ACEOF
6079 cat confdefs.h
>>conftest.
$ac_ext
6080 cat >>conftest.
$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <sys/types.h>
6083 #include <sys/time.h>
6089 if ((struct tm *) 0)
6095 rm -f conftest.
$ac_objext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>conftest.er1
6099 grep -v '^ *+' conftest.er1
>conftest.err
6101 cat conftest.err
>&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try
='test -s conftest.$ac_objext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_cv_header_time
=yes
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.
$ac_ext >&5
6121 ac_cv_header_time
=no
6123 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6125 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6126 echo "${ECHO_T}$ac_cv_header_time" >&6
6127 if test $ac_cv_header_time = yes; then
6129 cat >>confdefs.h
<<\_ACEOF
6130 #define TIME_WITH_SYS_TIME 1
6135 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6136 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6137 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 cat >conftest.
$ac_ext <<_ACEOF
6143 cat confdefs.h
>>conftest.
$ac_ext
6144 cat >>conftest.
$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 $ac_includes_default
6151 char *p = (char *) sys_siglist;
6158 rm -f conftest.
$ac_objext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
6162 grep -v '^ *+' conftest.er1
>conftest.err
6164 cat conftest.err
>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } &&
6167 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try
='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_have_decl_sys_siglist
=yes
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.
$ac_ext >&5
6184 ac_cv_have_decl_sys_siglist
=no
6186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6188 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6189 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6190 if test $ac_cv_have_decl_sys_siglist = yes; then
6192 cat >>confdefs.h
<<_ACEOF
6193 #define HAVE_DECL_SYS_SIGLIST 1
6198 cat >>confdefs.h
<<_ACEOF
6199 #define HAVE_DECL_SYS_SIGLIST 0
6206 if test $ac_cv_have_decl_sys_siglist != yes; then
6207 # For Tru64, at least:
6208 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6209 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6210 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 cat >conftest.
$ac_ext <<_ACEOF
6216 cat confdefs.h
>>conftest.
$ac_ext
6217 cat >>conftest.
$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6223 #ifndef __sys_siglist
6224 char *p = (char *) __sys_siglist;
6231 rm -f conftest.
$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1
>conftest.err
6237 cat conftest.err
>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try
='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_have_decl___sys_siglist
=yes
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.
$ac_ext >&5
6257 ac_cv_have_decl___sys_siglist
=no
6259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6262 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6263 if test $ac_cv_have_decl___sys_siglist = yes; then
6265 cat >>confdefs.h
<<_ACEOF
6266 #define HAVE_DECL___SYS_SIGLIST 1
6271 cat >>confdefs.h
<<_ACEOF
6272 #define HAVE_DECL___SYS_SIGLIST 0
6279 if test $ac_cv_have_decl___sys_siglist = yes; then
6281 cat >>confdefs.h
<<\_ACEOF
6282 #define sys_siglist __sys_siglist
6287 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6288 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6289 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.
$ac_ext <<_ACEOF
6295 cat confdefs.h
>>conftest.
$ac_ext
6296 cat >>conftest.
$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <sys/types.h>
6299 #include <sys/wait.h>
6301 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6304 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6312 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6317 rm -f conftest.
$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6321 grep -v '^ *+' conftest.er1
>conftest.err
6323 cat conftest.err
>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try
='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_cv_header_sys_wait_h
=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.
$ac_ext >&5
6343 ac_cv_header_sys_wait_h
=no
6345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6347 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6348 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6349 if test $ac_cv_header_sys_wait_h = yes; then
6351 cat >>confdefs.h
<<\_ACEOF
6352 #define HAVE_SYS_WAIT_H 1
6358 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6359 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6360 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 cat >conftest.
$ac_ext <<_ACEOF
6366 cat confdefs.h
>>conftest.
$ac_ext
6367 cat >>conftest.
$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #ifdef TIME_WITH_SYS_TIME
6370 #include <sys/time.h>
6373 #ifdef HAVE_SYS_TIME_H
6374 #include <sys/time.h>
6385 static struct utimbuf x; x.actime = x.modtime;
6390 rm -f conftest.
$ac_objext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6392 (eval $ac_compile) 2>conftest.er1
6394 grep -v '^ *+' conftest.er1
>conftest.err
6396 cat conftest.err
>&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try
='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 emacs_cv_struct_utimbuf
=yes
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.
$ac_ext >&5
6416 emacs_cv_struct_utimbuf
=no
6418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6420 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6421 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6422 if test $emacs_cv_struct_utimbuf = yes; then
6424 cat >>confdefs.h
<<\_ACEOF
6425 #define HAVE_STRUCT_UTIMBUF 1
6430 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6431 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6432 if test "${ac_cv_type_signal+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6438 cat confdefs.h
>>conftest.
$ac_ext
6439 cat >>conftest.
$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <sys/types.h>
6447 extern "C" void (*signal (int, void (*)(int)))(int);
6449 void (*signal ()) ();
6460 rm -f conftest.
$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>conftest.er1
6464 grep -v '^ *+' conftest.er1
>conftest.err
6466 cat conftest.err
>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try
='test -s conftest.$ac_objext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_type_signal
=void
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.
$ac_ext >&5
6486 ac_cv_type_signal
=int
6488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6490 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6491 echo "${ECHO_T}$ac_cv_type_signal" >&6
6493 cat >>confdefs.h
<<_ACEOF
6494 #define RETSIGTYPE $ac_cv_type_signal
6499 echo "$as_me:$LINENO: checking for speed_t" >&5
6500 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6501 if test "${emacs_cv_speed_t+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 cat >conftest.
$ac_ext <<_ACEOF
6507 cat confdefs.h
>>conftest.
$ac_ext
6508 cat >>conftest.
$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #include <termios.h>
6519 rm -f conftest.
$ac_objext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1
>conftest.err
6525 cat conftest.err
>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try
='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 emacs_cv_speed_t
=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6550 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6551 if test $emacs_cv_speed_t = yes; then
6553 cat >>confdefs.h
<<\_ACEOF
6554 #define HAVE_SPEED_T 1
6559 echo "$as_me:$LINENO: checking for struct timeval" >&5
6560 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6561 if test "${emacs_cv_struct_timeval+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #ifdef TIME_WITH_SYS_TIME
6571 #include <sys/time.h>
6574 #ifdef HAVE_SYS_TIME_H
6575 #include <sys/time.h>
6583 static struct timeval x; x.tv_sec = x.tv_usec;
6588 rm -f conftest.
$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6592 grep -v '^ *+' conftest.er1
>conftest.err
6594 cat conftest.err
>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try
='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 emacs_cv_struct_timeval
=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.
$ac_ext >&5
6614 emacs_cv_struct_timeval
=no
6616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6619 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6620 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6621 if test $emacs_cv_struct_timeval = yes; then
6623 cat >>confdefs.h
<<\_ACEOF
6624 #define HAVE_TIMEVAL 1
6629 echo "$as_me:$LINENO: checking for struct exception" >&5
6630 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6631 if test "${emacs_cv_struct_exception+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 cat >conftest.
$ac_ext <<_ACEOF
6637 cat confdefs.h
>>conftest.
$ac_ext
6638 cat >>conftest.
$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6644 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6649 rm -f conftest.
$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>conftest.er1
6653 grep -v '^ *+' conftest.er1
>conftest.err
6655 cat conftest.err
>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try
='test -s conftest.$ac_objext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 emacs_cv_struct_exception
=yes
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.
$ac_ext >&5
6675 emacs_cv_struct_exception
=no
6677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6680 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6681 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6682 if test $emacs_cv_struct_exception != yes; then
6684 cat >>confdefs.h
<<\_ACEOF
6685 #define NO_MATHERR 1
6691 for ac_header
in sys
/socket.h
6693 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6703 # Is the header compilable?
6704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6706 cat >conftest.
$ac_ext <<_ACEOF
6709 cat confdefs.h
>>conftest.
$ac_ext
6710 cat >>conftest.
$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 $ac_includes_default
6713 #include <$ac_header>
6715 rm -f conftest.
$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>conftest.er1
6719 grep -v '^ *+' conftest.er1
>conftest.err
6721 cat conftest.err
>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try
='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_header_compiler
=yes
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.
$ac_ext >&5
6741 ac_header_compiler
=no
6743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6745 echo "${ECHO_T}$ac_header_compiler" >&6
6747 # Is the header present?
6748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6750 cat >conftest.
$ac_ext <<_ACEOF
6753 cat confdefs.h
>>conftest.
$ac_ext
6754 cat >>conftest.
$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <$ac_header>
6758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6761 grep -v '^ *+' conftest.er1
>conftest.err
6763 cat conftest.err
>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } >/dev
/null
; then
6766 if test -s conftest.err
; then
6767 ac_cpp_err
=$ac_c_preproc_warn_flag
6768 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6775 if test -z "$ac_cpp_err"; then
6776 ac_header_preproc
=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.
$ac_ext >&5
6781 ac_header_preproc
=no
6783 rm -f conftest.err conftest.
$ac_ext
6784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6785 echo "${ECHO_T}$ac_header_preproc" >&6
6787 # So? What about this header?
6788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6794 ac_header_preproc
=yes
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6811 ## ------------------------------------------ ##
6812 ## Report this to the AC_PACKAGE_NAME lists. ##
6813 ## ------------------------------------------ ##
6816 sed "s/^/$as_me: WARNING: /" >&2
6819 echo "$as_me:$LINENO: checking for $ac_header" >&5
6820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 eval "$as_ac_Header=\$ac_header_preproc"
6826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6831 cat >>confdefs.h
<<_ACEOF
6832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6840 for ac_header
in net
/if.h
6842 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6843 echo "$as_me:$LINENO: checking for $ac_header" >&5
6844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6855 #if HAVE_SYS_SOCKET_H
6856 #include <sys/socket.h>
6859 #include <$ac_header>
6861 rm -f conftest.
$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>conftest.er1
6865 grep -v '^ *+' conftest.er1
>conftest.err
6867 cat conftest.err
>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try
='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 eval "$as_ac_Header=yes"
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.
$ac_ext >&5
6887 eval "$as_ac_Header=no"
6889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6894 cat >>confdefs.h
<<_ACEOF
6895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6903 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6904 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6905 if test "${ac_cv_struct_tm+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 cat >conftest.
$ac_ext <<_ACEOF
6911 cat confdefs.h
>>conftest.
$ac_ext
6912 cat >>conftest.
$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <sys/types.h>
6920 struct tm *tp; tp->tm_sec;
6925 rm -f conftest.
$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927 (eval $ac_compile) 2>conftest.er1
6929 grep -v '^ *+' conftest.er1
>conftest.err
6931 cat conftest.err
>&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; } &&
6940 { ac_try
='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 ac_cv_struct_tm
=time.h
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.
$ac_ext >&5
6951 ac_cv_struct_tm
=sys
/time.h
6953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6955 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6956 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6957 if test $ac_cv_struct_tm = sys
/time.h
; then
6959 cat >>confdefs.h
<<\_ACEOF
6960 #define TM_IN_SYS_TIME 1
6965 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6966 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6967 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 cat >conftest.
$ac_ext <<_ACEOF
6973 cat confdefs.h
>>conftest.
$ac_ext
6974 cat >>conftest.
$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 #include <sys/types.h>
6977 #include <$ac_cv_struct_tm>
6983 static struct tm ac_aggr;
6984 if (ac_aggr.tm_zone)
6990 rm -f conftest.
$ac_objext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992 (eval $ac_compile) 2>conftest.er1
6994 grep -v '^ *+' conftest.er1
>conftest.err
6996 cat conftest.err
>&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try
='test -s conftest.$ac_objext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_member_struct_tm_tm_zone
=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.
$ac_ext >&5
7016 cat >conftest.
$ac_ext <<_ACEOF
7019 cat confdefs.h
>>conftest.
$ac_ext
7020 cat >>conftest.
$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <sys/types.h>
7023 #include <$ac_cv_struct_tm>
7029 static struct tm ac_aggr;
7030 if (sizeof ac_aggr.tm_zone)
7036 rm -f conftest.
$ac_objext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>conftest.er1
7040 grep -v '^ *+' conftest.er1
>conftest.err
7042 cat conftest.err
>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try
='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_member_struct_tm_tm_zone
=yes
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.
$ac_ext >&5
7062 ac_cv_member_struct_tm_tm_zone
=no
7064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7069 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7070 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7072 cat >>confdefs.h
<<_ACEOF
7073 #define HAVE_STRUCT_TM_TM_ZONE 1
7079 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7081 cat >>confdefs.h
<<\_ACEOF
7082 #define HAVE_TM_ZONE 1
7086 echo "$as_me:$LINENO: checking for tzname" >&5
7087 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7088 if test "${ac_cv_var_tzname+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 cat >conftest.
$ac_ext <<_ACEOF
7094 cat confdefs.h
>>conftest.
$ac_ext
7095 cat >>conftest.
$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7098 #ifndef tzname /* For SGI. */
7099 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7110 rm -f conftest.
$ac_objext conftest
$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7114 grep -v '^ *+' conftest.er1
>conftest.err
7116 cat conftest.err
>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try
='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_var_tzname
=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.
$ac_ext >&5
7138 rm -f conftest.err conftest.
$ac_objext \
7139 conftest
$ac_exeext conftest.
$ac_ext
7141 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7142 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7143 if test $ac_cv_var_tzname = yes; then
7145 cat >>confdefs.h
<<\_ACEOF
7146 #define HAVE_TZNAME 1
7152 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7153 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7154 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 cat >conftest.
$ac_ext <<_ACEOF
7160 cat confdefs.h
>>conftest.
$ac_ext
7161 cat >>conftest.
$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7168 static struct tm ac_aggr;
7169 if (ac_aggr.tm_gmtoff)
7175 rm -f conftest.
$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try
='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_tm_tm_gmtoff
=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.
$ac_ext >&5
7201 cat >conftest.
$ac_ext <<_ACEOF
7204 cat confdefs.h
>>conftest.
$ac_ext
7205 cat >>conftest.
$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7212 static struct tm ac_aggr;
7213 if (sizeof ac_aggr.tm_gmtoff)
7219 rm -f conftest.
$ac_objext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>conftest.er1
7223 grep -v '^ *+' conftest.er1
>conftest.err
7225 cat conftest.err
>&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; } &&
7234 { ac_try
='test -s conftest.$ac_objext'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; }; then
7240 ac_cv_member_struct_tm_tm_gmtoff
=yes
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.
$ac_ext >&5
7245 ac_cv_member_struct_tm_tm_gmtoff
=no
7247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7251 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7252 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7253 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7255 cat >>confdefs.h
<<\_ACEOF
7256 #define HAVE_TM_GMTOFF 1
7261 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7262 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7263 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 cat >conftest.
$ac_ext <<_ACEOF
7269 cat confdefs.h
>>conftest.
$ac_ext
7270 cat >>conftest.
$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 $ac_includes_default
7273 #if HAVE_SYS_SOCKET_H
7274 #include <sys/socket.h>
7283 static struct ifreq ac_aggr;
7284 if (ac_aggr.ifr_flags)
7290 rm -f conftest.
$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>conftest.er1
7294 grep -v '^ *+' conftest.er1
>conftest.err
7296 cat conftest.err
>&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try
='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_member_struct_ifreq_ifr_flags
=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7316 cat >conftest.
$ac_ext <<_ACEOF
7319 cat confdefs.h
>>conftest.
$ac_ext
7320 cat >>conftest.
$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 $ac_includes_default
7323 #if HAVE_SYS_SOCKET_H
7324 #include <sys/socket.h>
7333 static struct ifreq ac_aggr;
7334 if (sizeof ac_aggr.ifr_flags)
7340 rm -f conftest.
$ac_objext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7342 (eval $ac_compile) 2>conftest.er1
7344 grep -v '^ *+' conftest.er1
>conftest.err
7346 cat conftest.err
>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try
='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_member_struct_ifreq_ifr_flags
=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.
$ac_ext >&5
7366 ac_cv_member_struct_ifreq_ifr_flags
=no
7368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7372 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7373 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7374 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7376 cat >>confdefs.h
<<_ACEOF
7377 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7382 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7383 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7384 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 cat >conftest.
$ac_ext <<_ACEOF
7390 cat confdefs.h
>>conftest.
$ac_ext
7391 cat >>conftest.
$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7394 #if HAVE_SYS_SOCKET_H
7395 #include <sys/socket.h>
7404 static struct ifreq ac_aggr;
7405 if (ac_aggr.ifr_hwaddr)
7411 rm -f conftest.
$ac_objext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>conftest.er1
7415 grep -v '^ *+' conftest.er1
>conftest.err
7417 cat conftest.err
>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; } &&
7426 { ac_try
='test -s conftest.$ac_objext'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
7432 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.
$ac_ext >&5
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7454 static struct ifreq ac_aggr;
7455 if (sizeof ac_aggr.ifr_hwaddr)
7461 rm -f conftest.
$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try
='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.
$ac_ext >&5
7487 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7489 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7494 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7495 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7497 cat >>confdefs.h
<<_ACEOF
7498 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7503 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7504 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7505 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.
$ac_ext <<_ACEOF
7511 cat confdefs.h
>>conftest.
$ac_ext
7512 cat >>conftest.
$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7515 #if HAVE_SYS_SOCKET_H
7516 #include <sys/socket.h>
7525 static struct ifreq ac_aggr;
7526 if (ac_aggr.ifr_netmask)
7532 rm -f conftest.
$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7536 grep -v '^ *+' conftest.er1
>conftest.err
7538 cat conftest.err
>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try
='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.
$ac_ext >&5
7558 cat >conftest.
$ac_ext <<_ACEOF
7561 cat confdefs.h
>>conftest.
$ac_ext
7562 cat >>conftest.
$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7565 #if HAVE_SYS_SOCKET_H
7566 #include <sys/socket.h>
7575 static struct ifreq ac_aggr;
7576 if (sizeof ac_aggr.ifr_netmask)
7582 rm -f conftest.
$ac_objext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7584 (eval $ac_compile) 2>conftest.er1
7586 grep -v '^ *+' conftest.er1
>conftest.err
7588 cat conftest.err
>&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; } &&
7597 { ac_try
='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.
$ac_ext >&5
7608 ac_cv_member_struct_ifreq_ifr_netmask
=no
7610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7614 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7615 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7616 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7618 cat >>confdefs.h
<<_ACEOF
7619 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7624 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7625 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7626 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 cat >conftest.
$ac_ext <<_ACEOF
7632 cat confdefs.h
>>conftest.
$ac_ext
7633 cat >>conftest.
$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 $ac_includes_default
7636 #if HAVE_SYS_SOCKET_H
7637 #include <sys/socket.h>
7646 static struct ifreq ac_aggr;
7647 if (ac_aggr.ifr_broadaddr)
7653 rm -f conftest.
$ac_objext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655 (eval $ac_compile) 2>conftest.er1
7657 grep -v '^ *+' conftest.er1
>conftest.err
7659 cat conftest.err
>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try
='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.
$ac_ext >&5
7679 cat >conftest.
$ac_ext <<_ACEOF
7682 cat confdefs.h
>>conftest.
$ac_ext
7683 cat >>conftest.
$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 $ac_includes_default
7686 #if HAVE_SYS_SOCKET_H
7687 #include <sys/socket.h>
7696 static struct ifreq ac_aggr;
7697 if (sizeof ac_aggr.ifr_broadaddr)
7703 rm -f conftest.
$ac_objext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7707 grep -v '^ *+' conftest.er1
>conftest.err
7709 cat conftest.err
>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; } &&
7718 { ac_try
='test -s conftest.$ac_objext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.
$ac_ext >&5
7729 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7735 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7736 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7737 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7739 cat >>confdefs.h
<<_ACEOF
7740 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7745 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7746 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7747 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 cat >conftest.
$ac_ext <<_ACEOF
7753 cat confdefs.h
>>conftest.
$ac_ext
7754 cat >>conftest.
$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7757 #if HAVE_SYS_SOCKET_H
7758 #include <sys/socket.h>
7767 static struct ifreq ac_aggr;
7768 if (ac_aggr.ifr_addr)
7774 rm -f conftest.
$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>conftest.er1
7778 grep -v '^ *+' conftest.er1
>conftest.err
7780 cat conftest.err
>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try
='test -s conftest.$ac_objext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_member_struct_ifreq_ifr_addr
=yes
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.
$ac_ext >&5
7800 cat >conftest.
$ac_ext <<_ACEOF
7803 cat confdefs.h
>>conftest.
$ac_ext
7804 cat >>conftest.
$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 $ac_includes_default
7807 #if HAVE_SYS_SOCKET_H
7808 #include <sys/socket.h>
7817 static struct ifreq ac_aggr;
7818 if (sizeof ac_aggr.ifr_addr)
7824 rm -f conftest.
$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7828 grep -v '^ *+' conftest.er1
>conftest.err
7830 cat conftest.err
>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try
='test -s conftest.$ac_objext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_member_struct_ifreq_ifr_addr
=yes
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.
$ac_ext >&5
7850 ac_cv_member_struct_ifreq_ifr_addr
=no
7852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7856 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7857 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7858 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7860 cat >>confdefs.h
<<_ACEOF
7861 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7869 echo "$as_me:$LINENO: checking for function prototypes" >&5
7870 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7871 if test "$ac_cv_prog_cc_stdc" != no
; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873 echo "${ECHO_T}yes" >&6
7875 cat >>confdefs.h
<<\_ACEOF
7876 #define PROTOTYPES 1
7880 cat >>confdefs.h
<<\_ACEOF
7881 #define __PROTOTYPES 1
7885 echo "$as_me:$LINENO: result: no" >&5
7886 echo "${ECHO_T}no" >&6
7889 echo "$as_me:$LINENO: checking for working volatile" >&5
7890 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7891 if test "${ac_cv_c_volatile+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 cat >conftest.
$ac_ext <<_ACEOF
7897 cat confdefs.h
>>conftest.
$ac_ext
7898 cat >>conftest.
$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7911 rm -f conftest.
$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913 (eval $ac_compile) 2>conftest.er1
7915 grep -v '^ *+' conftest.er1
>conftest.err
7917 cat conftest.err
>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
7920 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; } &&
7926 { ac_try
='test -s conftest.$ac_objext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_cv_c_volatile
=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.
$ac_ext >&5
7939 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7941 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7942 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7943 if test $ac_cv_c_volatile = no
; then
7945 cat >>confdefs.h
<<\_ACEOF
7951 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7952 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7953 if test "${ac_cv_c_const+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.
$ac_ext <<_ACEOF
7959 cat confdefs.h
>>conftest.
$ac_ext
7960 cat >>conftest.
$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7966 /* FIXME: Include the comments suggested by Paul. */
7968 /* Ultrix mips cc rejects this. */
7969 typedef int charset[2];
7971 /* SunOS 4.1.1 cc rejects this. */
7972 char const *const *ccp;
7974 /* NEC SVR4.0.2 mips cc rejects this. */
7975 struct point {int x, y;};
7976 static struct point const zero = {0,0};
7977 /* AIX XL C 1.02.0.0 rejects this.
7978 It does not let you subtract one const X* pointer from another in
7979 an arm of an if-expression whose if-part is not a constant
7981 const char *g = "string";
7982 ccp = &g + (g ? g-g : 0);
7983 /* HPUX 7.0 cc rejects these. */
7986 ccp = (char const *const *) p;
7987 { /* SCO 3.2v4 cc rejects this. */
7989 char const *s = 0 ? (char *) 0 : (char const *) 0;
7993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7995 const int *foo = &x[0];
7998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7999 typedef const int *iptr;
8003 { /* AIX XL C 1.02.0.0 rejects this saying
8004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8005 struct s { int j; const int *ap[3]; };
8006 struct s *b; b->j = 5;
8008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8017 rm -f conftest.
$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>conftest.er1
8021 grep -v '^ *+' conftest.er1
>conftest.err
8023 cat conftest.err
>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; } &&
8032 { ac_try
='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.
$ac_ext >&5
8045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8047 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8048 echo "${ECHO_T}$ac_cv_c_const" >&6
8049 if test $ac_cv_c_const = no
; then
8051 cat >>confdefs.h
<<\_ACEOF
8057 echo "$as_me:$LINENO: checking for void * support" >&5
8058 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8059 if test "${emacs_cv_void_star+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 cat >conftest.
$ac_ext <<_ACEOF
8065 cat confdefs.h
>>conftest.
$ac_ext
8066 cat >>conftest.
$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8077 rm -f conftest.
$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8081 grep -v '^ *+' conftest.er1
>conftest.err
8083 cat conftest.err
>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try
='test -s conftest.$ac_objext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 emacs_cv_void_star
=yes
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.
$ac_ext >&5
8103 emacs_cv_void_star
=no
8105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8107 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8108 echo "${ECHO_T}$emacs_cv_void_star" >&6
8109 if test $emacs_cv_void_star = yes; then
8110 cat >>confdefs.h
<<\_ACEOF
8111 #define POINTER_TYPE void
8115 cat >>confdefs.h
<<\_ACEOF
8116 #define POINTER_TYPE char
8125 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8126 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8127 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8128 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 cat >conftest.
make <<\_ACEOF
8133 @
echo 'ac_maketemp="$(MAKE)"'
8135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8136 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8137 if test -n "$ac_maketemp"; then
8138 eval ac_cv_prog_make_
${ac_make}_set
=yes
8140 eval ac_cv_prog_make_
${ac_make}_set
=no
8144 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8145 echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8149 echo "$as_me:$LINENO: result: no" >&5
8150 echo "${ECHO_T}no" >&6
8151 SET_MAKE
="MAKE=${MAKE-make}"
8155 echo "$as_me:$LINENO: checking for long file names" >&5
8156 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8157 if test "${ac_cv_sys_long_file_names+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 ac_cv_sys_long_file_names
=yes
8161 # Test for long file names in all the places we know might matter:
8162 # . the current directory, where building will happen
8163 # $prefix/lib where we will be installing things
8164 # $exec_prefix/lib likewise
8165 # eval it to expand exec_prefix.
8166 # $TMPDIR if set, where it might want to write temporary files
8167 # if $TMPDIR is not set:
8168 # /tmp where it might want to write temporary files
8171 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8174 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8176 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8177 test -d $ac_dir ||
continue
8178 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8179 ac_xdir
=$ac_dir/cf$$
8180 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8181 ac_tf1
=$ac_xdir/conftest9012345
8182 ac_tf2
=$ac_xdir/conftest9012346
8183 (echo 1 >$ac_tf1) 2>/dev
/null
8184 (echo 2 >$ac_tf2) 2>/dev
/null
8185 ac_val
=`cat $ac_tf1 2>/dev/null`
8186 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8187 ac_cv_sys_long_file_names
=no
8188 rm -rf $ac_xdir 2>/dev
/null
8191 rm -rf $ac_xdir 2>/dev
/null
8194 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8195 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8196 if test $ac_cv_sys_long_file_names = yes; then
8198 cat >>confdefs.h
<<\_ACEOF
8199 #define HAVE_LONG_FILE_NAMES 1
8205 #### Choose a window system.
8207 echo "$as_me:$LINENO: checking for X" >&5
8208 echo $ECHO_N "checking for X... $ECHO_C" >&6
8210 ac_path_x_has_been_run
=yes
8212 # Check whether --with-x or --without-x was given.
8213 if test "${with_x+set}" = set; then
8217 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8218 if test "x$with_x" = xno
; then
8219 # The user explicitly disabled X.
8222 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8223 # Both variables are already set.
8226 if test "${ac_cv_have_x+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 # One or both of the vars are not set, and there is no cached value.
8230 ac_x_includes
=no ac_x_libraries
=no
8232 if mkdir conftest.dir
; then
8234 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8235 cat >Imakefile
<<'_ACEOF'
8237 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8239 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8241 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8242 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8243 for ac_extension
in a so sl
; do
8244 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8245 test -f $ac_im_libdir/libX11.
$ac_extension; then
8246 ac_im_usrlibdir
=$ac_im_libdir; break
8249 # Screen out bogus values from the imake configuration. They are
8250 # bogus both because they are the default anyway, and because
8251 # using them would break gcc on systems where it needs fixed includes.
8252 case $ac_im_incroot in
8254 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8256 case $ac_im_usrlibdir in
8258 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8265 # Standard set of common directories for X headers.
8266 # Check X11 before X11Rn because it is often a symlink to the current release.
8278 /usr/local/X11/include
8279 /usr/local/X11R6/include
8280 /usr/local/X11R5/include
8281 /usr/local/X11R4/include
8283 /usr/local/include/X11
8284 /usr/local/include/X11R6
8285 /usr/local/include/X11R5
8286 /usr/local/include/X11R4
8290 /usr/XFree86/include/X11
8294 /usr/unsupported/include
8296 /usr/local/x11r5/include
8297 /usr/lpp/Xamples/include
8299 /usr/openwin/include
8300 /usr/openwin/share/include'
8302 if test "$ac_x_includes" = no
; then
8303 # Guess where to find include files, by looking for a specified header file.
8304 # First, try using that file with no special directory specified.
8305 cat >conftest.
$ac_ext <<_ACEOF
8308 cat confdefs.h
>>conftest.
$ac_ext
8309 cat >>conftest.
$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 #include <X11/Xlib.h>
8313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8314 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8316 grep -v '^ *+' conftest.er1
>conftest.err
8318 cat conftest.err
>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } >/dev
/null
; then
8321 if test -s conftest.err
; then
8322 ac_cpp_err
=$ac_c_preproc_warn_flag
8323 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8330 if test -z "$ac_cpp_err"; then
8331 # We can compile using X headers with no special include directory.
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.
$ac_ext >&5
8337 for ac_dir
in $ac_x_header_dirs; do
8338 if test -r "$ac_dir/X11/Xlib.h"; then
8339 ac_x_includes
=$ac_dir
8344 rm -f conftest.err conftest.
$ac_ext
8345 fi # $ac_x_includes = no
8347 if test "$ac_x_libraries" = no
; then
8348 # Check for the libraries.
8349 # See if we find them without any special options.
8350 # Don't add to $LIBS permanently.
8353 cat >conftest.
$ac_ext <<_ACEOF
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 #include <X11/Xlib.h>
8368 rm -f conftest.
$ac_objext conftest
$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>conftest.er1
8372 grep -v '^ *+' conftest.er1
>conftest.err
8374 cat conftest.err
>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try
='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8390 # We can link X programs with no special library path.
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.
$ac_ext >&5
8397 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8399 # Don't even attempt the hair of trying to link an X program!
8400 for ac_extension
in a so sl
; do
8401 if test -r $ac_dir/libX11.
$ac_extension; then
8402 ac_x_libraries
=$ac_dir
8408 rm -f conftest.err conftest.
$ac_objext \
8409 conftest
$ac_exeext conftest.
$ac_ext
8410 fi # $ac_x_libraries = no
8412 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8413 # Didn't find X anywhere. Cache the known absence of X.
8414 ac_cv_have_x
="have_x=no"
8416 # Record where we found X for the cache.
8417 ac_cv_have_x
="have_x=yes \
8418 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8423 eval "$ac_cv_have_x"
8426 if test "$have_x" != yes; then
8427 echo "$as_me:$LINENO: result: $have_x" >&5
8428 echo "${ECHO_T}$have_x" >&6
8431 # If each of the values was on the command line, it overrides each guess.
8432 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8433 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8434 # Update the cache value to reflect the command line values.
8435 ac_cv_have_x
="have_x=yes \
8436 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8437 # It might be that x_includes is empty (headers are found in the
8438 # standard search path. Then output the corresponding message
8439 ac_out_x_includes
=$x_includes
8440 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8441 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8442 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8445 if test "$no_x" = yes; then
8451 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8452 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8453 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8454 x_default_search_path
=""
8455 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8457 ${x_library}/X11/%L/%T/%N%C%S:\
8458 ${x_library}/X11/%l/%T/%N%C%S:\
8459 ${x_library}/X11/%T/%N%C%S:\
8460 ${x_library}/X11/%L/%T/%N%S:\
8461 ${x_library}/X11/%l/%T/%N%S:\
8462 ${x_library}/X11/%T/%N%S"
8463 if test x
"${x_default_search_path}" = x
; then
8464 x_default_search_path
=${x_search_path}
8466 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8470 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8471 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8474 if test x
"${x_includes}" = x
; then
8475 bitmapdir
=/usr
/include
/X11
/bitmaps
8477 # accumulate include directories that have X11 bitmap subdirectories
8479 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8480 if test -d "${bmd}/X11/bitmaps"; then
8481 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8483 if test -d "${bmd}/bitmaps"; then
8484 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8487 if test ${bmd_acc} != "dummyval"; then
8488 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8493 if test "${with_carbon}" != no
; then
8494 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8495 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8501 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8503 # Is the header compilable?
8504 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8505 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8506 cat >conftest.
$ac_ext <<_ACEOF
8509 cat confdefs.h
>>conftest.
$ac_ext
8510 cat >>conftest.
$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 #include <Carbon/Carbon.h>
8515 rm -f conftest.
$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1
>conftest.err
8521 cat conftest.err
>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try
='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_header_compiler
=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8541 ac_header_compiler
=no
8543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8545 echo "${ECHO_T}$ac_header_compiler" >&6
8547 # Is the header present?
8548 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8549 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8550 cat >conftest.
$ac_ext <<_ACEOF
8553 cat confdefs.h
>>conftest.
$ac_ext
8554 cat >>conftest.
$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 #include <Carbon/Carbon.h>
8558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8559 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8561 grep -v '^ *+' conftest.er1
>conftest.err
8563 cat conftest.err
>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } >/dev
/null
; then
8566 if test -s conftest.err
; then
8567 ac_cpp_err
=$ac_c_preproc_warn_flag
8568 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8575 if test -z "$ac_cpp_err"; then
8576 ac_header_preproc
=yes
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.
$ac_ext >&5
8581 ac_header_preproc
=no
8583 rm -f conftest.err conftest.
$ac_ext
8584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8585 echo "${ECHO_T}$ac_header_preproc" >&6
8587 # So? What about this header?
8588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8590 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8591 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8593 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8594 ac_header_preproc
=yes
8597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8598 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8600 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8602 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8604 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8606 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8608 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8611 ## ------------------------------------------ ##
8612 ## Report this to the AC_PACKAGE_NAME lists. ##
8613 ## ------------------------------------------ ##
8616 sed "s/^/$as_me: WARNING: /" >&2
8619 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8620 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8621 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8626 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8627 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8630 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8636 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8637 if test "${with_carbon+set}" != set \
8638 && test "${carbon_appdir_x+set}" != set; then
8642 if test "${HAVE_CARBON}" = yes; then
8646 case "${window_system}" in
8650 case "${with_x_toolkit}" in
8651 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8652 motif
) USE_X_TOOLKIT
=MOTIF
;;
8654 USE_X_TOOLKIT
=none
;;
8655 no
) USE_X_TOOLKIT
=none
;;
8656 * ) USE_X_TOOLKIT
=maybe
;;
8666 ### If we're using X11, we should use the X menu package.
8669 yes ) HAVE_MENUS
=yes ;;
8672 if test "${opsys}" = "hpux9"; then
8673 case "${x_libraries}" in
8675 opsysfile
="s/hpux9-x11r4.h"
8680 if test "${opsys}" = "hpux9shr"; then
8681 case "${x_libraries}" in
8683 opsysfile
="s/hpux9shxr4.h"
8688 ### Compute the unexec source name from the object name.
8689 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8691 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8692 # Assume not, until told otherwise.
8695 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8696 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8697 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 cat >conftest.
$ac_ext <<_ACEOF
8703 cat confdefs.h
>>conftest.
$ac_ext
8704 cat >>conftest.
$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708 #define malloc_get_state innocuous_malloc_get_state
8710 /* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char malloc_get_state (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8716 # include <limits.h>
8718 # include <assert.h>
8721 #undef malloc_get_state
8723 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8730 char malloc_get_state ();
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8737 char (*f) () = malloc_get_state;
8746 return f != malloc_get_state;
8751 rm -f conftest.
$ac_objext conftest
$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8755 grep -v '^ *+' conftest.er1
>conftest.err
8757 cat conftest.err
>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try
='test -s conftest$ac_exeext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_func_malloc_get_state
=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.
$ac_ext >&5
8777 ac_cv_func_malloc_get_state
=no
8779 rm -f conftest.err conftest.
$ac_objext \
8780 conftest
$ac_exeext conftest.
$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8783 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8784 if test $ac_cv_func_malloc_get_state = yes; then
8790 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8791 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8792 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 cat >conftest.
$ac_ext <<_ACEOF
8798 cat confdefs.h
>>conftest.
$ac_ext
8799 cat >>conftest.
$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8803 #define malloc_set_state innocuous_malloc_set_state
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char malloc_set_state (); below.
8807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808 <limits.h> exists even on freestanding compilers. */
8811 # include <limits.h>
8813 # include <assert.h>
8816 #undef malloc_set_state
8818 /* Override any gcc2 internal prototype to avoid an error. */
8823 /* We use char because int might match the return type of a gcc2
8824 builtin and then its argument prototype would still apply. */
8825 char malloc_set_state ();
8826 /* The GNU C library defines this for functions which it implements
8827 to always fail with ENOSYS. Some functions are actually named
8828 something starting with __ and the normal name is an alias. */
8829 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8832 char (*f) () = malloc_set_state;
8841 return f != malloc_set_state;
8846 rm -f conftest.
$ac_objext conftest
$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8850 grep -v '^ *+' conftest.er1
>conftest.err
8852 cat conftest.err
>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try
='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_func_malloc_set_state
=yes
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.
$ac_ext >&5
8872 ac_cv_func_malloc_set_state
=no
8874 rm -f conftest.err conftest.
$ac_objext \
8875 conftest
$ac_exeext conftest.
$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8878 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8879 if test $ac_cv_func_malloc_set_state = yes; then
8885 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8886 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8887 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.
$ac_ext <<_ACEOF
8893 cat confdefs.h
>>conftest.
$ac_ext
8894 cat >>conftest.
$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 extern void (* __after_morecore_hook)();
8900 __after_morecore_hook = 0
8905 rm -f conftest.
$ac_objext conftest
$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>conftest.er1
8909 grep -v '^ *+' conftest.er1
>conftest.err
8911 cat conftest.err
>&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; } &&
8920 { ac_try
='test -s conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926 emacs_cv_var___after_morecore_hook
=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.
$ac_ext >&5
8931 emacs_cv_var___after_morecore_hook
=no
8933 rm -f conftest.err conftest.
$ac_objext \
8934 conftest
$ac_exeext conftest.
$ac_ext
8936 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8937 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8938 if test $emacs_cv_var___after_morecore_hook = no
; then
8941 if test "${system_malloc}" = "yes"; then
8944 (The GNU allocators don't work with this system configuration.)"
8946 if test "$doug_lea_malloc" = "yes" ; then
8947 if test "$GNU_MALLOC" = yes ; then
8949 (Using Doug Lea's new malloc from the GNU C Library.)"
8952 cat >>confdefs.h
<<\_ACEOF
8953 #define DOUG_LEA_MALLOC 1
8958 if test x
"${REL_ALLOC}" = x
; then
8959 REL_ALLOC
=${GNU_MALLOC}
8965 for ac_header
in stdlib.h unistd.h
8967 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8969 echo "$as_me:$LINENO: checking for $ac_header" >&5
8970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8977 # Is the header compilable?
8978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8980 cat >conftest.
$ac_ext <<_ACEOF
8983 cat confdefs.h
>>conftest.
$ac_ext
8984 cat >>conftest.
$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 $ac_includes_default
8987 #include <$ac_header>
8989 rm -f conftest.
$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1
>conftest.err
8995 cat conftest.err
>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try
='test -s conftest.$ac_objext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_header_compiler
=yes
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.
$ac_ext >&5
9015 ac_header_compiler
=no
9017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9019 echo "${ECHO_T}$ac_header_compiler" >&6
9021 # Is the header present?
9022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9024 cat >conftest.
$ac_ext <<_ACEOF
9027 cat confdefs.h
>>conftest.
$ac_ext
9028 cat >>conftest.
$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 #include <$ac_header>
9032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9035 grep -v '^ *+' conftest.er1
>conftest.err
9037 cat conftest.err
>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } >/dev
/null
; then
9040 if test -s conftest.err
; then
9041 ac_cpp_err
=$ac_c_preproc_warn_flag
9042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9049 if test -z "$ac_cpp_err"; then
9050 ac_header_preproc
=yes
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.
$ac_ext >&5
9055 ac_header_preproc
=no
9057 rm -f conftest.err conftest.
$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9059 echo "${ECHO_T}$ac_header_preproc" >&6
9061 # So? What about this header?
9062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9068 ac_header_preproc
=yes
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9085 ## ------------------------------------------ ##
9086 ## Report this to the AC_PACKAGE_NAME lists. ##
9087 ## ------------------------------------------ ##
9090 sed "s/^/$as_me: WARNING: /" >&2
9093 echo "$as_me:$LINENO: checking for $ac_header" >&5
9094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 eval "$as_ac_Header=\$ac_header_preproc"
9100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9105 cat >>confdefs.h
<<_ACEOF
9106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114 for ac_func
in getpagesize
9116 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9117 echo "$as_me:$LINENO: checking for $ac_func" >&5
9118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9119 if eval "test \"\${$as_ac_var+set}\" = set"; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 cat >conftest.
$ac_ext <<_ACEOF
9125 cat confdefs.h
>>conftest.
$ac_ext
9126 cat >>conftest.
$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9130 #define $ac_func innocuous_$ac_func
9132 /* System header to define __stub macros and hopefully few prototypes,
9133 which can conflict with char $ac_func (); below.
9134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9135 <limits.h> exists even on freestanding compilers. */
9138 # include <limits.h>
9140 # include <assert.h>
9145 /* Override any gcc2 internal prototype to avoid an error. */
9150 /* We use char because int might match the return type of a gcc2
9151 builtin and then its argument prototype would still apply. */
9153 /* The GNU C library defines this for functions which it implements
9154 to always fail with ENOSYS. Some functions are actually named
9155 something starting with __ and the normal name is an alias. */
9156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9159 char (*f) () = $ac_func;
9168 return f != $ac_func;
9173 rm -f conftest.
$ac_objext conftest
$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>conftest.er1
9177 grep -v '^ *+' conftest.er1
>conftest.err
9179 cat conftest.err
>&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try
='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 eval "$as_ac_var=yes"
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9199 eval "$as_ac_var=no"
9201 rm -f conftest.err conftest.
$ac_objext \
9202 conftest
$ac_exeext conftest.
$ac_ext
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9206 if test `eval echo '${'$as_ac_var'}'` = yes; then
9207 cat >>confdefs.h
<<_ACEOF
9208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9214 echo "$as_me:$LINENO: checking for working mmap" >&5
9215 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9216 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 if test "$cross_compiling" = yes; then
9220 ac_cv_func_mmap_fixed_mapped
=no
9222 cat >conftest.
$ac_ext <<_ACEOF
9225 cat confdefs.h
>>conftest.
$ac_ext
9226 cat >>conftest.
$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9229 /* malloc might have been renamed as rpl_malloc. */
9232 /* Thanks to Mike Haertel and Jim Avera for this test.
9233 Here is a matrix of mmap possibilities:
9234 mmap private not fixed
9235 mmap private fixed at somewhere currently unmapped
9236 mmap private fixed at somewhere already mapped
9237 mmap shared not fixed
9238 mmap shared fixed at somewhere currently unmapped
9239 mmap shared fixed at somewhere already mapped
9240 For private mappings, we should verify that changes cannot be read()
9241 back from the file, nor mmap's back from the file at a different
9242 address. (There have been systems where private was not correctly
9243 implemented like the infamous i386 svr4.0, and systems where the
9244 VM page cache was not coherent with the file system buffer cache
9245 like early versions of FreeBSD and possibly contemporary NetBSD.)
9246 For shared mappings, we should conversely verify that changes get
9247 propagated back to all the places they're supposed to be.
9249 Grep wants private fixed already mapped.
9250 The main things grep needs to know about mmap are:
9251 * does it exist and is it safe to write into the mmap'd area
9252 * how to use it (BSD variants) */
9255 #include <sys/mman.h>
9257 #if !STDC_HEADERS && !HAVE_STDLIB_H
9261 /* This mess was copied from the GNU getpagesize.h. */
9262 #if !HAVE_GETPAGESIZE
9263 /* Assume that all systems that can run configure have sys/param.h. */
9264 # if !HAVE_SYS_PARAM_H
9265 # define HAVE_SYS_PARAM_H 1
9268 # ifdef _SC_PAGESIZE
9269 # define getpagesize() sysconf(_SC_PAGESIZE)
9270 # else /* no _SC_PAGESIZE */
9271 # if HAVE_SYS_PARAM_H
9272 # include <sys/param.h>
9273 # ifdef EXEC_PAGESIZE
9274 # define getpagesize() EXEC_PAGESIZE
9275 # else /* no EXEC_PAGESIZE */
9277 # define getpagesize() NBPG * CLSIZE
9280 # endif /* no CLSIZE */
9281 # else /* no NBPG */
9283 # define getpagesize() NBPC
9284 # else /* no NBPC */
9286 # define getpagesize() PAGESIZE
9287 # endif /* PAGESIZE */
9288 # endif /* no NBPC */
9289 # endif /* no NBPG */
9290 # endif /* no EXEC_PAGESIZE */
9291 # else /* no HAVE_SYS_PARAM_H */
9292 # define getpagesize() 8192 /* punt totally */
9293 # endif /* no HAVE_SYS_PARAM_H */
9294 # endif /* no _SC_PAGESIZE */
9296 #endif /* no HAVE_GETPAGESIZE */
9301 char *data, *data2, *data3;
9305 pagesize = getpagesize ();
9307 /* First, make a file with some known garbage in it. */
9308 data = (char *) malloc (pagesize);
9311 for (i = 0; i < pagesize; ++i)
9312 *(data + i) = rand ();
9314 fd = creat ("conftest.mmap", 0600);
9317 if (write (fd, data, pagesize) != pagesize)
9321 /* Next, try to mmap the file at a fixed address which already has
9322 something else allocated at it. If we can, also make sure that
9323 we see the same garbage. */
9324 fd = open ("conftest.mmap", O_RDWR);
9327 data2 = (char *) malloc (2 * pagesize);
9330 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9331 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9332 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9334 for (i = 0; i < pagesize; ++i)
9335 if (*(data + i) != *(data2 + i))
9338 /* Finally, make sure that changes to the mapped area do not
9339 percolate back to the file as seen by read(). (This is a bug on
9340 some variants of i386 svr4.0.) */
9341 for (i = 0; i < pagesize; ++i)
9342 *(data2 + i) = *(data2 + i) + 1;
9343 data3 = (char *) malloc (pagesize);
9346 if (read (fd, data3, pagesize) != pagesize)
9348 for (i = 0; i < pagesize; ++i)
9349 if (*(data + i) != *(data3 + i))
9355 rm -f conftest
$ac_exeext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_func_mmap_fixed_mapped
=yes
9368 echo "$as_me: program exited with status $ac_status" >&5
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.
$ac_ext >&5
9373 ac_cv_func_mmap_fixed_mapped
=no
9375 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9378 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9379 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9380 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9382 cat >>confdefs.h
<<\_ACEOF
9389 if test $use_mmap_for_buffers = yes; then
9393 LIBS
="$libsrc_libs $LIBS"
9396 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9397 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9398 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 ac_check_lib_save_LIBS
=$LIBS
9403 cat >conftest.
$ac_ext <<_ACEOF
9406 cat confdefs.h
>>conftest.
$ac_ext
9407 cat >>conftest.
$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9410 /* Override any gcc2 internal prototype to avoid an error. */
9414 /* We use char because int might match the return type of a gcc2
9415 builtin and then its argument prototype would still apply. */
9425 rm -f conftest.
$ac_objext conftest
$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>conftest.er1
9429 grep -v '^ *+' conftest.er1
>conftest.err
9431 cat conftest.err
>&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try
='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 ac_cv_lib_dnet_dnet_ntoa
=yes
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.
$ac_ext >&5
9451 ac_cv_lib_dnet_dnet_ntoa
=no
9453 rm -f conftest.err conftest.
$ac_objext \
9454 conftest
$ac_exeext conftest.
$ac_ext
9455 LIBS
=$ac_check_lib_save_LIBS
9457 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9458 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9459 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9460 cat >>confdefs.h
<<_ACEOF
9461 #define HAVE_LIBDNET 1
9469 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9470 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9471 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 ac_check_lib_save_LIBS
=$LIBS
9476 cat >conftest.
$ac_ext <<_ACEOF
9479 cat confdefs.h
>>conftest.
$ac_ext
9480 cat >>conftest.
$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9492 rm -f conftest.
$ac_objext conftest
$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9496 grep -v '^ *+' conftest.er1
>conftest.err
9498 cat conftest.err
>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try
='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_lib_Xbsd_main
=yes
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.
$ac_ext >&5
9518 ac_cv_lib_Xbsd_main
=no
9520 rm -f conftest.err conftest.
$ac_objext \
9521 conftest
$ac_exeext conftest.
$ac_ext
9522 LIBS
=$ac_check_lib_save_LIBS
9524 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9525 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9526 if test $ac_cv_lib_Xbsd_main = yes; then
9527 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9532 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9533 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9534 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 ac_check_lib_save_LIBS
=$LIBS
9538 LIBS
="-lpthreads $LIBS"
9539 cat >conftest.
$ac_ext <<_ACEOF
9542 cat confdefs.h
>>conftest.
$ac_ext
9543 cat >>conftest.
$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9546 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9561 rm -f conftest.
$ac_objext conftest
$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>conftest.er1
9565 grep -v '^ *+' conftest.er1
>conftest.err
9567 cat conftest.err
>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try
='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_pthreads_cma_open
=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.
$ac_ext >&5
9587 ac_cv_lib_pthreads_cma_open
=no
9589 rm -f conftest.err conftest.
$ac_objext \
9590 conftest
$ac_exeext conftest.
$ac_ext
9591 LIBS
=$ac_check_lib_save_LIBS
9593 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9594 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9595 if test $ac_cv_lib_pthreads_cma_open = yes; then
9596 cat >>confdefs.h
<<_ACEOF
9597 #define HAVE_LIBPTHREADS 1
9600 LIBS
="-lpthreads $LIBS"
9605 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9606 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9607 if test -d /usr
/X386
/include
; then
9609 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9613 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9614 echo "${ECHO_T}$HAVE_XFREE386" >&6
9619 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9620 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9621 if test "${gdb_cv_bigtoc+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9627 *) gdb_cv_bigtoc
=-bbigtoc ;;
9630 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9646 rm -f conftest.
$ac_objext conftest
$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>conftest.er1
9650 grep -v '^ *+' conftest.er1
>conftest.err
9652 cat conftest.err
>&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try
='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.
$ac_ext >&5
9674 rm -f conftest.err conftest.
$ac_objext \
9675 conftest
$ac_exeext conftest.
$ac_ext
9678 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9679 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9683 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9684 # used for the tests that follow. We set them back to REAL_CFLAGS and
9685 # REAL_CPPFLAGS later on.
9687 REAL_CPPFLAGS
="$CPPFLAGS"
9689 if test "${HAVE_X11}" = "yes"; then
9690 DEFS
="$C_SWITCH_X_SITE $DEFS"
9691 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9693 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9694 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9696 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9697 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9698 # but it's more convenient here to set LD_RUN_PATH
9699 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9700 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9701 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9705 if test "${opsys}" = "gnu-linux"; then
9706 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9707 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9708 cat >conftest.
$ac_ext <<_ACEOF
9711 cat confdefs.h
>>conftest.
$ac_ext
9712 cat >>conftest.
$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9718 XOpenDisplay ("foo");
9723 rm -f conftest.
$ac_objext conftest
$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1
>conftest.err
9729 cat conftest.err
>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try
='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 xlinux_first_failure
=no
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.
$ac_ext >&5
9749 xlinux_first_failure
=yes
9751 rm -f conftest.err conftest.
$ac_objext \
9752 conftest
$ac_exeext conftest.
$ac_ext
9753 if test "${xlinux_first_failure}" = "yes"; then
9754 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9755 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9756 OLD_CPPFLAGS
="$CPPFLAGS"
9758 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9759 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9760 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9761 LIBS
="$LIBS -b i486-linuxaout"
9762 cat >conftest.
$ac_ext <<_ACEOF
9765 cat confdefs.h
>>conftest.
$ac_ext
9766 cat >>conftest.
$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9772 XOpenDisplay ("foo");
9777 rm -f conftest.
$ac_objext conftest
$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9781 grep -v '^ *+' conftest.er1
>conftest.err
9783 cat conftest.err
>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try
='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 xlinux_second_failure
=no
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.
$ac_ext >&5
9803 xlinux_second_failure
=yes
9805 rm -f conftest.err conftest.
$ac_objext \
9806 conftest
$ac_exeext conftest.
$ac_ext
9807 if test "${xlinux_second_failure}" = "yes"; then
9808 # If we get the same failure with -b, there is no use adding -b.
9809 # So take it out. This plays safe.
9810 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9811 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9812 CPPFLAGS
="$OLD_CPPFLAGS"
9814 echo "$as_me:$LINENO: result: no" >&5
9815 echo "${ECHO_T}no" >&6
9817 echo "$as_me:$LINENO: result: yes" >&5
9818 echo "${ECHO_T}yes" >&6
9821 echo "$as_me:$LINENO: result: no" >&5
9822 echo "${ECHO_T}no" >&6
9826 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9827 # header files included from there.
9828 echo "$as_me:$LINENO: checking for Xkb" >&5
9829 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9830 cat >conftest.
$ac_ext <<_ACEOF
9833 cat confdefs.h
>>conftest.
$ac_ext
9834 cat >>conftest.
$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <X11/Xlib.h>
9837 #include <X11/XKBlib.h>
9841 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9846 rm -f conftest.
$ac_objext conftest
$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>conftest.er1
9850 grep -v '^ *+' conftest.er1
>conftest.err
9852 cat conftest.err
>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; } &&
9861 { ac_try
='test -s conftest$ac_exeext'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; }; then
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.
$ac_ext >&5
9874 rm -f conftest.err conftest.
$ac_objext \
9875 conftest
$ac_exeext conftest.
$ac_ext
9876 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9877 echo "${ECHO_T}$emacs_xkb" >&6
9878 if test $emacs_xkb = yes; then
9880 cat >>confdefs.h
<<\_ACEOF
9881 #define HAVE_XKBGETKEYBOARD 1
9890 for ac_func
in XrmSetDatabase XScreenResourceString \
9891 XScreenNumberOfScreen XSetWMProtocols
9893 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9894 echo "$as_me:$LINENO: checking for $ac_func" >&5
9895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9896 if eval "test \"\${$as_ac_var+set}\" = set"; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 cat >conftest.
$ac_ext <<_ACEOF
9902 cat confdefs.h
>>conftest.
$ac_ext
9903 cat >>conftest.
$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9907 #define $ac_func innocuous_$ac_func
9909 /* System header to define __stub macros and hopefully few prototypes,
9910 which can conflict with char $ac_func (); below.
9911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9912 <limits.h> exists even on freestanding compilers. */
9915 # include <limits.h>
9917 # include <assert.h>
9922 /* Override any gcc2 internal prototype to avoid an error. */
9927 /* We use char because int might match the return type of a gcc2
9928 builtin and then its argument prototype would still apply. */
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9936 char (*f) () = $ac_func;
9945 return f != $ac_func;
9950 rm -f conftest.
$ac_objext conftest
$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1
>conftest.err
9956 cat conftest.err
>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try
='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 eval "$as_ac_var=yes"
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.
$ac_ext >&5
9976 eval "$as_ac_var=no"
9978 rm -f conftest.err conftest.
$ac_objext \
9979 conftest
$ac_exeext conftest.
$ac_ext
9981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9983 if test `eval echo '${'$as_ac_var'}'` = yes; then
9984 cat >>confdefs.h
<<_ACEOF
9985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9993 if test "${window_system}" = "x11"; then
9994 echo "$as_me:$LINENO: checking X11 version 6" >&5
9995 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9996 if test "${emacs_cv_x11_version_6+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 cat >conftest.
$ac_ext <<_ACEOF
10002 cat confdefs.h
>>conftest.
$ac_ext
10003 cat >>conftest.
$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 #include <X11/Xlib.h>
10009 #if XlibSpecificationRelease < 6
10017 rm -f conftest.
$ac_objext conftest
$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019 (eval $ac_link) 2>conftest.er1
10021 grep -v '^ *+' conftest.er1
>conftest.err
10023 cat conftest.err
>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try
='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 emacs_cv_x11_version_6
=yes
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.
$ac_ext >&5
10043 emacs_cv_x11_version_6
=no
10045 rm -f conftest.err conftest.
$ac_objext \
10046 conftest
$ac_exeext conftest.
$ac_ext
10049 if test $emacs_cv_x11_version_6 = yes; then
10050 echo "$as_me:$LINENO: result: 6 or newer" >&5
10051 echo "${ECHO_T}6 or newer" >&6
10053 cat >>confdefs.h
<<\_ACEOF
10054 #define HAVE_X11R6 1
10058 echo "$as_me:$LINENO: result: before 6" >&5
10059 echo "${ECHO_T}before 6" >&6
10063 if test "${window_system}" = "x11"; then
10064 echo "$as_me:$LINENO: checking X11 version 5" >&5
10065 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10066 if test "${emacs_cv_x11_version_5+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10072 cat confdefs.h
>>conftest.
$ac_ext
10073 cat >>conftest.
$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <X11/Xlib.h>
10079 #if XlibSpecificationRelease < 5
10087 rm -f conftest.
$ac_objext conftest
$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10091 grep -v '^ *+' conftest.er1
>conftest.err
10093 cat conftest.err
>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try
='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10108 emacs_cv_x11_version_5
=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.
$ac_ext >&5
10113 emacs_cv_x11_version_5
=no
10115 rm -f conftest.err conftest.
$ac_objext \
10116 conftest
$ac_exeext conftest.
$ac_ext
10119 if test $emacs_cv_x11_version_5 = yes; then
10120 echo "$as_me:$LINENO: result: 5 or newer" >&5
10121 echo "${ECHO_T}5 or newer" >&6
10124 cat >>confdefs.h
<<\_ACEOF
10125 #define HAVE_X11R5 1
10130 echo "$as_me:$LINENO: result: before 5" >&5
10131 echo "${ECHO_T}before 5" >&6
10138 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10139 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10140 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10141 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10142 { (exit 1); exit 1; }; };
10146 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10148 if test "X${with_pkg_config_prog}" != X
; then
10149 PKG_CONFIG
="${with_pkg_config_prog}"
10154 if test -z "$PKG_CONFIG"; then
10155 # Extract the first word of "pkg-config", so it can be a program name with args.
10156 set dummy pkg-config
; ac_word
=$2
10157 echo "$as_me:$LINENO: checking for $ac_word" >&5
10158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10159 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 case $PKG_CONFIG in
10164 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10168 for as_dir
in $PATH
10171 test -z "$as_dir" && as_dir
=.
10172 for ac_exec_ext
in '' $ac_executable_extensions; do
10173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10185 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10187 if test -n "$PKG_CONFIG"; then
10188 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10189 echo "${ECHO_T}$PKG_CONFIG" >&6
10191 echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6
10197 if test "$PKG_CONFIG" = "no" ; then
10198 echo "*** The pkg-config script could not be found. Make sure it is"
10199 echo "*** in your path, or give the full path to pkg-config with"
10200 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10201 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10203 PKG_CONFIG_MIN_VERSION
=0.9.0
10204 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10205 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10206 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10208 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210 echo "${ECHO_T}yes" >&6
10213 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10214 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10215 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10216 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10217 echo "${ECHO_T}$GTK_CFLAGS" >&6
10219 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10220 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10221 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10222 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10223 echo "${ECHO_T}$GTK_LIBS" >&6
10227 ## If we have a custom action on failure, don't print errors, but
10228 ## do set a variable so people can do so.
10229 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10230 echo $GTK_PKG_ERRORS
10236 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10237 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10241 if test $succeeded = yes; then
10244 { { 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
10245 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;}
10246 { (exit 1); exit 1; }; }
10251 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10252 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10253 LIBS
="$GTK_LIBS $LIBS"
10256 cat >>confdefs.h
<<\_ACEOF
10262 if test "$with_toolkit_scroll_bars" != no
; then
10263 with_toolkit_scroll_bars
=yes
10266 HAVE_GTK_MULTIDISPLAY
=no
10268 HAVE_GTK_FILE_SELECTION
=no
10270 for ac_func
in gtk_file_selection_new
10272 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10273 echo "$as_me:$LINENO: checking for $ac_func" >&5
10274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10275 if eval "test \"\${$as_ac_var+set}\" = set"; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 cat >conftest.
$ac_ext <<_ACEOF
10281 cat confdefs.h
>>conftest.
$ac_ext
10282 cat >>conftest.
$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10286 #define $ac_func innocuous_$ac_func
10288 /* System header to define __stub macros and hopefully few prototypes,
10289 which can conflict with char $ac_func (); below.
10290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10291 <limits.h> exists even on freestanding compilers. */
10294 # include <limits.h>
10296 # include <assert.h>
10301 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10309 /* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
10312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10315 char (*f) () = $ac_func;
10324 return f != $ac_func;
10329 rm -f conftest.
$ac_objext conftest
$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>conftest.er1
10333 grep -v '^ *+' conftest.er1
>conftest.err
10335 cat conftest.err
>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; } &&
10344 { ac_try
='test -s conftest$ac_exeext'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 eval "$as_ac_var=yes"
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.
$ac_ext >&5
10355 eval "$as_ac_var=no"
10357 rm -f conftest.err conftest.
$ac_objext \
10358 conftest
$ac_exeext conftest.
$ac_ext
10360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10362 if test `eval echo '${'$as_ac_var'}'` = yes; then
10363 cat >>confdefs.h
<<_ACEOF
10364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10366 HAVE_GTK_FILE_SELECTION
=yes
10371 HAVE_GTK_FILE_CHOOSER
=no
10373 for ac_func
in gtk_file_chooser_dialog_new
10375 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10376 echo "$as_me:$LINENO: checking for $ac_func" >&5
10377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10378 if eval "test \"\${$as_ac_var+set}\" = set"; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 cat >conftest.
$ac_ext <<_ACEOF
10384 cat confdefs.h
>>conftest.
$ac_ext
10385 cat >>conftest.
$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10389 #define $ac_func innocuous_$ac_func
10391 /* System header to define __stub macros and hopefully few prototypes,
10392 which can conflict with char $ac_func (); below.
10393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394 <limits.h> exists even on freestanding compilers. */
10397 # include <limits.h>
10399 # include <assert.h>
10404 /* Override any gcc2 internal prototype to avoid an error. */
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10412 /* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10418 char (*f) () = $ac_func;
10427 return f != $ac_func;
10432 rm -f conftest.
$ac_objext conftest
$ac_exeext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434 (eval $ac_link) 2>conftest.er1
10436 grep -v '^ *+' conftest.er1
>conftest.err
10438 cat conftest.err
>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try
='test -s conftest$ac_exeext'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
10453 eval "$as_ac_var=yes"
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.
$ac_ext >&5
10458 eval "$as_ac_var=no"
10460 rm -f conftest.err conftest.
$ac_objext \
10461 conftest
$ac_exeext conftest.
$ac_ext
10463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10465 if test `eval echo '${'$as_ac_var'}'` = yes; then
10466 cat >>confdefs.h
<<_ACEOF
10467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10469 HAVE_GTK_FILE_CHOOSER
=yes
10474 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10475 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10477 cat >>confdefs.h
<<\_ACEOF
10478 #define HAVE_GTK_FILE_BOTH 1
10483 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10484 HAVE_GTK_AND_PTHREAD
=no
10486 for ac_header
in pthread.h
10488 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10490 echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10498 # Is the header compilable?
10499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10501 cat >conftest.
$ac_ext <<_ACEOF
10504 cat confdefs.h
>>conftest.
$ac_ext
10505 cat >>conftest.
$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 $ac_includes_default
10508 #include <$ac_header>
10510 rm -f conftest.
$ac_objext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>conftest.er1
10514 grep -v '^ *+' conftest.er1
>conftest.err
10516 cat conftest.err
>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try
='test -s conftest.$ac_objext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_header_compiler
=yes
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.
$ac_ext >&5
10536 ac_header_compiler
=no
10538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10540 echo "${ECHO_T}$ac_header_compiler" >&6
10542 # Is the header present?
10543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10545 cat >conftest.
$ac_ext <<_ACEOF
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <$ac_header>
10553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10554 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10556 grep -v '^ *+' conftest.er1
>conftest.err
10558 cat conftest.err
>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } >/dev
/null
; then
10561 if test -s conftest.err
; then
10562 ac_cpp_err
=$ac_c_preproc_warn_flag
10563 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10570 if test -z "$ac_cpp_err"; then
10571 ac_header_preproc
=yes
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.
$ac_ext >&5
10576 ac_header_preproc
=no
10578 rm -f conftest.err conftest.
$ac_ext
10579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10580 echo "${ECHO_T}$ac_header_preproc" >&6
10582 # So? What about this header?
10583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10589 ac_header_preproc
=yes
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10606 ## ------------------------------------------ ##
10607 ## Report this to the AC_PACKAGE_NAME lists. ##
10608 ## ------------------------------------------ ##
10611 sed "s/^/$as_me: WARNING: /" >&2
10614 echo "$as_me:$LINENO: checking for $ac_header" >&5
10615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 eval "$as_ac_Header=\$ac_header_preproc"
10621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10626 cat >>confdefs.h
<<_ACEOF
10627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10634 if test "$ac_cv_header_pthread_h"; then
10635 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10636 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10637 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 ac_check_lib_save_LIBS
=$LIBS
10641 LIBS
="-lpthread $LIBS"
10642 cat >conftest.
$ac_ext <<_ACEOF
10645 cat confdefs.h
>>conftest.
$ac_ext
10646 cat >>conftest.
$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10649 /* Override any gcc2 internal prototype to avoid an error. */
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655 char pthread_self ();
10664 rm -f conftest.
$ac_objext conftest
$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10668 grep -v '^ *+' conftest.er1
>conftest.err
10670 cat conftest.err
>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try
='test -s conftest$ac_exeext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_lib_pthread_pthread_self
=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.
$ac_ext >&5
10690 ac_cv_lib_pthread_pthread_self
=no
10692 rm -f conftest.err conftest.
$ac_objext \
10693 conftest
$ac_exeext conftest.
$ac_ext
10694 LIBS
=$ac_check_lib_save_LIBS
10696 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10697 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10698 if test $ac_cv_lib_pthread_pthread_self = yes; then
10699 HAVE_GTK_AND_PTHREAD
=yes
10703 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10704 GTK_LIBS
="$GTK_LIBS -lpthread"
10706 cat >>confdefs.h
<<\_ACEOF
10707 #define HAVE_GTK_AND_PTHREAD 1
10714 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10715 if test x
"${HAVE_X11R5}" = xyes
; then
10716 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10717 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10718 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 cat >conftest.
$ac_ext <<_ACEOF
10724 cat confdefs.h
>>conftest.
$ac_ext
10725 cat >>conftest.
$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10728 #include <X11/Intrinsic.h>
10729 #include <X11/Xaw/Simple.h>
10738 rm -f conftest.
$ac_objext conftest
$ac_exeext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740 (eval $ac_link) 2>conftest.er1
10742 grep -v '^ *+' conftest.er1
>conftest.err
10744 cat conftest.err
>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try
='test -s conftest$ac_exeext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 emacs_cv_x11_version_5_with_xaw
=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.
$ac_ext >&5
10764 emacs_cv_x11_version_5_with_xaw
=no
10766 rm -f conftest.err conftest.
$ac_objext \
10767 conftest
$ac_exeext conftest.
$ac_ext
10770 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10771 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10772 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10773 USE_X_TOOLKIT
=LUCID
10775 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10776 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10784 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10786 if test "${USE_X_TOOLKIT}" != "none"; then
10787 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10788 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10789 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.
$ac_ext <<_ACEOF
10795 cat confdefs.h
>>conftest.
$ac_ext
10796 cat >>conftest.
$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <X11/Intrinsic.h>
10802 #if XtSpecificationRelease < 6
10810 rm -f conftest.
$ac_objext conftest
$ac_exeext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10812 (eval $ac_link) 2>conftest.er1
10814 grep -v '^ *+' conftest.er1
>conftest.err
10816 cat conftest.err
>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try
='test -s conftest$ac_exeext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 emacs_cv_x11_toolkit_version_6
=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.
$ac_ext >&5
10836 emacs_cv_x11_toolkit_version_6
=no
10838 rm -f conftest.err conftest.
$ac_objext \
10839 conftest
$ac_exeext conftest.
$ac_ext
10842 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10843 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10844 echo "$as_me:$LINENO: result: 6 or newer" >&5
10845 echo "${ECHO_T}6 or newer" >&6
10847 cat >>confdefs.h
<<\_ACEOF
10848 #define HAVE_X11XTR6 1
10852 echo "$as_me:$LINENO: result: before 6" >&5
10853 echo "${ECHO_T}before 6" >&6
10857 if test x
$HAVE_X11XTR6 = xyes
; then
10858 LIBS
="-lXt -lSM -lICE $LIBS"
10863 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10864 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10865 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 ac_check_lib_save_LIBS
=$LIBS
10870 cat >conftest.
$ac_ext <<_ACEOF
10873 cat confdefs.h
>>conftest.
$ac_ext
10874 cat >>conftest.
$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10877 /* Override any gcc2 internal prototype to avoid an error. */
10881 /* We use char because int might match the return type of a gcc2
10882 builtin and then its argument prototype would still apply. */
10883 char XmuConvertStandardSelection ();
10887 XmuConvertStandardSelection ();
10892 rm -f conftest.
$ac_objext conftest
$ac_exeext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>conftest.er1
10896 grep -v '^ *+' conftest.er1
>conftest.err
10898 cat conftest.err
>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try
='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.
$ac_ext >&5
10918 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10920 rm -f conftest.err conftest.
$ac_objext \
10921 conftest
$ac_exeext conftest.
$ac_ext
10922 LIBS
=$ac_check_lib_save_LIBS
10924 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10925 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10926 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10927 cat >>confdefs.h
<<_ACEOF
10928 #define HAVE_LIBXMU 1
10935 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10938 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10939 if test "${HAVE_X11}" = "yes"; then
10940 if test "${USE_X_TOOLKIT}" != "none"; then
10942 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10943 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10944 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 ac_check_lib_save_LIBS
=$LIBS
10948 LIBS
="-lXext $LIBS"
10949 cat >conftest.
$ac_ext <<_ACEOF
10952 cat confdefs.h
>>conftest.
$ac_ext
10953 cat >>conftest.
$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10956 /* Override any gcc2 internal prototype to avoid an error. */
10960 /* We use char because int might match the return type of a gcc2
10961 builtin and then its argument prototype would still apply. */
10962 char XShapeQueryExtension ();
10966 XShapeQueryExtension ();
10971 rm -f conftest.
$ac_objext conftest
$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>conftest.er1
10975 grep -v '^ *+' conftest.er1
>conftest.err
10977 cat conftest.err
>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try
='test -s conftest$ac_exeext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.
$ac_ext >&5
10997 ac_cv_lib_Xext_XShapeQueryExtension
=no
10999 rm -f conftest.err conftest.
$ac_objext \
11000 conftest
$ac_exeext conftest.
$ac_ext
11001 LIBS
=$ac_check_lib_save_LIBS
11003 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11004 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11005 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11006 cat >>confdefs.h
<<_ACEOF
11007 #define HAVE_LIBXEXT 1
11010 LIBS
="-lXext $LIBS"
11017 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11018 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11019 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11020 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 cat >conftest.
$ac_ext <<_ACEOF
11026 cat confdefs.h
>>conftest.
$ac_ext
11027 cat >>conftest.
$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11033 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11036 Motif version prior to 2.1.
11042 rm -f conftest.
$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>conftest.er1
11046 grep -v '^ *+' conftest.er1
>conftest.err
11048 cat conftest.err
>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try
='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 emacs_cv_motif_version_2_1
=yes
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.
$ac_ext >&5
11068 emacs_cv_motif_version_2_1
=no
11070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11072 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11073 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11074 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11075 if test $emacs_cv_motif_version_2_1 = yes; then
11078 cat >>confdefs.h
<<\_ACEOF
11079 #define HAVE_MOTIF_2_1 1
11082 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11083 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11084 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 ac_check_lib_save_LIBS
=$LIBS
11089 cat >conftest.
$ac_ext <<_ACEOF
11092 cat confdefs.h
>>conftest.
$ac_ext
11093 cat >>conftest.
$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11096 /* Override any gcc2 internal prototype to avoid an error. */
11100 /* We use char because int might match the return type of a gcc2
11101 builtin and then its argument prototype would still apply. */
11102 char XpCreateContext ();
11106 XpCreateContext ();
11111 rm -f conftest.
$ac_objext conftest
$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113 (eval $ac_link) 2>conftest.er1
11115 grep -v '^ *+' conftest.er1
>conftest.err
11117 cat conftest.err
>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; } &&
11126 { ac_try
='test -s conftest$ac_exeext'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; }; then
11132 ac_cv_lib_Xp_XpCreateContext
=yes
11134 echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.
$ac_ext >&5
11137 ac_cv_lib_Xp_XpCreateContext
=no
11139 rm -f conftest.err conftest.
$ac_objext \
11140 conftest
$ac_exeext conftest.
$ac_ext
11141 LIBS
=$ac_check_lib_save_LIBS
11143 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11144 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11145 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11149 if test ${HAVE_LIBXP} = yes; then
11151 cat >>confdefs.h
<<\_ACEOF
11152 #define HAVE_LIBXP 1
11157 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11158 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11159 if test "${emacs_cv_lesstif+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 # We put this in CFLAGS temporarily to precede other -I options
11163 # that might be in CFLAGS temporarily.
11164 # We put this in CPPFLAGS where it precedes the other -I options.
11165 OLD_CPPFLAGS
=$CPPFLAGS
11167 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11168 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11169 cat >conftest.
$ac_ext <<_ACEOF
11172 cat confdefs.h
>>conftest.
$ac_ext
11173 cat >>conftest.
$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11184 rm -f conftest.
$ac_objext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11186 (eval $ac_compile) 2>conftest.er1
11188 grep -v '^ *+' conftest.er1
>conftest.err
11190 cat conftest.err
>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; } &&
11199 { ac_try
='test -s conftest.$ac_objext'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 emacs_cv_lesstif
=yes
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.
$ac_ext >&5
11210 emacs_cv_lesstif
=no
11212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11214 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11215 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11216 if test $emacs_cv_lesstif = yes; then
11217 # Make sure this -I option remains in CPPFLAGS after it is set
11218 # back to REAL_CPPFLAGS.
11219 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11220 # have those other -I options anyway. Ultimately, having this
11221 # directory ultimately in CPPFLAGS will be enough.
11222 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11223 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11226 CPPFLAGS
=$OLD_CPPFLAGS
11231 ### Is -lXaw3d available?
11233 if test "${HAVE_X11}" = "yes"; then
11234 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11235 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11236 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11237 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 cat >conftest.
$ac_ext <<_ACEOF
11243 cat confdefs.h
>>conftest.
$ac_ext
11244 cat >>conftest.
$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include <X11/Xaw3d/Scrollbar.h>
11248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11249 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11251 grep -v '^ *+' conftest.er1
>conftest.err
11253 cat conftest.err
>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } >/dev
/null
; then
11256 if test -s conftest.err
; then
11257 ac_cpp_err
=$ac_c_preproc_warn_flag
11258 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11265 if test -z "$ac_cpp_err"; then
11266 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.
$ac_ext >&5
11271 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11273 rm -f conftest.err conftest.
$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11276 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11277 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11278 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11279 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11280 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 ac_check_lib_save_LIBS
=$LIBS
11284 LIBS
="-lXaw3d $LIBS"
11285 cat >conftest.
$ac_ext <<_ACEOF
11288 cat confdefs.h
>>conftest.
$ac_ext
11289 cat >>conftest.
$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11292 /* Override any gcc2 internal prototype to avoid an error. */
11296 /* We use char because int might match the return type of a gcc2
11297 builtin and then its argument prototype would still apply. */
11298 char XawScrollbarSetThumb ();
11302 XawScrollbarSetThumb ();
11307 rm -f conftest.
$ac_objext conftest
$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>conftest.er1
11311 grep -v '^ *+' conftest.er1
>conftest.err
11313 cat conftest.err
>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try
='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.
$ac_ext >&5
11333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11335 rm -f conftest.err conftest.
$ac_objext \
11336 conftest
$ac_exeext conftest.
$ac_ext
11337 LIBS
=$ac_check_lib_save_LIBS
11339 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11340 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11341 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11348 if test "${HAVE_XAW3D}" = "yes"; then
11350 cat >>confdefs.h
<<\_ACEOF
11351 #define HAVE_XAW3D 1
11360 USE_TOOLKIT_SCROLL_BARS
=no
11361 if test "${with_toolkit_scroll_bars}" != "no"; then
11362 if test "${USE_X_TOOLKIT}" != "none"; then
11363 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11364 cat >>confdefs.h
<<\_ACEOF
11365 #define USE_TOOLKIT_SCROLL_BARS 1
11369 USE_TOOLKIT_SCROLL_BARS
=yes
11370 elif test "${HAVE_XAW3D}" = "yes"; then
11371 cat >>confdefs.h
<<\_ACEOF
11372 #define USE_TOOLKIT_SCROLL_BARS 1
11375 USE_TOOLKIT_SCROLL_BARS
=yes
11377 elif test "${HAVE_GTK}" = "yes"; then
11378 cat >>confdefs.h
<<\_ACEOF
11379 #define USE_TOOLKIT_SCROLL_BARS 1
11382 USE_TOOLKIT_SCROLL_BARS
=yes
11383 elif test "${HAVE_CARBON}" = "yes"; then
11384 cat >>confdefs.h
<<\_ACEOF
11385 #define USE_TOOLKIT_SCROLL_BARS 1
11388 USE_TOOLKIT_SCROLL_BARS
=yes
11392 cat >conftest.
$ac_ext <<_ACEOF
11395 cat confdefs.h
>>conftest.
$ac_ext
11396 cat >>conftest.
$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11399 #include <X11/Xlib.h>
11400 #include <X11/Xresource.h>
11409 rm -f conftest.
$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>conftest.er1
11413 grep -v '^ *+' conftest.er1
>conftest.err
11415 cat conftest.err
>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try
='test -s conftest.$ac_objext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11432 cat >>confdefs.h
<<\_ACEOF
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.
$ac_ext >&5
11442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11445 if test "${with_xim}" != "no"; then
11447 cat >>confdefs.h
<<\_ACEOF
11454 if test "${HAVE_XIM}" != "no"; then
11455 late_CFLAGS
=$CFLAGS
11456 if test "$GCC" = yes; then
11457 CFLAGS
="$CFLAGS --pedantic-errors"
11459 cat >conftest.
$ac_ext <<_ACEOF
11462 cat confdefs.h
>>conftest.
$ac_ext
11463 cat >>conftest.
$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11466 #include <X11/Xlib.h>
11467 #include <X11/Xresource.h>
11476 XPointer *client_data;
11478 /* If we're not using GCC, it's probably not XFree86, and this is
11479 probably right, but we can't use something like --pedantic-errors. */
11480 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11481 char*, XIMProc, XPointer*);
11483 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11489 rm -f conftest.
$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491 (eval $ac_compile) 2>conftest.er1
11493 grep -v '^ *+' conftest.er1
>conftest.err
11495 cat conftest.err
>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try
='test -z "$ac_c_werror_flag" || 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_objext'
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 emacs_cv_arg6_star
=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.
$ac_ext >&5
11516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11518 if test "$emacs_cv_arg6_star" = yes; then
11519 cat >>confdefs.h
<<\_ACEOF
11520 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11524 cat >>confdefs.h
<<\_ACEOF
11525 #define XRegisterIMInstantiateCallback_arg6 XPointer
11529 CFLAGS
=$late_CFLAGS
11532 ### Use -lXpm if available, unless `--with-xpm=no'.
11534 if test "${HAVE_X11}" = "yes"; then
11535 if test "${with_xpm}" != "no"; then
11536 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11537 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11538 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11539 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11543 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11545 # Is the header compilable?
11546 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11547 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11548 cat >conftest.
$ac_ext <<_ACEOF
11551 cat confdefs.h
>>conftest.
$ac_ext
11552 cat >>conftest.
$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 $ac_includes_default
11555 #include <X11/xpm.h>
11557 rm -f conftest.
$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>conftest.er1
11561 grep -v '^ *+' conftest.er1
>conftest.err
11563 cat conftest.err
>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try
='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 ac_header_compiler
=yes
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.
$ac_ext >&5
11583 ac_header_compiler
=no
11585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11587 echo "${ECHO_T}$ac_header_compiler" >&6
11589 # Is the header present?
11590 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11591 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11592 cat >conftest.
$ac_ext <<_ACEOF
11595 cat confdefs.h
>>conftest.
$ac_ext
11596 cat >>conftest.
$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 #include <X11/xpm.h>
11600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11601 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11603 grep -v '^ *+' conftest.er1
>conftest.err
11605 cat conftest.err
>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev
/null
; then
11608 if test -s conftest.err
; then
11609 ac_cpp_err
=$ac_c_preproc_warn_flag
11610 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11617 if test -z "$ac_cpp_err"; then
11618 ac_header_preproc
=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.
$ac_ext >&5
11623 ac_header_preproc
=no
11625 rm -f conftest.err conftest.
$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11627 echo "${ECHO_T}$ac_header_preproc" >&6
11629 # So? What about this header?
11630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11632 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11633 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11635 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11636 ac_header_preproc
=yes
11639 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11640 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11642 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11644 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11646 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11648 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11650 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11653 ## ------------------------------------------ ##
11654 ## Report this to the AC_PACKAGE_NAME lists. ##
11655 ## ------------------------------------------ ##
11658 sed "s/^/$as_me: WARNING: /" >&2
11661 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11662 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11663 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11668 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11669 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11672 if test $ac_cv_header_X11_xpm_h = yes; then
11673 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11674 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11675 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 ac_check_lib_save_LIBS
=$LIBS
11679 LIBS
="-lXpm -lX11 $LIBS"
11680 cat >conftest.
$ac_ext <<_ACEOF
11683 cat confdefs.h
>>conftest.
$ac_ext
11684 cat >>conftest.
$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11687 /* Override any gcc2 internal prototype to avoid an error. */
11691 /* We use char because int might match the return type of a gcc2
11692 builtin and then its argument prototype would still apply. */
11693 char XpmReadFileToPixmap ();
11697 XpmReadFileToPixmap ();
11702 rm -f conftest.
$ac_objext conftest
$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1
>conftest.err
11708 cat conftest.err
>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try
='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.
$ac_ext >&5
11728 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11730 rm -f conftest.err conftest.
$ac_objext \
11731 conftest
$ac_exeext conftest.
$ac_ext
11732 LIBS
=$ac_check_lib_save_LIBS
11734 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11735 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11736 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11743 if test "${HAVE_XPM}" = "yes"; then
11744 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11745 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11746 cat >conftest.
$ac_ext <<_ACEOF
11749 cat confdefs.h
>>conftest.
$ac_ext
11750 cat >>conftest.
$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 #include "X11/xpm.h"
11753 #ifndef XpmReturnAllocPixels
11754 no_return_alloc_pixels
11758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11767 if test "${HAVE_XPM}" = "yes"; then
11768 echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6
11771 echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6
11777 if test "${HAVE_XPM}" = "yes"; then
11779 cat >>confdefs.h
<<\_ACEOF
11786 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11788 if test "${HAVE_X11}" = "yes"; then
11789 if test "${with_jpeg}" != "no"; then
11790 if test "${ac_cv_header_jerror_h+set}" = set; then
11791 echo "$as_me:$LINENO: checking for jerror.h" >&5
11792 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11793 if test "${ac_cv_header_jerror_h+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11797 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11799 # Is the header compilable?
11800 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11801 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11802 cat >conftest.
$ac_ext <<_ACEOF
11805 cat confdefs.h
>>conftest.
$ac_ext
11806 cat >>conftest.
$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 #include <jerror.h>
11811 rm -f conftest.
$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11815 grep -v '^ *+' conftest.er1
>conftest.err
11817 cat conftest.err
>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try
='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_header_compiler
=yes
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.
$ac_ext >&5
11837 ac_header_compiler
=no
11839 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11841 echo "${ECHO_T}$ac_header_compiler" >&6
11843 # Is the header present?
11844 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11845 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11846 cat >conftest.
$ac_ext <<_ACEOF
11849 cat confdefs.h
>>conftest.
$ac_ext
11850 cat >>conftest.
$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 #include <jerror.h>
11854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11855 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11857 grep -v '^ *+' conftest.er1
>conftest.err
11859 cat conftest.err
>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } >/dev
/null
; then
11862 if test -s conftest.err
; then
11863 ac_cpp_err
=$ac_c_preproc_warn_flag
11864 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11871 if test -z "$ac_cpp_err"; then
11872 ac_header_preproc
=yes
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.
$ac_ext >&5
11877 ac_header_preproc
=no
11879 rm -f conftest.err conftest.
$ac_ext
11880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11881 echo "${ECHO_T}$ac_header_preproc" >&6
11883 # So? What about this header?
11884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11886 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11887 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11889 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11890 ac_header_preproc
=yes
11893 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11894 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11896 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11898 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11900 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11902 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11904 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11907 ## ------------------------------------------ ##
11908 ## Report this to the AC_PACKAGE_NAME lists. ##
11909 ## ------------------------------------------ ##
11912 sed "s/^/$as_me: WARNING: /" >&2
11915 echo "$as_me:$LINENO: checking for jerror.h" >&5
11916 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11917 if test "${ac_cv_header_jerror_h+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 ac_cv_header_jerror_h
=$ac_header_preproc
11922 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11923 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11926 if test $ac_cv_header_jerror_h = yes; then
11927 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11928 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11929 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 ac_check_lib_save_LIBS
=$LIBS
11933 LIBS
="-ljpeg $LIBS"
11934 cat >conftest.
$ac_ext <<_ACEOF
11937 cat confdefs.h
>>conftest.
$ac_ext
11938 cat >>conftest.
$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 /* Override any gcc2 internal prototype to avoid an error. */
11945 /* We use char because int might match the return type of a gcc2
11946 builtin and then its argument prototype would still apply. */
11947 char jpeg_destroy_compress ();
11951 jpeg_destroy_compress ();
11956 rm -f conftest.
$ac_objext conftest
$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>conftest.er1
11960 grep -v '^ *+' conftest.er1
>conftest.err
11962 cat conftest.err
>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try
='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.
$ac_ext >&5
11982 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11984 rm -f conftest.err conftest.
$ac_objext \
11985 conftest
$ac_exeext conftest.
$ac_ext
11986 LIBS
=$ac_check_lib_save_LIBS
11988 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11989 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11990 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12000 if test "${HAVE_JPEG}" = "yes"; then
12001 cat >>confdefs.h
<<\_ACEOF
12002 #define HAVE_JPEG 1
12005 cat >conftest.
$ac_ext <<_ACEOF
12008 cat confdefs.h
>>conftest.
$ac_ext
12009 cat >>conftest.
$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 #include <jpeglib.h>
12012 version=JPEG_LIB_VERSION
12015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12016 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12017 cat >>confdefs.h
<<\_ACEOF
12018 #define HAVE_JPEG 1
12022 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12023 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12031 ### Use -lpng if available, unless `--with-png=no'.
12033 if test "${HAVE_X11}" = "yes"; then
12034 if test "${with_png}" != "no"; then
12035 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12036 # in /usr/include/libpng.
12039 for ac_header
in png.h libpng
/png.h
12041 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12043 echo "$as_me:$LINENO: checking for $ac_header" >&5
12044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12051 # Is the header compilable?
12052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12054 cat >conftest.
$ac_ext <<_ACEOF
12057 cat confdefs.h
>>conftest.
$ac_ext
12058 cat >>conftest.
$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 $ac_includes_default
12061 #include <$ac_header>
12063 rm -f conftest.
$ac_objext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12065 (eval $ac_compile) 2>conftest.er1
12067 grep -v '^ *+' conftest.er1
>conftest.err
12069 cat conftest.err
>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; } &&
12078 { ac_try
='test -s conftest.$ac_objext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_header_compiler
=yes
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.
$ac_ext >&5
12089 ac_header_compiler
=no
12091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12093 echo "${ECHO_T}$ac_header_compiler" >&6
12095 # Is the header present?
12096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12098 cat >conftest.
$ac_ext <<_ACEOF
12101 cat confdefs.h
>>conftest.
$ac_ext
12102 cat >>conftest.
$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 #include <$ac_header>
12106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12107 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12109 grep -v '^ *+' conftest.er1
>conftest.err
12111 cat conftest.err
>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } >/dev
/null
; then
12114 if test -s conftest.err
; then
12115 ac_cpp_err
=$ac_c_preproc_warn_flag
12116 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12123 if test -z "$ac_cpp_err"; then
12124 ac_header_preproc
=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.
$ac_ext >&5
12129 ac_header_preproc
=no
12131 rm -f conftest.err conftest.
$ac_ext
12132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12133 echo "${ECHO_T}$ac_header_preproc" >&6
12135 # So? What about this header?
12136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12142 ac_header_preproc
=yes
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12159 ## ------------------------------------------ ##
12160 ## Report this to the AC_PACKAGE_NAME lists. ##
12161 ## ------------------------------------------ ##
12164 sed "s/^/$as_me: WARNING: /" >&2
12167 echo "$as_me:$LINENO: checking for $ac_header" >&5
12168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 eval "$as_ac_Header=\$ac_header_preproc"
12174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12179 cat >>confdefs.h
<<_ACEOF
12180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12187 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12188 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12189 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12190 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 ac_check_lib_save_LIBS
=$LIBS
12194 LIBS
="-lpng -lz -lm $LIBS"
12195 cat >conftest.
$ac_ext <<_ACEOF
12198 cat confdefs.h
>>conftest.
$ac_ext
12199 cat >>conftest.
$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 /* Override any gcc2 internal prototype to avoid an error. */
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208 char png_get_channels ();
12212 png_get_channels ();
12217 rm -f conftest.
$ac_objext conftest
$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>conftest.er1
12221 grep -v '^ *+' conftest.er1
>conftest.err
12223 cat conftest.err
>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try
='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_png_png_get_channels
=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.
$ac_ext >&5
12243 ac_cv_lib_png_png_get_channels
=no
12245 rm -f conftest.err conftest.
$ac_objext \
12246 conftest
$ac_exeext conftest.
$ac_ext
12247 LIBS
=$ac_check_lib_save_LIBS
12249 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12250 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12251 if test $ac_cv_lib_png_png_get_channels = yes; then
12258 if test "${HAVE_PNG}" = "yes"; then
12260 cat >>confdefs.h
<<\_ACEOF
12267 ### Use -ltiff if available, unless `--with-tiff=no'.
12269 if test "${HAVE_X11}" = "yes"; then
12270 if test "${with_tiff}" != "no"; then
12271 if test "${ac_cv_header_tiffio_h+set}" = set; then
12272 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12273 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12274 if test "${ac_cv_header_tiffio_h+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12278 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12280 # Is the header compilable?
12281 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12282 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12283 cat >conftest.
$ac_ext <<_ACEOF
12286 cat confdefs.h
>>conftest.
$ac_ext
12287 cat >>conftest.
$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 $ac_includes_default
12290 #include <tiffio.h>
12292 rm -f conftest.
$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>conftest.er1
12296 grep -v '^ *+' conftest.er1
>conftest.err
12298 cat conftest.err
>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try
='test -s conftest.$ac_objext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_header_compiler
=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.
$ac_ext >&5
12318 ac_header_compiler
=no
12320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12322 echo "${ECHO_T}$ac_header_compiler" >&6
12324 # Is the header present?
12325 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12326 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12327 cat >conftest.
$ac_ext <<_ACEOF
12330 cat confdefs.h
>>conftest.
$ac_ext
12331 cat >>conftest.
$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <tiffio.h>
12335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12336 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12338 grep -v '^ *+' conftest.er1
>conftest.err
12340 cat conftest.err
>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } >/dev
/null
; then
12343 if test -s conftest.err
; then
12344 ac_cpp_err
=$ac_c_preproc_warn_flag
12345 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12352 if test -z "$ac_cpp_err"; then
12353 ac_header_preproc
=yes
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.
$ac_ext >&5
12358 ac_header_preproc
=no
12360 rm -f conftest.err conftest.
$ac_ext
12361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12362 echo "${ECHO_T}$ac_header_preproc" >&6
12364 # So? What about this header?
12365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12367 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12368 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12370 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12371 ac_header_preproc
=yes
12374 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12375 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12377 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12379 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12381 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12383 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12385 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12388 ## ------------------------------------------ ##
12389 ## Report this to the AC_PACKAGE_NAME lists. ##
12390 ## ------------------------------------------ ##
12393 sed "s/^/$as_me: WARNING: /" >&2
12396 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12397 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12398 if test "${ac_cv_header_tiffio_h+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 ac_cv_header_tiffio_h
=$ac_header_preproc
12403 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12404 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12407 if test $ac_cv_header_tiffio_h = yes; then
12409 # At least one tiff package requires the jpeg library.
12410 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12411 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12412 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12413 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 ac_check_lib_save_LIBS
=$LIBS
12417 LIBS
="-ltiff $tifflibs $LIBS"
12418 cat >conftest.
$ac_ext <<_ACEOF
12421 cat confdefs.h
>>conftest.
$ac_ext
12422 cat >>conftest.
$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12425 /* Override any gcc2 internal prototype to avoid an error. */
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12431 char TIFFGetVersion ();
12440 rm -f conftest.
$ac_objext conftest
$ac_exeext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442 (eval $ac_link) 2>conftest.er1
12444 grep -v '^ *+' conftest.er1
>conftest.err
12446 cat conftest.err
>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try
='test -s conftest$ac_exeext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_lib_tiff_TIFFGetVersion
=yes
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.
$ac_ext >&5
12466 ac_cv_lib_tiff_TIFFGetVersion
=no
12468 rm -f conftest.err conftest.
$ac_objext \
12469 conftest
$ac_exeext conftest.
$ac_ext
12470 LIBS
=$ac_check_lib_save_LIBS
12472 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12473 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12474 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12483 if test "${HAVE_TIFF}" = "yes"; then
12485 cat >>confdefs.h
<<\_ACEOF
12486 #define HAVE_TIFF 1
12492 ### Use -lgif if available, unless `--with-gif=no'.
12494 if test "${HAVE_X11}" = "yes"; then
12495 if test "${with_gif}" != "no"; then
12496 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12497 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12498 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12499 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12503 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12505 # Is the header compilable?
12506 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12507 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12508 cat >conftest.
$ac_ext <<_ACEOF
12511 cat confdefs.h
>>conftest.
$ac_ext
12512 cat >>conftest.
$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 $ac_includes_default
12515 #include <gif_lib.h>
12517 rm -f conftest.
$ac_objext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12519 (eval $ac_compile) 2>conftest.er1
12521 grep -v '^ *+' conftest.er1
>conftest.err
12523 cat conftest.err
>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try
='test -s conftest.$ac_objext'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; }; then
12538 ac_header_compiler
=yes
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.
$ac_ext >&5
12543 ac_header_compiler
=no
12545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 echo "${ECHO_T}$ac_header_compiler" >&6
12549 # Is the header present?
12550 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12551 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12552 cat >conftest.
$ac_ext <<_ACEOF
12555 cat confdefs.h
>>conftest.
$ac_ext
12556 cat >>conftest.
$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 #include <gif_lib.h>
12560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12563 grep -v '^ *+' conftest.er1
>conftest.err
12565 cat conftest.err
>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } >/dev
/null
; then
12568 if test -s conftest.err
; then
12569 ac_cpp_err
=$ac_c_preproc_warn_flag
12570 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12577 if test -z "$ac_cpp_err"; then
12578 ac_header_preproc
=yes
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12583 ac_header_preproc
=no
12585 rm -f conftest.err conftest.
$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 echo "${ECHO_T}$ac_header_preproc" >&6
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12592 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12593 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12595 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc
=yes
12599 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12600 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12602 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12604 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12606 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12608 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12610 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12613 ## ------------------------------------------ ##
12614 ## Report this to the AC_PACKAGE_NAME lists. ##
12615 ## ------------------------------------------ ##
12618 sed "s/^/$as_me: WARNING: /" >&2
12621 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12622 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12623 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 ac_cv_header_gif_lib_h
=$ac_header_preproc
12628 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12629 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12632 if test $ac_cv_header_gif_lib_h = yes; then
12633 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12634 # Earlier versions can crash Emacs.
12635 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12636 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12637 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 ac_check_lib_save_LIBS
=$LIBS
12641 LIBS
="-lungif $LIBS"
12642 cat >conftest.
$ac_ext <<_ACEOF
12645 cat confdefs.h
>>conftest.
$ac_ext
12646 cat >>conftest.
$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12649 /* Override any gcc2 internal prototype to avoid an error. */
12653 /* We use char because int might match the return type of a gcc2
12654 builtin and then its argument prototype would still apply. */
12655 char EGifPutExtensionLast ();
12659 EGifPutExtensionLast ();
12664 rm -f conftest.
$ac_objext conftest
$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>conftest.er1
12668 grep -v '^ *+' conftest.er1
>conftest.err
12670 cat conftest.err
>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try
='test -s conftest$ac_exeext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.
$ac_ext >&5
12690 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12692 rm -f conftest.err conftest.
$ac_objext \
12693 conftest
$ac_exeext conftest.
$ac_ext
12694 LIBS
=$ac_check_lib_save_LIBS
12696 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12697 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12698 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12707 if test "${HAVE_GIF}" = "yes"; then
12709 cat >>confdefs.h
<<\_ACEOF
12716 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12717 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12718 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12719 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12723 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12725 # Is the header compilable?
12726 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12727 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12728 cat >conftest.
$ac_ext <<_ACEOF
12731 cat confdefs.h
>>conftest.
$ac_ext
12732 cat >>conftest.
$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12734 $ac_includes_default
12735 #include <malloc/malloc.h>
12737 rm -f conftest.
$ac_objext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739 (eval $ac_compile) 2>conftest.er1
12741 grep -v '^ *+' conftest.er1
>conftest.err
12743 cat conftest.err
>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try
='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_header_compiler
=yes
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.
$ac_ext >&5
12763 ac_header_compiler
=no
12765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12767 echo "${ECHO_T}$ac_header_compiler" >&6
12769 # Is the header present?
12770 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12771 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12772 cat >conftest.
$ac_ext <<_ACEOF
12775 cat confdefs.h
>>conftest.
$ac_ext
12776 cat >>conftest.
$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 #include <malloc/malloc.h>
12780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12781 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12783 grep -v '^ *+' conftest.er1
>conftest.err
12785 cat conftest.err
>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } >/dev
/null
; then
12788 if test -s conftest.err
; then
12789 ac_cpp_err
=$ac_c_preproc_warn_flag
12790 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12797 if test -z "$ac_cpp_err"; then
12798 ac_header_preproc
=yes
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.
$ac_ext >&5
12803 ac_header_preproc
=no
12805 rm -f conftest.err conftest.
$ac_ext
12806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12807 echo "${ECHO_T}$ac_header_preproc" >&6
12809 # So? What about this header?
12810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12812 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12813 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12815 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12816 ac_header_preproc
=yes
12819 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12820 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12822 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12824 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12826 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12827 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12828 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12829 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12830 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12833 ## ------------------------------------------ ##
12834 ## Report this to the AC_PACKAGE_NAME lists. ##
12835 ## ------------------------------------------ ##
12838 sed "s/^/$as_me: WARNING: /" >&2
12841 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12842 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12843 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12848 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12849 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12852 if test $ac_cv_header_malloc_malloc_h = yes; then
12854 cat >>confdefs.h
<<\_ACEOF
12855 #define HAVE_MALLOC_MALLOC_H 1
12862 ### Use Mac OS X Carbon API to implement GUI.
12863 if test "${HAVE_CARBON}" = "yes"; then
12865 cat >>confdefs.h
<<\_ACEOF
12866 #define HAVE_CARBON 1
12869 ## Specify the install directory
12871 if test "${carbon_appdir_x}" != ""; then
12872 case ${carbon_appdir_x} in
12873 y | ye |
yes) carbon_appdir
=/Applications
;;
12874 * ) carbon_appdir
=${carbon_appdir_x} ;;
12877 # We also have mouse menus.
12880 tmp_CFLAGS
="$CFLAGS"
12881 CFLAGS
="$CFLAGS -framework Carbon"
12882 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12883 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12884 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 cat >conftest.
$ac_ext <<_ACEOF
12890 cat confdefs.h
>>conftest.
$ac_ext
12891 cat >>conftest.
$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12895 #define CancelMenuTracking innocuous_CancelMenuTracking
12897 /* System header to define __stub macros and hopefully few prototypes,
12898 which can conflict with char CancelMenuTracking (); below.
12899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12900 <limits.h> exists even on freestanding compilers. */
12903 # include <limits.h>
12905 # include <assert.h>
12908 #undef CancelMenuTracking
12910 /* Override any gcc2 internal prototype to avoid an error. */
12915 /* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917 char CancelMenuTracking ();
12918 /* The GNU C library defines this for functions which it implements
12919 to always fail with ENOSYS. Some functions are actually named
12920 something starting with __ and the normal name is an alias. */
12921 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12924 char (*f) () = CancelMenuTracking;
12933 return f != CancelMenuTracking;
12938 rm -f conftest.
$ac_objext conftest
$ac_exeext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12940 (eval $ac_link) 2>conftest.er1
12942 grep -v '^ *+' conftest.er1
>conftest.err
12944 cat conftest.err
>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12953 { ac_try
='test -s conftest$ac_exeext'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_func_CancelMenuTracking
=yes
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.
$ac_ext >&5
12964 ac_cv_func_CancelMenuTracking
=no
12966 rm -f conftest.err conftest.
$ac_objext \
12967 conftest
$ac_exeext conftest.
$ac_ext
12969 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12970 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12971 if test $ac_cv_func_CancelMenuTracking = yes; then
12977 if test "$have_cmt" = yes; then
12979 cat >>confdefs.h
<<\_ACEOF
12980 #define HAVE_CANCELMENUTRACKING 1
12984 CFLAGS
="$tmp_CFLAGS"
12987 ### Use session management (-lSM -lICE) if available
12989 if test "${HAVE_X11}" = "yes"; then
12990 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12991 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12992 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12993 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12997 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12999 # Is the header compilable?
13000 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13001 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13002 cat >conftest.
$ac_ext <<_ACEOF
13005 cat confdefs.h
>>conftest.
$ac_ext
13006 cat >>conftest.
$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 $ac_includes_default
13009 #include <X11/SM/SMlib.h>
13011 rm -f conftest.
$ac_objext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>conftest.er1
13015 grep -v '^ *+' conftest.er1
>conftest.err
13017 cat conftest.err
>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try
='test -s conftest.$ac_objext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_header_compiler
=yes
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.
$ac_ext >&5
13037 ac_header_compiler
=no
13039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13041 echo "${ECHO_T}$ac_header_compiler" >&6
13043 # Is the header present?
13044 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13045 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13046 cat >conftest.
$ac_ext <<_ACEOF
13049 cat confdefs.h
>>conftest.
$ac_ext
13050 cat >>conftest.
$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 #include <X11/SM/SMlib.h>
13054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13055 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13057 grep -v '^ *+' conftest.er1
>conftest.err
13059 cat conftest.err
>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } >/dev
/null
; then
13062 if test -s conftest.err
; then
13063 ac_cpp_err
=$ac_c_preproc_warn_flag
13064 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13071 if test -z "$ac_cpp_err"; then
13072 ac_header_preproc
=yes
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.
$ac_ext >&5
13077 ac_header_preproc
=no
13079 rm -f conftest.err conftest.
$ac_ext
13080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13081 echo "${ECHO_T}$ac_header_preproc" >&6
13083 # So? What about this header?
13084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13086 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13087 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13089 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13090 ac_header_preproc
=yes
13093 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13094 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13096 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13098 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13100 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13102 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13104 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13107 ## ------------------------------------------ ##
13108 ## Report this to the AC_PACKAGE_NAME lists. ##
13109 ## ------------------------------------------ ##
13112 sed "s/^/$as_me: WARNING: /" >&2
13115 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13116 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13117 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13122 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13123 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13126 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13127 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13128 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13129 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_check_lib_save_LIBS
=$LIBS
13133 LIBS
="-lSM -lICE $LIBS"
13134 cat >conftest.
$ac_ext <<_ACEOF
13137 cat confdefs.h
>>conftest.
$ac_ext
13138 cat >>conftest.
$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 /* Override any gcc2 internal prototype to avoid an error. */
13145 /* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147 char SmcOpenConnection ();
13151 SmcOpenConnection ();
13156 rm -f conftest.
$ac_objext conftest
$ac_exeext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13158 (eval $ac_link) 2>conftest.er1
13160 grep -v '^ *+' conftest.er1
>conftest.err
13162 cat conftest.err
>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try
='test -s conftest$ac_exeext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_lib_SM_SmcOpenConnection
=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.
$ac_ext >&5
13182 ac_cv_lib_SM_SmcOpenConnection
=no
13184 rm -f conftest.err conftest.
$ac_objext \
13185 conftest
$ac_exeext conftest.
$ac_ext
13186 LIBS
=$ac_check_lib_save_LIBS
13188 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13189 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13190 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13198 if test "${HAVE_X_SM}" = "yes"; then
13200 cat >>confdefs.h
<<\_ACEOF
13201 #define HAVE_X_SM 1
13206 *) LIBS
="-lSM -lICE $LIBS" ;;
13211 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13212 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13213 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13214 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 cat >conftest.
$ac_ext <<_ACEOF
13220 cat confdefs.h
>>conftest.
$ac_ext
13221 cat >>conftest.
$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13232 rm -f conftest.
$ac_objext conftest
$ac_exeext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13234 (eval $ac_link) 2>conftest.er1
13236 grep -v '^ *+' conftest.er1
>conftest.err
13238 cat conftest.err
>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try
='test -s conftest$ac_exeext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 emacs_cv_netdb_declares_h_errno
=yes
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.
$ac_ext >&5
13258 emacs_cv_netdb_declares_h_errno
=no
13260 rm -f conftest.err conftest.
$ac_objext \
13261 conftest
$ac_exeext conftest.
$ac_ext
13263 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13264 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13265 if test $emacs_cv_netdb_declares_h_errno = yes; then
13267 cat >>confdefs.h
<<\_ACEOF
13268 #define HAVE_H_ERRNO 1
13273 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13274 # for constant arguments. Useless!
13275 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13276 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13277 if test "${ac_cv_working_alloca_h+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 cat >conftest.
$ac_ext <<_ACEOF
13283 cat confdefs.h
>>conftest.
$ac_ext
13284 cat >>conftest.
$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <alloca.h>
13290 char *p = (char *) alloca (2 * sizeof (int));
13295 rm -f conftest.
$ac_objext conftest
$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>conftest.er1
13299 grep -v '^ *+' conftest.er1
>conftest.err
13301 cat conftest.err
>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try
='test -s conftest$ac_exeext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_working_alloca_h
=yes
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.
$ac_ext >&5
13321 ac_cv_working_alloca_h
=no
13323 rm -f conftest.err conftest.
$ac_objext \
13324 conftest
$ac_exeext conftest.
$ac_ext
13326 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13327 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13328 if test $ac_cv_working_alloca_h = yes; then
13330 cat >>confdefs.h
<<\_ACEOF
13331 #define HAVE_ALLOCA_H 1
13336 echo "$as_me:$LINENO: checking for alloca" >&5
13337 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13338 if test "${ac_cv_func_alloca_works+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 cat >conftest.
$ac_ext <<_ACEOF
13344 cat confdefs.h
>>conftest.
$ac_ext
13345 cat >>conftest.
$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 # define alloca __builtin_alloca
13351 # include <malloc.h>
13352 # define alloca _alloca
13355 # include <alloca.h>
13360 # ifndef alloca /* predefined by HP cc +Olibcalls */
13371 char *p = (char *) alloca (1);
13376 rm -f conftest.
$ac_objext conftest
$ac_exeext
13377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13378 (eval $ac_link) 2>conftest.er1
13380 grep -v '^ *+' conftest.er1
>conftest.err
13382 cat conftest.err
>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try
='test -s conftest$ac_exeext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_func_alloca_works
=yes
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.
$ac_ext >&5
13402 ac_cv_func_alloca_works
=no
13404 rm -f conftest.err conftest.
$ac_objext \
13405 conftest
$ac_exeext conftest.
$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13410 if test $ac_cv_func_alloca_works = yes; then
13412 cat >>confdefs.h
<<\_ACEOF
13413 #define HAVE_ALLOCA 1
13417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13418 # that cause trouble. Some versions do not even contain alloca or
13419 # contain a buggy version. If you still want to use their alloca,
13420 # use ar to extract alloca.o from them instead of compiling alloca.c.
13422 ALLOCA
=alloca.
$ac_objext
13424 cat >>confdefs.h
<<\_ACEOF
13429 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13431 if test "${ac_cv_os_cray+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 cat >conftest.
$ac_ext <<_ACEOF
13437 cat confdefs.h
>>conftest.
$ac_ext
13438 cat >>conftest.
$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 #if defined(CRAY) && ! defined(CRAY2)
13447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13448 $EGREP "webecray" >/dev
/null
2>&1; then
13456 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13457 echo "${ECHO_T}$ac_cv_os_cray" >&6
13458 if test $ac_cv_os_cray = yes; then
13459 for ac_func
in _getb67 GETB67 getb67
; do
13460 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13461 echo "$as_me:$LINENO: checking for $ac_func" >&5
13462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13463 if eval "test \"\${$as_ac_var+set}\" = set"; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 cat >conftest.
$ac_ext <<_ACEOF
13469 cat confdefs.h
>>conftest.
$ac_ext
13470 cat >>conftest.
$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13474 #define $ac_func innocuous_$ac_func
13476 /* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char $ac_func (); below.
13478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13479 <limits.h> exists even on freestanding compilers. */
13482 # include <limits.h>
13484 # include <assert.h>
13489 /* Override any gcc2 internal prototype to avoid an error. */
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13497 /* The GNU C library defines this for functions which it implements
13498 to always fail with ENOSYS. Some functions are actually named
13499 something starting with __ and the normal name is an alias. */
13500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13503 char (*f) () = $ac_func;
13512 return f != $ac_func;
13517 rm -f conftest.
$ac_objext conftest
$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>conftest.er1
13521 grep -v '^ *+' conftest.er1
>conftest.err
13523 cat conftest.err
>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; } &&
13532 { ac_try
='test -s conftest$ac_exeext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 eval "$as_ac_var=yes"
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.
$ac_ext >&5
13543 eval "$as_ac_var=no"
13545 rm -f conftest.err conftest.
$ac_objext \
13546 conftest
$ac_exeext conftest.
$ac_ext
13548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13550 if test `eval echo '${'$as_ac_var'}'` = yes; then
13552 cat >>confdefs.h
<<_ACEOF
13553 #define CRAY_STACKSEG_END $ac_func
13562 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13563 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13564 if test "${ac_cv_c_stack_direction+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 if test "$cross_compiling" = yes; then
13568 ac_cv_c_stack_direction
=0
13570 cat >conftest.
$ac_ext <<_ACEOF
13573 cat confdefs.h
>>conftest.
$ac_ext
13574 cat >>conftest.
$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13577 find_stack_direction ()
13579 static char *addr = 0;
13584 return find_stack_direction ();
13587 return (&dummy > addr) ? 1 : -1;
13593 exit (find_stack_direction () < 0);
13596 rm -f conftest
$ac_exeext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598 (eval $ac_link) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_c_stack_direction
=1
13609 echo "$as_me: program exited with status $ac_status" >&5
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.
$ac_ext >&5
13613 ( exit $ac_status )
13614 ac_cv_c_stack_direction
=-1
13616 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13619 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13620 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13622 cat >>confdefs.h
<<_ACEOF
13623 #define STACK_DIRECTION $ac_cv_c_stack_direction
13630 # fmod, logb, and frexp are found in -lm on most systems.
13631 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13633 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13634 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13635 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 ac_check_lib_save_LIBS
=$LIBS
13640 cat >conftest.
$ac_ext <<_ACEOF
13643 cat confdefs.h
>>conftest.
$ac_ext
13644 cat >>conftest.
$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13647 /* Override any gcc2 internal prototype to avoid an error. */
13651 /* We use char because int might match the return type of a gcc2
13652 builtin and then its argument prototype would still apply. */
13662 rm -f conftest.
$ac_objext conftest
$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664 (eval $ac_link) 2>conftest.er1
13666 grep -v '^ *+' conftest.er1
>conftest.err
13668 cat conftest.err
>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try
='test -s conftest$ac_exeext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_lib_m_sqrt
=yes
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.
$ac_ext >&5
13688 ac_cv_lib_m_sqrt
=no
13690 rm -f conftest.err conftest.
$ac_objext \
13691 conftest
$ac_exeext conftest.
$ac_ext
13692 LIBS
=$ac_check_lib_save_LIBS
13694 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13695 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13696 if test $ac_cv_lib_m_sqrt = yes; then
13697 cat >>confdefs.h
<<_ACEOF
13698 #define HAVE_LIBM 1
13706 # Check for mail-locking functions in a "mail" library. Probably this should
13707 # have the same check as for liblockfile below.
13709 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13710 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13711 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 ac_check_lib_save_LIBS
=$LIBS
13715 LIBS
="-lmail $LIBS"
13716 cat >conftest.
$ac_ext <<_ACEOF
13719 cat confdefs.h
>>conftest.
$ac_ext
13720 cat >>conftest.
$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13723 /* Override any gcc2 internal prototype to avoid an error. */
13727 /* We use char because int might match the return type of a gcc2
13728 builtin and then its argument prototype would still apply. */
13738 rm -f conftest.
$ac_objext conftest
$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>conftest.er1
13742 grep -v '^ *+' conftest.er1
>conftest.err
13744 cat conftest.err
>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try
='test -s conftest$ac_exeext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_lib_mail_maillock
=yes
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.
$ac_ext >&5
13764 ac_cv_lib_mail_maillock
=no
13766 rm -f conftest.err conftest.
$ac_objext \
13767 conftest
$ac_exeext conftest.
$ac_ext
13768 LIBS
=$ac_check_lib_save_LIBS
13770 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13771 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13772 if test $ac_cv_lib_mail_maillock = yes; then
13773 cat >>confdefs.h
<<_ACEOF
13774 #define HAVE_LIBMAIL 1
13777 LIBS
="-lmail $LIBS"
13782 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13783 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13784 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 ac_check_lib_save_LIBS
=$LIBS
13788 LIBS
="-llockfile $LIBS"
13789 cat >conftest.
$ac_ext <<_ACEOF
13792 cat confdefs.h
>>conftest.
$ac_ext
13793 cat >>conftest.
$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13796 /* Override any gcc2 internal prototype to avoid an error. */
13800 /* We use char because int might match the return type of a gcc2
13801 builtin and then its argument prototype would still apply. */
13811 rm -f conftest.
$ac_objext conftest
$ac_exeext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13813 (eval $ac_link) 2>conftest.er1
13815 grep -v '^ *+' conftest.er1
>conftest.err
13817 cat conftest.err
>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try
='test -s conftest$ac_exeext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 ac_cv_lib_lockfile_maillock
=yes
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.
$ac_ext >&5
13837 ac_cv_lib_lockfile_maillock
=no
13839 rm -f conftest.err conftest.
$ac_objext \
13840 conftest
$ac_exeext conftest.
$ac_ext
13841 LIBS
=$ac_check_lib_save_LIBS
13843 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13844 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13845 if test $ac_cv_lib_lockfile_maillock = yes; then
13846 cat >>confdefs.h
<<_ACEOF
13847 #define HAVE_LIBLOCKFILE 1
13850 LIBS
="-llockfile $LIBS"
13854 # If we have the shared liblockfile, assume we must use it for mail
13855 # locking (e.g. Debian). If we couldn't link against liblockfile
13856 # (no liblockfile.a installed), ensure that we don't need to.
13857 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13858 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13859 set dummy liblockfile.so
; ac_word
=$2
13860 echo "$as_me:$LINENO: checking for $ac_word" >&5
13861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13862 if test "${ac_cv_prog_liblockfile+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 if test -n "$liblockfile"; then
13866 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13869 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13870 for as_dir
in $as_dummy
13873 test -z "$as_dir" && as_dir
=.
13874 for ac_exec_ext
in '' $ac_executable_extensions; do
13875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13876 ac_cv_prog_liblockfile
="yes"
13877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13883 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13886 liblockfile
=$ac_cv_prog_liblockfile
13887 if test -n "$liblockfile"; then
13888 echo "$as_me:$LINENO: result: $liblockfile" >&5
13889 echo "${ECHO_T}$liblockfile" >&6
13891 echo "$as_me:$LINENO: result: no" >&5
13892 echo "${ECHO_T}no" >&6
13895 if test $ac_cv_prog_liblockfile = yes; then
13896 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13897 This probably means that movemail could lose mail.
13898 There may be a \`development' package to install containing liblockfile." >&5
13899 echo "$as_me: error: Shared liblockfile found but can't link against it.
13900 This probably means that movemail could lose mail.
13901 There may be a \`development' package to install containing liblockfile." >&2;}
13902 { (exit 1); exit 1; }; }
13907 for ac_func
in touchlock
13909 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13910 echo "$as_me:$LINENO: checking for $ac_func" >&5
13911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13912 if eval "test \"\${$as_ac_var+set}\" = set"; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 cat >conftest.
$ac_ext <<_ACEOF
13918 cat confdefs.h
>>conftest.
$ac_ext
13919 cat >>conftest.
$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13923 #define $ac_func innocuous_$ac_func
13925 /* System header to define __stub macros and hopefully few prototypes,
13926 which can conflict with char $ac_func (); below.
13927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13928 <limits.h> exists even on freestanding compilers. */
13931 # include <limits.h>
13933 # include <assert.h>
13938 /* Override any gcc2 internal prototype to avoid an error. */
13943 /* We use char because int might match the return type of a gcc2
13944 builtin and then its argument prototype would still apply. */
13946 /* The GNU C library defines this for functions which it implements
13947 to always fail with ENOSYS. Some functions are actually named
13948 something starting with __ and the normal name is an alias. */
13949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13952 char (*f) () = $ac_func;
13961 return f != $ac_func;
13966 rm -f conftest.
$ac_objext conftest
$ac_exeext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13968 (eval $ac_link) 2>conftest.er1
13970 grep -v '^ *+' conftest.er1
>conftest.err
13972 cat conftest.err
>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; } &&
13981 { ac_try
='test -s conftest$ac_exeext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 eval "$as_ac_var=yes"
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.
$ac_ext >&5
13992 eval "$as_ac_var=no"
13994 rm -f conftest.err conftest.
$ac_objext \
13995 conftest
$ac_exeext conftest.
$ac_ext
13997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13999 if test `eval echo '${'$as_ac_var'}'` = yes; then
14000 cat >>confdefs.h
<<_ACEOF
14001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14008 for ac_header
in maillock.h
14010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14012 echo "$as_me:$LINENO: checking for $ac_header" >&5
14013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14020 # Is the header compilable?
14021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14023 cat >conftest.
$ac_ext <<_ACEOF
14026 cat confdefs.h
>>conftest.
$ac_ext
14027 cat >>conftest.
$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 $ac_includes_default
14030 #include <$ac_header>
14032 rm -f conftest.
$ac_objext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034 (eval $ac_compile) 2>conftest.er1
14036 grep -v '^ *+' conftest.er1
>conftest.err
14038 cat conftest.err
>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try
='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_header_compiler
=yes
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.
$ac_ext >&5
14058 ac_header_compiler
=no
14060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062 echo "${ECHO_T}$ac_header_compiler" >&6
14064 # Is the header present?
14065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14067 cat >conftest.
$ac_ext <<_ACEOF
14070 cat confdefs.h
>>conftest.
$ac_ext
14071 cat >>conftest.
$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #include <$ac_header>
14075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14078 grep -v '^ *+' conftest.er1
>conftest.err
14080 cat conftest.err
>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } >/dev
/null
; then
14083 if test -s conftest.err
; then
14084 ac_cpp_err
=$ac_c_preproc_warn_flag
14085 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14092 if test -z "$ac_cpp_err"; then
14093 ac_header_preproc
=yes
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.
$ac_ext >&5
14098 ac_header_preproc
=no
14100 rm -f conftest.err conftest.
$ac_ext
14101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14102 echo "${ECHO_T}$ac_header_preproc" >&6
14104 # So? What about this header?
14105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14111 ac_header_preproc
=yes
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14128 ## ------------------------------------------ ##
14129 ## Report this to the AC_PACKAGE_NAME lists. ##
14130 ## ------------------------------------------ ##
14133 sed "s/^/$as_me: WARNING: /" >&2
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 eval "$as_ac_Header=\$ac_header_preproc"
14143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14148 cat >>confdefs.h
<<_ACEOF
14149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14225 for ac_func
in gethostname getdomainname dup2 \
14226 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14227 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14228 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14229 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14230 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14231 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14232 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14233 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14236 echo "$as_me:$LINENO: checking for $ac_func" >&5
14237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14238 if eval "test \"\${$as_ac_var+set}\" = set"; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 cat >conftest.
$ac_ext <<_ACEOF
14244 cat confdefs.h
>>conftest.
$ac_ext
14245 cat >>conftest.
$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14249 #define $ac_func innocuous_$ac_func
14251 /* System header to define __stub macros and hopefully few prototypes,
14252 which can conflict with char $ac_func (); below.
14253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14254 <limits.h> exists even on freestanding compilers. */
14257 # include <limits.h>
14259 # include <assert.h>
14264 /* Override any gcc2 internal prototype to avoid an error. */
14269 /* We use char because int might match the return type of a gcc2
14270 builtin and then its argument prototype would still apply. */
14272 /* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14278 char (*f) () = $ac_func;
14287 return f != $ac_func;
14292 rm -f conftest.
$ac_objext conftest
$ac_exeext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294 (eval $ac_link) 2>conftest.er1
14296 grep -v '^ *+' conftest.er1
>conftest.err
14298 cat conftest.err
>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try
='test -s conftest$ac_exeext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 eval "$as_ac_var=yes"
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.
$ac_ext >&5
14318 eval "$as_ac_var=no"
14320 rm -f conftest.err conftest.
$ac_objext \
14321 conftest
$ac_exeext conftest.
$ac_ext
14323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14325 if test `eval echo '${'$as_ac_var'}'` = yes; then
14326 cat >>confdefs.h
<<_ACEOF
14327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14335 for ac_header
in sys
/un.h
14337 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo "$as_me:$LINENO: checking for $ac_header" >&5
14340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14347 # Is the header compilable?
14348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14350 cat >conftest.
$ac_ext <<_ACEOF
14353 cat confdefs.h
>>conftest.
$ac_ext
14354 cat >>conftest.
$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14357 #include <$ac_header>
14359 rm -f conftest.
$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361 (eval $ac_compile) 2>conftest.er1
14363 grep -v '^ *+' conftest.er1
>conftest.err
14365 cat conftest.err
>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } &&
14368 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; } &&
14374 { ac_try
='test -s conftest.$ac_objext'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_header_compiler
=yes
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.
$ac_ext >&5
14385 ac_header_compiler
=no
14387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14389 echo "${ECHO_T}$ac_header_compiler" >&6
14391 # Is the header present?
14392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14394 cat >conftest.
$ac_ext <<_ACEOF
14397 cat confdefs.h
>>conftest.
$ac_ext
14398 cat >>conftest.
$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #include <$ac_header>
14402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14405 grep -v '^ *+' conftest.er1
>conftest.err
14407 cat conftest.err
>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } >/dev
/null
; then
14410 if test -s conftest.err
; then
14411 ac_cpp_err
=$ac_c_preproc_warn_flag
14412 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14419 if test -z "$ac_cpp_err"; then
14420 ac_header_preproc
=yes
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.
$ac_ext >&5
14425 ac_header_preproc
=no
14427 rm -f conftest.err conftest.
$ac_ext
14428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14429 echo "${ECHO_T}$ac_header_preproc" >&6
14431 # So? What about this header?
14432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14438 ac_header_preproc
=yes
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14455 ## ------------------------------------------ ##
14456 ## Report this to the AC_PACKAGE_NAME lists. ##
14457 ## ------------------------------------------ ##
14460 sed "s/^/$as_me: WARNING: /" >&2
14463 echo "$as_me:$LINENO: checking for $ac_header" >&5
14464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 eval "$as_ac_Header=\$ac_header_preproc"
14470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14475 cat >>confdefs.h
<<_ACEOF
14476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14487 for ac_header
in stdlib.h sys
/time.h unistd.h
14489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14491 echo "$as_me:$LINENO: checking for $ac_header" >&5
14492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14499 # Is the header compilable?
14500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14502 cat >conftest.
$ac_ext <<_ACEOF
14505 cat confdefs.h
>>conftest.
$ac_ext
14506 cat >>conftest.
$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 $ac_includes_default
14509 #include <$ac_header>
14511 rm -f conftest.
$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513 (eval $ac_compile) 2>conftest.er1
14515 grep -v '^ *+' conftest.er1
>conftest.err
14517 cat conftest.err
>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; } &&
14526 { ac_try
='test -s conftest.$ac_objext'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_header_compiler
=yes
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.
$ac_ext >&5
14537 ac_header_compiler
=no
14539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14541 echo "${ECHO_T}$ac_header_compiler" >&6
14543 # Is the header present?
14544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14546 cat >conftest.
$ac_ext <<_ACEOF
14549 cat confdefs.h
>>conftest.
$ac_ext
14550 cat >>conftest.
$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #include <$ac_header>
14554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14557 grep -v '^ *+' conftest.er1
>conftest.err
14559 cat conftest.err
>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } >/dev
/null
; then
14562 if test -s conftest.err
; then
14563 ac_cpp_err
=$ac_c_preproc_warn_flag
14564 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14571 if test -z "$ac_cpp_err"; then
14572 ac_header_preproc
=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.
$ac_ext >&5
14577 ac_header_preproc
=no
14579 rm -f conftest.err conftest.
$ac_ext
14580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14581 echo "${ECHO_T}$ac_header_preproc" >&6
14583 # So? What about this header?
14584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14590 ac_header_preproc
=yes
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14607 ## ------------------------------------------ ##
14608 ## Report this to the AC_PACKAGE_NAME lists. ##
14609 ## ------------------------------------------ ##
14612 sed "s/^/$as_me: WARNING: /" >&2
14615 echo "$as_me:$LINENO: checking for $ac_header" >&5
14616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 eval "$as_ac_Header=\$ac_header_preproc"
14622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14627 cat >>confdefs.h
<<_ACEOF
14628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14636 for ac_func
in alarm
14638 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14639 echo "$as_me:$LINENO: checking for $ac_func" >&5
14640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14641 if eval "test \"\${$as_ac_var+set}\" = set"; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 cat >conftest.
$ac_ext <<_ACEOF
14647 cat confdefs.h
>>conftest.
$ac_ext
14648 cat >>conftest.
$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14652 #define $ac_func innocuous_$ac_func
14654 /* System header to define __stub macros and hopefully few prototypes,
14655 which can conflict with char $ac_func (); below.
14656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14657 <limits.h> exists even on freestanding compilers. */
14660 # include <limits.h>
14662 # include <assert.h>
14667 /* Override any gcc2 internal prototype to avoid an error. */
14672 /* We use char because int might match the return type of a gcc2
14673 builtin and then its argument prototype would still apply. */
14675 /* The GNU C library defines this for functions which it implements
14676 to always fail with ENOSYS. Some functions are actually named
14677 something starting with __ and the normal name is an alias. */
14678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14681 char (*f) () = $ac_func;
14690 return f != $ac_func;
14695 rm -f conftest.
$ac_objext conftest
$ac_exeext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14697 (eval $ac_link) 2>conftest.er1
14699 grep -v '^ *+' conftest.er1
>conftest.err
14701 cat conftest.err
>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try
='test -s conftest$ac_exeext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 eval "$as_ac_var=yes"
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.
$ac_ext >&5
14721 eval "$as_ac_var=no"
14723 rm -f conftest.err conftest.
$ac_objext \
14724 conftest
$ac_exeext conftest.
$ac_ext
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14728 if test `eval echo '${'$as_ac_var'}'` = yes; then
14729 cat >>confdefs.h
<<_ACEOF
14730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14736 echo "$as_me:$LINENO: checking for working mktime" >&5
14737 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14738 if test "${ac_cv_func_working_mktime+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 if test "$cross_compiling" = yes; then
14742 ac_cv_func_working_mktime
=no
14744 cat >conftest.
$ac_ext <<_ACEOF
14747 cat confdefs.h
>>conftest.
$ac_ext
14748 cat >>conftest.
$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 /* Test program from Paul Eggert and Tony Leneis. */
14751 #if TIME_WITH_SYS_TIME
14752 # include <sys/time.h>
14755 # if HAVE_SYS_TIME_H
14756 # include <sys/time.h>
14763 # include <stdlib.h>
14767 # include <unistd.h>
14771 # define alarm(X) /* empty */
14774 /* Work around redefinition to rpl_putenv by other config tests. */
14777 static time_t time_t_max;
14778 static time_t time_t_min;
14780 /* Values we'll use to set the TZ environment variable. */
14781 static char *tz_strings[] = {
14782 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14783 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14785 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14787 /* Fail if mktime fails to convert a date in the spring-forward gap.
14788 Based on a problem report from Andreas Jaeger. */
14790 spring_forward_gap ()
14792 /* glibc (up to about 1998-10-07) failed this test. */
14795 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14796 instead of "TZ=America/Vancouver" in order to detect the bug even
14797 on systems that don't support the Olson extension, or don't have the
14798 full zoneinfo tables installed. */
14799 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14808 if (mktime (&tm) == (time_t)-1)
14817 if ((lt = localtime (&now)) && mktime (lt) != now)
14825 mktime_test1 (now);
14826 mktime_test1 ((time_t) (time_t_max - now));
14827 mktime_test1 ((time_t) (time_t_min + now));
14833 /* Based on code from Ariel Faigon. */
14843 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14853 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14854 now = mktime (&tm);
14855 if (now != (time_t) -1)
14857 struct tm *lt = localtime (&now);
14859 && lt->tm_year == tm.tm_year
14860 && lt->tm_mon == tm.tm_mon
14861 && lt->tm_mday == tm.tm_mday
14862 && lt->tm_hour == tm.tm_hour
14863 && lt->tm_min == tm.tm_min
14864 && lt->tm_sec == tm.tm_sec
14865 && lt->tm_yday == tm.tm_yday
14866 && lt->tm_wday == tm.tm_wday
14867 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14868 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14879 /* This test makes some buggy mktime implementations loop.
14880 Give up after 60 seconds; a mktime slower than that
14881 isn't worth using anyway. */
14884 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14887 if ((time_t) -1 < 0)
14888 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14890 delta = time_t_max / 997; /* a suitable prime number */
14891 for (i = 0; i < N_STRINGS; i++)
14894 putenv (tz_strings[i]);
14896 for (t = 0; t <= time_t_max - delta; t += delta)
14898 mktime_test ((time_t) 1);
14899 mktime_test ((time_t) (60 * 60));
14900 mktime_test ((time_t) (60 * 60 * 24));
14902 for (j = 1; 0 < j; j *= 2)
14904 bigtime_test (j - 1);
14907 spring_forward_gap ();
14911 rm -f conftest
$ac_exeext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913 (eval $ac_link) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_func_working_mktime
=yes
14924 echo "$as_me: program exited with status $ac_status" >&5
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.
$ac_ext >&5
14928 ( exit $ac_status )
14929 ac_cv_func_working_mktime
=no
14931 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14935 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14936 if test $ac_cv_func_working_mktime = no
; then
14938 "mktime.$ac_objext" | \
14939 *" mktime.$ac_objext" | \
14940 "mktime.$ac_objext "* | \
14941 *" mktime.$ac_objext "* ) ;;
14942 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14947 if test "$ac_cv_func_working_mktime" = no
; then
14949 cat >>confdefs.h
<<\_ACEOF
14950 #define BROKEN_MKTIME 1
14955 ac_have_func
=no
# yes means we've found a way to get the load average.
14957 # Make sure getloadavg.c is where it belongs, at configure-time.
14958 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14959 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14960 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14961 { (exit 1); exit 1; }; }
14965 # Check for getloadavg, but be sure not to touch the cache variable.
14966 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14967 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14968 if test "${ac_cv_func_getloadavg+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 cat >conftest.
$ac_ext <<_ACEOF
14974 cat confdefs.h
>>conftest.
$ac_ext
14975 cat >>conftest.
$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14979 #define getloadavg innocuous_getloadavg
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char getloadavg (); below.
14983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984 <limits.h> exists even on freestanding compilers. */
14987 # include <limits.h>
14989 # include <assert.h>
14994 /* Override any gcc2 internal prototype to avoid an error. */
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15001 char getloadavg ();
15002 /* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15008 char (*f) () = getloadavg;
15017 return f != getloadavg;
15022 rm -f conftest.
$ac_objext conftest
$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>conftest.er1
15026 grep -v '^ *+' conftest.er1
>conftest.err
15028 cat conftest.err
>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try
='test -s conftest$ac_exeext'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_func_getloadavg
=yes
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.
$ac_ext >&5
15048 ac_cv_func_getloadavg
=no
15050 rm -f conftest.err conftest.
$ac_objext \
15051 conftest
$ac_exeext conftest.
$ac_ext
15053 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15054 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15055 if test $ac_cv_func_getloadavg = yes; then
15060 ) && ac_have_func
=yes
15062 # On HPUX9, an unprivileged user can get load averages through this function.
15064 for ac_func
in pstat_getdynamic
15066 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 echo "$as_me:$LINENO: checking for $ac_func" >&5
15068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15069 if eval "test \"\${$as_ac_var+set}\" = set"; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 cat >conftest.
$ac_ext <<_ACEOF
15075 cat confdefs.h
>>conftest.
$ac_ext
15076 cat >>conftest.
$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15080 #define $ac_func innocuous_$ac_func
15082 /* System header to define __stub macros and hopefully few prototypes,
15083 which can conflict with char $ac_func (); below.
15084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15085 <limits.h> exists even on freestanding compilers. */
15088 # include <limits.h>
15090 # include <assert.h>
15095 /* Override any gcc2 internal prototype to avoid an error. */
15100 /* We use char because int might match the return type of a gcc2
15101 builtin and then its argument prototype would still apply. */
15103 /* The GNU C library defines this for functions which it implements
15104 to always fail with ENOSYS. Some functions are actually named
15105 something starting with __ and the normal name is an alias. */
15106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15109 char (*f) () = $ac_func;
15118 return f != $ac_func;
15123 rm -f conftest.
$ac_objext conftest
$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15127 grep -v '^ *+' conftest.er1
>conftest.err
15129 cat conftest.err
>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try
='test -s conftest$ac_exeext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15144 eval "$as_ac_var=yes"
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.
$ac_ext >&5
15149 eval "$as_ac_var=no"
15151 rm -f conftest.err conftest.
$ac_objext \
15152 conftest
$ac_exeext conftest.
$ac_ext
15154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15156 if test `eval echo '${'$as_ac_var'}'` = yes; then
15157 cat >>confdefs.h
<<_ACEOF
15158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15165 # Solaris has libkstat which does not require root.
15167 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15168 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15169 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 ac_check_lib_save_LIBS
=$LIBS
15173 LIBS
="-lkstat $LIBS"
15174 cat >conftest.
$ac_ext <<_ACEOF
15177 cat confdefs.h
>>conftest.
$ac_ext
15178 cat >>conftest.
$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15181 /* Override any gcc2 internal prototype to avoid an error. */
15185 /* We use char because int might match the return type of a gcc2
15186 builtin and then its argument prototype would still apply. */
15187 char kstat_open ();
15196 rm -f conftest.
$ac_objext conftest
$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>conftest.er1
15200 grep -v '^ *+' conftest.er1
>conftest.err
15202 cat conftest.err
>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try
='test -s conftest$ac_exeext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 ac_cv_lib_kstat_kstat_open
=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.
$ac_ext >&5
15222 ac_cv_lib_kstat_kstat_open
=no
15224 rm -f conftest.err conftest.
$ac_objext \
15225 conftest
$ac_exeext conftest.
$ac_ext
15226 LIBS
=$ac_check_lib_save_LIBS
15228 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15229 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15230 if test $ac_cv_lib_kstat_kstat_open = yes; then
15231 cat >>confdefs.h
<<_ACEOF
15232 #define HAVE_LIBKSTAT 1
15235 LIBS
="-lkstat $LIBS"
15239 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15241 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15242 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15243 # to get the right answer into the cache.
15244 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15245 if test $ac_have_func = no
; then
15246 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15247 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15248 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 ac_check_lib_save_LIBS
=$LIBS
15253 cat >conftest.
$ac_ext <<_ACEOF
15256 cat confdefs.h
>>conftest.
$ac_ext
15257 cat >>conftest.
$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15260 /* Override any gcc2 internal prototype to avoid an error. */
15264 /* We use char because int might match the return type of a gcc2
15265 builtin and then its argument prototype would still apply. */
15275 rm -f conftest.
$ac_objext conftest
$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277 (eval $ac_link) 2>conftest.er1
15279 grep -v '^ *+' conftest.er1
>conftest.err
15281 cat conftest.err
>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; } &&
15290 { ac_try
='test -s conftest$ac_exeext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_cv_lib_elf_elf_begin
=yes
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.
$ac_ext >&5
15301 ac_cv_lib_elf_elf_begin
=no
15303 rm -f conftest.err conftest.
$ac_objext \
15304 conftest
$ac_exeext conftest.
$ac_ext
15305 LIBS
=$ac_check_lib_save_LIBS
15307 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15308 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15309 if test $ac_cv_lib_elf_elf_begin = yes; then
15314 if test $ac_have_func = no
; then
15315 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15316 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15317 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 ac_check_lib_save_LIBS
=$LIBS
15322 cat >conftest.
$ac_ext <<_ACEOF
15325 cat confdefs.h
>>conftest.
$ac_ext
15326 cat >>conftest.
$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15329 /* Override any gcc2 internal prototype to avoid an error. */
15333 /* We use char because int might match the return type of a gcc2
15334 builtin and then its argument prototype would still apply. */
15344 rm -f conftest.
$ac_objext conftest
$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>conftest.er1
15348 grep -v '^ *+' conftest.er1
>conftest.err
15350 cat conftest.err
>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try
='test -s conftest$ac_exeext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 ac_cv_lib_kvm_kvm_open
=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.
$ac_ext >&5
15370 ac_cv_lib_kvm_kvm_open
=no
15372 rm -f conftest.err conftest.
$ac_objext \
15373 conftest
$ac_exeext conftest.
$ac_ext
15374 LIBS
=$ac_check_lib_save_LIBS
15376 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15377 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15378 if test $ac_cv_lib_kvm_kvm_open = yes; then
15382 # Check for the 4.4BSD definition of getloadavg.
15383 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15384 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15385 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 ac_check_lib_save_LIBS
=$LIBS
15389 LIBS
="-lutil $LIBS"
15390 cat >conftest.
$ac_ext <<_ACEOF
15393 cat confdefs.h
>>conftest.
$ac_ext
15394 cat >>conftest.
$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15397 /* Override any gcc2 internal prototype to avoid an error. */
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15403 char getloadavg ();
15412 rm -f conftest.
$ac_objext conftest
$ac_exeext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15414 (eval $ac_link) 2>conftest.er1
15416 grep -v '^ *+' conftest.er1
>conftest.err
15418 cat conftest.err
>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try
='test -s conftest$ac_exeext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_cv_lib_util_getloadavg
=yes
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.
$ac_ext >&5
15438 ac_cv_lib_util_getloadavg
=no
15440 rm -f conftest.err conftest.
$ac_objext \
15441 conftest
$ac_exeext conftest.
$ac_ext
15442 LIBS
=$ac_check_lib_save_LIBS
15444 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15445 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15446 if test $ac_cv_lib_util_getloadavg = yes; then
15447 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15452 if test $ac_have_func = no
; then
15453 # There is a commonly available library for RS/6000 AIX.
15454 # Since it is not a standard part of AIX, it might be installed locally.
15455 ac_getloadavg_LIBS
=$LIBS
15456 LIBS
="-L/usr/local/lib $LIBS"
15457 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15458 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15459 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 ac_check_lib_save_LIBS
=$LIBS
15463 LIBS
="-lgetloadavg $LIBS"
15464 cat >conftest.
$ac_ext <<_ACEOF
15467 cat confdefs.h
>>conftest.
$ac_ext
15468 cat >>conftest.
$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15471 /* Override any gcc2 internal prototype to avoid an error. */
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char getloadavg ();
15486 rm -f conftest.
$ac_objext conftest
$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15490 grep -v '^ *+' conftest.er1
>conftest.err
15492 cat conftest.err
>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try
='test -s conftest$ac_exeext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 ac_cv_lib_getloadavg_getloadavg
=yes
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.
$ac_ext >&5
15512 ac_cv_lib_getloadavg_getloadavg
=no
15514 rm -f conftest.err conftest.
$ac_objext \
15515 conftest
$ac_exeext conftest.
$ac_ext
15516 LIBS
=$ac_check_lib_save_LIBS
15518 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15519 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15520 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15521 LIBS
="-lgetloadavg $LIBS"
15523 LIBS
=$ac_getloadavg_LIBS
15528 # Make sure it is really in the library, if we think we found it,
15529 # otherwise set up the replacement function.
15531 for ac_func
in getloadavg
15533 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15534 echo "$as_me:$LINENO: checking for $ac_func" >&5
15535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15536 if eval "test \"\${$as_ac_var+set}\" = set"; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 cat >conftest.
$ac_ext <<_ACEOF
15542 cat confdefs.h
>>conftest.
$ac_ext
15543 cat >>conftest.
$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15547 #define $ac_func innocuous_$ac_func
15549 /* System header to define __stub macros and hopefully few prototypes,
15550 which can conflict with char $ac_func (); below.
15551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15552 <limits.h> exists even on freestanding compilers. */
15555 # include <limits.h>
15557 # include <assert.h>
15562 /* Override any gcc2 internal prototype to avoid an error. */
15567 /* We use char because int might match the return type of a gcc2
15568 builtin and then its argument prototype would still apply. */
15570 /* The GNU C library defines this for functions which it implements
15571 to always fail with ENOSYS. Some functions are actually named
15572 something starting with __ and the normal name is an alias. */
15573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15576 char (*f) () = $ac_func;
15585 return f != $ac_func;
15590 rm -f conftest.
$ac_objext conftest
$ac_exeext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15592 (eval $ac_link) 2>conftest.er1
15594 grep -v '^ *+' conftest.er1
>conftest.err
15596 cat conftest.err
>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try
='test -s conftest$ac_exeext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 eval "$as_ac_var=yes"
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.
$ac_ext >&5
15616 eval "$as_ac_var=no"
15618 rm -f conftest.err conftest.
$ac_objext \
15619 conftest
$ac_exeext conftest.
$ac_ext
15621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15623 if test `eval echo '${'$as_ac_var'}'` = yes; then
15624 cat >>confdefs.h
<<_ACEOF
15625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15630 "getloadavg.$ac_objext" | \
15631 *" getloadavg.$ac_objext" | \
15632 "getloadavg.$ac_objext "* | \
15633 *" getloadavg.$ac_objext "* ) ;;
15634 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15638 cat >>confdefs.h
<<\_ACEOF
15639 #define C_GETLOADAVG 1
15642 # Figure out what our getloadavg.c needs.
15644 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15645 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15646 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15647 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15651 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15653 # Is the header compilable?
15654 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15655 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15656 cat >conftest.
$ac_ext <<_ACEOF
15659 cat confdefs.h
>>conftest.
$ac_ext
15660 cat >>conftest.
$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 $ac_includes_default
15663 #include <sys/dg_sys_info.h>
15665 rm -f conftest.
$ac_objext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15667 (eval $ac_compile) 2>conftest.er1
15669 grep -v '^ *+' conftest.er1
>conftest.err
15671 cat conftest.err
>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try
='test -s conftest.$ac_objext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_header_compiler
=yes
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.
$ac_ext >&5
15691 ac_header_compiler
=no
15693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15695 echo "${ECHO_T}$ac_header_compiler" >&6
15697 # Is the header present?
15698 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15699 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15700 cat >conftest.
$ac_ext <<_ACEOF
15703 cat confdefs.h
>>conftest.
$ac_ext
15704 cat >>conftest.
$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 #include <sys/dg_sys_info.h>
15708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15711 grep -v '^ *+' conftest.er1
>conftest.err
15713 cat conftest.err
>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } >/dev
/null
; then
15716 if test -s conftest.err
; then
15717 ac_cpp_err
=$ac_c_preproc_warn_flag
15718 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15725 if test -z "$ac_cpp_err"; then
15726 ac_header_preproc
=yes
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.
$ac_ext >&5
15731 ac_header_preproc
=no
15733 rm -f conftest.err conftest.
$ac_ext
15734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735 echo "${ECHO_T}$ac_header_preproc" >&6
15737 # So? What about this header?
15738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15740 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15741 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15743 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15744 ac_header_preproc
=yes
15747 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15748 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15750 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15752 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15754 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15756 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15758 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15761 ## ------------------------------------------ ##
15762 ## Report this to the AC_PACKAGE_NAME lists. ##
15763 ## ------------------------------------------ ##
15766 sed "s/^/$as_me: WARNING: /" >&2
15769 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15770 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15771 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15776 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15777 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15780 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15783 cat >>confdefs.h
<<\_ACEOF
15788 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15789 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15790 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 ac_check_lib_save_LIBS
=$LIBS
15795 cat >conftest.
$ac_ext <<_ACEOF
15798 cat confdefs.h
>>conftest.
$ac_ext
15799 cat >>conftest.
$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15802 /* Override any gcc2 internal prototype to avoid an error. */
15806 /* We use char because int might match the return type of a gcc2
15807 builtin and then its argument prototype would still apply. */
15808 char dg_sys_info ();
15817 rm -f conftest.
$ac_objext conftest
$ac_exeext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819 (eval $ac_link) 2>conftest.er1
15821 grep -v '^ *+' conftest.er1
>conftest.err
15823 cat conftest.err
>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
15826 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try
='test -s conftest$ac_exeext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_cv_lib_dgc_dg_sys_info
=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.
$ac_ext >&5
15843 ac_cv_lib_dgc_dg_sys_info
=no
15845 rm -f conftest.err conftest.
$ac_objext \
15846 conftest
$ac_exeext conftest.
$ac_ext
15847 LIBS
=$ac_check_lib_save_LIBS
15849 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15850 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15851 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15852 cat >>confdefs.h
<<_ACEOF
15853 #define HAVE_LIBDGC 1
15864 if test "${ac_cv_header_locale_h+set}" = set; then
15865 echo "$as_me:$LINENO: checking for locale.h" >&5
15866 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15867 if test "${ac_cv_header_locale_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15871 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15873 # Is the header compilable?
15874 echo "$as_me:$LINENO: checking locale.h usability" >&5
15875 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15876 cat >conftest.
$ac_ext <<_ACEOF
15879 cat confdefs.h
>>conftest.
$ac_ext
15880 cat >>conftest.
$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <locale.h>
15885 rm -f conftest.
$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1
>conftest.err
15891 cat conftest.err
>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try
='test -z "$ac_c_werror_flag" || 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 locale.h presence" >&5
15919 echo $ECHO_N "checking locale.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 <locale.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: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc
=yes
15967 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: locale.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 locale.h" >&5
15990 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15991 if test "${ac_cv_header_locale_h+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 ac_cv_header_locale_h
=$ac_header_preproc
15996 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15997 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16003 for ac_func
in setlocale
16005 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16006 echo "$as_me:$LINENO: checking for $ac_func" >&5
16007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16008 if eval "test \"\${$as_ac_var+set}\" = set"; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 cat >conftest.
$ac_ext <<_ACEOF
16014 cat confdefs.h
>>conftest.
$ac_ext
16015 cat >>conftest.
$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16019 #define $ac_func innocuous_$ac_func
16021 /* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char $ac_func (); below.
16023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16024 <limits.h> exists even on freestanding compilers. */
16027 # include <limits.h>
16029 # include <assert.h>
16034 /* Override any gcc2 internal prototype to avoid an error. */
16039 /* We use char because int might match the return type of a gcc2
16040 builtin and then its argument prototype would still apply. */
16042 /* The GNU C library defines this for functions which it implements
16043 to always fail with ENOSYS. Some functions are actually named
16044 something starting with __ and the normal name is an alias. */
16045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16048 char (*f) () = $ac_func;
16057 return f != $ac_func;
16062 rm -f conftest.
$ac_objext conftest
$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>conftest.er1
16066 grep -v '^ *+' conftest.er1
>conftest.err
16068 cat conftest.err
>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try
='test -s conftest$ac_exeext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 eval "$as_ac_var=yes"
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.
$ac_ext >&5
16088 eval "$as_ac_var=no"
16090 rm -f conftest.err conftest.
$ac_objext \
16091 conftest
$ac_exeext conftest.
$ac_ext
16093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16095 if test `eval echo '${'$as_ac_var'}'` = yes; then
16096 cat >>confdefs.h
<<_ACEOF
16097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16104 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16105 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16106 # Irix 4.0.5F has the header but not the library.
16107 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16110 cat >>confdefs.h
<<\_ACEOF
16116 if test $ac_have_func = no
; then
16117 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16118 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16119 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16120 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16124 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16126 # Is the header compilable?
16127 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16128 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16129 cat >conftest.
$ac_ext <<_ACEOF
16132 cat confdefs.h
>>conftest.
$ac_ext
16133 cat >>conftest.
$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16135 $ac_includes_default
16136 #include <inq_stats/cpustats.h>
16138 rm -f conftest.
$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>conftest.er1
16142 grep -v '^ *+' conftest.er1
>conftest.err
16144 cat conftest.err
>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; } &&
16153 { ac_try
='test -s conftest.$ac_objext'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 ac_header_compiler
=yes
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.
$ac_ext >&5
16164 ac_header_compiler
=no
16166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16168 echo "${ECHO_T}$ac_header_compiler" >&6
16170 # Is the header present?
16171 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16172 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16173 cat >conftest.
$ac_ext <<_ACEOF
16176 cat confdefs.h
>>conftest.
$ac_ext
16177 cat >>conftest.
$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 #include <inq_stats/cpustats.h>
16181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16184 grep -v '^ *+' conftest.er1
>conftest.err
16186 cat conftest.err
>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } >/dev
/null
; then
16189 if test -s conftest.err
; then
16190 ac_cpp_err
=$ac_c_preproc_warn_flag
16191 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16198 if test -z "$ac_cpp_err"; then
16199 ac_header_preproc
=yes
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.
$ac_ext >&5
16204 ac_header_preproc
=no
16206 rm -f conftest.err conftest.
$ac_ext
16207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208 echo "${ECHO_T}$ac_header_preproc" >&6
16210 # So? What about this header?
16211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16214 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16216 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc
=yes
16220 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16221 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16223 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16225 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16227 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16229 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16231 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16234 ## ------------------------------------------ ##
16235 ## Report this to the AC_PACKAGE_NAME lists. ##
16236 ## ------------------------------------------ ##
16239 sed "s/^/$as_me: WARNING: /" >&2
16242 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16243 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16244 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16249 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16250 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16253 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16256 cat >>confdefs.h
<<\_ACEOF
16261 cat >>confdefs.h
<<\_ACEOF
16270 if test $ac_have_func = no
; then
16271 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16272 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16273 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16274 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16278 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16280 # Is the header compilable?
16281 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16282 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16283 cat >conftest.
$ac_ext <<_ACEOF
16286 cat confdefs.h
>>conftest.
$ac_ext
16287 cat >>conftest.
$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 #include <sys/cpustats.h>
16292 rm -f conftest.
$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>conftest.er1
16296 grep -v '^ *+' conftest.er1
>conftest.err
16298 cat conftest.err
>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try
='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_header_compiler
=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.
$ac_ext >&5
16318 ac_header_compiler
=no
16320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6
16324 # Is the header present?
16325 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16326 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16327 cat >conftest.
$ac_ext <<_ACEOF
16330 cat confdefs.h
>>conftest.
$ac_ext
16331 cat >>conftest.
$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <sys/cpustats.h>
16335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16336 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16338 grep -v '^ *+' conftest.er1
>conftest.err
16340 cat conftest.err
>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } >/dev
/null
; then
16343 if test -s conftest.err
; then
16344 ac_cpp_err
=$ac_c_preproc_warn_flag
16345 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16352 if test -z "$ac_cpp_err"; then
16353 ac_header_preproc
=yes
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.
$ac_ext >&5
16358 ac_header_preproc
=no
16360 rm -f conftest.err conftest.
$ac_ext
16361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6
16364 # So? What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16367 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16371 ac_header_preproc
=yes
16374 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16388 ## ------------------------------------------ ##
16389 ## Report this to the AC_PACKAGE_NAME lists. ##
16390 ## ------------------------------------------ ##
16393 sed "s/^/$as_me: WARNING: /" >&2
16396 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16397 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16398 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16403 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16404 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16407 if test $ac_cv_header_sys_cpustats_h = yes; then
16408 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16417 if test $ac_have_func = no
; then
16419 for ac_header
in mach
/mach.h
16421 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16423 echo "$as_me:$LINENO: checking for $ac_header" >&5
16424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16431 # Is the header compilable?
16432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16434 cat >conftest.
$ac_ext <<_ACEOF
16437 cat confdefs.h
>>conftest.
$ac_ext
16438 cat >>conftest.
$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 $ac_includes_default
16441 #include <$ac_header>
16443 rm -f conftest.
$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445 (eval $ac_compile) 2>conftest.er1
16447 grep -v '^ *+' conftest.er1
>conftest.err
16449 cat conftest.err
>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try
='test -s conftest.$ac_objext'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ac_header_compiler
=yes
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.
$ac_ext >&5
16469 ac_header_compiler
=no
16471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16473 echo "${ECHO_T}$ac_header_compiler" >&6
16475 # Is the header present?
16476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16478 cat >conftest.
$ac_ext <<_ACEOF
16481 cat confdefs.h
>>conftest.
$ac_ext
16482 cat >>conftest.
$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 #include <$ac_header>
16486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16487 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16489 grep -v '^ *+' conftest.er1
>conftest.err
16491 cat conftest.err
>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } >/dev
/null
; then
16494 if test -s conftest.err
; then
16495 ac_cpp_err
=$ac_c_preproc_warn_flag
16496 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16503 if test -z "$ac_cpp_err"; then
16504 ac_header_preproc
=yes
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.
$ac_ext >&5
16509 ac_header_preproc
=no
16511 rm -f conftest.err conftest.
$ac_ext
16512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16513 echo "${ECHO_T}$ac_header_preproc" >&6
16515 # So? What about this header?
16516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16522 ac_header_preproc
=yes
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16539 ## ------------------------------------------ ##
16540 ## Report this to the AC_PACKAGE_NAME lists. ##
16541 ## ------------------------------------------ ##
16544 sed "s/^/$as_me: WARNING: /" >&2
16547 echo "$as_me:$LINENO: checking for $ac_header" >&5
16548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 eval "$as_ac_Header=\$ac_header_preproc"
16554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16559 cat >>confdefs.h
<<_ACEOF
16560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16570 for ac_header
in nlist.h
16572 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16574 echo "$as_me:$LINENO: checking for $ac_header" >&5
16575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16582 # Is the header compilable?
16583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16585 cat >conftest.
$ac_ext <<_ACEOF
16588 cat confdefs.h
>>conftest.
$ac_ext
16589 cat >>conftest.
$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 $ac_includes_default
16592 #include <$ac_header>
16594 rm -f conftest.
$ac_objext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16596 (eval $ac_compile) 2>conftest.er1
16598 grep -v '^ *+' conftest.er1
>conftest.err
16600 cat conftest.err
>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; } &&
16609 { ac_try
='test -s conftest.$ac_objext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_header_compiler
=yes
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.
$ac_ext >&5
16620 ac_header_compiler
=no
16622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16624 echo "${ECHO_T}$ac_header_compiler" >&6
16626 # Is the header present?
16627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16629 cat >conftest.
$ac_ext <<_ACEOF
16632 cat confdefs.h
>>conftest.
$ac_ext
16633 cat >>conftest.
$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <$ac_header>
16637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16638 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16640 grep -v '^ *+' conftest.er1
>conftest.err
16642 cat conftest.err
>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } >/dev
/null
; then
16645 if test -s conftest.err
; then
16646 ac_cpp_err
=$ac_c_preproc_warn_flag
16647 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16654 if test -z "$ac_cpp_err"; then
16655 ac_header_preproc
=yes
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.
$ac_ext >&5
16660 ac_header_preproc
=no
16662 rm -f conftest.err conftest.
$ac_ext
16663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16664 echo "${ECHO_T}$ac_header_preproc" >&6
16666 # So? What about this header?
16667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16673 ac_header_preproc
=yes
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16690 ## ------------------------------------------ ##
16691 ## Report this to the AC_PACKAGE_NAME lists. ##
16692 ## ------------------------------------------ ##
16695 sed "s/^/$as_me: WARNING: /" >&2
16698 echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 eval "$as_ac_Header=\$ac_header_preproc"
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16710 cat >>confdefs.h
<<_ACEOF
16711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16713 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16714 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16715 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 cat >conftest.
$ac_ext <<_ACEOF
16721 cat confdefs.h
>>conftest.
$ac_ext
16722 cat >>conftest.
$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16729 static struct nlist ac_aggr;
16730 if (ac_aggr.n_un.n_name)
16736 rm -f conftest.
$ac_objext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738 (eval $ac_compile) 2>conftest.er1
16740 grep -v '^ *+' conftest.er1
>conftest.err
16742 cat conftest.err
>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try
='test -s conftest.$ac_objext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_member_struct_nlist_n_un_n_name
=yes
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.
$ac_ext >&5
16762 cat >conftest.
$ac_ext <<_ACEOF
16765 cat confdefs.h
>>conftest.
$ac_ext
16766 cat >>conftest.
$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16773 static struct nlist ac_aggr;
16774 if (sizeof ac_aggr.n_un.n_name)
16780 rm -f conftest.
$ac_objext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782 (eval $ac_compile) 2>conftest.er1
16784 grep -v '^ *+' conftest.er1
>conftest.err
16786 cat conftest.err
>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try
='test -s conftest.$ac_objext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_member_struct_nlist_n_un_n_name
=yes
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.
$ac_ext >&5
16806 ac_cv_member_struct_nlist_n_un_n_name
=no
16808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16812 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16813 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16814 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16816 cat >>confdefs.h
<<_ACEOF
16817 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16821 cat >>confdefs.h
<<\_ACEOF
16822 #define NLIST_NAME_UNION 1
16836 # Some definitions of getloadavg require that the program be installed setgid.
16837 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16838 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16839 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 cat >conftest.
$ac_ext <<_ACEOF
16845 cat confdefs.h
>>conftest.
$ac_ext
16846 cat >>conftest.
$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16849 #ifdef LDAV_PRIVILEGED
16850 Yowza Am I SETGID yet
16853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16854 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16855 ac_cv_func_getloadavg_setgid
=yes
16857 ac_cv_func_getloadavg_setgid
=no
16862 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16863 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16864 if test $ac_cv_func_getloadavg_setgid = yes; then
16867 cat >>confdefs.h
<<\_ACEOF
16868 #define GETLOADAVG_PRIVILEGED 1
16875 if test $ac_cv_func_getloadavg_setgid = yes; then
16876 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16877 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16878 if test "${ac_cv_group_kmem+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16882 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16883 # If we got an error (system does not support symlinks), try without -L.
16884 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16885 ac_cv_group_kmem
=`echo $ac_ls_output \
16886 | sed -ne 's/[ ][ ]*/ /g;
16887 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16891 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16892 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16893 KMEM_GROUP
=$ac_cv_group_kmem
16895 if test "x$ac_save_LIBS" = x
; then
16896 GETLOADAVG_LIBS
=$LIBS
16898 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16904 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16905 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16906 if test "${ac_cv_sys_largefile_source+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 ac_cv_sys_largefile_source
=no
16911 cat >conftest.
$ac_ext <<_ACEOF
16914 cat confdefs.h
>>conftest.
$ac_ext
16915 cat >>conftest.
$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16926 rm -f conftest.
$ac_objext
16927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16928 (eval $ac_compile) 2>conftest.er1
16930 grep -v '^ *+' conftest.er1
>conftest.err
16932 cat conftest.err
>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; } &&
16941 { ac_try
='test -s conftest.$ac_objext'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.
$ac_ext >&5
16953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16954 cat >conftest.
$ac_ext <<_ACEOF
16957 cat confdefs.h
>>conftest.
$ac_ext
16958 cat >>conftest.
$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 #define _LARGEFILE_SOURCE 1
16970 rm -f conftest.
$ac_objext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16972 (eval $ac_compile) 2>conftest.er1
16974 grep -v '^ *+' conftest.er1
>conftest.err
16976 cat conftest.err
>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16985 { ac_try
='test -s conftest.$ac_objext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_sys_largefile_source
=1; break
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.
$ac_ext >&5
16997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17001 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17002 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17003 if test "$ac_cv_sys_largefile_source" != no
; then
17005 cat >>confdefs.h
<<_ACEOF
17006 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17012 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17013 # in glibc 2.1.3, but that breaks too many other things.
17014 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17015 echo "$as_me:$LINENO: checking for fseeko" >&5
17016 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17017 if test "${ac_cv_func_fseeko+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 cat >conftest.
$ac_ext <<_ACEOF
17023 cat confdefs.h
>>conftest.
$ac_ext
17024 cat >>conftest.
$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17030 return fseeko && fseeko (stdin, 0, 0);
17035 rm -f conftest.
$ac_objext conftest
$ac_exeext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17037 (eval $ac_link) 2>conftest.er1
17039 grep -v '^ *+' conftest.er1
>conftest.err
17041 cat conftest.err
>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try
='test -s conftest$ac_exeext'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_cv_func_fseeko
=yes
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.
$ac_ext >&5
17061 ac_cv_func_fseeko
=no
17063 rm -f conftest.err conftest.
$ac_objext \
17064 conftest
$ac_exeext conftest.
$ac_ext
17066 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17067 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17068 if test $ac_cv_func_fseeko = yes; then
17070 cat >>confdefs.h
<<\_ACEOF
17071 #define HAVE_FSEEKO 1
17077 # Configure getopt.
17078 # getopt.m4 serial 10
17080 # The getopt module assume you want GNU getopt, with getopt_long etc,
17081 # rather than vanilla POSIX getopt. This means your your code should
17082 # always include <getopt.h> for the getopt prototypes.
17094 # Prerequisites of lib/getopt*.
17101 for ac_header
in getopt.h
17103 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17105 echo "$as_me:$LINENO: checking for $ac_header" >&5
17106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17113 # Is the header compilable?
17114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17116 cat >conftest.
$ac_ext <<_ACEOF
17119 cat confdefs.h
>>conftest.
$ac_ext
17120 cat >>conftest.
$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 #include <$ac_header>
17125 rm -f conftest.
$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1
>conftest.err
17131 cat conftest.err
>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try
='test -s conftest.$ac_objext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 ac_header_compiler
=yes
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.
$ac_ext >&5
17151 ac_header_compiler
=no
17153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17155 echo "${ECHO_T}$ac_header_compiler" >&6
17157 # Is the header present?
17158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17160 cat >conftest.
$ac_ext <<_ACEOF
17163 cat confdefs.h
>>conftest.
$ac_ext
17164 cat >>conftest.
$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 #include <$ac_header>
17168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17169 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17171 grep -v '^ *+' conftest.er1
>conftest.err
17173 cat conftest.err
>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } >/dev
/null
; then
17176 if test -s conftest.err
; then
17177 ac_cpp_err
=$ac_c_preproc_warn_flag
17178 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17185 if test -z "$ac_cpp_err"; then
17186 ac_header_preproc
=yes
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.
$ac_ext >&5
17191 ac_header_preproc
=no
17193 rm -f conftest.err conftest.
$ac_ext
17194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17195 echo "${ECHO_T}$ac_header_preproc" >&6
17197 # So? What about this header?
17198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17204 ac_header_preproc
=yes
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17221 ## ------------------------------------------ ##
17222 ## Report this to the AC_PACKAGE_NAME lists. ##
17223 ## ------------------------------------------ ##
17226 sed "s/^/$as_me: WARNING: /" >&2
17229 echo "$as_me:$LINENO: checking for $ac_header" >&5
17230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 eval "$as_ac_Header=\$ac_header_preproc"
17236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17241 cat >>confdefs.h
<<_ACEOF
17242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17251 if test -z "$GETOPT_H"; then
17253 for ac_func
in getopt_long_only
17255 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17256 echo "$as_me:$LINENO: checking for $ac_func" >&5
17257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17258 if eval "test \"\${$as_ac_var+set}\" = set"; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 cat >conftest.
$ac_ext <<_ACEOF
17264 cat confdefs.h
>>conftest.
$ac_ext
17265 cat >>conftest.
$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17269 #define $ac_func innocuous_$ac_func
17271 /* System header to define __stub macros and hopefully few prototypes,
17272 which can conflict with char $ac_func (); below.
17273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17274 <limits.h> exists even on freestanding compilers. */
17277 # include <limits.h>
17279 # include <assert.h>
17284 /* Override any gcc2 internal prototype to avoid an error. */
17289 /* We use char because int might match the return type of a gcc2
17290 builtin and then its argument prototype would still apply. */
17292 /* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17298 char (*f) () = $ac_func;
17307 return f != $ac_func;
17312 rm -f conftest.
$ac_objext conftest
$ac_exeext
17313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17314 (eval $ac_link) 2>conftest.er1
17316 grep -v '^ *+' conftest.er1
>conftest.err
17318 cat conftest.err
>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try
='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 eval "$as_ac_var=yes"
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.
$ac_ext >&5
17338 eval "$as_ac_var=no"
17340 rm -f conftest.err conftest.
$ac_objext \
17341 conftest
$ac_exeext conftest.
$ac_ext
17343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17345 if test `eval echo '${'$as_ac_var'}'` = yes; then
17346 cat >>confdefs.h
<<_ACEOF
17347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17357 if test -z "$GETOPT_H"; then
17358 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17359 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17360 if test "${ac_cv_have_decl_optreset+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 cat >conftest.
$ac_ext <<_ACEOF
17366 cat confdefs.h
>>conftest.
$ac_ext
17367 cat >>conftest.
$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #include <getopt.h>
17375 char *p = (char *) optreset;
17382 rm -f conftest.
$ac_objext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384 (eval $ac_compile) 2>conftest.er1
17386 grep -v '^ *+' conftest.er1
>conftest.err
17388 cat conftest.err
>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try
='test -s conftest.$ac_objext'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 ac_cv_have_decl_optreset
=yes
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.
$ac_ext >&5
17408 ac_cv_have_decl_optreset
=no
17410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17412 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17413 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17414 if test $ac_cv_have_decl_optreset = yes; then
17420 if test -z "$GETOPT_H"; then
17421 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17422 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17423 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17426 if test "$cross_compiling" = yes; then
17427 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17428 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17429 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 cat >conftest.
$ac_ext <<_ACEOF
17435 cat confdefs.h
>>conftest.
$ac_ext
17436 cat >>conftest.
$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17438 #include <getopt.h>
17443 #ifndef getopt_clip
17444 char *p = (char *) getopt_clip;
17451 rm -f conftest.
$ac_objext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>conftest.er1
17455 grep -v '^ *+' conftest.er1
>conftest.err
17457 cat conftest.err
>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try
='test -s conftest.$ac_objext'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_cv_have_decl_getopt_clip
=yes
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.
$ac_ext >&5
17477 ac_cv_have_decl_getopt_clip
=no
17479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17481 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17482 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17483 if test $ac_cv_have_decl_getopt_clip = yes; then
17484 gl_cv_func_gnu_getopt
=no
17486 gl_cv_func_gnu_getopt
=yes
17490 cat >conftest.
$ac_ext <<_ACEOF
17493 cat confdefs.h
>>conftest.
$ac_ext
17494 cat >>conftest.
$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 #include <getopt.h>
17502 myargv[0] = "conftest";
17505 return getopt (2, myargv, "+a") != '?';
17511 rm -f conftest
$ac_exeext
17512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17513 (eval $ac_link) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; }; then
17522 gl_cv_func_gnu_getopt
=yes
17524 echo "$as_me: program exited with status $ac_status" >&5
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.
$ac_ext >&5
17528 ( exit $ac_status )
17529 gl_cv_func_gnu_getopt
=no
17531 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17534 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17535 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17536 if test "$gl_cv_func_gnu_getopt" = "no"; then
17543 if test -n "$GETOPT_H"; then
17548 cat >>confdefs.h
<<\_ACEOF
17549 #define __GETOPT_PREFIX rpl_
17555 GETOPTOBJS
='getopt.o getopt1.o'
17562 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17563 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17564 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 # Use it with a single arg.
17568 cat >conftest.
$ac_ext <<_ACEOF
17571 cat confdefs.h
>>conftest.
$ac_ext
17572 cat >>conftest.
$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 $ac_includes_default
17583 rm -f conftest.
$ac_objext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>conftest.er1
17587 grep -v '^ *+' conftest.er1
>conftest.err
17589 cat conftest.err
>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try
='test -s conftest.$ac_objext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_func_getpgrp_void
=no
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.
$ac_ext >&5
17609 ac_cv_func_getpgrp_void
=yes
17611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17614 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17615 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17616 if test $ac_cv_func_getpgrp_void = yes; then
17618 cat >>confdefs.h
<<\_ACEOF
17619 #define GETPGRP_VOID 1
17626 for ac_func
in strftime
17628 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17629 echo "$as_me:$LINENO: checking for $ac_func" >&5
17630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17631 if eval "test \"\${$as_ac_var+set}\" = set"; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 cat >conftest.
$ac_ext <<_ACEOF
17637 cat confdefs.h
>>conftest.
$ac_ext
17638 cat >>conftest.
$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17642 #define $ac_func innocuous_$ac_func
17644 /* System header to define __stub macros and hopefully few prototypes,
17645 which can conflict with char $ac_func (); below.
17646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17647 <limits.h> exists even on freestanding compilers. */
17650 # include <limits.h>
17652 # include <assert.h>
17657 /* Override any gcc2 internal prototype to avoid an error. */
17662 /* We use char because int might match the return type of a gcc2
17663 builtin and then its argument prototype would still apply. */
17665 /* The GNU C library defines this for functions which it implements
17666 to always fail with ENOSYS. Some functions are actually named
17667 something starting with __ and the normal name is an alias. */
17668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17671 char (*f) () = $ac_func;
17680 return f != $ac_func;
17685 rm -f conftest.
$ac_objext conftest
$ac_exeext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687 (eval $ac_link) 2>conftest.er1
17689 grep -v '^ *+' conftest.er1
>conftest.err
17691 cat conftest.err
>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try
='test -s conftest$ac_exeext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 eval "$as_ac_var=yes"
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.
$ac_ext >&5
17711 eval "$as_ac_var=no"
17713 rm -f conftest.err conftest.
$ac_objext \
17714 conftest
$ac_exeext conftest.
$ac_ext
17716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17718 if test `eval echo '${'$as_ac_var'}'` = yes; then
17719 cat >>confdefs.h
<<_ACEOF
17720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17724 # strftime is in -lintl on SCO UNIX.
17725 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17726 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17727 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 ac_check_lib_save_LIBS
=$LIBS
17731 LIBS
="-lintl $LIBS"
17732 cat >conftest.
$ac_ext <<_ACEOF
17735 cat confdefs.h
>>conftest.
$ac_ext
17736 cat >>conftest.
$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17739 /* Override any gcc2 internal prototype to avoid an error. */
17743 /* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17754 rm -f conftest.
$ac_objext conftest
$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17758 grep -v '^ *+' conftest.er1
>conftest.err
17760 cat conftest.err
>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try
='test -s conftest$ac_exeext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_lib_intl_strftime
=yes
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.
$ac_ext >&5
17780 ac_cv_lib_intl_strftime
=no
17782 rm -f conftest.err conftest.
$ac_objext \
17783 conftest
$ac_exeext conftest.
$ac_ext
17784 LIBS
=$ac_check_lib_save_LIBS
17786 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17787 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17788 if test $ac_cv_lib_intl_strftime = yes; then
17789 cat >>confdefs.h
<<\_ACEOF
17790 #define HAVE_STRFTIME 1
17793 LIBS
="-lintl $LIBS"
17802 for ac_func
in grantpt
17804 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17805 echo "$as_me:$LINENO: checking for $ac_func" >&5
17806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17807 if eval "test \"\${$as_ac_var+set}\" = set"; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 cat >conftest.
$ac_ext <<_ACEOF
17813 cat confdefs.h
>>conftest.
$ac_ext
17814 cat >>conftest.
$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17818 #define $ac_func innocuous_$ac_func
17820 /* System header to define __stub macros and hopefully few prototypes,
17821 which can conflict with char $ac_func (); below.
17822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17823 <limits.h> exists even on freestanding compilers. */
17826 # include <limits.h>
17828 # include <assert.h>
17833 /* Override any gcc2 internal prototype to avoid an error. */
17838 /* We use char because int might match the return type of a gcc2
17839 builtin and then its argument prototype would still apply. */
17841 /* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17847 char (*f) () = $ac_func;
17856 return f != $ac_func;
17861 rm -f conftest.
$ac_objext conftest
$ac_exeext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17863 (eval $ac_link) 2>conftest.er1
17865 grep -v '^ *+' conftest.er1
>conftest.err
17867 cat conftest.err
>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try
='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 eval "$as_ac_var=yes"
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.
$ac_ext >&5
17887 eval "$as_ac_var=no"
17889 rm -f conftest.err conftest.
$ac_objext \
17890 conftest
$ac_exeext conftest.
$ac_ext
17892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17894 if test `eval echo '${'$as_ac_var'}'` = yes; then
17895 cat >>confdefs.h
<<_ACEOF
17896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17903 # PTY-related GNU extensions.
17905 for ac_func
in getpt
17907 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17908 echo "$as_me:$LINENO: checking for $ac_func" >&5
17909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17910 if eval "test \"\${$as_ac_var+set}\" = set"; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 cat >conftest.
$ac_ext <<_ACEOF
17916 cat confdefs.h
>>conftest.
$ac_ext
17917 cat >>conftest.
$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17921 #define $ac_func innocuous_$ac_func
17923 /* System header to define __stub macros and hopefully few prototypes,
17924 which can conflict with char $ac_func (); below.
17925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17926 <limits.h> exists even on freestanding compilers. */
17929 # include <limits.h>
17931 # include <assert.h>
17936 /* Override any gcc2 internal prototype to avoid an error. */
17941 /* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17950 char (*f) () = $ac_func;
17959 return f != $ac_func;
17964 rm -f conftest.
$ac_objext conftest
$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>conftest.er1
17968 grep -v '^ *+' conftest.er1
>conftest.err
17970 cat conftest.err
>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try
='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 eval "$as_ac_var=yes"
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.
$ac_ext >&5
17990 eval "$as_ac_var=no"
17992 rm -f conftest.err conftest.
$ac_objext \
17993 conftest
$ac_exeext conftest.
$ac_ext
17995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17997 if test `eval echo '${'$as_ac_var'}'` = yes; then
17998 cat >>confdefs.h
<<_ACEOF
17999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18006 # Check this now, so that we will NOT find the above functions in ncurses.
18007 # That is because we have not set up to link ncurses in lib-src.
18008 # It's better to believe a function is not available
18009 # than to expect to find it in ncurses.
18011 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18012 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18013 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 ac_check_lib_save_LIBS
=$LIBS
18017 LIBS
="-lncurses $LIBS"
18018 cat >conftest.
$ac_ext <<_ACEOF
18021 cat confdefs.h
>>conftest.
$ac_ext
18022 cat >>conftest.
$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18025 /* Override any gcc2 internal prototype to avoid an error. */
18029 /* We use char because int might match the return type of a gcc2
18030 builtin and then its argument prototype would still apply. */
18040 rm -f conftest.
$ac_objext conftest
$ac_exeext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042 (eval $ac_link) 2>conftest.er1
18044 grep -v '^ *+' conftest.er1
>conftest.err
18046 cat conftest.err
>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try
='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_lib_ncurses_tparm
=yes
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.
$ac_ext >&5
18066 ac_cv_lib_ncurses_tparm
=no
18068 rm -f conftest.err conftest.
$ac_objext \
18069 conftest
$ac_exeext conftest.
$ac_ext
18070 LIBS
=$ac_check_lib_save_LIBS
18072 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18073 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18074 if test $ac_cv_lib_ncurses_tparm = yes; then
18075 cat >>confdefs.h
<<_ACEOF
18076 #define HAVE_LIBNCURSES 1
18079 LIBS
="-lncurses $LIBS"
18084 # Do we need the Hesiod library to provide the support routines?
18085 if test "$with_hesiod" = yes ; then
18086 # Don't set $LIBS here -- see comments above.
18088 echo "$as_me:$LINENO: checking for res_send" >&5
18089 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18090 if test "${ac_cv_func_res_send+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 cat >conftest.
$ac_ext <<_ACEOF
18096 cat confdefs.h
>>conftest.
$ac_ext
18097 cat >>conftest.
$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18101 #define res_send innocuous_res_send
18103 /* System header to define __stub macros and hopefully few prototypes,
18104 which can conflict with char res_send (); below.
18105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18106 <limits.h> exists even on freestanding compilers. */
18109 # include <limits.h>
18111 # include <assert.h>
18116 /* Override any gcc2 internal prototype to avoid an error. */
18121 /* We use char because int might match the return type of a gcc2
18122 builtin and then its argument prototype would still apply. */
18124 /* The GNU C library defines this for functions which it implements
18125 to always fail with ENOSYS. Some functions are actually named
18126 something starting with __ and the normal name is an alias. */
18127 #if defined (__stub_res_send) || defined (__stub___res_send)
18130 char (*f) () = res_send;
18139 return f != res_send;
18144 rm -f conftest.
$ac_objext conftest
$ac_exeext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18146 (eval $ac_link) 2>conftest.er1
18148 grep -v '^ *+' conftest.er1
>conftest.err
18150 cat conftest.err
>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try
='test -s conftest$ac_exeext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_func_res_send
=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.
$ac_ext >&5
18170 ac_cv_func_res_send
=no
18172 rm -f conftest.err conftest.
$ac_objext \
18173 conftest
$ac_exeext conftest.
$ac_ext
18175 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18176 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18177 if test $ac_cv_func_res_send = yes; then
18180 echo "$as_me:$LINENO: checking for __res_send" >&5
18181 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18182 if test "${ac_cv_func___res_send+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 cat >conftest.
$ac_ext <<_ACEOF
18188 cat confdefs.h
>>conftest.
$ac_ext
18189 cat >>conftest.
$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18193 #define __res_send innocuous___res_send
18195 /* System header to define __stub macros and hopefully few prototypes,
18196 which can conflict with char __res_send (); below.
18197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18198 <limits.h> exists even on freestanding compilers. */
18201 # include <limits.h>
18203 # include <assert.h>
18208 /* Override any gcc2 internal prototype to avoid an error. */
18213 /* We use char because int might match the return type of a gcc2
18214 builtin and then its argument prototype would still apply. */
18215 char __res_send ();
18216 /* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219 #if defined (__stub___res_send) || defined (__stub_____res_send)
18222 char (*f) () = __res_send;
18231 return f != __res_send;
18236 rm -f conftest.
$ac_objext conftest
$ac_exeext
18237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18238 (eval $ac_link) 2>conftest.er1
18240 grep -v '^ *+' conftest.er1
>conftest.err
18242 cat conftest.err
>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
18245 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; } &&
18251 { ac_try
='test -s conftest$ac_exeext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 ac_cv_func___res_send
=yes
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.
$ac_ext >&5
18262 ac_cv_func___res_send
=no
18264 rm -f conftest.err conftest.
$ac_objext \
18265 conftest
$ac_exeext conftest.
$ac_ext
18267 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18268 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18269 if test $ac_cv_func___res_send = yes; then
18272 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18273 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18274 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 ac_check_lib_save_LIBS
=$LIBS
18278 LIBS
="-lresolv $LIBS"
18279 cat >conftest.
$ac_ext <<_ACEOF
18282 cat confdefs.h
>>conftest.
$ac_ext
18283 cat >>conftest.
$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18286 /* Override any gcc2 internal prototype to avoid an error. */
18290 /* We use char because int might match the return type of a gcc2
18291 builtin and then its argument prototype would still apply. */
18301 rm -f conftest.
$ac_objext conftest
$ac_exeext
18302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18303 (eval $ac_link) 2>conftest.er1
18305 grep -v '^ *+' conftest.er1
>conftest.err
18307 cat conftest.err
>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try
='test -s conftest$ac_exeext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_cv_lib_resolv_res_send
=yes
18324 echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.
$ac_ext >&5
18327 ac_cv_lib_resolv_res_send
=no
18329 rm -f conftest.err conftest.
$ac_objext \
18330 conftest
$ac_exeext conftest.
$ac_ext
18331 LIBS
=$ac_check_lib_save_LIBS
18333 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18334 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18335 if test $ac_cv_lib_resolv_res_send = yes; then
18338 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18339 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18340 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 ac_check_lib_save_LIBS
=$LIBS
18344 LIBS
="-lresolv $LIBS"
18345 cat >conftest.
$ac_ext <<_ACEOF
18348 cat confdefs.h
>>conftest.
$ac_ext
18349 cat >>conftest.
$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18352 /* Override any gcc2 internal prototype to avoid an error. */
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18358 char __res_send ();
18367 rm -f conftest.
$ac_objext conftest
$ac_exeext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>conftest.er1
18371 grep -v '^ *+' conftest.er1
>conftest.err
18373 cat conftest.err
>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try
='test -s conftest$ac_exeext'
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_lib_resolv___res_send
=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.
$ac_ext >&5
18393 ac_cv_lib_resolv___res_send
=no
18395 rm -f conftest.err conftest.
$ac_objext \
18396 conftest
$ac_exeext conftest.
$ac_ext
18397 LIBS
=$ac_check_lib_save_LIBS
18399 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18400 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18401 if test $ac_cv_lib_resolv___res_send = yes; then
18411 if test "$resolv" = yes ; then
18414 cat >>confdefs.h
<<\_ACEOF
18415 #define HAVE_LIBRESOLV 1
18421 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18422 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18423 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 cat >conftest.
$ac_ext <<_ACEOF
18429 cat confdefs.h
>>conftest.
$ac_ext
18430 cat >>conftest.
$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18434 #define hes_getmailhost innocuous_hes_getmailhost
18436 /* System header to define __stub macros and hopefully few prototypes,
18437 which can conflict with char hes_getmailhost (); below.
18438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 <limits.h> exists even on freestanding compilers. */
18442 # include <limits.h>
18444 # include <assert.h>
18447 #undef hes_getmailhost
18449 /* Override any gcc2 internal prototype to avoid an error. */
18454 /* We use char because int might match the return type of a gcc2
18455 builtin and then its argument prototype would still apply. */
18456 char hes_getmailhost ();
18457 /* The GNU C library defines this for functions which it implements
18458 to always fail with ENOSYS. Some functions are actually named
18459 something starting with __ and the normal name is an alias. */
18460 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18463 char (*f) () = hes_getmailhost;
18472 return f != hes_getmailhost;
18477 rm -f conftest.
$ac_objext conftest
$ac_exeext
18478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18479 (eval $ac_link) 2>conftest.er1
18481 grep -v '^ *+' conftest.er1
>conftest.err
18483 cat conftest.err
>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try
='test -s conftest$ac_exeext'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 ac_cv_func_hes_getmailhost
=yes
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.
$ac_ext >&5
18503 ac_cv_func_hes_getmailhost
=no
18505 rm -f conftest.err conftest.
$ac_objext \
18506 conftest
$ac_exeext conftest.
$ac_ext
18508 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18509 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18510 if test $ac_cv_func_hes_getmailhost = yes; then
18513 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18514 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18515 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_check_lib_save_LIBS
=$LIBS
18519 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18520 cat >conftest.
$ac_ext <<_ACEOF
18523 cat confdefs.h
>>conftest.
$ac_ext
18524 cat >>conftest.
$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any gcc2 internal prototype to avoid an error. */
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18533 char hes_getmailhost ();
18537 hes_getmailhost ();
18542 rm -f conftest.
$ac_objext conftest
$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1
>conftest.err
18548 cat conftest.err
>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try
='test -s conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_lib_hesiod_hes_getmailhost
=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.
$ac_ext >&5
18568 ac_cv_lib_hesiod_hes_getmailhost
=no
18570 rm -f conftest.err conftest.
$ac_objext \
18571 conftest
$ac_exeext conftest.
$ac_ext
18572 LIBS
=$ac_check_lib_save_LIBS
18574 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18575 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18576 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18578 cat >>confdefs.h
<<\_ACEOF
18579 #define HAVE_LIBHESIOD 1
18590 # These tell us which Kerberos-related libraries to use.
18591 if test "${with_kerberos+set}" = set; then
18593 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18594 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18595 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 ac_check_lib_save_LIBS
=$LIBS
18599 LIBS
="-lcom_err $LIBS"
18600 cat >conftest.
$ac_ext <<_ACEOF
18603 cat confdefs.h
>>conftest.
$ac_ext
18604 cat >>conftest.
$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18607 /* Override any gcc2 internal prototype to avoid an error. */
18611 /* We use char because int might match the return type of a gcc2
18612 builtin and then its argument prototype would still apply. */
18622 rm -f conftest.
$ac_objext conftest
$ac_exeext
18623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18624 (eval $ac_link) 2>conftest.er1
18626 grep -v '^ *+' conftest.er1
>conftest.err
18628 cat conftest.err
>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try
='test -s conftest$ac_exeext'
18638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639 (eval $ac_try) 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_cv_lib_com_err_com_err
=yes
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.
$ac_ext >&5
18648 ac_cv_lib_com_err_com_err
=no
18650 rm -f conftest.err conftest.
$ac_objext \
18651 conftest
$ac_exeext conftest.
$ac_ext
18652 LIBS
=$ac_check_lib_save_LIBS
18654 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18655 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18656 if test $ac_cv_lib_com_err_com_err = yes; then
18657 cat >>confdefs.h
<<_ACEOF
18658 #define HAVE_LIBCOM_ERR 1
18661 LIBS
="-lcom_err $LIBS"
18666 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18667 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18668 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 ac_check_lib_save_LIBS
=$LIBS
18672 LIBS
="-lk5crypto $LIBS"
18673 cat >conftest.
$ac_ext <<_ACEOF
18676 cat confdefs.h
>>conftest.
$ac_ext
18677 cat >>conftest.
$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18680 /* Override any gcc2 internal prototype to avoid an error. */
18684 /* We use char because int might match the return type of a gcc2
18685 builtin and then its argument prototype would still apply. */
18686 char mit_des_cbc_encrypt ();
18690 mit_des_cbc_encrypt ();
18695 rm -f conftest.
$ac_objext conftest
$ac_exeext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697 (eval $ac_link) 2>conftest.er1
18699 grep -v '^ *+' conftest.er1
>conftest.err
18701 cat conftest.err
>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
18704 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try
='test -s conftest$ac_exeext'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.
$ac_ext >&5
18721 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18723 rm -f conftest.err conftest.
$ac_objext \
18724 conftest
$ac_exeext conftest.
$ac_ext
18725 LIBS
=$ac_check_lib_save_LIBS
18727 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18728 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18729 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18730 cat >>confdefs.h
<<_ACEOF
18731 #define HAVE_LIBK5CRYPTO 1
18734 LIBS
="-lk5crypto $LIBS"
18739 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18740 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18741 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 ac_check_lib_save_LIBS
=$LIBS
18745 LIBS
="-lcrypto $LIBS"
18746 cat >conftest.
$ac_ext <<_ACEOF
18749 cat confdefs.h
>>conftest.
$ac_ext
18750 cat >>conftest.
$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18753 /* Override any gcc2 internal prototype to avoid an error. */
18757 /* We use char because int might match the return type of a gcc2
18758 builtin and then its argument prototype would still apply. */
18759 char mit_des_cbc_encrypt ();
18763 mit_des_cbc_encrypt ();
18768 rm -f conftest.
$ac_objext conftest
$ac_exeext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18770 (eval $ac_link) 2>conftest.er1
18772 grep -v '^ *+' conftest.er1
>conftest.err
18774 cat conftest.err
>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try
='test -s conftest$ac_exeext'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.
$ac_ext >&5
18794 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18796 rm -f conftest.err conftest.
$ac_objext \
18797 conftest
$ac_exeext conftest.
$ac_ext
18798 LIBS
=$ac_check_lib_save_LIBS
18800 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18801 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18802 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18803 cat >>confdefs.h
<<_ACEOF
18804 #define HAVE_LIBCRYPTO 1
18807 LIBS
="-lcrypto $LIBS"
18812 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18813 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18814 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18817 ac_check_lib_save_LIBS
=$LIBS
18818 LIBS
="-lkrb5 $LIBS"
18819 cat >conftest.
$ac_ext <<_ACEOF
18822 cat confdefs.h
>>conftest.
$ac_ext
18823 cat >>conftest.
$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18826 /* Override any gcc2 internal prototype to avoid an error. */
18830 /* We use char because int might match the return type of a gcc2
18831 builtin and then its argument prototype would still apply. */
18832 char krb5_init_context ();
18836 krb5_init_context ();
18841 rm -f conftest.
$ac_objext conftest
$ac_exeext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18843 (eval $ac_link) 2>conftest.er1
18845 grep -v '^ *+' conftest.er1
>conftest.err
18847 cat conftest.err
>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try
='test -s conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_lib_krb5_krb5_init_context
=yes
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.
$ac_ext >&5
18867 ac_cv_lib_krb5_krb5_init_context
=no
18869 rm -f conftest.err conftest.
$ac_objext \
18870 conftest
$ac_exeext conftest.
$ac_ext
18871 LIBS
=$ac_check_lib_save_LIBS
18873 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18874 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18875 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18876 cat >>confdefs.h
<<_ACEOF
18877 #define HAVE_LIBKRB5 1
18880 LIBS
="-lkrb5 $LIBS"
18884 if test "${with_kerberos5+set}" != set; then
18886 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18887 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18888 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 ac_check_lib_save_LIBS
=$LIBS
18892 LIBS
="-ldes425 $LIBS"
18893 cat >conftest.
$ac_ext <<_ACEOF
18896 cat confdefs.h
>>conftest.
$ac_ext
18897 cat >>conftest.
$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18900 /* Override any gcc2 internal prototype to avoid an error. */
18904 /* We use char because int might match the return type of a gcc2
18905 builtin and then its argument prototype would still apply. */
18906 char des_cbc_encrypt ();
18910 des_cbc_encrypt ();
18915 rm -f conftest.
$ac_objext conftest
$ac_exeext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18917 (eval $ac_link) 2>conftest.er1
18919 grep -v '^ *+' conftest.er1
>conftest.err
18921 cat conftest.err
>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try
='test -s conftest$ac_exeext'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_lib_des425_des_cbc_encrypt
=yes
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.
$ac_ext >&5
18941 ac_cv_lib_des425_des_cbc_encrypt
=no
18943 rm -f conftest.err conftest.
$ac_objext \
18944 conftest
$ac_exeext conftest.
$ac_ext
18945 LIBS
=$ac_check_lib_save_LIBS
18947 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18948 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18949 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18950 cat >>confdefs.h
<<_ACEOF
18951 #define HAVE_LIBDES425 1
18954 LIBS
="-ldes425 $LIBS"
18958 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18959 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18960 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 ac_check_lib_save_LIBS
=$LIBS
18965 cat >conftest.
$ac_ext <<_ACEOF
18968 cat confdefs.h
>>conftest.
$ac_ext
18969 cat >>conftest.
$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18972 /* Override any gcc2 internal prototype to avoid an error. */
18976 /* We use char because int might match the return type of a gcc2
18977 builtin and then its argument prototype would still apply. */
18978 char des_cbc_encrypt ();
18982 des_cbc_encrypt ();
18987 rm -f conftest.
$ac_objext conftest
$ac_exeext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18989 (eval $ac_link) 2>conftest.er1
18991 grep -v '^ *+' conftest.er1
>conftest.err
18993 cat conftest.err
>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try
='test -s conftest$ac_exeext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_lib_des_des_cbc_encrypt
=yes
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.
$ac_ext >&5
19013 ac_cv_lib_des_des_cbc_encrypt
=no
19015 rm -f conftest.err conftest.
$ac_objext \
19016 conftest
$ac_exeext conftest.
$ac_ext
19017 LIBS
=$ac_check_lib_save_LIBS
19019 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19020 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19021 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19022 cat >>confdefs.h
<<_ACEOF
19023 #define HAVE_LIBDES 1
19033 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19034 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19035 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 ac_check_lib_save_LIBS
=$LIBS
19039 LIBS
="-lkrb4 $LIBS"
19040 cat >conftest.
$ac_ext <<_ACEOF
19043 cat confdefs.h
>>conftest.
$ac_ext
19044 cat >>conftest.
$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19047 /* Override any gcc2 internal prototype to avoid an error. */
19051 /* We use char because int might match the return type of a gcc2
19052 builtin and then its argument prototype would still apply. */
19053 char krb_get_cred ();
19062 rm -f conftest.
$ac_objext conftest
$ac_exeext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19064 (eval $ac_link) 2>conftest.er1
19066 grep -v '^ *+' conftest.er1
>conftest.err
19068 cat conftest.err
>&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
19071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try
='test -s conftest$ac_exeext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_lib_krb4_krb_get_cred
=yes
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.
$ac_ext >&5
19088 ac_cv_lib_krb4_krb_get_cred
=no
19090 rm -f conftest.err conftest.
$ac_objext \
19091 conftest
$ac_exeext conftest.
$ac_ext
19092 LIBS
=$ac_check_lib_save_LIBS
19094 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19095 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19096 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19097 cat >>confdefs.h
<<_ACEOF
19098 #define HAVE_LIBKRB4 1
19101 LIBS
="-lkrb4 $LIBS"
19105 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19106 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19107 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 ac_check_lib_save_LIBS
=$LIBS
19112 cat >conftest.
$ac_ext <<_ACEOF
19115 cat confdefs.h
>>conftest.
$ac_ext
19116 cat >>conftest.
$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19119 /* Override any gcc2 internal prototype to avoid an error. */
19123 /* We use char because int might match the return type of a gcc2
19124 builtin and then its argument prototype would still apply. */
19125 char krb_get_cred ();
19134 rm -f conftest.
$ac_objext conftest
$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>conftest.er1
19138 grep -v '^ *+' conftest.er1
>conftest.err
19140 cat conftest.err
>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try
='test -s conftest$ac_exeext'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_lib_krb_krb_get_cred
=yes
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.
$ac_ext >&5
19160 ac_cv_lib_krb_krb_get_cred
=no
19162 rm -f conftest.err conftest.
$ac_objext \
19163 conftest
$ac_exeext conftest.
$ac_ext
19164 LIBS
=$ac_check_lib_save_LIBS
19166 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19167 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19168 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19169 cat >>confdefs.h
<<_ACEOF
19170 #define HAVE_LIBKRB 1
19181 if test "${with_kerberos5+set}" = set; then
19183 for ac_header
in krb5.h
19185 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19187 echo "$as_me:$LINENO: checking for $ac_header" >&5
19188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19195 # Is the header compilable?
19196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19198 cat >conftest.
$ac_ext <<_ACEOF
19201 cat confdefs.h
>>conftest.
$ac_ext
19202 cat >>conftest.
$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19204 $ac_includes_default
19205 #include <$ac_header>
19207 rm -f conftest.
$ac_objext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19209 (eval $ac_compile) 2>conftest.er1
19211 grep -v '^ *+' conftest.er1
>conftest.err
19213 cat conftest.err
>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; } &&
19222 { ac_try
='test -s conftest.$ac_objext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_header_compiler
=yes
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.
$ac_ext >&5
19233 ac_header_compiler
=no
19235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19237 echo "${ECHO_T}$ac_header_compiler" >&6
19239 # Is the header present?
19240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19242 cat >conftest.
$ac_ext <<_ACEOF
19245 cat confdefs.h
>>conftest.
$ac_ext
19246 cat >>conftest.
$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <$ac_header>
19250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19251 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19253 grep -v '^ *+' conftest.er1
>conftest.err
19255 cat conftest.err
>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } >/dev
/null
; then
19258 if test -s conftest.err
; then
19259 ac_cpp_err
=$ac_c_preproc_warn_flag
19260 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19267 if test -z "$ac_cpp_err"; then
19268 ac_header_preproc
=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.
$ac_ext >&5
19273 ac_header_preproc
=no
19275 rm -f conftest.err conftest.
$ac_ext
19276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6
19279 # So? What about this header?
19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19286 ac_header_preproc
=yes
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19303 ## ------------------------------------------ ##
19304 ## Report this to the AC_PACKAGE_NAME lists. ##
19305 ## ------------------------------------------ ##
19308 sed "s/^/$as_me: WARNING: /" >&2
19311 echo "$as_me:$LINENO: checking for $ac_header" >&5
19312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 eval "$as_ac_Header=\$ac_header_preproc"
19318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19323 cat >>confdefs.h
<<_ACEOF
19324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19333 for ac_header
in des.h
19335 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19337 echo "$as_me:$LINENO: checking for $ac_header" >&5
19338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19345 # Is the header compilable?
19346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19348 cat >conftest.
$ac_ext <<_ACEOF
19351 cat confdefs.h
>>conftest.
$ac_ext
19352 cat >>conftest.
$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19354 $ac_includes_default
19355 #include <$ac_header>
19357 rm -f conftest.
$ac_objext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359 (eval $ac_compile) 2>conftest.er1
19361 grep -v '^ *+' conftest.er1
>conftest.err
19363 cat conftest.err
>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try
='test -s conftest.$ac_objext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_header_compiler
=yes
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.
$ac_ext >&5
19383 ac_header_compiler
=no
19385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19387 echo "${ECHO_T}$ac_header_compiler" >&6
19389 # Is the header present?
19390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19392 cat >conftest.
$ac_ext <<_ACEOF
19395 cat confdefs.h
>>conftest.
$ac_ext
19396 cat >>conftest.
$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 #include <$ac_header>
19400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19403 grep -v '^ *+' conftest.er1
>conftest.err
19405 cat conftest.err
>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } >/dev
/null
; then
19408 if test -s conftest.err
; then
19409 ac_cpp_err
=$ac_c_preproc_warn_flag
19410 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19417 if test -z "$ac_cpp_err"; then
19418 ac_header_preproc
=yes
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.
$ac_ext >&5
19423 ac_header_preproc
=no
19425 rm -f conftest.err conftest.
$ac_ext
19426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19427 echo "${ECHO_T}$ac_header_preproc" >&6
19429 # So? What about this header?
19430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19436 ac_header_preproc
=yes
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19453 ## ------------------------------------------ ##
19454 ## Report this to the AC_PACKAGE_NAME lists. ##
19455 ## ------------------------------------------ ##
19458 sed "s/^/$as_me: WARNING: /" >&2
19461 echo "$as_me:$LINENO: checking for $ac_header" >&5
19462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 eval "$as_ac_Header=\$ac_header_preproc"
19468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19473 cat >>confdefs.h
<<_ACEOF
19474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19479 for ac_header
in kerberosIV
/des.h
19481 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19483 echo "$as_me:$LINENO: checking for $ac_header" >&5
19484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19491 # Is the header compilable?
19492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19494 cat >conftest.
$ac_ext <<_ACEOF
19497 cat confdefs.h
>>conftest.
$ac_ext
19498 cat >>conftest.
$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 $ac_includes_default
19501 #include <$ac_header>
19503 rm -f conftest.
$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19507 grep -v '^ *+' conftest.er1
>conftest.err
19509 cat conftest.err
>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try
='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_header_compiler
=yes
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.
$ac_ext >&5
19529 ac_header_compiler
=no
19531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19533 echo "${ECHO_T}$ac_header_compiler" >&6
19535 # Is the header present?
19536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19538 cat >conftest.
$ac_ext <<_ACEOF
19541 cat confdefs.h
>>conftest.
$ac_ext
19542 cat >>conftest.
$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544 #include <$ac_header>
19546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19547 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19549 grep -v '^ *+' conftest.er1
>conftest.err
19551 cat conftest.err
>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } >/dev
/null
; then
19554 if test -s conftest.err
; then
19555 ac_cpp_err
=$ac_c_preproc_warn_flag
19556 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19563 if test -z "$ac_cpp_err"; then
19564 ac_header_preproc
=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.
$ac_ext >&5
19569 ac_header_preproc
=no
19571 rm -f conftest.err conftest.
$ac_ext
19572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19573 echo "${ECHO_T}$ac_header_preproc" >&6
19575 # So? What about this header?
19576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19582 ac_header_preproc
=yes
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19599 ## ------------------------------------------ ##
19600 ## Report this to the AC_PACKAGE_NAME lists. ##
19601 ## ------------------------------------------ ##
19604 sed "s/^/$as_me: WARNING: /" >&2
19607 echo "$as_me:$LINENO: checking for $ac_header" >&5
19608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 eval "$as_ac_Header=\$ac_header_preproc"
19614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19619 cat >>confdefs.h
<<_ACEOF
19620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19625 for ac_header
in kerberos
/des.h
19627 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19629 echo "$as_me:$LINENO: checking for $ac_header" >&5
19630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19637 # Is the header compilable?
19638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19640 cat >conftest.
$ac_ext <<_ACEOF
19643 cat confdefs.h
>>conftest.
$ac_ext
19644 cat >>conftest.
$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 $ac_includes_default
19647 #include <$ac_header>
19649 rm -f conftest.
$ac_objext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651 (eval $ac_compile) 2>conftest.er1
19653 grep -v '^ *+' conftest.er1
>conftest.err
19655 cat conftest.err
>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; } &&
19664 { ac_try
='test -s conftest.$ac_objext'
19665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666 (eval $ac_try) 2>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; }; then
19670 ac_header_compiler
=yes
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.
$ac_ext >&5
19675 ac_header_compiler
=no
19677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19679 echo "${ECHO_T}$ac_header_compiler" >&6
19681 # Is the header present?
19682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19684 cat >conftest.
$ac_ext <<_ACEOF
19687 cat confdefs.h
>>conftest.
$ac_ext
19688 cat >>conftest.
$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19690 #include <$ac_header>
19692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19693 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19695 grep -v '^ *+' conftest.er1
>conftest.err
19697 cat conftest.err
>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } >/dev
/null
; then
19700 if test -s conftest.err
; then
19701 ac_cpp_err
=$ac_c_preproc_warn_flag
19702 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19709 if test -z "$ac_cpp_err"; then
19710 ac_header_preproc
=yes
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.
$ac_ext >&5
19715 ac_header_preproc
=no
19717 rm -f conftest.err conftest.
$ac_ext
19718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19719 echo "${ECHO_T}$ac_header_preproc" >&6
19721 # So? What about this header?
19722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19728 ac_header_preproc
=yes
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19745 ## ------------------------------------------ ##
19746 ## Report this to the AC_PACKAGE_NAME lists. ##
19747 ## ------------------------------------------ ##
19750 sed "s/^/$as_me: WARNING: /" >&2
19753 echo "$as_me:$LINENO: checking for $ac_header" >&5
19754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 eval "$as_ac_Header=\$ac_header_preproc"
19760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19765 cat >>confdefs.h
<<_ACEOF
19766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19782 for ac_header
in krb.h
19784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo "$as_me:$LINENO: checking for $ac_header" >&5
19787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19794 # Is the header compilable?
19795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19796 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
19804 #include <$ac_header>
19806 rm -f conftest.
$ac_objext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808 (eval $ac_compile) 2>conftest.er1
19810 grep -v '^ *+' conftest.er1
>conftest.err
19812 cat conftest.err
>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try
='test -s conftest.$ac_objext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_header_compiler
=yes
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.
$ac_ext >&5
19832 ac_header_compiler
=no
19834 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19836 echo "${ECHO_T}$ac_header_compiler" >&6
19838 # Is the header present?
19839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19841 cat >conftest.
$ac_ext <<_ACEOF
19844 cat confdefs.h
>>conftest.
$ac_ext
19845 cat >>conftest.
$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 #include <$ac_header>
19849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19852 grep -v '^ *+' conftest.er1
>conftest.err
19854 cat conftest.err
>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } >/dev
/null
; then
19857 if test -s conftest.err
; then
19858 ac_cpp_err
=$ac_c_preproc_warn_flag
19859 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19866 if test -z "$ac_cpp_err"; then
19867 ac_header_preproc
=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.
$ac_ext >&5
19872 ac_header_preproc
=no
19874 rm -f conftest.err conftest.
$ac_ext
19875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19876 echo "${ECHO_T}$ac_header_preproc" >&6
19878 # So? What about this header?
19879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19885 ac_header_preproc
=yes
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19902 ## ------------------------------------------ ##
19903 ## Report this to the AC_PACKAGE_NAME lists. ##
19904 ## ------------------------------------------ ##
19907 sed "s/^/$as_me: WARNING: /" >&2
19910 echo "$as_me:$LINENO: checking for $ac_header" >&5
19911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 eval "$as_ac_Header=\$ac_header_preproc"
19917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922 cat >>confdefs.h
<<_ACEOF
19923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19928 for ac_header
in kerberosIV
/krb.h
19930 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19932 echo "$as_me:$LINENO: checking for $ac_header" >&5
19933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19940 # Is the header compilable?
19941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19943 cat >conftest.
$ac_ext <<_ACEOF
19946 cat confdefs.h
>>conftest.
$ac_ext
19947 cat >>conftest.
$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19950 #include <$ac_header>
19952 rm -f conftest.
$ac_objext
19953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19954 (eval $ac_compile) 2>conftest.er1
19956 grep -v '^ *+' conftest.er1
>conftest.err
19958 cat conftest.err
>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
19961 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try
='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19973 ac_header_compiler
=yes
19975 echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.
$ac_ext >&5
19978 ac_header_compiler
=no
19980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19982 echo "${ECHO_T}$ac_header_compiler" >&6
19984 # Is the header present?
19985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19987 cat >conftest.
$ac_ext <<_ACEOF
19990 cat confdefs.h
>>conftest.
$ac_ext
19991 cat >>conftest.
$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19993 #include <$ac_header>
19995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19996 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19998 grep -v '^ *+' conftest.er1
>conftest.err
20000 cat conftest.err
>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } >/dev
/null
; then
20003 if test -s conftest.err
; then
20004 ac_cpp_err
=$ac_c_preproc_warn_flag
20005 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20012 if test -z "$ac_cpp_err"; then
20013 ac_header_preproc
=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.
$ac_ext >&5
20018 ac_header_preproc
=no
20020 rm -f conftest.err conftest.
$ac_ext
20021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20022 echo "${ECHO_T}$ac_header_preproc" >&6
20024 # So? What about this header?
20025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20031 ac_header_preproc
=yes
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20048 ## ------------------------------------------ ##
20049 ## Report this to the AC_PACKAGE_NAME lists. ##
20050 ## ------------------------------------------ ##
20053 sed "s/^/$as_me: WARNING: /" >&2
20056 echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 eval "$as_ac_Header=\$ac_header_preproc"
20063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20068 cat >>confdefs.h
<<_ACEOF
20069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20074 for ac_header
in kerberos
/krb.h
20076 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20078 echo "$as_me:$LINENO: checking for $ac_header" >&5
20079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20086 # Is the header compilable?
20087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20089 cat >conftest.
$ac_ext <<_ACEOF
20092 cat confdefs.h
>>conftest.
$ac_ext
20093 cat >>conftest.
$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 $ac_includes_default
20096 #include <$ac_header>
20098 rm -f conftest.
$ac_objext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20100 (eval $ac_compile) 2>conftest.er1
20102 grep -v '^ *+' conftest.er1
>conftest.err
20104 cat conftest.err
>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try
='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 ac_header_compiler
=yes
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.
$ac_ext >&5
20124 ac_header_compiler
=no
20126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20128 echo "${ECHO_T}$ac_header_compiler" >&6
20130 # Is the header present?
20131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20133 cat >conftest.
$ac_ext <<_ACEOF
20136 cat confdefs.h
>>conftest.
$ac_ext
20137 cat >>conftest.
$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 #include <$ac_header>
20141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20144 grep -v '^ *+' conftest.er1
>conftest.err
20146 cat conftest.err
>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } >/dev
/null
; then
20149 if test -s conftest.err
; then
20150 ac_cpp_err
=$ac_c_preproc_warn_flag
20151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20158 if test -z "$ac_cpp_err"; then
20159 ac_header_preproc
=yes
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.
$ac_ext >&5
20164 ac_header_preproc
=no
20166 rm -f conftest.err conftest.
$ac_ext
20167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20168 echo "${ECHO_T}$ac_header_preproc" >&6
20170 # So? What about this header?
20171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20177 ac_header_preproc
=yes
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20194 ## ------------------------------------------ ##
20195 ## Report this to the AC_PACKAGE_NAME lists. ##
20196 ## ------------------------------------------ ##
20199 sed "s/^/$as_me: WARNING: /" >&2
20202 echo "$as_me:$LINENO: checking for $ac_header" >&5
20203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 eval "$as_ac_Header=\$ac_header_preproc"
20209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20214 cat >>confdefs.h
<<_ACEOF
20215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20232 for ac_header
in com_err.h
20234 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20236 echo "$as_me:$LINENO: checking for $ac_header" >&5
20237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20244 # Is the header compilable?
20245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20247 cat >conftest.
$ac_ext <<_ACEOF
20250 cat confdefs.h
>>conftest.
$ac_ext
20251 cat >>conftest.
$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 $ac_includes_default
20254 #include <$ac_header>
20256 rm -f conftest.
$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258 (eval $ac_compile) 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); } &&
20265 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try
='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_header_compiler
=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.
$ac_ext >&5
20282 ac_header_compiler
=no
20284 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20286 echo "${ECHO_T}$ac_header_compiler" >&6
20288 # Is the header present?
20289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20291 cat >conftest.
$ac_ext <<_ACEOF
20294 cat confdefs.h
>>conftest.
$ac_ext
20295 cat >>conftest.
$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 #include <$ac_header>
20299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20302 grep -v '^ *+' conftest.er1
>conftest.err
20304 cat conftest.err
>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } >/dev
/null
; then
20307 if test -s conftest.err
; then
20308 ac_cpp_err
=$ac_c_preproc_warn_flag
20309 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20316 if test -z "$ac_cpp_err"; then
20317 ac_header_preproc
=yes
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.
$ac_ext >&5
20322 ac_header_preproc
=no
20324 rm -f conftest.err conftest.
$ac_ext
20325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20326 echo "${ECHO_T}$ac_header_preproc" >&6
20328 # So? What about this header?
20329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20335 ac_header_preproc
=yes
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20352 ## ------------------------------------------ ##
20353 ## Report this to the AC_PACKAGE_NAME lists. ##
20354 ## ------------------------------------------ ##
20357 sed "s/^/$as_me: WARNING: /" >&2
20360 echo "$as_me:$LINENO: checking for $ac_header" >&5
20361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 eval "$as_ac_Header=\$ac_header_preproc"
20367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20372 cat >>confdefs.h
<<_ACEOF
20373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20382 # Solaris requires -lintl if you want strerror (which calls dgettext)
20383 # to return localized messages.
20385 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20386 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20387 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 ac_check_lib_save_LIBS
=$LIBS
20391 LIBS
="-lintl $LIBS"
20392 cat >conftest.
$ac_ext <<_ACEOF
20395 cat confdefs.h
>>conftest.
$ac_ext
20396 cat >>conftest.
$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20399 /* Override any gcc2 internal prototype to avoid an error. */
20403 /* We use char because int might match the return type of a gcc2
20404 builtin and then its argument prototype would still apply. */
20414 rm -f conftest.
$ac_objext conftest
$ac_exeext
20415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20416 (eval $ac_link) 2>conftest.er1
20418 grep -v '^ *+' conftest.er1
>conftest.err
20420 cat conftest.err
>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; } &&
20429 { ac_try
='test -s conftest$ac_exeext'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; }; then
20435 ac_cv_lib_intl_dgettext
=yes
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.
$ac_ext >&5
20440 ac_cv_lib_intl_dgettext
=no
20442 rm -f conftest.err conftest.
$ac_objext \
20443 conftest
$ac_exeext conftest.
$ac_ext
20444 LIBS
=$ac_check_lib_save_LIBS
20446 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20447 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20448 if test $ac_cv_lib_intl_dgettext = yes; then
20449 cat >>confdefs.h
<<_ACEOF
20450 #define HAVE_LIBINTL 1
20453 LIBS
="-lintl $LIBS"
20458 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20459 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20460 if test "${emacs_cv_localtime_cache+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 if test x
$ac_cv_func_tzset = xyes
; then
20464 if test "$cross_compiling" = yes; then
20465 # If we have tzset, assume the worst when cross-compiling.
20466 emacs_cv_localtime_cache
=yes
20468 cat >conftest.
$ac_ext <<_ACEOF
20471 cat confdefs.h
>>conftest.
$ac_ext
20472 cat >>conftest.
$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20475 extern char **environ;
20479 for (to = from = environ; (*to = *from); from++)
20480 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20483 char TZ_GMT0[] = "TZ=GMT0";
20484 char TZ_PST8[] = "TZ=PST8";
20487 time_t now = time ((time_t *) 0);
20488 int hour_GMT0, hour_unset;
20489 if (putenv (TZ_GMT0) != 0)
20491 hour_GMT0 = localtime (&now)->tm_hour;
20493 hour_unset = localtime (&now)->tm_hour;
20494 if (putenv (TZ_PST8) != 0)
20496 if (localtime (&now)->tm_hour == hour_GMT0)
20499 if (localtime (&now)->tm_hour != hour_unset)
20504 rm -f conftest
$ac_exeext
20505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20506 (eval $ac_link) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20515 emacs_cv_localtime_cache
=no
20517 echo "$as_me: program exited with status $ac_status" >&5
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.
$ac_ext >&5
20521 ( exit $ac_status )
20522 emacs_cv_localtime_cache
=yes
20524 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20527 # If we lack tzset, report that localtime does not cache TZ,
20528 # since we can't invalidate the cache if we don't have tzset.
20529 emacs_cv_localtime_cache
=no
20532 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20533 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20534 if test $emacs_cv_localtime_cache = yes; then
20536 cat >>confdefs.h
<<\_ACEOF
20537 #define LOCALTIME_CACHE 1
20542 if test "x$HAVE_TIMEVAL" = xyes
; then
20544 for ac_func
in gettimeofday
20546 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20547 echo "$as_me:$LINENO: checking for $ac_func" >&5
20548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20549 if eval "test \"\${$as_ac_var+set}\" = set"; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 cat >conftest.
$ac_ext <<_ACEOF
20555 cat confdefs.h
>>conftest.
$ac_ext
20556 cat >>conftest.
$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20560 #define $ac_func innocuous_$ac_func
20562 /* System header to define __stub macros and hopefully few prototypes,
20563 which can conflict with char $ac_func (); below.
20564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20565 <limits.h> exists even on freestanding compilers. */
20568 # include <limits.h>
20570 # include <assert.h>
20575 /* Override any gcc2 internal prototype to avoid an error. */
20580 /* We use char because int might match the return type of a gcc2
20581 builtin and then its argument prototype would still apply. */
20583 /* The GNU C library defines this for functions which it implements
20584 to always fail with ENOSYS. Some functions are actually named
20585 something starting with __ and the normal name is an alias. */
20586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20589 char (*f) () = $ac_func;
20598 return f != $ac_func;
20603 rm -f conftest.
$ac_objext conftest
$ac_exeext
20604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20605 (eval $ac_link) 2>conftest.er1
20607 grep -v '^ *+' conftest.er1
>conftest.err
20609 cat conftest.err
>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
20612 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try
='test -s conftest$ac_exeext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 eval "$as_ac_var=yes"
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.
$ac_ext >&5
20629 eval "$as_ac_var=no"
20631 rm -f conftest.err conftest.
$ac_objext \
20632 conftest
$ac_exeext conftest.
$ac_ext
20634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20636 if test `eval echo '${'$as_ac_var'}'` = yes; then
20637 cat >>confdefs.h
<<_ACEOF
20638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20644 if test $ac_cv_func_gettimeofday = yes; then
20645 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20646 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20647 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 cat >conftest.
$ac_ext <<_ACEOF
20653 cat confdefs.h
>>conftest.
$ac_ext
20654 cat >>conftest.
$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20657 #ifdef TIME_WITH_SYS_TIME
20658 #include <sys/time.h>
20661 #ifdef HAVE_SYS_TIME_H
20662 #include <sys/time.h>
20670 struct timeval time;
20671 gettimeofday (&time, 0);
20676 rm -f conftest.
$ac_objext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678 (eval $ac_compile) 2>conftest.er1
20680 grep -v '^ *+' conftest.er1
>conftest.err
20682 cat conftest.err
>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try
='test -s conftest.$ac_objext'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 emacs_cv_gettimeofday_two_arguments
=yes
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.
$ac_ext >&5
20702 emacs_cv_gettimeofday_two_arguments
=no
20704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20706 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20707 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20708 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20710 cat >>confdefs.h
<<\_ACEOF
20711 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20718 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20719 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20720 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20721 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 cat >conftest.
$ac_ext <<_ACEOF
20727 cat confdefs.h
>>conftest.
$ac_ext
20728 cat >>conftest.
$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <sys/types.h>
20731 #include <$ac_cv_struct_tm>
20737 static struct tm ac_aggr;
20738 if (ac_aggr.tm_zone)
20744 rm -f conftest.
$ac_objext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746 (eval $ac_compile) 2>conftest.er1
20748 grep -v '^ *+' conftest.er1
>conftest.err
20750 cat conftest.err
>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; } &&
20759 { ac_try
='test -s conftest.$ac_objext'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 ac_cv_member_struct_tm_tm_zone
=yes
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.
$ac_ext >&5
20770 cat >conftest.
$ac_ext <<_ACEOF
20773 cat confdefs.h
>>conftest.
$ac_ext
20774 cat >>conftest.
$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 #include <sys/types.h>
20777 #include <$ac_cv_struct_tm>
20783 static struct tm ac_aggr;
20784 if (sizeof ac_aggr.tm_zone)
20790 rm -f conftest.
$ac_objext
20791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20792 (eval $ac_compile) 2>conftest.er1
20794 grep -v '^ *+' conftest.er1
>conftest.err
20796 cat conftest.err
>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } &&
20799 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try
='test -s conftest.$ac_objext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_member_struct_tm_tm_zone
=yes
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.
$ac_ext >&5
20816 ac_cv_member_struct_tm_tm_zone
=no
20818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20822 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20823 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20824 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20826 cat >>confdefs.h
<<_ACEOF
20827 #define HAVE_STRUCT_TM_TM_ZONE 1
20833 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20835 cat >>confdefs.h
<<\_ACEOF
20836 #define HAVE_TM_ZONE 1
20840 echo "$as_me:$LINENO: checking for tzname" >&5
20841 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20842 if test "${ac_cv_var_tzname+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 cat >conftest.
$ac_ext <<_ACEOF
20848 cat confdefs.h
>>conftest.
$ac_ext
20849 cat >>conftest.
$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20852 #ifndef tzname /* For SGI. */
20853 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20864 rm -f conftest.
$ac_objext conftest
$ac_exeext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20866 (eval $ac_link) 2>conftest.er1
20868 grep -v '^ *+' conftest.er1
>conftest.err
20870 cat conftest.err
>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; } &&
20879 { ac_try
='test -s conftest$ac_exeext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 ac_cv_var_tzname
=yes
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.
$ac_ext >&5
20890 ac_cv_var_tzname
=no
20892 rm -f conftest.err conftest.
$ac_objext \
20893 conftest
$ac_exeext conftest.
$ac_ext
20895 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20896 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20897 if test $ac_cv_var_tzname = yes; then
20899 cat >>confdefs.h
<<\_ACEOF
20900 #define HAVE_TZNAME 1
20907 if test "$ac_cv_func_gettimeofday" = yes; then
20908 echo "$as_me:$LINENO: checking for struct timezone" >&5
20909 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20910 if test "${emacs_cv_struct_timezone+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 cat >conftest.
$ac_ext <<_ACEOF
20916 cat confdefs.h
>>conftest.
$ac_ext
20917 cat >>conftest.
$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <sys/time.h>
20923 struct timezone tz;
20928 rm -f conftest.
$ac_objext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20930 (eval $ac_compile) 2>conftest.er1
20932 grep -v '^ *+' conftest.er1
>conftest.err
20934 cat conftest.err
>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try
='test -s conftest.$ac_objext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 if test "$cross_compiling" = yes; then
20950 emacs_cv_struct_timezone
=yes
20952 cat >conftest.
$ac_ext <<_ACEOF
20955 cat confdefs.h
>>conftest.
$ac_ext
20956 cat >>conftest.
$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20959 #ifdef TIME_WITH_SYS_TIME
20960 #include <sys/time.h>
20963 #ifdef HAVE_SYS_TIME_H
20964 #include <sys/time.h>
20970 struct timeval time;
20971 struct timezone dummy;
20972 exit (gettimeofday (&time, &dummy));
20975 rm -f conftest
$ac_exeext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20977 (eval $ac_link) 2>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; }; then
20986 emacs_cv_struct_timezone
=yes
20988 echo "$as_me: program exited with status $ac_status" >&5
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.
$ac_ext >&5
20992 ( exit $ac_status )
20993 emacs_cv_struct_timezone
=no
20995 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.
$ac_ext >&5
21001 emacs_cv_struct_timezone
=no
21003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21005 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21006 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21010 echo "$as_me:$LINENO: checking for socket" >&5
21011 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21012 if test "${ac_cv_func_socket+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 cat >conftest.
$ac_ext <<_ACEOF
21018 cat confdefs.h
>>conftest.
$ac_ext
21019 cat >>conftest.
$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21023 #define socket innocuous_socket
21025 /* System header to define __stub macros and hopefully few prototypes,
21026 which can conflict with char socket (); below.
21027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21028 <limits.h> exists even on freestanding compilers. */
21031 # include <limits.h>
21033 # include <assert.h>
21038 /* Override any gcc2 internal prototype to avoid an error. */
21043 /* We use char because int might match the return type of a gcc2
21044 builtin and then its argument prototype would still apply. */
21046 /* The GNU C library defines this for functions which it implements
21047 to always fail with ENOSYS. Some functions are actually named
21048 something starting with __ and the normal name is an alias. */
21049 #if defined (__stub_socket) || defined (__stub___socket)
21052 char (*f) () = socket;
21061 return f != socket;
21066 rm -f conftest.
$ac_objext conftest
$ac_exeext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21068 (eval $ac_link) 2>conftest.er1
21070 grep -v '^ *+' conftest.er1
>conftest.err
21072 cat conftest.err
>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try
='test -s conftest$ac_exeext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_func_socket
=yes
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.
$ac_ext >&5
21092 ac_cv_func_socket
=no
21094 rm -f conftest.err conftest.
$ac_objext \
21095 conftest
$ac_exeext conftest.
$ac_ext
21097 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21098 echo "${ECHO_T}$ac_cv_func_socket" >&6
21099 if test $ac_cv_func_socket = yes; then
21105 if test $ok_so_far = yes; then
21106 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21107 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21108 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21109 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21113 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21115 # Is the header compilable?
21116 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21117 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21118 cat >conftest.
$ac_ext <<_ACEOF
21121 cat confdefs.h
>>conftest.
$ac_ext
21122 cat >>conftest.
$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 $ac_includes_default
21125 #include <netinet/in.h>
21127 rm -f conftest.
$ac_objext
21128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21129 (eval $ac_compile) 2>conftest.er1
21131 grep -v '^ *+' conftest.er1
>conftest.err
21133 cat conftest.err
>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } &&
21136 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; } &&
21142 { ac_try
='test -s conftest.$ac_objext'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21148 ac_header_compiler
=yes
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.
$ac_ext >&5
21153 ac_header_compiler
=no
21155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21157 echo "${ECHO_T}$ac_header_compiler" >&6
21159 # Is the header present?
21160 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21161 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21162 cat >conftest.
$ac_ext <<_ACEOF
21165 cat confdefs.h
>>conftest.
$ac_ext
21166 cat >>conftest.
$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 #include <netinet/in.h>
21170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21171 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21173 grep -v '^ *+' conftest.er1
>conftest.err
21175 cat conftest.err
>&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } >/dev
/null
; then
21178 if test -s conftest.err
; then
21179 ac_cpp_err
=$ac_c_preproc_warn_flag
21180 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21187 if test -z "$ac_cpp_err"; then
21188 ac_header_preproc
=yes
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.
$ac_ext >&5
21193 ac_header_preproc
=no
21195 rm -f conftest.err conftest.
$ac_ext
21196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21197 echo "${ECHO_T}$ac_header_preproc" >&6
21199 # So? What about this header?
21200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21202 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21203 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21205 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21206 ac_header_preproc
=yes
21209 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21210 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21212 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21214 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21216 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21218 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21220 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21223 ## ------------------------------------------ ##
21224 ## Report this to the AC_PACKAGE_NAME lists. ##
21225 ## ------------------------------------------ ##
21228 sed "s/^/$as_me: WARNING: /" >&2
21231 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21232 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21233 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 ac_cv_header_netinet_in_h
=$ac_header_preproc
21238 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21239 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21242 if test $ac_cv_header_netinet_in_h = yes; then
21250 if test $ok_so_far = yes; then
21251 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21252 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21253 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21254 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21258 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21260 # Is the header compilable?
21261 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21262 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21263 cat >conftest.
$ac_ext <<_ACEOF
21266 cat confdefs.h
>>conftest.
$ac_ext
21267 cat >>conftest.
$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21270 #include <arpa/inet.h>
21272 rm -f conftest.
$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274 (eval $ac_compile) 2>conftest.er1
21276 grep -v '^ *+' conftest.er1
>conftest.err
21278 cat conftest.err
>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
21281 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try
='test -s conftest.$ac_objext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_header_compiler
=yes
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.
$ac_ext >&5
21298 ac_header_compiler
=no
21300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21302 echo "${ECHO_T}$ac_header_compiler" >&6
21304 # Is the header present?
21305 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21306 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21307 cat >conftest.
$ac_ext <<_ACEOF
21310 cat confdefs.h
>>conftest.
$ac_ext
21311 cat >>conftest.
$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <arpa/inet.h>
21315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21318 grep -v '^ *+' conftest.er1
>conftest.err
21320 cat conftest.err
>&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } >/dev
/null
; then
21323 if test -s conftest.err
; then
21324 ac_cpp_err
=$ac_c_preproc_warn_flag
21325 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21332 if test -z "$ac_cpp_err"; then
21333 ac_header_preproc
=yes
21335 echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.
$ac_ext >&5
21338 ac_header_preproc
=no
21340 rm -f conftest.err conftest.
$ac_ext
21341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21342 echo "${ECHO_T}$ac_header_preproc" >&6
21344 # So? What about this header?
21345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21347 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21348 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21350 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21351 ac_header_preproc
=yes
21354 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21355 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21357 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21359 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21361 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21362 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21363 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21365 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21368 ## ------------------------------------------ ##
21369 ## Report this to the AC_PACKAGE_NAME lists. ##
21370 ## ------------------------------------------ ##
21373 sed "s/^/$as_me: WARNING: /" >&2
21376 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21377 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21378 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21383 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21384 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21387 if test $ac_cv_header_arpa_inet_h = yes; then
21395 if test $ok_so_far = yes; then
21397 cat >>confdefs.h
<<\_ACEOF
21398 #define HAVE_INET_SOCKETS 1
21404 for ac_header
in sys
/ioctl.h
21406 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21408 echo "$as_me:$LINENO: checking for $ac_header" >&5
21409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21416 # Is the header compilable?
21417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21419 cat >conftest.
$ac_ext <<_ACEOF
21422 cat confdefs.h
>>conftest.
$ac_ext
21423 cat >>conftest.
$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 $ac_includes_default
21426 #include <$ac_header>
21428 rm -f conftest.
$ac_objext
21429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21430 (eval $ac_compile) 2>conftest.er1
21432 grep -v '^ *+' conftest.er1
>conftest.err
21434 cat conftest.err
>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
21437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try
='test -s conftest.$ac_objext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_header_compiler
=yes
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.
$ac_ext >&5
21454 ac_header_compiler
=no
21456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21458 echo "${ECHO_T}$ac_header_compiler" >&6
21460 # Is the header present?
21461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21463 cat >conftest.
$ac_ext <<_ACEOF
21466 cat confdefs.h
>>conftest.
$ac_ext
21467 cat >>conftest.
$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <$ac_header>
21471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1
>conftest.err
21476 cat conftest.err
>&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } >/dev
/null
; then
21479 if test -s conftest.err
; then
21480 ac_cpp_err
=$ac_c_preproc_warn_flag
21481 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21488 if test -z "$ac_cpp_err"; then
21489 ac_header_preproc
=yes
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.
$ac_ext >&5
21494 ac_header_preproc
=no
21496 rm -f conftest.err conftest.
$ac_ext
21497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21498 echo "${ECHO_T}$ac_header_preproc" >&6
21500 # So? What about this header?
21501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21507 ac_header_preproc
=yes
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21524 ## ------------------------------------------ ##
21525 ## Report this to the AC_PACKAGE_NAME lists. ##
21526 ## ------------------------------------------ ##
21529 sed "s/^/$as_me: WARNING: /" >&2
21532 echo "$as_me:$LINENO: checking for $ac_header" >&5
21533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21537 eval "$as_ac_Header=\$ac_header_preproc"
21539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21544 cat >>confdefs.h
<<_ACEOF
21545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21553 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21555 cat >>confdefs.h
<<\_ACEOF
21556 #define HAVE_AIX_SMT_EXP 1
21561 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21562 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21563 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21564 echo "$as_me:$LINENO: result: yes" >&5
21565 echo "${ECHO_T}yes" >&6
21567 cat >>confdefs.h
<<\_ACEOF
21568 #define HAVE_DEV_PTMX 1
21572 echo "$as_me:$LINENO: result: no" >&5
21573 echo "${ECHO_T}no" >&6
21576 echo "$as_me:$LINENO: checking for pid_t" >&5
21577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21578 if test "${ac_cv_type_pid_t+set}" = set; then
21579 echo $ECHO_N "(cached) $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 $ac_includes_default
21593 if (sizeof (pid_t))
21599 rm -f conftest.
$ac_objext
21600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21601 (eval $ac_compile) 2>conftest.er1
21603 grep -v '^ *+' conftest.er1
>conftest.err
21605 cat conftest.err
>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
21608 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; } &&
21614 { ac_try
='test -s conftest.$ac_objext'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 ac_cv_type_pid_t
=yes
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.
$ac_ext >&5
21625 ac_cv_type_pid_t
=no
21627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21629 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21630 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21631 if test $ac_cv_type_pid_t = yes; then
21635 cat >>confdefs.h
<<_ACEOF
21643 for ac_header
in unistd.h vfork.h
21645 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21647 echo "$as_me:$LINENO: checking for $ac_header" >&5
21648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21655 # Is the header compilable?
21656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21658 cat >conftest.
$ac_ext <<_ACEOF
21661 cat confdefs.h
>>conftest.
$ac_ext
21662 cat >>conftest.
$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 $ac_includes_default
21665 #include <$ac_header>
21667 rm -f conftest.
$ac_objext
21668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21669 (eval $ac_compile) 2>conftest.er1
21671 grep -v '^ *+' conftest.er1
>conftest.err
21673 cat conftest.err
>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); } &&
21676 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; } &&
21682 { ac_try
='test -s conftest.$ac_objext'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21688 ac_header_compiler
=yes
21690 echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.
$ac_ext >&5
21693 ac_header_compiler
=no
21695 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21697 echo "${ECHO_T}$ac_header_compiler" >&6
21699 # Is the header present?
21700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21702 cat >conftest.
$ac_ext <<_ACEOF
21705 cat confdefs.h
>>conftest.
$ac_ext
21706 cat >>conftest.
$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21708 #include <$ac_header>
21710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21711 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21713 grep -v '^ *+' conftest.er1
>conftest.err
21715 cat conftest.err
>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } >/dev
/null
; then
21718 if test -s conftest.err
; then
21719 ac_cpp_err
=$ac_c_preproc_warn_flag
21720 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21727 if test -z "$ac_cpp_err"; then
21728 ac_header_preproc
=yes
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.
$ac_ext >&5
21733 ac_header_preproc
=no
21735 rm -f conftest.err conftest.
$ac_ext
21736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21737 echo "${ECHO_T}$ac_header_preproc" >&6
21739 # So? What about this header?
21740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21746 ac_header_preproc
=yes
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21763 ## ------------------------------------------ ##
21764 ## Report this to the AC_PACKAGE_NAME lists. ##
21765 ## ------------------------------------------ ##
21768 sed "s/^/$as_me: WARNING: /" >&2
21771 echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 eval "$as_ac_Header=\$ac_header_preproc"
21778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21783 cat >>confdefs.h
<<_ACEOF
21784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21793 for ac_func
in fork vfork
21795 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21796 echo "$as_me:$LINENO: checking for $ac_func" >&5
21797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21798 if eval "test \"\${$as_ac_var+set}\" = set"; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 cat >conftest.
$ac_ext <<_ACEOF
21804 cat confdefs.h
>>conftest.
$ac_ext
21805 cat >>conftest.
$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21809 #define $ac_func innocuous_$ac_func
21811 /* System header to define __stub macros and hopefully few prototypes,
21812 which can conflict with char $ac_func (); below.
21813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21814 <limits.h> exists even on freestanding compilers. */
21817 # include <limits.h>
21819 # include <assert.h>
21824 /* Override any gcc2 internal prototype to avoid an error. */
21829 /* We use char because int might match the return type of a gcc2
21830 builtin and then its argument prototype would still apply. */
21832 /* The GNU C library defines this for functions which it implements
21833 to always fail with ENOSYS. Some functions are actually named
21834 something starting with __ and the normal name is an alias. */
21835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21838 char (*f) () = $ac_func;
21847 return f != $ac_func;
21852 rm -f conftest.
$ac_objext conftest
$ac_exeext
21853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854 (eval $ac_link) 2>conftest.er1
21856 grep -v '^ *+' conftest.er1
>conftest.err
21858 cat conftest.err
>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try
='test -s conftest$ac_exeext'
21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869 (eval $ac_try) 2>&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; }; then
21873 eval "$as_ac_var=yes"
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.
$ac_ext >&5
21878 eval "$as_ac_var=no"
21880 rm -f conftest.err conftest.
$ac_objext \
21881 conftest
$ac_exeext conftest.
$ac_ext
21883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21885 if test `eval echo '${'$as_ac_var'}'` = yes; then
21886 cat >>confdefs.h
<<_ACEOF
21887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21893 if test "x$ac_cv_func_fork" = xyes
; then
21894 echo "$as_me:$LINENO: checking for working fork" >&5
21895 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21896 if test "${ac_cv_func_fork_works+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 if test "$cross_compiling" = yes; then
21900 ac_cv_func_fork_works
=cross
21902 cat >conftest.
$ac_ext <<_ACEOF
21905 cat confdefs.h
>>conftest.
$ac_ext
21906 cat >>conftest.
$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 $ac_includes_default
21913 /* By Ruediger Kuhlmann. */
21922 rm -f conftest
$ac_exeext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924 (eval $ac_link) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; }; then
21933 ac_cv_func_fork_works
=yes
21935 echo "$as_me: program exited with status $ac_status" >&5
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.
$ac_ext >&5
21939 ( exit $ac_status )
21940 ac_cv_func_fork_works
=no
21942 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21945 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21946 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21949 ac_cv_func_fork_works
=$ac_cv_func_fork
21951 if test "x$ac_cv_func_fork_works" = xcross
; then
21953 *-*-amigaos* |
*-*-msdosdjgpp*)
21954 # Override, as these systems have only a dummy fork() stub
21955 ac_cv_func_fork_works
=no
21958 ac_cv_func_fork_works
=yes
21961 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21962 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21964 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21965 if test "x$ac_cv_func_vfork" = xyes
; then
21966 echo "$as_me:$LINENO: checking for working vfork" >&5
21967 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21968 if test "${ac_cv_func_vfork_works+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 if test "$cross_compiling" = yes; then
21972 ac_cv_func_vfork_works
=cross
21974 cat >conftest.
$ac_ext <<_ACEOF
21977 cat confdefs.h
>>conftest.
$ac_ext
21978 cat >>conftest.
$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 /* Thanks to Paul Eggert for this test. */
21982 #include <stdlib.h>
21983 #include <sys/types.h>
21984 #include <sys/stat.h>
21985 #include <sys/wait.h>
21987 # include <unistd.h>
21990 # include <vfork.h>
21992 /* On some sparc systems, changes by the child to local and incoming
21993 argument registers are propagated back to the parent. The compiler
21994 is told about this with #include <vfork.h>, but some compilers
21995 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21996 static variable whose address is put into a register that is
21997 clobbered by the vfork. */
22000 sparc_address_test (int arg)
22002 sparc_address_test (arg) int arg;
22005 static pid_t child;
22023 pid_t parent = getpid ();
22026 sparc_address_test (0);
22031 /* Here is another test for sparc vfork register problems. This
22032 test uses lots of local variables, at least as many local
22033 variables as main has allocated so far including compiler
22034 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22035 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22036 reuse the register of parent for one of the local variables,
22037 since it will think that parent can't possibly be used any more
22038 in this routine. Assigning to the local variable will thus
22039 munge parent in the parent process. */
22041 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22042 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22043 /* Convince the compiler that p..p7 are live; otherwise, it might
22044 use the same hardware register for all 8 local variables. */
22045 if (p != p1 || p != p2 || p != p3 || p != p4
22046 || p != p5 || p != p6 || p != p7)
22049 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22050 from child file descriptors. If the child closes a descriptor
22051 before it execs or exits, this munges the parent's descriptor
22052 as well. Test for this by closing stdout in the child. */
22053 _exit(close(fileno(stdout)) != 0);
22058 while (wait(&status) != child)
22061 /* Was there some problem with vforking? */
22064 /* Did the child fail? (This shouldn't happen.) */
22067 /* Did the vfork/compiler bug occur? */
22068 || parent != getpid()
22070 /* Did the file descriptor bug occur? */
22071 || fstat(fileno(stdout), &st) != 0
22076 rm -f conftest
$ac_exeext
22077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22078 (eval $ac_link) 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_func_vfork_works
=yes
22089 echo "$as_me: program exited with status $ac_status" >&5
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.
$ac_ext >&5
22093 ( exit $ac_status )
22094 ac_cv_func_vfork_works
=no
22096 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22099 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22100 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22103 if test "x$ac_cv_func_fork_works" = xcross
; then
22104 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22105 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22106 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22109 if test "x$ac_cv_func_vfork_works" = xyes
; then
22111 cat >>confdefs.h
<<\_ACEOF
22112 #define HAVE_WORKING_VFORK 1
22117 cat >>confdefs.h
<<\_ACEOF
22122 if test "x$ac_cv_func_fork_works" = xyes
; then
22124 cat >>confdefs.h
<<\_ACEOF
22125 #define HAVE_WORKING_FORK 1
22131 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22132 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22133 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 cat >conftest.
$ac_ext <<_ACEOF
22139 cat confdefs.h
>>conftest.
$ac_ext
22140 cat >>conftest.
$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 #include <langinfo.h>
22146 char* cs = nl_langinfo(CODESET);
22151 rm -f conftest.
$ac_objext conftest
$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>conftest.er1
22155 grep -v '^ *+' conftest.er1
>conftest.err
22157 cat conftest.err
>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try
='test -s conftest$ac_exeext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 emacs_cv_langinfo_codeset
=yes
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.
$ac_ext >&5
22177 emacs_cv_langinfo_codeset
=no
22179 rm -f conftest.err conftest.
$ac_objext \
22180 conftest
$ac_exeext conftest.
$ac_ext
22183 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22184 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22185 if test $emacs_cv_langinfo_codeset = yes; then
22187 cat >>confdefs.h
<<\_ACEOF
22188 #define HAVE_LANGINFO_CODESET 1
22193 echo "$as_me:$LINENO: checking for size_t" >&5
22194 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22195 if test "${ac_cv_type_size_t+set}" = set; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 cat >conftest.
$ac_ext <<_ACEOF
22201 cat confdefs.h
>>conftest.
$ac_ext
22202 cat >>conftest.
$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 $ac_includes_default
22210 if (sizeof (size_t))
22216 rm -f conftest.
$ac_objext
22217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218 (eval $ac_compile) 2>conftest.er1
22220 grep -v '^ *+' conftest.er1
>conftest.err
22222 cat conftest.err
>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } &&
22225 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; } &&
22231 { ac_try
='test -s conftest.$ac_objext'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 ac_cv_type_size_t
=yes
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.
$ac_ext >&5
22242 ac_cv_type_size_t
=no
22244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22246 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22247 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22248 if test $ac_cv_type_size_t = yes; then
22250 cat >>confdefs.h
<<_ACEOF
22251 #define HAVE_SIZE_T 1
22258 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22259 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22260 if test "${ac_cv_type_mbstate_t+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 cat >conftest.
$ac_ext <<_ACEOF
22266 cat confdefs.h
>>conftest.
$ac_ext
22267 cat >>conftest.
$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22269 $ac_includes_default
22270 # include <wchar.h>
22274 mbstate_t x; return sizeof x;
22279 rm -f conftest.
$ac_objext
22280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22281 (eval $ac_compile) 2>conftest.er1
22283 grep -v '^ *+' conftest.er1
>conftest.err
22285 cat conftest.err
>&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } &&
22288 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } &&
22294 { ac_try
='test -s conftest.$ac_objext'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 ac_cv_type_mbstate_t
=yes
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.
$ac_ext >&5
22305 ac_cv_type_mbstate_t
=no
22307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22309 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22310 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22311 if test $ac_cv_type_mbstate_t = yes; then
22313 cat >>confdefs.h
<<\_ACEOF
22314 #define HAVE_MBSTATE_T 1
22319 cat >>confdefs.h
<<\_ACEOF
22320 #define mbstate_t int
22325 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22326 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22327 if test "${emacs_cv_c_restrict+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 cat >conftest.
$ac_ext <<_ACEOF
22333 cat confdefs.h
>>conftest.
$ac_ext
22334 cat >>conftest.
$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22336 void fred (int *restrict x);
22345 rm -f conftest.
$ac_objext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22347 (eval $ac_compile) 2>conftest.er1
22349 grep -v '^ *+' conftest.er1
>conftest.err
22351 cat conftest.err
>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } &&
22354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; } &&
22360 { ac_try
='test -s conftest.$ac_objext'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 emacs_cv_c_restrict
=yes
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.
$ac_ext >&5
22371 cat >conftest.
$ac_ext <<_ACEOF
22374 cat confdefs.h
>>conftest.
$ac_ext
22375 cat >>conftest.
$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377 void fred (int *__restrict x);
22386 rm -f conftest.
$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388 (eval $ac_compile) 2>conftest.er1
22390 grep -v '^ *+' conftest.er1
>conftest.err
22392 cat conftest.err
>&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; } &&
22401 { ac_try
='test -s conftest.$ac_objext'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 emacs_cv_c_restrict
=__restrict
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.
$ac_ext >&5
22412 emacs_cv_c_restrict
=no
22414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22418 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22419 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22420 case "$emacs_cv_c_restrict" in
22421 yes) emacs_restrict
=restrict
;;
22422 no
) emacs_restrict
="";;
22423 *) emacs_restrict
="$emacs_cv_c_restrict";;
22425 if test "$emacs_restrict" != __restrict
; then
22427 cat >>confdefs.h
<<_ACEOF
22428 #define __restrict $emacs_restrict
22433 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22434 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22435 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22436 echo $ECHO_N "(cached) $ECHO_C" >&6
22438 cat >conftest.
$ac_ext <<_ACEOF
22441 cat confdefs.h
>>conftest.
$ac_ext
22442 cat >>conftest.
$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22444 void fred (int x[__restrict]);
22453 rm -f conftest.
$ac_objext
22454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22455 (eval $ac_compile) 2>conftest.er1
22457 grep -v '^ *+' conftest.er1
>conftest.err
22459 cat conftest.err
>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } &&
22462 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try
='test -s conftest.$ac_objext'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; }; then
22474 emacs_cv_c_restrict_arr
=yes
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.
$ac_ext >&5
22479 emacs_cv_c_restrict_arr
=no
22481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22483 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22484 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22485 if test "$emacs_cv_c_restrict_arr" = yes; then
22487 cat >>confdefs.h
<<\_ACEOF
22488 #define __restrict_arr __restrict
22495 # Set up the CFLAGS for real compilation, so we can substitute it.
22496 CFLAGS
="$REAL_CFLAGS"
22497 CPPFLAGS
="$REAL_CPPFLAGS"
22499 #### Find out which version of Emacs this is.
22500 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22501 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22502 if test x
"${version}" = x
; then
22503 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22504 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22505 { (exit 1); exit 1; }; }
22508 ### Specify what sort of things we'll be editing into Makefile and config.h.
22509 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22545 cat >>confdefs.h
<<_ACEOF
22546 #define EMACS_CONFIGURATION "${canonical}"
22550 cat >>confdefs.h
<<_ACEOF
22551 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22555 cat >>confdefs.h
<<_ACEOF
22556 #define config_machfile "${machfile}"
22560 cat >>confdefs.h
<<_ACEOF
22561 #define config_opsysfile "${opsysfile}"
22565 cat >>confdefs.h
<<_ACEOF
22566 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22570 cat >>confdefs.h
<<_ACEOF
22571 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22575 cat >>confdefs.h
<<_ACEOF
22576 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22580 cat >>confdefs.h
<<_ACEOF
22581 #define UNEXEC_SRC ${UNEXEC_SRC}
22585 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22587 cat >>confdefs.h
<<\_ACEOF
22588 #define HAVE_X_WINDOWS 1
22592 if test "${USE_X_TOOLKIT}" != "none" ; then
22594 cat >>confdefs.h
<<\_ACEOF
22595 #define USE_X_TOOLKIT 1
22599 if test "${HAVE_X11}" = "yes" ; then
22601 cat >>confdefs.h
<<\_ACEOF
22606 if test "${HAVE_XFREE386}" = "yes" ; then
22608 cat >>confdefs.h
<<\_ACEOF
22609 #define HAVE_XFREE386 1
22613 if test "${HAVE_MENUS}" = "yes" ; then
22615 cat >>confdefs.h
<<\_ACEOF
22616 #define HAVE_MENUS 1
22620 if test "${GNU_MALLOC}" = "yes" ; then
22622 cat >>confdefs.h
<<\_ACEOF
22623 #define GNU_MALLOC 1
22627 if test "${REL_ALLOC}" = "yes" ; then
22629 cat >>confdefs.h
<<\_ACEOF
22630 #define REL_ALLOC 1
22639 #### Report on what we decided to do.
22640 #### Report GTK as a toolkit, even if it doesn't use Xt.
22641 #### It makes printing result more understandable as using GTK sets
22642 #### toolkit_scroll_bars to yes by default.
22643 if test "${HAVE_GTK}" = "yes"; then
22648 Configured for \`${canonical}'.
22650 Where should the build process find the source code? ${srcdir}
22651 What operating system and machine description files should Emacs use?
22652 \`${opsysfile}' and \`${machfile}'
22653 What compiler should emacs be built with? ${CC} ${CFLAGS}
22654 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22655 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22656 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22657 What window system should Emacs use? ${window_system}
22658 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22660 if test -n "${x_includes}"; then
22661 echo " Where do we find X Windows header files? ${x_includes}"
22663 echo " Where do we find X Windows header files? Standard dirs"
22665 if test -n "${x_libraries}"; then
22666 echo " Where do we find X Windows libraries? ${x_libraries}"
22668 echo " Where do we find X Windows libraries? Standard dirs"
22671 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22672 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22673 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22674 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22675 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22676 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22677 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22680 if test $USE_XASSERTS = yes; then
22681 echo " Compiling with asserts turned on."
22682 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22688 # Remove any trailing slashes in these variables.
22689 test "${prefix}" != NONE
&&
22690 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22691 test "${exec_prefix}" != NONE
&&
22692 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22694 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22695 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22696 ## from Makefile.c can correctly provide the arg `-traditional' to the
22699 cat >conftest.
$ac_ext <<_ACEOF
22702 cat confdefs.h
>>conftest.
$ac_ext
22703 cat >>conftest.
$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22708 $EGREP "yes..yes" >/dev
/null
2>&1; then
22709 CPP_NEED_TRADITIONAL
=no
22711 CPP_NEED_TRADITIONAL
=yes
22716 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"
22717 ac_config_commands
="$ac_config_commands default"
22718 cat >confcache
<<\_ACEOF
22719 # This file is a shell script that caches the results of configure
22720 # tests run on this system so they can be shared between configure
22721 # scripts and configure runs, see configure's option --config-cache.
22722 # It is not useful on other systems. If it contains results you don't
22723 # want to keep, you may remove or edit it.
22725 # config.status only pays attention to the cache file if you give it
22726 # the --recheck option to rerun configure.
22728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22730 # following values.
22734 # The following way of writing the cache mishandles newlines in values,
22735 # but we know of no workaround that is simple, portable, and efficient.
22736 # So, don't put newlines in cache variables' values.
22737 # Ultrix sh set writes to stderr and can't be redirected directly,
22738 # and sets the high bit in the cache file unless we assign to the vars.
22741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22743 # `set' does not quote correctly, so add quotes (double-quote
22744 # substitution turns \\\\ into \\, and sed turns \\ into \).
22747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22750 # `set' quotes correctly as required by POSIX, so do not add quotes.
22752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22763 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22764 if test -w $cache_file; then
22765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22766 cat confcache
>$cache_file
22768 echo "not updating unwritable cache $cache_file"
22773 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22774 # Let make expand exec_prefix.
22775 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22779 # trailing colons and then remove the whole line if VPATH becomes empty
22780 # (actually we leave an empty line to preserve line numbers).
22781 if test "x$srcdir" = x.
; then
22782 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22783 s/:*\$(srcdir):*/:/;
22784 s/:*\${srcdir}:*/:/;
22786 s/^\([^=]*=[ ]*\):*/\1/;
22792 DEFS
=-DHAVE_CONFIG_H
22796 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22797 # 1. Remove the extension, and $U if already installed.
22798 ac_i
=`echo "$ac_i" |
22799 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22801 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22802 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22804 LIBOBJS
=$ac_libobjs
22806 LTLIBOBJS
=$ac_ltlibobjs
22810 : ${CONFIG_STATUS=./config.status}
22811 ac_clean_files_save
=$ac_clean_files
22812 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22815 cat >$CONFIG_STATUS <<_ACEOF
22817 # Generated by $as_me.
22818 # Run this file to recreate the current configuration.
22819 # Compiler output produced by configure, useful for debugging
22820 # configure, is in config.log if it exists.
22823 ac_cs_recheck=false
22825 SHELL=\${CONFIG_SHELL-$SHELL}
22828 cat >>$CONFIG_STATUS <<\_ACEOF
22829 ## --------------------- ##
22830 ## M4sh Initialization. ##
22831 ## --------------------- ##
22833 # Be Bourne compatible
22834 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22837 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22838 # is contrary to our usage. Disable this feature.
22839 alias -g '${1+"$@"}'='"$@"'
22840 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22843 DUALCASE
=1; export DUALCASE
# for MKS sh
22845 # Support unset when possible.
22846 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22853 # Work around bugs in pre-3.0 UWIN ksh.
22854 $as_unset ENV MAIL MAILPATH
22861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22863 LC_TELEPHONE LC_TIME
22865 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22866 eval $as_var=C
; export $as_var
22872 # Required to use basename.
22873 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22879 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22880 as_basename
=basename
22886 # Name of the executable.
22887 as_me
=`$as_basename "$0" ||
22888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22889 X"$0" : 'X\(//\)$' \| \
22890 X"$0" : 'X\(/\)$' \| \
22891 . : '\(.\)' 2>/dev/null ||
22893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22894 /^X\/\(\/\/\)$/{ s//\1/; q; }
22895 /^X\/\(\/\).*/{ s//\1/; q; }
22899 # PATH needs CR, and LINENO needs CR and PATH.
22900 # Avoid depending upon Character Ranges.
22901 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22902 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22903 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22904 as_cr_digits
='0123456789'
22905 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22907 # The user is always right.
22908 if test "${PATH_SEPARATOR+set}" != set; then
22909 echo "#! /bin/sh" >conf$$.sh
22910 echo "exit 0" >>conf$$.sh
22912 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22921 as_lineno_1
=$LINENO
22922 as_lineno_2
=$LINENO
22923 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22924 test "x$as_lineno_1" != "x$as_lineno_2" &&
22925 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22926 # Find who we are. Look in the path if we contain no path at all
22929 *[\\/]* ) as_myself
=$0 ;;
22930 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22931 for as_dir
in $PATH
22934 test -z "$as_dir" && as_dir
=.
22935 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22940 # We did not find ourselves, most probably we were run as `sh COMMAND'
22941 # in which case we are not to be found in the path.
22942 if test "x$as_myself" = x
; then
22945 if test ! -f "$as_myself"; then
22946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22948 { (exit 1); exit 1; }; }
22950 case $CONFIG_SHELL in
22952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22953 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22956 test -z "$as_dir" && as_dir
=.
22957 for as_base
in sh bash ksh sh5
; do
22960 if ("$as_dir/$as_base" -c '
22961 as_lineno_1=$LINENO
22962 as_lineno_2=$LINENO
22963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22964 test "x$as_lineno_1" != "x$as_lineno_2" &&
22965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22966 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22967 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22968 CONFIG_SHELL
=$as_dir/$as_base
22969 export CONFIG_SHELL
22970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22979 # uniformly replaced by the line number. The first 'sed' inserts a
22980 # line-number line before each line; the second 'sed' does the real
22981 # work. The second script uses 'N' to pair each line-number line
22982 # with the numbered line, and appends trailing '-' during
22983 # substitution so that $LINENO is not a special case at line end.
22984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22986 sed '=' <$as_myself |
22991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22994 s,^['$as_cr_digits']*\n,,
22995 ' >$as_me.lineno
&&
22996 chmod +x
$as_me.lineno ||
22997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22999 { (exit 1); exit 1; }; }
23001 # Don't try to exec as it changes $[0], causing all sort of problems
23002 # (the dirname of $[0] is not the place where we might find the
23003 # original and so on. Autoconf is especially sensible to this).
23005 # Exit status is that of the last command.
23010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23011 *c
*,-n*) ECHO_N
= ECHO_C
='
23013 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23014 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23017 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23023 rm -f conf$$ conf$$.exe conf$$.
file
23025 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23026 # We could just check for DJGPP; but this test a) works b) is more generic
23027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23028 if test -f conf$$.exe
; then
23029 # Don't use ln at all; we don't have any links
23034 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23039 rm -f conf$$ conf$$.exe conf$$.
file
23041 if mkdir
-p .
2>/dev
/null
; then
23044 test -d .
/-p && rmdir .
/-p
23048 as_executable_p
="test -f"
23050 # Sed expression to map a string onto a valid CPP name.
23051 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23053 # Sed expression to map a string onto a valid variable name.
23054 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23058 # We need space, tab and new line, in precisely that order.
23068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23069 # report actual input values of CONFIG_FILES etc. instead of their
23070 # values after options handling. Logging --version etc. is OK.
23074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23075 ## Running $as_me. ##
23080 This file was extended by $as_me, which was
23081 generated by GNU Autoconf 2.59. Invocation command line was
23083 CONFIG_FILES = $CONFIG_FILES
23084 CONFIG_HEADERS = $CONFIG_HEADERS
23085 CONFIG_LINKS = $CONFIG_LINKS
23086 CONFIG_COMMANDS = $CONFIG_COMMANDS
23090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23094 # Files that config.status was made for.
23095 if test -n "$ac_config_files"; then
23096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23099 if test -n "$ac_config_headers"; then
23100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23103 if test -n "$ac_config_links"; then
23104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23107 if test -n "$ac_config_commands"; then
23108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23111 cat >>$CONFIG_STATUS <<\_ACEOF
23114 \`$as_me' instantiates files from templates according to the
23115 current configuration.
23117 Usage: $0 [OPTIONS] [FILE]...
23119 -h, --help print this help, then exit
23120 -V, --version print version number, then exit
23121 -q, --quiet do not print progress messages
23122 -d, --debug don't remove temporary files
23123 --recheck update $as_me by reconfiguring in the same conditions
23124 --file=FILE[:TEMPLATE]
23125 instantiate the configuration file FILE
23126 --header=FILE[:TEMPLATE]
23127 instantiate the configuration header FILE
23129 Configuration files:
23132 Configuration headers:
23135 Configuration commands:
23138 Report bugs to <bug-autoconf@gnu.org>."
23141 cat >>$CONFIG_STATUS <<_ACEOF
23144 configured by $0, generated by GNU Autoconf 2.59,
23145 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23147 Copyright (C) 2003 Free Software Foundation, Inc.
23148 This config.status script is free software; the Free Software Foundation
23149 gives unlimited permission to copy, distribute and modify it."
23154 cat >>$CONFIG_STATUS <<\_ACEOF
23155 # If no file are specified by the user, then we need to provide default
23156 # value. By we need to know if files were specified by the user.
23162 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23163 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23171 *) # This is not an option, so the user has probably given explicit
23174 ac_need_defaults
=false
;;
23178 # Handling of the options.
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23181 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23183 --version |
--vers* |
-V )
23184 echo "$ac_cs_version"; exit 0 ;;
23186 # Conflict between --help and --header
23187 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23188 Try \`$0 --help' for more information." >&5
23189 echo "$as_me: error: ambiguous option: $1
23190 Try \`$0 --help' for more information." >&2;}
23191 { (exit 1); exit 1; }; };;
23192 --help |
--hel |
-h )
23193 echo "$ac_cs_usage"; exit 0 ;;
23194 --debug |
--d* |
-d )
23196 --file |
--fil |
--fi |
--f )
23198 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23199 ac_need_defaults
=false
;;
23200 --header |
--heade |
--head |
--hea )
23202 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23203 ac_need_defaults
=false
;;
23204 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23205 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23208 # This is an error.
23209 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23210 Try \`$0 --help' for more information." >&5
23211 echo "$as_me: error: unrecognized option: $1
23212 Try \`$0 --help' for more information." >&2;}
23213 { (exit 1); exit 1; }; } ;;
23215 *) ac_config_targets
="$ac_config_targets $1" ;;
23221 ac_configure_extra_args
=
23223 if $ac_cs_silent; then
23225 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23229 cat >>$CONFIG_STATUS <<_ACEOF
23230 if \$ac_cs_recheck; then
23231 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23232 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23237 cat >>$CONFIG_STATUS <<_ACEOF
23239 # INIT-COMMANDS section.
23242 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23248 cat >>$CONFIG_STATUS <<\_ACEOF
23249 for ac_config_target
in $ac_config_targets
23251 case "$ac_config_target" in
23252 # Handling of arguments.
23253 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23254 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23255 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23256 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23257 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23258 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23259 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23260 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23261 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23262 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23263 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23264 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23267 { (exit 1); exit 1; }; };;
23271 # If the user did not use the arguments to specify the items to instantiate,
23272 # then the envvar interface is used. Set only those that are not.
23273 # We use the long form for the default assignment because of an extremely
23274 # bizarre bug on SunOS 4.1.3.
23275 if $ac_need_defaults; then
23276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23281 # Have a temporary directory for convenience. Make it in the build tree
23282 # simply because there is no reason to put it here, and in addition,
23283 # creating and moving files from /tmp can sometimes cause problems.
23284 # Create a temporary directory, and hook for its removal unless debugging.
23287 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23288 trap '{ (exit 1); exit 1; }' 1 2 13 15
23291 # Create a (secure) tmp directory for tmp files.
23294 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23295 test -n "$tmp" && test -d "$tmp"
23298 tmp
=.
/confstat$$
-$RANDOM
23299 (umask 077 && mkdir
$tmp)
23302 echo "$me: cannot create a temporary directory in ." >&2
23303 { (exit 1); exit 1; }
23308 cat >>$CONFIG_STATUS <<_ACEOF
23311 # CONFIG_FILES section.
23314 # No need to generate the scripts if there are no CONFIG_FILES.
23315 # This happens for instance when ./config.status config.h
23316 if test -n "\$CONFIG_FILES"; then
23317 # Protect against being on the right side of a sed subst in config.status.
23318 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23319 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23320 s,@SHELL@,$SHELL,;t t
23321 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23322 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23323 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23324 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23325 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23326 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23327 s,@exec_prefix@,$exec_prefix,;t t
23328 s,@prefix@,$prefix,;t t
23329 s,@program_transform_name@,$program_transform_name,;t t
23330 s,@bindir@,$bindir,;t t
23331 s,@sbindir@,$sbindir,;t t
23332 s,@libexecdir@,$libexecdir,;t t
23333 s,@datadir@,$datadir,;t t
23334 s,@sysconfdir@,$sysconfdir,;t t
23335 s,@sharedstatedir@,$sharedstatedir,;t t
23336 s,@localstatedir@,$localstatedir,;t t
23337 s,@libdir@,$libdir,;t t
23338 s,@includedir@,$includedir,;t t
23339 s,@oldincludedir@,$oldincludedir,;t t
23340 s,@infodir@,$infodir,;t t
23341 s,@mandir@,$mandir,;t t
23342 s,@build_alias@,$build_alias,;t t
23343 s,@host_alias@,$host_alias,;t t
23344 s,@target_alias@,$target_alias,;t t
23345 s,@DEFS@,$DEFS,;t t
23346 s,@ECHO_C@,$ECHO_C,;t t
23347 s,@ECHO_N@,$ECHO_N,;t t
23348 s,@ECHO_T@,$ECHO_T,;t t
23349 s,@LIBS@,$LIBS,;t t
23350 s,@MAINT@,$MAINT,;t t
23351 s,@build@,$build,;t t
23352 s,@build_cpu@,$build_cpu,;t t
23353 s,@build_vendor@,$build_vendor,;t t
23354 s,@build_os@,$build_os,;t t
23355 s,@host@,$host,;t t
23356 s,@host_cpu@,$host_cpu,;t t
23357 s,@host_vendor@,$host_vendor,;t t
23358 s,@host_os@,$host_os,;t t
23360 s,@CFLAGS@,$CFLAGS,;t t
23361 s,@LDFLAGS@,$LDFLAGS,;t t
23362 s,@CPPFLAGS@,$CPPFLAGS,;t t
23363 s,@ac_ct_CC@,$ac_ct_CC,;t t
23364 s,@EXEEXT@,$EXEEXT,;t t
23365 s,@OBJEXT@,$OBJEXT,;t t
23367 s,@EGREP@,$EGREP,;t t
23368 s,@LN_S@,$LN_S,;t t
23369 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23370 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23371 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23372 s,@RANLIB@,$RANLIB,;t t
23373 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23374 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23375 s,@GZIP_PROG@,$GZIP_PROG,;t t
23376 s,@LIBSOUND@,$LIBSOUND,;t t
23377 s,@SET_MAKE@,$SET_MAKE,;t t
23378 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23379 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23380 s,@GTK_LIBS@,$GTK_LIBS,;t t
23381 s,@ALLOCA@,$ALLOCA,;t t
23382 s,@liblockfile@,$liblockfile,;t t
23383 s,@LIBOBJS@,$LIBOBJS,;t t
23384 s,@NEED_SETGID@,$NEED_SETGID,;t t
23385 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23386 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23387 s,@GETOPT_H@,$GETOPT_H,;t t
23388 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23389 s,@version@,$version,;t t
23390 s,@configuration@,$configuration,;t t
23391 s,@canonical@,$canonical,;t t
23392 s,@srcdir@,$srcdir,;t t
23393 s,@lispdir@,$lispdir,;t t
23394 s,@locallisppath@,$locallisppath,;t t
23395 s,@lisppath@,$lisppath,;t t
23396 s,@x_default_search_path@,$x_default_search_path,;t t
23397 s,@etcdir@,$etcdir,;t t
23398 s,@archlibdir@,$archlibdir,;t t
23399 s,@docdir@,$docdir,;t t
23400 s,@bitmapdir@,$bitmapdir,;t t
23401 s,@gamedir@,$gamedir,;t t
23402 s,@gameuser@,$gameuser,;t t
23403 s,@c_switch_system@,$c_switch_system,;t t
23404 s,@c_switch_machine@,$c_switch_machine,;t t
23405 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23406 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23407 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23408 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23409 s,@machfile@,$machfile,;t t
23410 s,@opsysfile@,$opsysfile,;t t
23411 s,@carbon_appdir@,$carbon_appdir,;t t
23412 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23417 cat >>$CONFIG_STATUS <<\_ACEOF
23418 # Split the substitutions into bite-sized pieces for seds with
23419 # small command number limits, like on Digital OSF/1 and HP-UX.
23420 ac_max_sed_lines
=48
23421 ac_sed_frag
=1 # Number of current file.
23422 ac_beg
=1 # First line for current file.
23423 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23426 while $ac_more_lines; do
23427 if test $ac_beg -gt 1; then
23428 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23430 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23432 if test ! -s $tmp/subs.frag
; then
23433 ac_more_lines
=false
23435 # The purpose of the label and of the branching condition is to
23436 # speed up the sed processing (if there are no `@' at all, there
23437 # is no need to browse any of the substitutions).
23438 # These are the two extra sed commands mentioned above.
23440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23441 if test -z "$ac_sed_cmds"; then
23442 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23444 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23446 ac_sed_frag
=`expr $ac_sed_frag + 1`
23448 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23451 if test -z "$ac_sed_cmds"; then
23454 fi # test -n "$CONFIG_FILES"
23457 cat >>$CONFIG_STATUS <<\_ACEOF
23458 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23461 - |
*:- |
*:-:* ) # input from stdin
23463 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23464 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23465 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23466 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23467 * ) ac_file_in
=$ac_file.
in ;;
23470 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23471 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23472 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23473 X"$ac_file" : 'X\(//\)[^/]' \| \
23474 X"$ac_file" : 'X\(//\)$' \| \
23475 X"$ac_file" : 'X\(/\)' \| \
23476 . : '\(.\)' 2>/dev/null ||
23478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23480 /^X\(\/\/\)$/{ s//\1/; q; }
23481 /^X\(\/\).*/{ s//\1/; q; }
23483 { if $as_mkdir_p; then
23488 while test ! -d "$as_dir"; do
23489 as_dirs
="$as_dir $as_dirs"
23490 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23492 X"$as_dir" : 'X\(//\)[^/]' \| \
23493 X"$as_dir" : 'X\(//\)$' \| \
23494 X"$as_dir" : 'X\(/\)' \| \
23495 . : '\(.\)' 2>/dev/null ||
23497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23499 /^X\(\/\/\)$/{ s//\1/; q; }
23500 /^X\(\/\).*/{ s//\1/; q; }
23503 test ! -n "$as_dirs" || mkdir
$as_dirs
23504 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23505 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23506 { (exit 1); exit 1; }; }; }
23510 if test "$ac_dir" != .
; then
23511 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23512 # A "../" for each directory in $ac_dir_suffix.
23513 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23515 ac_dir_suffix
= ac_top_builddir
=
23519 .
) # No --srcdir option. We are building in place.
23521 if test -z "$ac_top_builddir"; then
23524 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23526 [\\/]* | ?
:[\\/]* ) # Absolute path.
23527 ac_srcdir
=$srcdir$ac_dir_suffix;
23528 ac_top_srcdir
=$srcdir ;;
23529 *) # Relative path.
23530 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23531 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23534 # Do not use `cd foo && pwd` to compute absolute paths, because
23535 # the directories may not exist.
23537 .
) ac_abs_builddir
="$ac_dir";;
23540 .
) ac_abs_builddir
=`pwd`;;
23541 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23542 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23545 case $ac_abs_builddir in
23546 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23548 case ${ac_top_builddir}.
in
23549 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23550 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23551 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23554 case $ac_abs_builddir in
23555 .
) ac_abs_srcdir
=$ac_srcdir;;
23558 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23559 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23560 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23563 case $ac_abs_builddir in
23564 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23566 case $ac_top_srcdir in
23567 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23568 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23569 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23575 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23576 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23579 # Let's still pretend it is `configure' which instantiates (i.e., don't
23580 # use $as_me), people would be surprised to read:
23581 # /* config.h. Generated by config.status. */
23582 if test x
"$ac_file" = x-
; then
23585 configure_input
="$ac_file. "
23587 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23588 sed 's,.*/,,'` by configure."
23590 # First look for the input files in the build tree, otherwise in the
23592 ac_file_inputs
=`IFS=:
23593 for f in $ac_file_in; do
23595 -) echo $tmp/stdin ;;
23597 # Absolute (can't be DOS-style, as IFS=:)
23598 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23599 echo "$as_me: error: cannot find input file: $f" >&2;}
23600 { (exit 1); exit 1; }; }
23603 if test -f "$f"; then
23606 elif test -f "$srcdir/$f"; then
23611 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23612 echo "$as_me: error: cannot find input file: $f" >&2;}
23613 { (exit 1); exit 1; }; }
23616 done` ||
{ (exit 1); exit 1; }
23618 if test x
"$ac_file" != x-
; then
23619 { echo "$as_me:$LINENO: creating $ac_file" >&5
23620 echo "$as_me: creating $ac_file" >&6;}
23624 cat >>$CONFIG_STATUS <<_ACEOF
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23630 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23631 s
,@configure_input@
,$configure_input,;t t
23632 s
,@srcdir@
,$ac_srcdir,;t t
23633 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23634 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23635 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23636 s
,@builddir@
,$ac_builddir,;t t
23637 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23638 s
,@top_builddir@
,$ac_top_builddir,;t t
23639 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23640 s
,@INSTALL@
,$ac_INSTALL,;t t
23641 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23643 if test x"$ac_file" != x-; then
23644 mv $tmp/out $ac_file
23652 cat >>$CONFIG_STATUS <<\_ACEOF
23655 # CONFIG_HEADER section.
23658 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23659 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23661 # ac_d sets the value in "#define NAME VALUE" lines.
23662 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23663 ac_dB
='[ ].*$,\1#\2'
23666 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23667 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23668 ac_uB
='$,\1#\2define\3'
23672 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23675 - |
*:- |
*:-:* ) # input from stdin
23677 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23678 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23679 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23680 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23681 * ) ac_file_in
=$ac_file.
in ;;
23684 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23685 echo "$as_me: creating $ac_file" >&6;}
23687 # First look for the input files in the build tree, otherwise in the
23689 ac_file_inputs
=`IFS=:
23690 for f in $ac_file_in; do
23692 -) echo $tmp/stdin ;;
23694 # Absolute (can't be DOS-style, as IFS=:)
23695 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23696 echo "$as_me: error: cannot find input file: $f" >&2;}
23697 { (exit 1); exit 1; }; }
23698 # Do quote $f, to prevent DOS paths from being IFS'd.
23701 if test -f "$f"; then
23704 elif test -f "$srcdir/$f"; then
23709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23710 echo "$as_me: error: cannot find input file: $f" >&2;}
23711 { (exit 1); exit 1; }; }
23714 done` ||
{ (exit 1); exit 1; }
23715 # Remove the trailing spaces.
23716 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23720 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23721 # `conftest.undefs', that substitutes the proper values into
23722 # config.h.in to produce config.h. The first handles `#define'
23723 # templates, and the second `#undef' templates.
23724 # And first: Protect against being on the right side of a sed subst in
23725 # config.status. Protect against being in an unquoted here document
23726 # in config.status.
23727 rm -f conftest.defines conftest.undefs
23728 # Using a here document instead of a string reduces the quoting nightmare.
23729 # Putting comments in sed scripts is not portable.
23731 # `end' is used to avoid that the second main sed command (meant for
23732 # 0-ary CPP macros) applies to n-ary macro definitions.
23733 # See the Autoconf documentation for `clear'.
23734 cat >confdef2sed.
sed <<\_ACEOF
23739 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23741 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23744 # If some macros were called several times there might be several times
23745 # the same #defines, which is useless. Nevertheless, we may not want to
23746 # sort them, since we want the *last* AC-DEFINE to be honored.
23747 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23748 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23749 rm -f confdef2sed.sed
23751 # This sed command replaces #undef with comments. This is necessary, for
23752 # example, in the case of _POSIX_SOURCE, which is predefined and required
23753 # on some systems where configure will not decide to define it.
23754 cat >>conftest.undefs <<\_ACEOF
23755 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23758 # Break up conftest.defines because some shells have a limit on the size
23759 # of here documents, and old seds have small limits too (100 cmds).
23760 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23761 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23762 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23763 echo ' :' >>$CONFIG_STATUS
23764 rm -f conftest.tail
23765 while grep . conftest.defines >/dev/null
23767 # Write a limited-size here document to $tmp/defines.sed.
23768 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23769 # Speed up: don't consider the non `#define' lines.
23770 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23771 # Work around the forget-to-reset-the-flag bug.
23772 echo 't clr' >>$CONFIG_STATUS
23773 echo ': clr' >>$CONFIG_STATUS
23774 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23776 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23778 mv $tmp/out $tmp/in
23780 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23781 rm -f conftest.defines
23782 mv conftest.
tail conftest.defines
23784 rm -f conftest.defines
23785 echo ' fi # grep' >>$CONFIG_STATUS
23786 echo >>$CONFIG_STATUS
23788 # Break up conftest.undefs because some shells have a limit on the size
23789 # of here documents, and old seds have small limits too (100 cmds).
23790 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23791 rm -f conftest.
tail
23792 while grep . conftest.undefs
>/dev
/null
23794 # Write a limited-size here document to $tmp/undefs.sed.
23795 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23796 # Speed up: don't consider the non
`#undef'
23797 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23798 # Work around the forget-to-reset-the-flag bug.
23799 echo 't clr' >>$CONFIG_STATUS
23800 echo ': clr' >>$CONFIG_STATUS
23801 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23803 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23805 mv $tmp/out $tmp/in
23807 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23808 rm -f conftest.undefs
23809 mv conftest.tail conftest.undefs
23811 rm -f conftest.undefs
23813 cat >>$CONFIG_STATUS <<\_ACEOF
23814 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23815 # use $as_me), people would be surprised to read:
23816 # /* config.h. Generated by config.status. */
23817 if test x
"$ac_file" = x-
; then
23818 echo "/* Generated by configure. */" >$tmp/config.h
23820 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23822 cat $tmp/in >>$tmp/config.h
23824 if test x
"$ac_file" != x-
; then
23825 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23826 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23827 echo "$as_me: $ac_file is unchanged" >&6;}
23829 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23831 X"$ac_file" : 'X\(//\)[^/]' \| \
23832 X"$ac_file" : 'X\(//\)$' \| \
23833 X"$ac_file" : 'X\(/\)' \| \
23834 . : '\(.\)' 2>/dev/null ||
23836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23838 /^X\(\/\/\)$/{ s//\1/; q; }
23839 /^X\(\/\).*/{ s//\1/; q; }
23841 { if $as_mkdir_p; then
23846 while test ! -d "$as_dir"; do
23847 as_dirs
="$as_dir $as_dirs"
23848 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23850 X"$as_dir" : 'X\(//\)[^/]' \| \
23851 X"$as_dir" : 'X\(//\)$' \| \
23852 X"$as_dir" : 'X\(/\)' \| \
23853 . : '\(.\)' 2>/dev/null ||
23855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23857 /^X\(\/\/\)$/{ s//\1/; q; }
23858 /^X\(\/\).*/{ s//\1/; q; }
23861 test ! -n "$as_dirs" || mkdir
$as_dirs
23862 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23863 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23864 { (exit 1); exit 1; }; }; }
23867 mv $tmp/config.h
$ac_file
23871 rm -f $tmp/config.h
23875 cat >>$CONFIG_STATUS <<\_ACEOF
23878 # CONFIG_COMMANDS section.
23880 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23881 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23882 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23883 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23884 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23885 X"$ac_dest" : 'X\(//\)[^/]' \| \
23886 X"$ac_dest" : 'X\(//\)$' \| \
23887 X"$ac_dest" : 'X\(/\)' \| \
23888 . : '\(.\)' 2>/dev/null ||
23890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23892 /^X\(\/\/\)$/{ s//\1/; q; }
23893 /^X\(\/\).*/{ s//\1/; q; }
23895 { if $as_mkdir_p; then
23900 while test ! -d "$as_dir"; do
23901 as_dirs
="$as_dir $as_dirs"
23902 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23904 X"$as_dir" : 'X\(//\)[^/]' \| \
23905 X"$as_dir" : 'X\(//\)$' \| \
23906 X"$as_dir" : 'X\(/\)' \| \
23907 . : '\(.\)' 2>/dev/null ||
23909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23911 /^X\(\/\/\)$/{ s//\1/; q; }
23912 /^X\(\/\).*/{ s//\1/; q; }
23915 test ! -n "$as_dirs" || mkdir
$as_dirs
23916 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23917 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23918 { (exit 1); exit 1; }; }; }
23922 if test "$ac_dir" != .
; then
23923 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23924 # A "../" for each directory in $ac_dir_suffix.
23925 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23927 ac_dir_suffix
= ac_top_builddir
=
23931 .
) # No --srcdir option. We are building in place.
23933 if test -z "$ac_top_builddir"; then
23936 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23938 [\\/]* | ?
:[\\/]* ) # Absolute path.
23939 ac_srcdir
=$srcdir$ac_dir_suffix;
23940 ac_top_srcdir
=$srcdir ;;
23941 *) # Relative path.
23942 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23943 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23946 # Do not use `cd foo && pwd` to compute absolute paths, because
23947 # the directories may not exist.
23949 .
) ac_abs_builddir
="$ac_dir";;
23952 .
) ac_abs_builddir
=`pwd`;;
23953 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23954 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23957 case $ac_abs_builddir in
23958 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23960 case ${ac_top_builddir}.
in
23961 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23962 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23963 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23966 case $ac_abs_builddir in
23967 .
) ac_abs_srcdir
=$ac_srcdir;;
23970 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23971 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23972 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23975 case $ac_abs_builddir in
23976 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23978 case $ac_top_srcdir in
23979 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23980 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23981 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23986 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23987 echo "$as_me: executing $ac_dest commands" >&6;}
23991 ### Make the necessary directories, if they don't exist.
23992 for dir
in etc lisp
; do
23993 test -d ${dir} || mkdir
${dir}
23996 # Build src/Makefile from ${srcdir}/src/Makefile.c
23997 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23998 # This must be done after src/config.h is built, since we rely on that file.
24000 # Now get this: Some word that is part of the ${srcdir} directory name
24001 # or the ${configuration} value might, just might, happen to be an
24002 # identifier like `sun4' or `i386' or something, and be predefined by
24003 # the C preprocessor to some helpful value like 1, or maybe the empty
24004 # string. Needless to say consequent macro substitutions are less
24005 # than conducive to the makefile finding the correct directory.
24006 undefs
="`echo $top_srcdir $configuration $canonical |
24007 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24008 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24011 echo creating src
/epaths.h
24012 ${MAKE-make} epaths-force
24014 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24015 # `..' to `. .' unless invoked with -traditional
24017 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24018 CPPFLAGS
="$CPPFLAGS -traditional"
24021 echo creating lib-src
/Makefile
24023 rm -f junk.c junk1.c junk2.c
24024 sed -e '/start of cpp stuff/q' \
24025 < Makefile.c
> junk1.c
24026 sed -e '1,/start of cpp stuff/d'\
24027 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24028 < Makefile.c
> junk.c
24029 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24030 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24031 cat junk1.c junk2.c
> Makefile.new
24032 rm -f junk.c junk1.c junk2.c
24033 chmod 444 Makefile.new
24034 mv -f Makefile.new Makefile
24037 echo creating src
/Makefile
24039 rm -f junk.c junk1.c junk2.c
24040 sed -e '/start of cpp stuff/q' \
24041 < Makefile.c
> junk1.c
24042 sed -e '1,/start of cpp stuff/d'\
24043 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24044 < Makefile.c
> junk.c
24045 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24046 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24047 cat junk1.c junk2.c
> Makefile.new
24048 rm -f junk.c junk1.c junk2.c
24049 chmod 444 Makefile.new
24050 mv -f Makefile.new Makefile
24053 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24054 echo creating src
/.gdbinit
24055 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24058 # This is how we know whether to re-run configure in certain cases.
24059 touch src
/config.stamp
24066 cat >>$CONFIG_STATUS <<\_ACEOF
24068 { (exit 0); exit 0; }
24070 chmod +x
$CONFIG_STATUS
24071 ac_clean_files
=$ac_clean_files_save
24074 # configure is writing to config.log, and then calls config.status.
24075 # config.status does its own redirection, appending to config.log.
24076 # Unfortunately, on DOS this fails, as config.log is still kept open
24077 # by configure, so config.status won't be able to write to it; its
24078 # output is simply discarded. So we exec the FD to /dev/null,
24079 # effectively closing config.log, so it can be properly (re)opened and
24080 # appended to by config.status. When coming back to configure, we
24081 # need to make the FD available again.
24082 if test "$no_create" != yes; then
24084 ac_config_status_args
=
24085 test "$silent" = yes &&
24086 ac_config_status_args
="$ac_config_status_args --quiet"
24088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24091 # would make configure fail if this is the last instruction.
24092 $ac_cs_success ||
{ (exit 1); exit 1; }