2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search
for lisp files
864 specific to this site
865 --disable-largefile omit support
for large files
868 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
869 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
870 --without-gcc don
't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP
mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version
5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server
host
875 --without-sound don
't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don
't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables
:
892 CC C compiler
command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
895 nonstandard directory
<lib dir
>
896 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
897 headers
in a nonstandard directory
<include dir
>
900 Use these variables to override the choices made by
`configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
918 ac_dir_suffix= ac_top_builddir=
922 .) # No --srcdir option. We are building in place.
924 if test -z "$ac_top_builddir"; then
927 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
937 # Do not use `cd foo
&& pwd` to compute absolute paths, because
938 # the directories may not exist.
940 .) ac_abs_builddir="$ac_dir";;
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1022 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1023 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1024 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1025 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1026 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1029 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1031 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1033 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1034 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1035 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1036 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1037 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_must_keep_next=false
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 -* ) ac_must_keep_next=true ;;
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close
' the trap.
1117 trap 'exit_status
=$?
1118 # Save into config.log some information that might help in debugging.
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1128 # The following way of writing the cache mishandles newlines in values,
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1151 for ac_var
in $ac_subst_vars
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -n "$ac_subst_files"; then
1165 for ac_var
in $ac_subst_files
1167 eval ac_val
=$
`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -s confdefs.h
; then
1180 sed "/^$/d" confdefs.h |
sort
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1187 rm -f core
*.core
&&
1188 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's
/^
/|
/' "$ac_site_file" >&5
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1263 # Check that the precious variables saved in the cache have kept the same
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1276 ac_cache_corrupted=: ;;
1278 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1285 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1310 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1317 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it
if useless.
1348 cat <<\_ACEOF
>conftest.
sed
1349 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1351 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1355 lispdir
='${datadir}/emacs/${version}/lisp'
1356 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath
='${locallisppath}:${lispdir}'
1359 etcdir
='${datadir}/emacs/${version}/etc'
1360 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir
='${datadir}/emacs/${version}/etc'
1362 gamedir
='${localstatedir}/games/emacs'
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h
<<\_ACEOF
1378 #define MAIL_USE_POP 1
1384 cat >>confdefs.h
<<\_ACEOF
1385 #define MAIL_USE_POP 1
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval
="$with_kerberos"
1394 cat >>confdefs.h
<<\_ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval
="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1407 cat >>confdefs.h
<<\_ACEOF
1414 cat >>confdefs.h
<<\_ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval
="$with_hesiod"
1424 cat >>confdefs.h
<<\_ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval
="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval
="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye |
yes ) val
=athena
;;
1444 l | lu | luc | luci | lucid
) val
=lucid
;;
1445 a |
at | ath | athe | athen | athena
) val
=athena
;;
1446 m | mo | mot | moti | motif
) val
=motif
;;
1447 g | gt | gtk
) val
=gtk
;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval
="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval
="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval
="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval
="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval
="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval
="$enable_carbon_app"
1524 carbon_appdir_x
=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval
="$enable_asserts"
1530 USE_XASSERTS
=$enableval
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval
="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE
=$enableval
1540 USE_MAINTAINER_MODE
=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval
="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath
=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1577 srcdir
="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1606 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1607 if test -f $ac_dir/install-sh
; then
1609 ac_install_sh
="$ac_aux_dir/install-sh -c"
1611 elif test -f $ac_dir/install.sh
; then
1613 ac_install_sh
="$ac_aux_dir/install.sh -c"
1615 elif test -f $ac_dir/shtool
; then
1617 ac_install_sh
="$ac_aux_dir/shtool install -c"
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 ac_cv_build_alias
=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias
=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1657 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_host_alias
=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias
=$ac_cv_build_alias
1670 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1679 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 configuration
=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine
='' opsys
='' unported
=no
1713 case "${canonical}" in
1718 case "${canonical}" in
1719 alpha
*-*-freebsd*) machine
=alpha
;;
1720 i
[3456]86-*-freebsd*) machine
=intel386
;;
1721 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1728 if test -f /usr
/lib
/crti.o
; then
1730 cat >>confdefs.h
<<\_ACEOF
1736 case "${canonical}" in
1737 alpha
*-*-netbsd*) machine
=alpha
;;
1738 i
[3456]86-*-netbsd*) machine
=intel386
;;
1740 # This is somewhat bogus.
1741 machine
=hp9000s300
;;
1742 powerpc-apple-netbsd
*) machine
=macppc
;;
1743 mips-
*-netbsd*) machine
=pmax
;;
1744 mipsel-
*-netbsd*) machine
=pmax
;;
1745 mipseb-
*-netbsd*) machine
=pmax
;;
1746 ns32k-
*-netbsd*) machine
=ns32000
;;
1747 powerpc-
*-netbsd*) machine
=macppc
;;
1748 sparc
*-*-netbsd*) machine
=sparc
;;
1749 vax-
*-netbsd*) machine
=vax
;;
1750 arm-
*-netbsd*) machine
=arm
;;
1757 case "${canonical}" in
1758 alpha
*-*-openbsd*) machine
=alpha
;;
1759 i386-
*-openbsd*) machine
=intel386
;;
1760 m68k-
*-openbsd*) machine
=hp9000s300
;;
1761 mipsel-
*-openbsd*) machine
=pmax
;;
1762 ns32k-
*-openbsd*) machine
=ns32000
;;
1763 sparc-
*-openbsd*) machine
=sparc
;;
1764 vax-
*-openbsd*) machine
=vax
;;
1771 case "${canonical}" in
1772 i
[3456]86-*-lynxos*) machine
=intel386
;;
1773 powerpc-
*-lynxos*) machine
=powerpc
;;
1778 arm-acorn-riscix1.1
* )
1779 machine
=acorn opsys
=riscix1-1
1781 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine
=acorn opsys
=riscix12
1790 case "${canonical}" in
1791 i
[345]86-*-bsdi*) machine
=intel386
;;
1792 sparc-
*-bsdi*) machine
=sparc
;;
1793 powerpc-
*-bsdi*) machine
=macppc
;;
1795 case "${canonical}" in
1796 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1797 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1798 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1799 *-*-bsdi3* ) opsys
=bsdos3
;;
1800 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1811 machine
=alliant4 opsys
=bsd4-2
1814 machine
=alliant-2800 opsys
=bsd4-3
1817 ## Alpha (DEC) machines.
1819 machine
=alpha opsys
=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1822 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP
=/usr
/bin
/cpp
1828 case "${canonical}" in
1829 alpha
*-dec-osf[5-9]*)
1834 alpha
*-*-linux-gnu* )
1835 machine
=alpha opsys
=gnu-linux
1839 machine
=arm opsys
=gnu-linux
1844 machine
=altos opsys
=usg5-2
1849 machine
=amdahl opsys
=usg5-2-2
1852 ## Apollo, Domain/OS
1854 machine
=apollo opsys
=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1859 machine
=att3b opsys
=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1864 machine
=7300 opsys
=usg5-2-2
1869 machine
=ibmrs6000 opsys
=aix3-2
1874 machine
=dpx2 opsys
=usg5-3
1879 machine
=sps7 opsys
=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd
* )
1889 machine
=celerity opsys
=bsd4-2
1893 ## What operating systems does this chip run that Emacs has been
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1902 mips-compaq-nonstopux
* )
1903 machine
=nonstopux opsys
=nonstopux
1907 *-convex-bsd* |
*-convex-convexos* )
1908 machine
=convex opsys
=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP
="cc -E -P"
1914 i
[3456]86-cubix-sysv* )
1915 machine
=intel386 opsys
=usg5-3
1919 cydra
*-cydrome-sysv* )
1920 machine
=cydra5 opsys
=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1930 machine
=aviion opsys
=dgux4
1932 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine
=aviion opsys
=dgux5-4-3
1937 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1938 machine
=aviion opsys
=dgux5-4r2
1941 machine
=aviion opsys
=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i
[345]86-dg-dguxR4* )
1948 machine
=aviion-intel opsys
=dgux4
1952 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1953 machine
=pmax opsys
=bsd4-2
1955 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1956 machine
=pmax opsys
=bsd4-3
1959 machine
=pmax opsys
=ultrix4-3
1962 machine
=pmax opsys
=osf1
1964 mips-dec-mach_bsd4.3
* )
1965 machine
=pmax opsys
=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1970 machine
=delta opsys
=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1973 if test -s /etc
/167config
1974 then CC
="gnucc -m68040"
1975 else CC
="gnucc -m68881"
1978 if test -z "`type gcc | grep 'not found'`"
1984 m88k-motorola-sysv4
* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine
=delta88k opsys
=usg5-4-2
1991 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1992 machine
=delta88k opsys
=usg5-3
1997 machine
=dual opsys
=usg5-2
1999 m68
*-dual-uniplus* )
2000 machine
=dual opsys
=unipl5-2
2005 machine
=elxsi opsys
=usg5-2
2010 machine
=ns16000 opsys
=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2018 machine
=gould opsys
=bsd4-2
2021 machine
=gould opsys
=bsd4-3
2024 machine
=gould-np1 opsys
=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2033 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2035 NON_GNU_CPP
="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2039 machine
=nh3000 opsys
=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix
)
2043 machine
=nh6000 opsys
=powerunix
2044 NON_GNU_CPP
="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1
-hitachi-hiuxmpp* )
2048 machine
=sr2k opsys
=hiuxmpp
2050 hppa1.1
-hitachi-hiuxwe2* )
2051 machine
=sr2k opsys
=hiuxwe2
2054 xps
*-honeywell-sysv* )
2055 machine
=xps100 opsys
=usg5-2
2058 ## HP 9000 series 200 or 300
2060 machine
=hp9000s300 opsys
=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2068 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2069 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2070 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2071 *) machine
=hp9000s300 opsys
=hpux
;;
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 machine
=hp800 opsys
=hpux
2080 machine
=hp800 opsys
=hpux8
2082 hppa
*-hp-hpux9shr* )
2083 machine
=hp800 opsys
=hpux9shr
2086 machine
=hp800 opsys
=hpux9
2088 hppa
*-hp-hpux10.2
* )
2089 machine
=hp800 opsys
=hpux10-20
2092 machine
=hp800 opsys
=hpux10
2094 hppa
*-hp-hpux1[1-9]* )
2095 machine
=hp800 opsys
=hpux11
2098 hppa
*-*-linux-gnu* )
2099 machine
=hp800 opsys
=gnu-linux
2102 ## HP 9000 series 700 and 800, running HP/UX
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2109 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2110 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2111 *) machine
=hp800 opsys
=hpux10
;;
2115 machine
=hp800 opsys
=nextstep
2120 machine
=orion opsys
=bsd4-2
2122 clipper-orion-bsd
* )
2123 machine
=orion105 opsys
=bsd4-2
2127 i
[3456]86-ibm-aix1.1
* )
2128 machine
=ibmps2-aix opsys
=usg5-2-2
2130 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2131 machine
=ibmps2-aix opsys
=usg5-3
2134 machine
=ibm370aix opsys
=usg5-3
2137 machine
=ibms390 opsys
=gnu-linux
2139 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2140 machine
=ibmrs6000 opsys
=aix3-1
2142 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2143 machine
=ibmrs6000 opsys
=aix3-2-5
2145 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2146 machine
=ibmrs6000 opsys
=aix4-1
2148 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2149 machine
=ibmrs6000 opsys
=aix4-2
2151 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2152 machine
=ibmrs6000 opsys
=aix4-2
2154 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2155 machine
=ibmrs6000 opsys
=aix4
2157 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2158 machine
=ibmrs6000 opsys
=aix4-1
2160 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2161 machine
=ibmrs6000 opsys
=aix3-2
2164 machine
=ibmrt opsys
=bsd4-3
2167 machine
=ibmrt opsys
=bsd4-2
2170 machine
=ibmrt opsys
=bsd4-3
2173 machine
=ibmrt opsys
=bsd4-2
2176 machine
=ibmrt opsys
=bsd4-3
2179 machine
=ibmrt opsys
=bsd4-3
2182 machine
=ibmrt-aix opsys
=usg5-2-2
2185 ## Integrated Solutions `Optimum V'
2187 machine
=isi-ov opsys
=bsd4-2
2190 machine
=isi-ov opsys
=bsd4-3
2193 ## Intel 386 machines where we do care about the manufacturer
2194 i
[3456]86-intsys-sysv* )
2195 machine
=is386 opsys
=usg5-2-2
2199 i
[3456]86-prime-sysv* )
2200 machine
=i386 opsys
=usg5-3
2203 ## Sequent Symmetry running Dynix
2204 i
[3456]86-sequent-bsd* )
2205 machine
=symmetry opsys
=bsd4-3
2208 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2209 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2210 machine
=sequent-ptx opsys
=ptx4
2211 NON_GNU_CPP
=/lib
/cpp
2214 ## Sequent Symmetry running DYNIX/ptx
2215 ## Use the old cpp rather than the newer ANSI one.
2216 i
[3456]86-sequent-ptx* )
2217 machine
=sequent-ptx opsys
=ptx
2218 NON_GNU_CPP
="/lib/cpp"
2221 ## ncr machine running svr4.3.
2222 i
[3456]86-ncr-sysv4.3
)
2223 machine
=ncr386 opsys
=usg5-4-3
2226 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2227 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2228 i
[3456]86-ncr-sysv* )
2229 machine
=ncr386 opsys
=usg5-4-2
2232 ## Intel Paragon OSF/1
2234 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2239 machine
=i860 opsys
=usg5-4
2240 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2241 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2244 ## Macintosh PowerPC
2245 powerpc
*-*-linux-gnu* )
2246 machine
=macppc opsys
=gnu-linux
2249 ## Masscomp machines
2250 m68
*-masscomp-rtu* )
2251 machine
=masscomp opsys
=rtu
2254 ## Megatest machines
2255 m68
*-megatest-bsd* )
2256 machine
=mega68 opsys
=bsd4-2
2259 ## Workstations sold by MIPS
2260 ## This is not necessarily all workstations using the MIPS processor -
2261 ## Irises are produced by SGI, and DECstations by DEC.
2263 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2264 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2265 ## it gives for choosing between the alternatives seems to be "Use
2266 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2267 ## the BSD world." I'll assume that these are instructions for
2268 ## handling two odd situations, and that every other situation
2269 ## should use mips.h and usg5-2-2, they being listed first.
2272 ## Fall through to the general code at the bottom to decide on the OS.
2274 mips-mips-riscos4
* )
2275 machine
=mips4 opsys
=bsd4-3
2276 NON_GNU_CC
="cc -systype bsd43"
2277 NON_GNU_CPP
="cc -systype bsd43 -E"
2279 mips-mips-riscos5
* )
2280 machine
=mips4 opsys
=riscos5
2281 NON_GNU_CC
="cc -systype bsd43"
2282 NON_GNU_CPP
="cc -systype bsd43 -E"
2285 machine
=mips opsys
=bsd4-3
2288 machine
=mips opsys
=usg5-2-2
2292 m68
*-next-* | m68k-
*-nextstep* )
2293 machine
=m68k opsys
=nextstep
2296 ## The complete machine from National Semiconductor
2298 machine
=ns32000 opsys
=usg5-2
2302 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2303 machine
=tower32 opsys
=usg5-2-2
2305 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2306 machine
=tower32v3 opsys
=usg5-3
2311 machine
=ews4800 opsys
=ux4800
2314 ## Nixdorf Targon 31
2315 m68
*-nixdorf-sysv* )
2316 machine
=targon31 opsys
=usg5-2-2
2321 machine
=nu opsys
=usg5-2
2326 machine
=plexus opsys
=usg5-2
2330 ## I don't really have any idea what sort of processor the Pyramid has,
2331 ## so I'm assuming it is its own architecture.
2332 pyramid-pyramid-bsd
* )
2333 machine
=pyramid opsys
=bsd4-2
2337 ns32k-sequent-bsd4.2
* )
2338 machine
=sequent opsys
=bsd4-2
2340 ns32k-sequent-bsd4.3
* )
2341 machine
=sequent opsys
=bsd4-3
2345 mips-siemens-sysv
* | mips-sni-sysv
*)
2346 machine
=mips-siemens opsys
=usg5-4
2347 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2348 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2351 ## Silicon Graphics machines
2352 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2354 machine
=irist opsys
=iris3-5
2356 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2357 machine
=irist opsys
=iris3-6
2361 machine
=iris4d opsys
=irix3-3
2364 machine
=iris4d opsys
=irix4-0
2367 machine
=iris4d opsys
=irix6-5
2368 # Without defining _LANGUAGE_C, things get masked out in the headers
2369 # so that, for instance, grepping for `free' in stdlib.h fails and
2370 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2371 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2372 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2375 machine
=iris4d opsys
=irix6-0
2376 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2377 # but presumably it does no harm.
2378 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2379 # -32 probably isn't necessary in later v.6s -- anyone know which?
2380 NON_GCC_TEST_OPTIONS
=-32
2382 mips-sgi-irix5.
[01]* )
2383 machine
=iris4d opsys
=irix5-0
2385 mips-sgi-irix5
* | mips-sgi-irix
* )
2386 machine
=iris4d opsys
=irix5-2
2391 machine
=news opsys
=bsd4-2
2394 machine
=news opsys
=bsd4-3
2396 m68
*-sony-newsos3* | m68
*-sony-news3*)
2397 machine
=news opsys
=bsd4-3
2399 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2400 machine
=news-risc opsys
=bsd4-3
2402 mips-sony-newsos6
* )
2403 machine
=news-r6 opsys
=newsos6
2406 machine
=news-risc opsys
=newsos5
2411 machine
=stride opsys
=usg5-2
2415 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2416 machine
=sparc opsys
=gnu-linux
2419 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2420 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2421 | rs6000-
*-solaris2*)
2422 case "${canonical}" in
2423 m68
*-sunos1* ) machine
=sun1
;;
2424 m68
*-sunos2* ) machine
=sun2
;;
2425 m68
* ) machine
=sun3
;;
2426 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2427 i
[3456]86-*-* ) machine
=intel386
;;
2428 powerpcle
* ) machine
=powerpcle
;;
2429 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2430 sparc
* ) machine
=sparc
;;
2433 case "${canonical}" in
2434 ## The Sun386 didn't get past 4.0.
2435 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2436 *-sunos4.0
* ) opsys
=sunos4-0
;;
2437 *-sunos4.1.
[3-9]*noshare
)
2438 ## This name is sunos413 instead of sunos4-1-3
2439 ## to avoid a file name conflict on MSDOS.
2441 NON_GNU_CPP
=/usr
/lib
/cpp
2442 NON_GCC_TEST_OPTIONS
=-Bstatic
2443 GCC_TEST_OPTIONS
=-static
2445 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2447 NON_GNU_CPP
=/usr
/lib
/cpp
2449 *-sunos4* |
*-sunos )
2451 NON_GCC_TEST_OPTIONS
=-Bstatic
2452 GCC_TEST_OPTIONS
=-static
2454 *-sunos5.3
* |
*-solaris2.3
* )
2456 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2458 *-sunos5.4
* |
*-solaris2.4
* )
2460 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2463 *-sunos5.5
* |
*-solaris2.5
* )
2465 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2468 *-sunos5.6
* |
*-solaris2.6
* )
2470 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2473 *-sunos5* |
*-solaris* )
2475 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2479 ## Watch out for a compiler that we know will not work.
2480 case "${canonical}" in
2481 *-solaris* |
*-sunos5* )
2482 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2483 ## /usr/ucb/cc doesn't work;
2484 ## we should find some other compiler that does work.
2492 machine
=sparc opsys
=nextstep
2496 m68
*-tadpole-sysv* )
2497 machine
=tad68k opsys
=usg5-3
2501 tahoe-tahoe-bsd4.2
* )
2502 machine
=tahoe opsys
=bsd4-2
2504 tahoe-tahoe-bsd4.3
* )
2505 machine
=tahoe opsys
=bsd4-3
2508 ## Tandem Integrity S2
2510 machine
=tandem-s2 opsys
=usg5-3
2514 m88k-tektronix-sysv3
* )
2515 machine
=tekxd88 opsys
=usg5-3
2518 ## Tektronix 16000 box (6130?)
2519 ns16k-tektronix-bsd
* )
2520 machine
=ns16000 opsys
=bsd4-2
2523 ## src/m/tek4300.h hints that this is a m68k machine.
2524 m68
*-tektronix-bsd* )
2525 machine
=tek4300 opsys
=bsd4-3
2529 ## We seem to have lost the machine-description file titan.h!
2531 machine
=titan opsys
=usg5-3
2534 ## Ustation E30 (SS5E)
2535 m68
*-unisys-uniplus* )
2536 machine
=ustation opsystem
=unipl5-2
2542 case "${canonical}" in
2543 *-bsd4.1
* ) opsys
=bsd4-1
;;
2544 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2545 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2546 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2547 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2548 *-vms* ) opsys
=vms
;;
2554 ns16k-whitechapel-
* )
2556 ## We don't know what sort of OS runs on these; we'll let the
2557 ## operating system guessing code below try.
2562 machine
=wicat opsys
=usg5-2
2567 machine
=ia64 opsys
=gnu-linux
2570 ## Intel 386 machines where we don't care about the manufacturer
2573 case "${canonical}" in
2574 *-cygwin ) opsys
=cygwin
;;
2575 *-darwin* ) opsys
=darwin
2576 CPP
="${CC-cc} -E -no-cpp-precomp"
2578 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2579 *-isc2.2
* ) opsys
=isc2-2
;;
2580 *-isc4.0
* ) opsys
=isc4-0
;;
2581 *-isc4.
* ) opsys
=isc4-1
2582 GCC_TEST_OPTIONS
=-posix
2583 NON_GCC_TEST_OPTIONS
=-Xp
2585 *-isc* ) opsys
=isc3-0
;;
2586 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2587 *-esix* ) opsys
=esix
;;
2588 *-xenix* ) opsys
=xenix
;;
2589 *-linux-gnu* ) opsys
=gnu-linux
;;
2590 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2591 *-sco3.2v5
* ) opsys
=sco5
2592 NON_GNU_CPP
=/lib
/cpp
2593 # Prevent -belf from being passed to $CPP.
2594 # /lib/cpp does not accept it.
2595 OVERRIDE_CPPFLAGS
=" "
2597 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2598 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2599 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2600 *-386bsd* ) opsys
=386bsd
;;
2601 *-nextstep* ) opsys
=nextstep
;;
2602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2606 ## m68k Linux-based GNU system
2608 machine
=m68k opsys
=gnu-linux
2611 ## Mips Linux-based GNU system
2612 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2613 machine
=mips opsys
=gnu-linux
2617 sparc-fujitsu-sysv4
* )
2618 machine
=sparc opsys
=uxpds
2619 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2624 f301-fujitsu-uxpv4.1
)
2625 machine
=f301 opsys
=uxpv
2628 ## Darwin / Mac OS X
2629 powerpc-apple-darwin
* )
2630 machine
=powermac opsys
=darwin
2631 # Define CPP as follows to make autoconf work correctly.
2632 CPP
="${CC-cc} -E -no-cpp-precomp"
2633 # Use fink packages if available.
2634 if test -d /sw
/include
&& test -d /sw
/lib
; then
2635 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2636 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2637 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-
*-linux-gnu* )
2643 machine
=amdx86-64 opsys
=gnu-linux
2651 ### If the code above didn't choose an operating system, just choose
2652 ### an operating system based on the configuration name. You really
2653 ### only want to use this when you have no idea what the right
2654 ### operating system is; if you know what operating systems a machine
2655 ### runs, it's cleaner to make it explicit in the case statement
2657 if test x
"${opsys}" = x
; then
2658 case "${canonical}" in
2659 *-gnu* ) opsys
=gnu
;;
2660 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2661 *-bsd4.2
) opsys
=bsd4-2
;;
2662 *-bsd4.3
) opsys
=bsd4-3
;;
2663 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2664 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2665 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2666 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2667 *-sysv4.2uw
* ) opsys
=unixware
;;
2668 *-sysv5uw* ) opsys
=unixware
;;
2669 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2670 *-sysv4.1
* |
*-sysvr4.1
* )
2671 NON_GNU_CPP
=/usr
/lib
/cpp
2673 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2674 if [ x
$NON_GNU_CPP = x
]; then
2675 if [ -f /usr
/ccs
/lib
/cpp
]; then
2676 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2678 NON_GNU_CPP
=/lib
/cpp
2682 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2699 machfile
="m/${machine}.h"
2700 opsysfile
="s/${opsys}.h"
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified
=yes
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS
="$CFLAGS"
2710 "yes" ) CC
="gcc" GCC
=yes ;;
2711 "no" ) : ${CC=cc} ;;
2715 ac_cpp
='$CPP $CPPFLAGS'
2716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC
="$CC" # Let the user override the test.
2730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir
=.
2735 for ac_exec_ext
in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test -n "$CC"; then
2748 echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2756 if test -z "$ac_cv_prog_CC"; then
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc
; ac_word
=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir
=.
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC
="gcc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC
="$CC" # Let the user override the test.
2810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir
=.
2815 for ac_exec_ext
in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_CC"; then
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc
; ac_word
=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir
=.
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC
="cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc
; ac_word
=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC
="$CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected
=yes
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy
$ac_cv_prog_CC
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2918 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2924 if test -n "$CC"; then
2925 echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC
="$CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$CC" && break
2975 if test -z "$CC"; then
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy
$ac_prog; ac_word
=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC
="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 echo "${ECHO_T}$ac_ct_CC" >&6
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$ac_ct_CC" && break
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO:" \
3031 "checking for C compiler version" >&5
3032 ac_compiler
=`set X $ac_compile; echo $2`
3033 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3034 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3039 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3044 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save
=$ac_clean_files
3065 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3071 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3073 (eval $ac_link_default) 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 # Find the output, starting from the most likely. This scheme is
3078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3081 # Be careful to initialize this variable, since it used to be cached.
3082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3084 # b.out is created by i960 compilers.
3085 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3087 test -f "$ac_file" ||
continue
3089 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3092 # This is the source file.
3095 # We found the default executable, but exeext='' is most
3099 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # FIXME: I believe we export ac_cv_exeext for Libtool,
3101 # but it would be cool to find out if it's true. Does anybody
3102 # maintain Libtool? --akim.
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.
$ac_ext >&5
3113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: C compiler cannot create executables
3116 See \`config.log' for more details." >&2;}
3117 { (exit 77); exit 77; }; }
3120 ac_exeext
=$ac_cv_exeext
3121 echo "$as_me:$LINENO: result: $ac_file" >&5
3122 echo "${ECHO_T}$ac_file" >&6
3124 # Check the compiler produces executables we can run. If not, either
3125 # the compiler is broken, or we cross compile.
3126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129 # If not cross compiling, check that we can run a simple program.
3130 if test "$cross_compiling" != yes; then
3131 if { ac_try
='./$ac_file'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 if test "$cross_compiling" = maybe
; then
3142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3155 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3156 ac_clean_files
=$ac_clean_files_save
3157 # Check the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3160 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3161 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3162 echo "${ECHO_T}$cross_compiling" >&6
3164 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3165 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3175 for ac_file
in conftest.exe conftest conftest.
*; do
3176 test -f "$ac_file" ||
continue
3178 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3179 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3193 rm -f conftest
$ac_cv_exeext
3194 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3195 echo "${ECHO_T}$ac_cv_exeext" >&6
3197 rm -f conftest.
$ac_ext
3198 EXEEXT
=$ac_cv_exeext
3200 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3201 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3202 if test "${ac_cv_objext+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 cat >conftest.
$ac_ext <<_ACEOF
3208 cat confdefs.h
>>conftest.
$ac_ext
3209 cat >>conftest.
$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3220 rm -f conftest.o conftest.obj
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; then
3226 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3229 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.
$ac_ext >&5
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6
3248 OBJEXT
=$ac_cv_objext
3250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 cat >conftest.
$ac_ext <<_ACEOF
3258 cat confdefs.h
>>conftest.
$ac_ext
3259 cat >>conftest.
$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3273 rm -f conftest.
$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1
>conftest.err
3279 cat conftest.err
>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try
='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.
$ac_ext >&5
3301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3307 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS
=${CFLAGS+set}
3309 ac_save_CFLAGS
=$CFLAGS
3311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cc_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.
$ac_ext <<_ACEOF
3319 cat confdefs.h
>>conftest.
$ac_ext
3320 cat >>conftest.
$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.
$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3335 grep -v '^ *+' conftest.er1
>conftest.err
3337 cat conftest.err
>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try
='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.
$ac_ext >&5
3359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS
=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3372 if test "$GCC" = yes; then
3378 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3379 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3380 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_prog_cc_stdc
=no
3385 cat >conftest.
$ac_ext <<_ACEOF
3388 cat confdefs.h
>>conftest.
$ac_ext
3389 cat >>conftest.
$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3393 #include <sys/types.h>
3394 #include <sys/stat.h>
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3409 s = g (p, va_arg (v,int));
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std1 is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std1. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423 int test (int i, double x);
3424 struct s1 {int (*f) (int a);};
3425 struct s2 {int (*f) (double a);};
3426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3437 # Don't try gcc -ansi; that turns off useful extensions and
3438 # breaks some systems' header files.
3439 # AIX -qlanglvl=ansi
3440 # Ultrix and OSF/1 -std1
3441 # HP-UX 10.20 and later -Ae
3442 # HP-UX older versions -Aa -D_HPUX_SOURCE
3443 # SVR4 -Xc -D__EXTENSIONS__
3444 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 CC
="$ac_save_CC $ac_arg"
3447 rm -f conftest.
$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>conftest.er1
3451 grep -v '^ *+' conftest.er1
>conftest.err
3453 cat conftest.err
>&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try
='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_prog_cc_stdc
=$ac_arg
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3475 rm -f conftest.err conftest.
$ac_objext
3477 rm -f conftest.
$ac_ext conftest.
$ac_objext
3482 case "x$ac_cv_prog_cc_stdc" in
3484 echo "$as_me:$LINENO: result: none needed" >&5
3485 echo "${ECHO_T}none needed" >&6 ;;
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3489 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3492 # Some people use a C++ compiler to compile C. Since we use `exit',
3493 # in C++ we need to declare it. In case someone uses the same compiler
3494 # for both compiling C and C++ we need to have the C++ compiler decide
3495 # the declaration of exit, since it's the most demanding environment.
3496 cat >conftest.
$ac_ext <<_ACEOF
3501 rm -f conftest.
$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1
>conftest.err
3507 cat conftest.err
>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try
='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 for ac_declaration
in \
3524 'extern "C" void std::exit (int) throw (); using std::exit;' \
3525 'extern "C" void std::exit (int); using std::exit;' \
3526 'extern "C" void exit (int) throw ();' \
3527 'extern "C" void exit (int);' \
3530 cat >conftest.
$ac_ext <<_ACEOF
3533 cat confdefs.h
>>conftest.
$ac_ext
3534 cat >>conftest.
$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3546 rm -f conftest.
$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1
>conftest.err
3552 cat conftest.err
>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try
='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.
$ac_ext >&5
3574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3575 cat >conftest.
$ac_ext <<_ACEOF
3578 cat confdefs.h
>>conftest.
$ac_ext
3579 cat >>conftest.
$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3590 rm -f conftest.
$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1
>conftest.err
3596 cat conftest.err
>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try
='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.
$ac_ext >&5
3617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3620 if test -n "$ac_declaration"; then
3621 echo '#ifdef __cplusplus' >>confdefs.h
3622 echo $ac_declaration >>confdefs.h
3623 echo '#endif' >>confdefs.h
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3633 ac_cpp
='$CPP $CPPFLAGS'
3634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3639 # On Suns, sometimes $CPP names a directory.
3640 if test -n "$CPP" && test -d "$CPP"; then
3644 #### Some systems specify a CPP to use unless we are using GCC.
3645 #### Now that we know whether we are using GCC, we can decide whether
3646 #### to use that one.
3647 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3652 #### Some systems specify a CC to use unless we are using GCC.
3653 #### Now that we know whether we are using GCC, we can decide whether
3654 #### to use that one.
3655 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3656 test x
$cc_specified != xyes
3661 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3663 CC
="$CC $GCC_TEST_OPTIONS"
3666 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3668 CC
="$CC $NON_GCC_TEST_OPTIONS"
3673 ac_cpp
='$CPP $CPPFLAGS'
3674 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3677 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3679 # On Suns, sometimes $CPP names a directory.
3680 if test -n "$CPP" && test -d "$CPP"; then
3683 if test -z "$CPP"; then
3684 if test "${ac_cv_prog_CPP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 # Double quotes because CPP needs to be expanded
3688 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3691 for ac_c_preproc_warn_flag
in '' yes
3693 # Use a header file that comes with gcc, so configuring glibc
3694 # with a fresh cross-compiler works.
3695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696 # <limits.h> exists even on freestanding compilers.
3697 # On the NeXT, cc -E runs the code through the compiler's parser,
3698 # not just through cpp. "Syntax error" is here to catch this case.
3699 cat >conftest.
$ac_ext <<_ACEOF
3702 cat confdefs.h
>>conftest.
$ac_ext
3703 cat >>conftest.
$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3706 # include <limits.h>
3708 # include <assert.h>
3712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3715 grep -v '^ *+' conftest.er1
>conftest.err
3717 cat conftest.err
>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev
/null
; then
3720 if test -s conftest.err
; then
3721 ac_cpp_err
=$ac_c_preproc_warn_flag
3722 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3729 if test -z "$ac_cpp_err"; then
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 # Broken: fails on valid input.
3738 rm -f conftest.err conftest.
$ac_ext
3740 # OK, works on sane cases. Now check whether non-existent headers
3741 # can be detected and how.
3742 cat >conftest.
$ac_ext <<_ACEOF
3745 cat confdefs.h
>>conftest.
$ac_ext
3746 cat >>conftest.
$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <ac_nonexistent.h>
3750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3753 grep -v '^ *+' conftest.er1
>conftest.err
3755 cat conftest.err
>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev
/null
; then
3758 if test -s conftest.err
; then
3759 ac_cpp_err
=$ac_c_preproc_warn_flag
3760 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3767 if test -z "$ac_cpp_err"; then
3768 # Broken: success on invalid input.
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.
$ac_ext >&5
3774 # Passes both tests.
3778 rm -f conftest.err conftest.
$ac_ext
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.err conftest.
$ac_ext
3783 if $ac_preproc_ok; then
3795 echo "$as_me:$LINENO: result: $CPP" >&5
3796 echo "${ECHO_T}$CPP" >&6
3798 for ac_c_preproc_warn_flag
in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat >conftest.
$ac_ext <<_ACEOF
3809 cat confdefs.h
>>conftest.
$ac_ext
3810 cat >>conftest.
$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3813 # include <limits.h>
3815 # include <assert.h>
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3822 grep -v '^ *+' conftest.er1
>conftest.err
3824 cat conftest.err
>&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev
/null
; then
3827 if test -s conftest.err
; then
3828 ac_cpp_err
=$ac_c_preproc_warn_flag
3829 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3836 if test -z "$ac_cpp_err"; then
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.
$ac_ext >&5
3842 # Broken: fails on valid input.
3845 rm -f conftest.err conftest.
$ac_ext
3847 # OK, works on sane cases. Now check whether non-existent headers
3848 # can be detected and how.
3849 cat >conftest.
$ac_ext <<_ACEOF
3852 cat confdefs.h
>>conftest.
$ac_ext
3853 cat >>conftest.
$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3860 grep -v '^ *+' conftest.er1
>conftest.err
3862 cat conftest.err
>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev
/null
; then
3865 if test -s conftest.err
; then
3866 ac_cpp_err
=$ac_c_preproc_warn_flag
3867 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3874 if test -z "$ac_cpp_err"; then
3875 # Broken: success on invalid input.
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.
$ac_ext >&5
3881 # Passes both tests.
3885 rm -f conftest.err conftest.
$ac_ext
3888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889 rm -f conftest.err conftest.
$ac_ext
3890 if $ac_preproc_ok; then
3893 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&5
3895 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3896 See \`config.log' for more details." >&2;}
3897 { (exit 1); exit 1; }; }
3901 ac_cpp
='$CPP $CPPFLAGS'
3902 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3907 echo "$as_me:$LINENO: checking for egrep" >&5
3908 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3909 if test "${ac_cv_prog_egrep+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3913 then ac_cv_prog_egrep
='grep -E'
3914 else ac_cv_prog_egrep
='egrep'
3917 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3918 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3919 EGREP
=$ac_cv_prog_egrep
3923 echo "$as_me:$LINENO: checking for AIX" >&5
3924 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3925 cat >conftest.
$ac_ext <<_ACEOF
3928 cat confdefs.h
>>conftest.
$ac_ext
3929 cat >>conftest.
$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "yes" >/dev
/null
2>&1; then
3938 echo "$as_me:$LINENO: result: yes" >&5
3939 echo "${ECHO_T}yes" >&6
3940 cat >>confdefs.h
<<\_ACEOF
3941 #define _ALL_SOURCE 1
3945 echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3952 cat >>confdefs.h
<<\_ACEOF
3953 #define _GNU_SOURCE 1
3958 ### Use -Wno-pointer-sign if the compiler supports it
3959 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3960 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3961 SAVE_CFLAGS
="$CFLAGS"
3962 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3963 cat >conftest.
$ac_ext <<_ACEOF
3966 cat confdefs.h
>>conftest.
$ac_ext
3967 cat >>conftest.
$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3978 rm -f conftest.
$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3982 grep -v '^ *+' conftest.er1
>conftest.err
3984 cat conftest.err
>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; } &&
3993 { ac_try
='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.
$ac_ext >&5
4006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4007 if test $has_option = yes; then
4008 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4010 echo "$as_me:$LINENO: result: $has_option" >&5
4011 echo "${ECHO_T}$has_option" >&6
4012 CFLAGS
="$SAVE_CFLAGS"
4016 #### Some other nice autoconf tests.
4018 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4019 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4021 if test "$LN_S" = "ln -s"; then
4022 echo "$as_me:$LINENO: result: yes" >&5
4023 echo "${ECHO_T}yes" >&6
4025 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4026 echo "${ECHO_T}no, using $LN_S" >&6
4030 ac_cpp
='$CPP $CPPFLAGS'
4031 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4034 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4035 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4036 # On Suns, sometimes $CPP names a directory.
4037 if test -n "$CPP" && test -d "$CPP"; then
4040 if test -z "$CPP"; then
4041 if test "${ac_cv_prog_CPP+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 # Double quotes because CPP needs to be expanded
4045 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4048 for ac_c_preproc_warn_flag
in '' yes
4050 # Use a header file that comes with gcc, so configuring glibc
4051 # with a fresh cross-compiler works.
4052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053 # <limits.h> exists even on freestanding compilers.
4054 # On the NeXT, cc -E runs the code through the compiler's parser,
4055 # not just through cpp. "Syntax error" is here to catch this case.
4056 cat >conftest.
$ac_ext <<_ACEOF
4059 cat confdefs.h
>>conftest.
$ac_ext
4060 cat >>conftest.
$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4063 # include <limits.h>
4065 # include <assert.h>
4069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4070 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4072 grep -v '^ *+' conftest.er1
>conftest.err
4074 cat conftest.err
>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } >/dev
/null
; then
4077 if test -s conftest.err
; then
4078 ac_cpp_err
=$ac_c_preproc_warn_flag
4079 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4086 if test -z "$ac_cpp_err"; then
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.
$ac_ext >&5
4092 # Broken: fails on valid input.
4095 rm -f conftest.err conftest.
$ac_ext
4097 # OK, works on sane cases. Now check whether non-existent headers
4098 # can be detected and how.
4099 cat >conftest.
$ac_ext <<_ACEOF
4102 cat confdefs.h
>>conftest.
$ac_ext
4103 cat >>conftest.
$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 #include <ac_nonexistent.h>
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4110 grep -v '^ *+' conftest.er1
>conftest.err
4112 cat conftest.err
>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev
/null
; then
4115 if test -s conftest.err
; then
4116 ac_cpp_err
=$ac_c_preproc_warn_flag
4117 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4124 if test -z "$ac_cpp_err"; then
4125 # Broken: success on invalid input.
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.
$ac_ext >&5
4131 # Passes both tests.
4135 rm -f conftest.err conftest.
$ac_ext
4138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139 rm -f conftest.err conftest.
$ac_ext
4140 if $ac_preproc_ok; then
4152 echo "$as_me:$LINENO: result: $CPP" >&5
4153 echo "${ECHO_T}$CPP" >&6
4155 for ac_c_preproc_warn_flag
in '' yes
4157 # Use a header file that comes with gcc, so configuring glibc
4158 # with a fresh cross-compiler works.
4159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4160 # <limits.h> exists even on freestanding compilers.
4161 # On the NeXT, cc -E runs the code through the compiler's parser,
4162 # not just through cpp. "Syntax error" is here to catch this case.
4163 cat >conftest.
$ac_ext <<_ACEOF
4166 cat confdefs.h
>>conftest.
$ac_ext
4167 cat >>conftest.
$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4170 # include <limits.h>
4172 # include <assert.h>
4176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4177 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4179 grep -v '^ *+' conftest.er1
>conftest.err
4181 cat conftest.err
>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } >/dev
/null
; then
4184 if test -s conftest.err
; then
4185 ac_cpp_err
=$ac_c_preproc_warn_flag
4186 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4193 if test -z "$ac_cpp_err"; then
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.
$ac_ext >&5
4199 # Broken: fails on valid input.
4202 rm -f conftest.err conftest.
$ac_ext
4204 # OK, works on sane cases. Now check whether non-existent headers
4205 # can be detected and how.
4206 cat >conftest.
$ac_ext <<_ACEOF
4209 cat confdefs.h
>>conftest.
$ac_ext
4210 cat >>conftest.
$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <ac_nonexistent.h>
4214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4217 grep -v '^ *+' conftest.er1
>conftest.err
4219 cat conftest.err
>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev
/null
; then
4222 if test -s conftest.err
; then
4223 ac_cpp_err
=$ac_c_preproc_warn_flag
4224 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4231 if test -z "$ac_cpp_err"; then
4232 # Broken: success on invalid input.
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.
$ac_ext >&5
4238 # Passes both tests.
4242 rm -f conftest.err conftest.
$ac_ext
4245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246 rm -f conftest.err conftest.
$ac_ext
4247 if $ac_preproc_ok; then
4250 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4251 See \`config.log' for more details." >&5
4252 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4253 See \`config.log' for more details." >&2;}
4254 { (exit 1); exit 1; }; }
4258 ac_cpp
='$CPP $CPPFLAGS'
4259 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4263 # Find a good install program. We prefer a C program (faster),
4264 # so one script is as good as another. But avoid the broken or
4265 # incompatible versions:
4266 # SysV /etc/install, /usr/sbin/install
4267 # SunOS /usr/etc/install
4268 # IRIX /sbin/install
4270 # AmigaOS /C/install, which installs bootblocks on floppy discs
4271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4274 # OS/2's system install, which has a completely different semantic
4275 # ./install, which can be erroneously created by make from ./install.sh.
4276 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4277 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4278 if test -z "$INSTALL"; then
4279 if test "${ac_cv_path_install+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir
=.
4287 # Account for people who put trailing slashes in PATH elements.
4289 .
/ | .
// |
/cC
/* | \
4290 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4291 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4294 # OSF1 and SCO ODT 3.0 have their own names for install.
4295 # Don't use installbsd from OSF since it installs stuff as root
4297 for ac_prog
in ginstall scoinst
install; do
4298 for ac_exec_ext
in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4300 if test $ac_prog = install &&
4301 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4302 # AIX install. It has an incompatible calling convention.
4304 elif test $ac_prog = install &&
4305 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4306 # program-specific install script used by HP pwplus--don't use.
4309 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4321 if test "${ac_cv_path_install+set}" = set; then
4322 INSTALL
=$ac_cv_path_install
4324 # As a last resort, use the slow shell script. We don't cache a
4325 # path for INSTALL within a source directory, because that will
4326 # break other packages using the cache if that directory is
4327 # removed, or if the path is relative.
4328 INSTALL
=$ac_install_sh
4331 echo "$as_me:$LINENO: result: $INSTALL" >&5
4332 echo "${ECHO_T}$INSTALL" >&6
4334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4335 # It thinks the first close brace ends the variable substitution.
4336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4340 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4342 if test "x$RANLIB" = x
; then
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4345 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4346 echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4348 if test "${ac_cv_prog_RANLIB+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 if test -n "$RANLIB"; then
4352 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir
=.
4359 for ac_exec_ext
in '' $ac_executable_extensions; do
4360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 RANLIB
=$ac_cv_prog_RANLIB
4371 if test -n "$RANLIB"; then
4372 echo "$as_me:$LINENO: result: $RANLIB" >&5
4373 echo "${ECHO_T}$RANLIB" >&6
4375 echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6
4380 if test -z "$ac_cv_prog_RANLIB"; then
4381 ac_ct_RANLIB
=$RANLIB
4382 # Extract the first word of "ranlib", so it can be a program name with args.
4383 set dummy ranlib
; ac_word
=$2
4384 echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test -n "$ac_ct_RANLIB"; then
4390 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir
=.
4397 for ac_exec_ext
in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4409 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4410 if test -n "$ac_ct_RANLIB"; then
4411 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4418 RANLIB
=$ac_ct_RANLIB
4420 RANLIB
="$ac_cv_prog_RANLIB"
4424 # Extract the first word of "install-info", so it can be a program name with args.
4425 set dummy install-info
; ac_word
=$2
4426 echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 case $INSTALL_INFO in
4433 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir
=.
4441 for ac_exec_ext
in '' $ac_executable_extensions; do
4442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4455 if test -n "$INSTALL_INFO"; then
4456 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4457 echo "${ECHO_T}$INSTALL_INFO" >&6
4459 echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4463 # Extract the first word of "install-info", so it can be a program name with args.
4464 set dummy install-info
; ac_word
=$2
4465 echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 case $INSTALL_INFO in
4472 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4476 for as_dir
in /usr
/sbin
4479 test -z "$as_dir" && as_dir
=.
4480 for ac_exec_ext
in '' $ac_executable_extensions; do
4481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4494 if test -n "$INSTALL_INFO"; then
4495 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4496 echo "${ECHO_T}$INSTALL_INFO" >&6
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4502 # Extract the first word of "install-info", so it can be a program name with args.
4503 set dummy install-info
; ac_word
=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 case $INSTALL_INFO in
4511 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir
=.
4519 for ac_exec_ext
in '' $ac_executable_extensions; do
4520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4532 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4534 if test -n "$INSTALL_INFO"; then
4535 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4536 echo "${ECHO_T}$INSTALL_INFO" >&6
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4542 # Extract the first word of "gzip", so it can be a program name with args.
4543 set dummy
gzip; ac_word
=$2
4544 echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir
=.
4559 for ac_exec_ext
in '' $ac_executable_extensions; do
4560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4573 if test -n "$GZIP_PROG"; then
4574 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4575 echo "${ECHO_T}$GZIP_PROG" >&6
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4583 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4585 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4588 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4590 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4594 late_LDFLAGS
=$LDFLAGS
4595 if test "$GCC" = yes; then
4596 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4598 LDFLAGS
="$LDFLAGS -znocombreloc"
4601 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4602 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4603 cat >conftest.
$ac_ext <<_ACEOF
4606 rm -f conftest.
$ac_objext conftest
$ac_exeext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4608 (eval $ac_link) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1
>conftest.err
4612 cat conftest.err
>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try
='test -s conftest$ac_exeext'
4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628 echo "${ECHO_T}yes" >&6
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.
$ac_ext >&5
4633 LDFLAGS
=$late_LDFLAGS
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4637 rm -f conftest.err conftest.
$ac_objext \
4638 conftest
$ac_exeext conftest.
$ac_ext
4640 #### Extract some information from the operating system and machine files.
4642 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4643 - which libraries the lib-src programs will want, and
4644 - whether the GNU malloc routines are usable..." >&5
4645 echo "$as_me: checking the machine- and system-dependent files to find out
4646 - which libraries the lib-src programs will want, and
4647 - whether the GNU malloc routines are usable..." >&6;}
4649 ### First figure out CFLAGS (which we use for running the compiler here)
4650 ### and REAL_CFLAGS (which we use for real compilation).
4651 ### The two are the same except on a few systems, where they are made
4652 ### different to work around various lossages. For example,
4653 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4654 ### as implying static linking.
4656 ### If the CFLAGS env var is specified, we use that value
4657 ### instead of the default.
4659 ### It's not important that this name contain the PID; you can't run
4660 ### two configures in the same directory and have anything work
4662 tempcname
="conftest.c"
4665 #include "'${srcdir}'/src/'${opsysfile}'"
4666 #include "'${srcdir}'/src/'${machfile}'"
4667 #ifndef LIBS_MACHINE
4668 #define LIBS_MACHINE
4673 #ifndef C_SWITCH_SYSTEM
4674 #define C_SWITCH_SYSTEM
4676 #ifndef C_SWITCH_MACHINE
4677 #define C_SWITCH_MACHINE
4679 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4680 configure___ c_switch_system=C_SWITCH_SYSTEM
4681 configure___ c_switch_machine=C_SWITCH_MACHINE
4684 #define LIB_X11_LIB -lX11
4687 #ifndef LIBX11_MACHINE
4688 #define LIBX11_MACHINE
4691 #ifndef LIBX11_SYSTEM
4692 #define LIBX11_SYSTEM
4694 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4697 configure___ unexec=UNEXEC
4699 configure___ unexec=unexec.o
4702 #ifdef SYSTEM_MALLOC
4703 configure___ system_malloc=yes
4705 configure___ system_malloc=no
4708 #ifdef USE_MMAP_FOR_BUFFERS
4709 configure___ use_mmap_for_buffers=yes
4711 configure___ use_mmap_for_buffers=no
4714 #ifndef C_DEBUG_SWITCH
4715 #define C_DEBUG_SWITCH -g
4718 #ifndef C_OPTIMIZE_SWITCH
4720 #define C_OPTIMIZE_SWITCH -O2
4722 #define C_OPTIMIZE_SWITCH -O
4726 #ifndef C_WARNINGS_SWITCH
4727 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4730 #ifndef LD_SWITCH_MACHINE
4731 #define LD_SWITCH_MACHINE
4734 #ifndef LD_SWITCH_SYSTEM
4735 #define LD_SWITCH_SYSTEM
4738 #ifndef LD_SWITCH_X_SITE_AUX
4739 #define LD_SWITCH_X_SITE_AUX
4742 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4743 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4745 #ifdef THIS_IS_CONFIGURE
4747 /* Get the CFLAGS for tests in configure. */
4749 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4751 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4754 #else /* not THIS_IS_CONFIGURE */
4756 /* Get the CFLAGS for real compilation. */
4758 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4760 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4763 #endif /* not THIS_IS_CONFIGURE */
4766 # The value of CPP is a quoted variable reference, so we need to do this
4767 # to get its actual value...
4768 CPP
=`eval "echo $CPP"`
4769 eval `${CPP} -Isrc ${tempcname} \
4770 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4771 if test "x$SPECIFIED_CFLAGS" = x
; then
4772 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4773 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4775 REAL_CFLAGS
="$CFLAGS"
4779 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4781 ### Make sure subsequent tests use flags consistent with the build flags.
4783 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4784 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4786 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4791 # Check whether --enable-largefile or --disable-largefile was given.
4792 if test "${enable_largefile+set}" = set; then
4793 enableval
="$enable_largefile"
4796 if test "$enable_largefile" != no
; then
4798 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4799 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4800 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 ac_cv_sys_largefile_CC
=no
4804 if test "$GCC" != yes; then
4807 # IRIX 6.2 and later do not support large files by default,
4808 # so use the C compiler's -n32 option if that helps.
4809 cat >conftest.
$ac_ext <<_ACEOF
4812 cat confdefs.h
>>conftest.
$ac_ext
4813 cat >>conftest.
$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4832 rm -f conftest.
$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4836 grep -v '^ *+' conftest.er1
>conftest.err
4838 cat conftest.err
>&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try
='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.
$ac_ext >&5
4859 rm -f conftest.err conftest.
$ac_objext
4861 rm -f conftest.
$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1
>conftest.err
4867 cat conftest.err
>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try
='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_cv_sys_largefile_CC
=' -n32'; break
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.
$ac_ext >&5
4888 rm -f conftest.err conftest.
$ac_objext
4892 rm -f conftest.
$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4896 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4897 if test "$ac_cv_sys_largefile_CC" != no
; then
4898 CC
=$CC$ac_cv_sys_largefile_CC
4901 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4902 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4903 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 ac_cv_sys_file_offset_bits
=no
4908 cat >conftest.
$ac_ext <<_ACEOF
4911 cat confdefs.h
>>conftest.
$ac_ext
4912 cat >>conftest.
$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <sys/types.h>
4915 /* Check that off_t can represent 2**63 - 1 correctly.
4916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4917 since some C++ compilers masquerading as C compilers
4918 incorrectly reject 9223372036854775807. */
4919 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4921 && LARGE_OFF_T % 2147483647 == 1)
4931 rm -f conftest.
$ac_objext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>conftest.er1
4935 grep -v '^ *+' conftest.er1
>conftest.err
4937 cat conftest.err
>&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try
='test -s conftest.$ac_objext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.
$ac_ext >&5
4958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4959 cat >conftest.
$ac_ext <<_ACEOF
4962 cat confdefs.h
>>conftest.
$ac_ext
4963 cat >>conftest.
$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 #define _FILE_OFFSET_BITS 64
4966 #include <sys/types.h>
4967 /* Check that off_t can represent 2**63 - 1 correctly.
4968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4969 since some C++ compilers masquerading as C compilers
4970 incorrectly reject 9223372036854775807. */
4971 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4973 && LARGE_OFF_T % 2147483647 == 1)
4983 rm -f conftest.
$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
4987 grep -v '^ *+' conftest.er1
>conftest.err
4989 cat conftest.err
>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try
='test -s conftest.$ac_objext'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_cv_sys_file_offset_bits
=64; break
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.
$ac_ext >&5
5010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5014 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5015 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5016 if test "$ac_cv_sys_file_offset_bits" != no
; then
5018 cat >>confdefs.h
<<_ACEOF
5019 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5024 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5025 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5026 if test "${ac_cv_sys_large_files+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_sys_large_files
=no
5031 cat >conftest.
$ac_ext <<_ACEOF
5034 cat confdefs.h
>>conftest.
$ac_ext
5035 cat >>conftest.
$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <sys/types.h>
5038 /* Check that off_t can represent 2**63 - 1 correctly.
5039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5040 since some C++ compilers masquerading as C compilers
5041 incorrectly reject 9223372036854775807. */
5042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5044 && LARGE_OFF_T % 2147483647 == 1)
5054 rm -f conftest.
$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1
>conftest.err
5060 cat conftest.err
>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try
='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.
$ac_ext >&5
5081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5082 cat >conftest.
$ac_ext <<_ACEOF
5085 cat confdefs.h
>>conftest.
$ac_ext
5086 cat >>conftest.
$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #define _LARGE_FILES 1
5089 #include <sys/types.h>
5090 /* Check that off_t can represent 2**63 - 1 correctly.
5091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5092 since some C++ compilers masquerading as C compilers
5093 incorrectly reject 9223372036854775807. */
5094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5096 && LARGE_OFF_T % 2147483647 == 1)
5106 rm -f conftest.
$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5110 grep -v '^ *+' conftest.er1
>conftest.err
5112 cat conftest.err
>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try
='test -s conftest.$ac_objext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 ac_cv_sys_large_files
=1; break
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.
$ac_ext >&5
5133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5137 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5138 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5139 if test "$ac_cv_sys_large_files" != no
; then
5141 cat >>confdefs.h
<<_ACEOF
5142 #define _LARGE_FILES $ac_cv_sys_large_files
5150 if test "${with_sound}" != "no"; then
5151 # Sound support for GNU/Linux and the free BSDs.
5152 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5154 if test "${ac_cv_header_stdc+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 cat >conftest.
$ac_ext <<_ACEOF
5160 cat confdefs.h
>>conftest.
$ac_ext
5161 cat >>conftest.
$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5176 rm -f conftest.
$ac_objext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178 (eval $ac_compile) 2>conftest.er1
5180 grep -v '^ *+' conftest.er1
>conftest.err
5182 cat conftest.err
>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try
='test -s conftest.$ac_objext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_header_stdc
=yes
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.
$ac_ext >&5
5202 ac_cv_header_stdc
=no
5204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5206 if test $ac_cv_header_stdc = yes; then
5207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5208 cat >conftest.
$ac_ext <<_ACEOF
5211 cat confdefs.h
>>conftest.
$ac_ext
5212 cat >>conftest.
$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5218 $EGREP "memchr" >/dev
/null
2>&1; then
5221 ac_cv_header_stdc
=no
5227 if test $ac_cv_header_stdc = yes; then
5228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5229 cat >conftest.
$ac_ext <<_ACEOF
5232 cat confdefs.h
>>conftest.
$ac_ext
5233 cat >>conftest.
$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5239 $EGREP "free" >/dev
/null
2>&1; then
5242 ac_cv_header_stdc
=no
5248 if test $ac_cv_header_stdc = yes; then
5249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5250 if test "$cross_compiling" = yes; then
5253 cat >conftest.
$ac_ext <<_ACEOF
5256 cat confdefs.h
>>conftest.
$ac_ext
5257 cat >>conftest.
$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5260 #if ((' ' & 0x0FF) == 0x020)
5261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5264 # define ISLOWER(c) \
5265 (('a' <= (c) && (c) <= 'i') \
5266 || ('j' <= (c) && (c) <= 'r') \
5267 || ('s' <= (c) && (c) <= 'z'))
5268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5276 for (i = 0; i < 256; i++)
5277 if (XOR (islower (i), ISLOWER (i))
5278 || toupper (i) != TOUPPER (i))
5283 rm -f conftest
$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5296 echo "$as_me: program exited with status $ac_status" >&5
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.
$ac_ext >&5
5301 ac_cv_header_stdc
=no
5303 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5308 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5309 if test $ac_cv_header_stdc = yes; then
5311 cat >>confdefs.h
<<\_ACEOF
5312 #define STDC_HEADERS 1
5317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5327 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5328 inttypes.h stdint.h unistd.h
5330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331 echo "$as_me:$LINENO: checking for $ac_header" >&5
5332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 cat >conftest.
$ac_ext <<_ACEOF
5339 cat confdefs.h
>>conftest.
$ac_ext
5340 cat >>conftest.
$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 $ac_includes_default
5344 #include <$ac_header>
5346 rm -f conftest.
$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5350 grep -v '^ *+' conftest.er1
>conftest.err
5352 cat conftest.err
>&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; } &&
5361 { ac_try
='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 eval "$as_ac_Header=yes"
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.
$ac_ext >&5
5372 eval "$as_ac_Header=no"
5374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5379 cat >>confdefs.h
<<_ACEOF
5380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5391 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5393 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5395 echo "$as_me:$LINENO: checking for $ac_header" >&5
5396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5403 # Is the header compilable?
5404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5406 cat >conftest.
$ac_ext <<_ACEOF
5409 cat confdefs.h
>>conftest.
$ac_ext
5410 cat >>conftest.
$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 $ac_includes_default
5413 #include <$ac_header>
5415 rm -f conftest.
$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>conftest.er1
5419 grep -v '^ *+' conftest.er1
>conftest.err
5421 cat conftest.err
>&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; } &&
5430 { ac_try
='test -s conftest.$ac_objext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_header_compiler
=yes
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.
$ac_ext >&5
5441 ac_header_compiler
=no
5443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5445 echo "${ECHO_T}$ac_header_compiler" >&6
5447 # Is the header present?
5448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5450 cat >conftest.
$ac_ext <<_ACEOF
5453 cat confdefs.h
>>conftest.
$ac_ext
5454 cat >>conftest.
$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <$ac_header>
5458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5461 grep -v '^ *+' conftest.er1
>conftest.err
5463 cat conftest.err
>&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } >/dev
/null
; then
5466 if test -s conftest.err
; then
5467 ac_cpp_err
=$ac_c_preproc_warn_flag
5468 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5475 if test -z "$ac_cpp_err"; then
5476 ac_header_preproc
=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.
$ac_ext >&5
5481 ac_header_preproc
=no
5483 rm -f conftest.err conftest.
$ac_ext
5484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5485 echo "${ECHO_T}$ac_header_preproc" >&6
5487 # So? What about this header?
5488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5494 ac_header_preproc
=yes
5497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5511 ## ------------------------------------------ ##
5512 ## Report this to the AC_PACKAGE_NAME lists. ##
5513 ## ------------------------------------------ ##
5516 sed "s/^/$as_me: WARNING: /" >&2
5519 echo "$as_me:$LINENO: checking for $ac_header" >&5
5520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 eval "$as_ac_Header=\$ac_header_preproc"
5526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5531 cat >>confdefs.h
<<_ACEOF
5532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5539 # Emulation library used on NetBSD.
5540 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5541 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5542 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 ac_check_lib_save_LIBS
=$LIBS
5546 LIBS
="-lossaudio $LIBS"
5547 cat >conftest.
$ac_ext <<_ACEOF
5550 cat confdefs.h
>>conftest.
$ac_ext
5551 cat >>conftest.
$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5554 /* Override any gcc2 internal prototype to avoid an error. */
5558 /* We use char because int might match the return type of a gcc2
5559 builtin and then its argument prototype would still apply. */
5569 rm -f conftest.
$ac_objext conftest
$ac_exeext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>conftest.er1
5573 grep -v '^ *+' conftest.er1
>conftest.err
5575 cat conftest.err
>&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; } &&
5584 { ac_try
='test -s conftest$ac_exeext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_cv_lib_ossaudio__oss_ioctl
=yes
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.
$ac_ext >&5
5595 ac_cv_lib_ossaudio__oss_ioctl
=no
5597 rm -f conftest.err conftest.
$ac_objext \
5598 conftest
$ac_exeext conftest.
$ac_ext
5599 LIBS
=$ac_check_lib_save_LIBS
5601 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5602 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5603 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5637 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5638 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5639 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5640 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5643 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5645 echo "$as_me:$LINENO: checking for $ac_header" >&5
5646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5653 # Is the header compilable?
5654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5656 cat >conftest.
$ac_ext <<_ACEOF
5659 cat confdefs.h
>>conftest.
$ac_ext
5660 cat >>conftest.
$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 $ac_includes_default
5663 #include <$ac_header>
5665 rm -f conftest.
$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1
>conftest.err
5671 cat conftest.err
>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try
='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_header_compiler
=yes
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.
$ac_ext >&5
5691 ac_header_compiler
=no
5693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5695 echo "${ECHO_T}$ac_header_compiler" >&6
5697 # Is the header present?
5698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5700 cat >conftest.
$ac_ext <<_ACEOF
5703 cat confdefs.h
>>conftest.
$ac_ext
5704 cat >>conftest.
$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <$ac_header>
5708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5711 grep -v '^ *+' conftest.er1
>conftest.err
5713 cat conftest.err
>&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev
/null
; then
5716 if test -s conftest.err
; then
5717 ac_cpp_err
=$ac_c_preproc_warn_flag
5718 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5725 if test -z "$ac_cpp_err"; then
5726 ac_header_preproc
=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.
$ac_ext >&5
5731 ac_header_preproc
=no
5733 rm -f conftest.err conftest.
$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5735 echo "${ECHO_T}$ac_header_preproc" >&6
5737 # So? What about this header?
5738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5744 ac_header_preproc
=yes
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5761 ## ------------------------------------------ ##
5762 ## Report this to the AC_PACKAGE_NAME lists. ##
5763 ## ------------------------------------------ ##
5766 sed "s/^/$as_me: WARNING: /" >&2
5769 echo "$as_me:$LINENO: checking for $ac_header" >&5
5770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 eval "$as_ac_Header=\$ac_header_preproc"
5776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5781 cat >>confdefs.h
<<_ACEOF
5782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5790 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5791 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5792 cat >conftest.
$ac_ext <<_ACEOF
5795 cat confdefs.h
>>conftest.
$ac_ext
5796 cat >>conftest.
$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #include <sys/personality.h>
5802 personality (PER_LINUX32)
5807 rm -f conftest.
$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>conftest.er1
5811 grep -v '^ *+' conftest.er1
>conftest.err
5813 cat conftest.err
>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try
='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 emacs_cv_personality_linux32
=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5833 emacs_cv_personality_linux32
=no
5835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5837 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5839 if test $emacs_cv_personality_linux32 = yes; then
5841 cat >>confdefs.h
<<\_ACEOF
5842 #define HAVE_PERSONALITY_LINUX32 1
5848 for ac_header
in term.h
5850 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851 echo "$as_me:$LINENO: checking for $ac_header" >&5
5852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <$ac_header>
5864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev
/null
; then
5872 if test -s conftest.err
; then
5873 ac_cpp_err
=$ac_c_preproc_warn_flag
5874 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5881 if test -z "$ac_cpp_err"; then
5882 eval "$as_ac_Header=yes"
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 eval "$as_ac_Header=no"
5889 rm -f conftest.err conftest.
$ac_ext
5891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5894 cat >>confdefs.h
<<_ACEOF
5895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5904 if test "${ac_cv_header_stdc+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 cat >conftest.
$ac_ext <<_ACEOF
5910 cat confdefs.h
>>conftest.
$ac_ext
5911 cat >>conftest.
$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5926 rm -f conftest.
$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1
>conftest.err
5932 cat conftest.err
>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try
='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 ac_cv_header_stdc
=yes
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 ac_cv_header_stdc
=no
5954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5956 if test $ac_cv_header_stdc = yes; then
5957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5958 cat >conftest.
$ac_ext <<_ACEOF
5961 cat confdefs.h
>>conftest.
$ac_ext
5962 cat >>conftest.
$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5968 $EGREP "memchr" >/dev
/null
2>&1; then
5971 ac_cv_header_stdc
=no
5977 if test $ac_cv_header_stdc = yes; then
5978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5979 cat >conftest.
$ac_ext <<_ACEOF
5982 cat confdefs.h
>>conftest.
$ac_ext
5983 cat >>conftest.
$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5989 $EGREP "free" >/dev
/null
2>&1; then
5992 ac_cv_header_stdc
=no
5998 if test $ac_cv_header_stdc = yes; then
5999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6000 if test "$cross_compiling" = yes; then
6003 cat >conftest.
$ac_ext <<_ACEOF
6006 cat confdefs.h
>>conftest.
$ac_ext
6007 cat >>conftest.
$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6010 #if ((' ' & 0x0FF) == 0x020)
6011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6014 # define ISLOWER(c) \
6015 (('a' <= (c) && (c) <= 'i') \
6016 || ('j' <= (c) && (c) <= 'r') \
6017 || ('s' <= (c) && (c) <= 'z'))
6018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6026 for (i = 0; i < 256; i++)
6027 if (XOR (islower (i), ISLOWER (i))
6028 || toupper (i) != TOUPPER (i))
6033 rm -f conftest
$ac_exeext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035 (eval $ac_link) 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6046 echo "$as_me: program exited with status $ac_status" >&5
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.
$ac_ext >&5
6051 ac_cv_header_stdc
=no
6053 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6057 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6058 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6059 if test $ac_cv_header_stdc = yes; then
6061 cat >>confdefs.h
<<\_ACEOF
6062 #define STDC_HEADERS 1
6067 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6068 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6069 if test "${ac_cv_header_time+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 cat >conftest.
$ac_ext <<_ACEOF
6075 cat confdefs.h
>>conftest.
$ac_ext
6076 cat >>conftest.
$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 #include <sys/types.h>
6079 #include <sys/time.h>
6085 if ((struct tm *) 0)
6091 rm -f conftest.
$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6095 grep -v '^ *+' conftest.er1
>conftest.err
6097 cat conftest.err
>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try
='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_header_time
=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.
$ac_ext >&5
6117 ac_cv_header_time
=no
6119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6122 echo "${ECHO_T}$ac_cv_header_time" >&6
6123 if test $ac_cv_header_time = yes; then
6125 cat >>confdefs.h
<<\_ACEOF
6126 #define TIME_WITH_SYS_TIME 1
6131 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6132 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6133 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 cat >conftest.
$ac_ext <<_ACEOF
6139 cat confdefs.h
>>conftest.
$ac_ext
6140 cat >>conftest.
$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 $ac_includes_default
6147 char *p = (char *) sys_siglist;
6154 rm -f conftest.
$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1
>conftest.err
6160 cat conftest.err
>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try
='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 ac_cv_have_decl_sys_siglist
=yes
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.
$ac_ext >&5
6180 ac_cv_have_decl_sys_siglist
=no
6182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6184 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6185 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6186 if test $ac_cv_have_decl_sys_siglist = yes; then
6188 cat >>confdefs.h
<<_ACEOF
6189 #define HAVE_DECL_SYS_SIGLIST 1
6194 cat >>confdefs.h
<<_ACEOF
6195 #define HAVE_DECL_SYS_SIGLIST 0
6202 if test $ac_cv_have_decl_sys_siglist != yes; then
6203 # For Tru64, at least:
6204 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6205 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6206 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 cat >conftest.
$ac_ext <<_ACEOF
6212 cat confdefs.h
>>conftest.
$ac_ext
6213 cat >>conftest.
$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 $ac_includes_default
6219 #ifndef __sys_siglist
6220 char *p = (char *) __sys_siglist;
6227 rm -f conftest.
$ac_objext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>conftest.er1
6231 grep -v '^ *+' conftest.er1
>conftest.err
6233 cat conftest.err
>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try
='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_cv_have_decl___sys_siglist
=yes
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.
$ac_ext >&5
6253 ac_cv_have_decl___sys_siglist
=no
6255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6257 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6258 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6259 if test $ac_cv_have_decl___sys_siglist = yes; then
6261 cat >>confdefs.h
<<_ACEOF
6262 #define HAVE_DECL___SYS_SIGLIST 1
6267 cat >>confdefs.h
<<_ACEOF
6268 #define HAVE_DECL___SYS_SIGLIST 0
6275 if test $ac_cv_have_decl___sys_siglist = yes; then
6277 cat >>confdefs.h
<<\_ACEOF
6278 #define sys_siglist __sys_siglist
6283 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6284 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6285 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.
$ac_ext <<_ACEOF
6291 cat confdefs.h
>>conftest.
$ac_ext
6292 cat >>conftest.
$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <sys/types.h>
6295 #include <sys/wait.h>
6297 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6300 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6308 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6313 rm -f conftest.
$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6317 grep -v '^ *+' conftest.er1
>conftest.err
6319 cat conftest.err
>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try
='test -s conftest.$ac_objext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_header_sys_wait_h
=yes
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.
$ac_ext >&5
6339 ac_cv_header_sys_wait_h
=no
6341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6343 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6344 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6345 if test $ac_cv_header_sys_wait_h = yes; then
6347 cat >>confdefs.h
<<\_ACEOF
6348 #define HAVE_SYS_WAIT_H 1
6354 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6355 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6356 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 cat >conftest.
$ac_ext <<_ACEOF
6362 cat confdefs.h
>>conftest.
$ac_ext
6363 cat >>conftest.
$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #ifdef TIME_WITH_SYS_TIME
6366 #include <sys/time.h>
6369 #ifdef HAVE_SYS_TIME_H
6370 #include <sys/time.h>
6381 static struct utimbuf x; x.actime = x.modtime;
6386 rm -f conftest.
$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6390 grep -v '^ *+' conftest.er1
>conftest.err
6392 cat conftest.err
>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try
='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 emacs_cv_struct_utimbuf
=yes
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.
$ac_ext >&5
6412 emacs_cv_struct_utimbuf
=no
6414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6416 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6417 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6418 if test $emacs_cv_struct_utimbuf = yes; then
6420 cat >>confdefs.h
<<\_ACEOF
6421 #define HAVE_STRUCT_UTIMBUF 1
6426 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6427 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6428 if test "${ac_cv_type_signal+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 cat >conftest.
$ac_ext <<_ACEOF
6434 cat confdefs.h
>>conftest.
$ac_ext
6435 cat >>conftest.
$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/types.h>
6443 extern "C" void (*signal (int, void (*)(int)))(int);
6445 void (*signal ()) ();
6456 rm -f conftest.
$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458 (eval $ac_compile) 2>conftest.er1
6460 grep -v '^ *+' conftest.er1
>conftest.err
6462 cat conftest.err
>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try
='test -s conftest.$ac_objext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_type_signal
=void
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6482 ac_cv_type_signal
=int
6484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6487 echo "${ECHO_T}$ac_cv_type_signal" >&6
6489 cat >>confdefs.h
<<_ACEOF
6490 #define RETSIGTYPE $ac_cv_type_signal
6495 echo "$as_me:$LINENO: checking for speed_t" >&5
6496 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6497 if test "${emacs_cv_speed_t+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 cat >conftest.
$ac_ext <<_ACEOF
6503 cat confdefs.h
>>conftest.
$ac_ext
6504 cat >>conftest.
$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 #include <termios.h>
6515 rm -f conftest.
$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1
>conftest.err
6521 cat conftest.err
>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try
='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 emacs_cv_speed_t
=yes
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.
$ac_ext >&5
6543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6545 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6546 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6547 if test $emacs_cv_speed_t = yes; then
6549 cat >>confdefs.h
<<\_ACEOF
6550 #define HAVE_SPEED_T 1
6555 echo "$as_me:$LINENO: checking for struct timeval" >&5
6556 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6557 if test "${emacs_cv_struct_timeval+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 cat >conftest.
$ac_ext <<_ACEOF
6563 cat confdefs.h
>>conftest.
$ac_ext
6564 cat >>conftest.
$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #ifdef TIME_WITH_SYS_TIME
6567 #include <sys/time.h>
6570 #ifdef HAVE_SYS_TIME_H
6571 #include <sys/time.h>
6579 static struct timeval x; x.tv_sec = x.tv_usec;
6584 rm -f conftest.
$ac_objext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>conftest.er1
6588 grep -v '^ *+' conftest.er1
>conftest.err
6590 cat conftest.err
>&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; } &&
6599 { ac_try
='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 emacs_cv_struct_timeval
=yes
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.
$ac_ext >&5
6610 emacs_cv_struct_timeval
=no
6612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6614 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6615 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6616 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6617 if test $emacs_cv_struct_timeval = yes; then
6619 cat >>confdefs.h
<<\_ACEOF
6620 #define HAVE_TIMEVAL 1
6625 echo "$as_me:$LINENO: checking for struct exception" >&5
6626 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6627 if test "${emacs_cv_struct_exception+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 cat >conftest.
$ac_ext <<_ACEOF
6633 cat confdefs.h
>>conftest.
$ac_ext
6634 cat >>conftest.
$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6640 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6645 rm -f conftest.
$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>conftest.er1
6649 grep -v '^ *+' conftest.er1
>conftest.err
6651 cat conftest.err
>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try
='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 emacs_cv_struct_exception
=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.
$ac_ext >&5
6671 emacs_cv_struct_exception
=no
6673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6675 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6676 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6677 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6678 if test $emacs_cv_struct_exception != yes; then
6680 cat >>confdefs.h
<<\_ACEOF
6681 #define NO_MATHERR 1
6687 for ac_header
in sys
/socket.h
6689 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6691 echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6699 # Is the header compilable?
6700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6702 cat >conftest.
$ac_ext <<_ACEOF
6705 cat confdefs.h
>>conftest.
$ac_ext
6706 cat >>conftest.
$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 $ac_includes_default
6709 #include <$ac_header>
6711 rm -f conftest.
$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6715 grep -v '^ *+' conftest.er1
>conftest.err
6717 cat conftest.err
>&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try
='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_header_compiler
=yes
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.
$ac_ext >&5
6737 ac_header_compiler
=no
6739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6741 echo "${ECHO_T}$ac_header_compiler" >&6
6743 # Is the header present?
6744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6746 cat >conftest.
$ac_ext <<_ACEOF
6749 cat confdefs.h
>>conftest.
$ac_ext
6750 cat >>conftest.
$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <$ac_header>
6754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6755 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6757 grep -v '^ *+' conftest.er1
>conftest.err
6759 cat conftest.err
>&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } >/dev
/null
; then
6762 if test -s conftest.err
; then
6763 ac_cpp_err
=$ac_c_preproc_warn_flag
6764 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6771 if test -z "$ac_cpp_err"; then
6772 ac_header_preproc
=yes
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.
$ac_ext >&5
6777 ac_header_preproc
=no
6779 rm -f conftest.err conftest.
$ac_ext
6780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6781 echo "${ECHO_T}$ac_header_preproc" >&6
6783 # So? What about this header?
6784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6790 ac_header_preproc
=yes
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6807 ## ------------------------------------------ ##
6808 ## Report this to the AC_PACKAGE_NAME lists. ##
6809 ## ------------------------------------------ ##
6812 sed "s/^/$as_me: WARNING: /" >&2
6815 echo "$as_me:$LINENO: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 eval "$as_ac_Header=\$ac_header_preproc"
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6827 cat >>confdefs.h
<<_ACEOF
6828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836 for ac_header
in net
/if.h
6838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6839 echo "$as_me:$LINENO: checking for $ac_header" >&5
6840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 cat >conftest.
$ac_ext <<_ACEOF
6847 cat confdefs.h
>>conftest.
$ac_ext
6848 cat >>conftest.
$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6851 #if HAVE_SYS_SOCKET_H
6852 #include <sys/socket.h>
6855 #include <$ac_header>
6857 rm -f conftest.
$ac_objext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859 (eval $ac_compile) 2>conftest.er1
6861 grep -v '^ *+' conftest.er1
>conftest.err
6863 cat conftest.err
>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; } &&
6872 { ac_try
='test -s conftest.$ac_objext'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 eval "$as_ac_Header=yes"
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.
$ac_ext >&5
6883 eval "$as_ac_Header=no"
6885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6890 cat >>confdefs.h
<<_ACEOF
6891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6899 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6900 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6901 if test "${ac_cv_struct_tm+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 cat >conftest.
$ac_ext <<_ACEOF
6907 cat confdefs.h
>>conftest.
$ac_ext
6908 cat >>conftest.
$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6910 #include <sys/types.h>
6916 struct tm *tp; tp->tm_sec;
6921 rm -f conftest.
$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>conftest.er1
6925 grep -v '^ *+' conftest.er1
>conftest.err
6927 cat conftest.err
>&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try
='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_cv_struct_tm
=time.h
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.
$ac_ext >&5
6947 ac_cv_struct_tm
=sys
/time.h
6949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6951 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6952 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6953 if test $ac_cv_struct_tm = sys
/time.h
; then
6955 cat >>confdefs.h
<<\_ACEOF
6956 #define TM_IN_SYS_TIME 1
6961 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6962 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6963 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 cat >conftest.
$ac_ext <<_ACEOF
6969 cat confdefs.h
>>conftest.
$ac_ext
6970 cat >>conftest.
$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <sys/types.h>
6973 #include <$ac_cv_struct_tm>
6979 static struct tm ac_aggr;
6980 if (ac_aggr.tm_zone)
6986 rm -f conftest.
$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988 (eval $ac_compile) 2>conftest.er1
6990 grep -v '^ *+' conftest.er1
>conftest.err
6992 cat conftest.err
>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } &&
6995 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try
='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_cv_member_struct_tm_tm_zone
=yes
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.
$ac_ext >&5
7012 cat >conftest.
$ac_ext <<_ACEOF
7015 cat confdefs.h
>>conftest.
$ac_ext
7016 cat >>conftest.
$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 #include <sys/types.h>
7019 #include <$ac_cv_struct_tm>
7025 static struct tm ac_aggr;
7026 if (sizeof ac_aggr.tm_zone)
7032 rm -f conftest.
$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>conftest.er1
7036 grep -v '^ *+' conftest.er1
>conftest.err
7038 cat conftest.err
>&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try
='test -s conftest.$ac_objext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_member_struct_tm_tm_zone
=yes
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.
$ac_ext >&5
7058 ac_cv_member_struct_tm_tm_zone
=no
7060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7062 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7065 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7066 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7068 cat >>confdefs.h
<<_ACEOF
7069 #define HAVE_STRUCT_TM_TM_ZONE 1
7075 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7077 cat >>confdefs.h
<<\_ACEOF
7078 #define HAVE_TM_ZONE 1
7082 echo "$as_me:$LINENO: checking for tzname" >&5
7083 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7084 if test "${ac_cv_var_tzname+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 cat >conftest.
$ac_ext <<_ACEOF
7090 cat confdefs.h
>>conftest.
$ac_ext
7091 cat >>conftest.
$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7094 #ifndef tzname /* For SGI. */
7095 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7106 rm -f conftest.
$ac_objext conftest
$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7110 grep -v '^ *+' conftest.er1
>conftest.err
7112 cat conftest.err
>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try
='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_var_tzname
=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.
$ac_ext >&5
7134 rm -f conftest.err conftest.
$ac_objext \
7135 conftest
$ac_exeext conftest.
$ac_ext
7137 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7138 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7139 if test $ac_cv_var_tzname = yes; then
7141 cat >>confdefs.h
<<\_ACEOF
7142 #define HAVE_TZNAME 1
7148 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7149 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7150 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7164 static struct tm ac_aggr;
7165 if (ac_aggr.tm_gmtoff)
7171 rm -f conftest.
$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1
>conftest.err
7177 cat conftest.err
>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try
='test -s conftest.$ac_objext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_cv_member_struct_tm_tm_gmtoff
=yes
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.
$ac_ext >&5
7197 cat >conftest.
$ac_ext <<_ACEOF
7200 cat confdefs.h
>>conftest.
$ac_ext
7201 cat >>conftest.
$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7208 static struct tm ac_aggr;
7209 if (sizeof ac_aggr.tm_gmtoff)
7215 rm -f conftest.
$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7219 grep -v '^ *+' conftest.er1
>conftest.err
7221 cat conftest.err
>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; } &&
7230 { ac_try
='test -s conftest.$ac_objext'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7236 ac_cv_member_struct_tm_tm_gmtoff
=yes
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.
$ac_ext >&5
7241 ac_cv_member_struct_tm_tm_gmtoff
=no
7243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7247 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7248 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7249 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7251 cat >>confdefs.h
<<\_ACEOF
7252 #define HAVE_TM_GMTOFF 1
7257 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7258 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7259 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 cat >conftest.
$ac_ext <<_ACEOF
7265 cat confdefs.h
>>conftest.
$ac_ext
7266 cat >>conftest.
$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 #if HAVE_SYS_SOCKET_H
7270 #include <sys/socket.h>
7279 static struct ifreq ac_aggr;
7280 if (ac_aggr.ifr_flags)
7286 rm -f conftest.
$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288 (eval $ac_compile) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try
='test -s conftest.$ac_objext'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; }; then
7307 ac_cv_member_struct_ifreq_ifr_flags
=yes
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.
$ac_ext >&5
7312 cat >conftest.
$ac_ext <<_ACEOF
7315 cat confdefs.h
>>conftest.
$ac_ext
7316 cat >>conftest.
$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7319 #if HAVE_SYS_SOCKET_H
7320 #include <sys/socket.h>
7329 static struct ifreq ac_aggr;
7330 if (sizeof ac_aggr.ifr_flags)
7336 rm -f conftest.
$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7340 grep -v '^ *+' conftest.er1
>conftest.err
7342 cat conftest.err
>&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try
='test -s conftest.$ac_objext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 ac_cv_member_struct_ifreq_ifr_flags
=yes
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.
$ac_ext >&5
7362 ac_cv_member_struct_ifreq_ifr_flags
=no
7364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7369 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7370 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7372 cat >>confdefs.h
<<_ACEOF
7373 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7378 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7379 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7380 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 cat >conftest.
$ac_ext <<_ACEOF
7386 cat confdefs.h
>>conftest.
$ac_ext
7387 cat >>conftest.
$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 $ac_includes_default
7390 #if HAVE_SYS_SOCKET_H
7391 #include <sys/socket.h>
7400 static struct ifreq ac_aggr;
7401 if (ac_aggr.ifr_hwaddr)
7407 rm -f conftest.
$ac_objext
7408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7409 (eval $ac_compile) 2>conftest.er1
7411 grep -v '^ *+' conftest.er1
>conftest.err
7413 cat conftest.err
>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; } &&
7422 { ac_try
='test -s conftest.$ac_objext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
7428 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.
$ac_ext >&5
7433 cat >conftest.
$ac_ext <<_ACEOF
7436 cat confdefs.h
>>conftest.
$ac_ext
7437 cat >>conftest.
$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 #if HAVE_SYS_SOCKET_H
7441 #include <sys/socket.h>
7450 static struct ifreq ac_aggr;
7451 if (sizeof ac_aggr.ifr_hwaddr)
7457 rm -f conftest.
$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7461 grep -v '^ *+' conftest.er1
>conftest.err
7463 cat conftest.err
>&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; } &&
7472 { ac_try
='test -s conftest.$ac_objext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.
$ac_ext >&5
7483 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7489 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7490 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7491 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7493 cat >>confdefs.h
<<_ACEOF
7494 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7499 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7500 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7501 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.
$ac_ext <<_ACEOF
7507 cat confdefs.h
>>conftest.
$ac_ext
7508 cat >>conftest.
$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 #if HAVE_SYS_SOCKET_H
7512 #include <sys/socket.h>
7521 static struct ifreq ac_aggr;
7522 if (ac_aggr.ifr_netmask)
7528 rm -f conftest.
$ac_objext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7530 (eval $ac_compile) 2>conftest.er1
7532 grep -v '^ *+' conftest.er1
>conftest.err
7534 cat conftest.err
>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try
='test -s conftest.$ac_objext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.
$ac_ext >&5
7554 cat >conftest.
$ac_ext <<_ACEOF
7557 cat confdefs.h
>>conftest.
$ac_ext
7558 cat >>conftest.
$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 $ac_includes_default
7561 #if HAVE_SYS_SOCKET_H
7562 #include <sys/socket.h>
7571 static struct ifreq ac_aggr;
7572 if (sizeof ac_aggr.ifr_netmask)
7578 rm -f conftest.
$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>conftest.er1
7582 grep -v '^ *+' conftest.er1
>conftest.err
7584 cat conftest.err
>&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } &&
7593 { ac_try
='test -s conftest.$ac_objext'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7599 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.
$ac_ext >&5
7604 ac_cv_member_struct_ifreq_ifr_netmask
=no
7606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7611 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7612 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7614 cat >>confdefs.h
<<_ACEOF
7615 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7620 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7621 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7622 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 cat >conftest.
$ac_ext <<_ACEOF
7628 cat confdefs.h
>>conftest.
$ac_ext
7629 cat >>conftest.
$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7632 #if HAVE_SYS_SOCKET_H
7633 #include <sys/socket.h>
7642 static struct ifreq ac_aggr;
7643 if (ac_aggr.ifr_broadaddr)
7649 rm -f conftest.
$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651 (eval $ac_compile) 2>conftest.er1
7653 grep -v '^ *+' conftest.er1
>conftest.err
7655 cat conftest.err
>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try
='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.
$ac_ext >&5
7675 cat >conftest.
$ac_ext <<_ACEOF
7678 cat confdefs.h
>>conftest.
$ac_ext
7679 cat >>conftest.
$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7682 #if HAVE_SYS_SOCKET_H
7683 #include <sys/socket.h>
7692 static struct ifreq ac_aggr;
7693 if (sizeof ac_aggr.ifr_broadaddr)
7699 rm -f conftest.
$ac_objext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701 (eval $ac_compile) 2>conftest.er1
7703 grep -v '^ *+' conftest.er1
>conftest.err
7705 cat conftest.err
>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try
='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7725 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7731 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7732 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7733 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7735 cat >>confdefs.h
<<_ACEOF
7736 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7741 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7742 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7743 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 cat >conftest.
$ac_ext <<_ACEOF
7749 cat confdefs.h
>>conftest.
$ac_ext
7750 cat >>conftest.
$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7753 #if HAVE_SYS_SOCKET_H
7754 #include <sys/socket.h>
7763 static struct ifreq ac_aggr;
7764 if (ac_aggr.ifr_addr)
7770 rm -f conftest.
$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1
>conftest.err
7776 cat conftest.err
>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try
='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_cv_member_struct_ifreq_ifr_addr
=yes
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.
$ac_ext >&5
7796 cat >conftest.
$ac_ext <<_ACEOF
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 $ac_includes_default
7803 #if HAVE_SYS_SOCKET_H
7804 #include <sys/socket.h>
7813 static struct ifreq ac_aggr;
7814 if (sizeof ac_aggr.ifr_addr)
7820 rm -f conftest.
$ac_objext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822 (eval $ac_compile) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1
>conftest.err
7826 cat conftest.err
>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try
='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_member_struct_ifreq_ifr_addr
=yes
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.
$ac_ext >&5
7846 ac_cv_member_struct_ifreq_ifr_addr
=no
7848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7853 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7854 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7856 cat >>confdefs.h
<<_ACEOF
7857 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7865 echo "$as_me:$LINENO: checking for function prototypes" >&5
7866 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7867 if test "$ac_cv_prog_cc_stdc" != no
; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869 echo "${ECHO_T}yes" >&6
7871 cat >>confdefs.h
<<\_ACEOF
7872 #define PROTOTYPES 1
7876 cat >>confdefs.h
<<\_ACEOF
7877 #define __PROTOTYPES 1
7881 echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6
7885 echo "$as_me:$LINENO: checking for working volatile" >&5
7886 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7887 if test "${ac_cv_c_volatile+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.
$ac_ext <<_ACEOF
7893 cat confdefs.h
>>conftest.
$ac_ext
7894 cat >>conftest.
$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7907 rm -f conftest.
$ac_objext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>conftest.er1
7911 grep -v '^ *+' conftest.er1
>conftest.err
7913 cat conftest.err
>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; } &&
7922 { ac_try
='test -s conftest.$ac_objext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_c_volatile
=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.
$ac_ext >&5
7935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7937 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7938 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7939 if test $ac_cv_c_volatile = no
; then
7941 cat >>confdefs.h
<<\_ACEOF
7947 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7948 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7949 if test "${ac_cv_c_const+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 cat >conftest.
$ac_ext <<_ACEOF
7955 cat confdefs.h
>>conftest.
$ac_ext
7956 cat >>conftest.
$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7962 /* FIXME: Include the comments suggested by Paul. */
7964 /* Ultrix mips cc rejects this. */
7965 typedef int charset[2];
7967 /* SunOS 4.1.1 cc rejects this. */
7968 char const *const *ccp;
7970 /* NEC SVR4.0.2 mips cc rejects this. */
7971 struct point {int x, y;};
7972 static struct point const zero = {0,0};
7973 /* AIX XL C 1.02.0.0 rejects this.
7974 It does not let you subtract one const X* pointer from another in
7975 an arm of an if-expression whose if-part is not a constant
7977 const char *g = "string";
7978 ccp = &g + (g ? g-g : 0);
7979 /* HPUX 7.0 cc rejects these. */
7982 ccp = (char const *const *) p;
7983 { /* SCO 3.2v4 cc rejects this. */
7985 char const *s = 0 ? (char *) 0 : (char const *) 0;
7989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7991 const int *foo = &x[0];
7994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7995 typedef const int *iptr;
7999 { /* AIX XL C 1.02.0.0 rejects this saying
8000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8001 struct s { int j; const int *ap[3]; };
8002 struct s *b; b->j = 5;
8004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8013 rm -f conftest.
$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1
>conftest.err
8019 cat conftest.err
>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try
='test -s conftest.$ac_objext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.
$ac_ext >&5
8041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8043 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8044 echo "${ECHO_T}$ac_cv_c_const" >&6
8045 if test $ac_cv_c_const = no
; then
8047 cat >>confdefs.h
<<\_ACEOF
8053 echo "$as_me:$LINENO: checking for void * support" >&5
8054 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8055 if test "${emacs_cv_void_star+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 cat >conftest.
$ac_ext <<_ACEOF
8061 cat confdefs.h
>>conftest.
$ac_ext
8062 cat >>conftest.
$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8073 rm -f conftest.
$ac_objext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8075 (eval $ac_compile) 2>conftest.er1
8077 grep -v '^ *+' conftest.er1
>conftest.err
8079 cat conftest.err
>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; } &&
8088 { ac_try
='test -s conftest.$ac_objext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8094 emacs_cv_void_star
=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.
$ac_ext >&5
8099 emacs_cv_void_star
=no
8101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8103 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8104 echo "${ECHO_T}$emacs_cv_void_star" >&6
8105 if test $emacs_cv_void_star = yes; then
8106 cat >>confdefs.h
<<\_ACEOF
8107 #define POINTER_TYPE void
8111 cat >>confdefs.h
<<\_ACEOF
8112 #define POINTER_TYPE char
8121 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8122 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8123 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8124 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 cat >conftest.
make <<\_ACEOF
8129 @
echo 'ac_maketemp="$(MAKE)"'
8131 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8132 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8133 if test -n "$ac_maketemp"; then
8134 eval ac_cv_prog_make_
${ac_make}_set
=yes
8136 eval ac_cv_prog_make_
${ac_make}_set
=no
8140 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8141 echo "$as_me:$LINENO: result: yes" >&5
8142 echo "${ECHO_T}yes" >&6
8145 echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6
8147 SET_MAKE
="MAKE=${MAKE-make}"
8151 echo "$as_me:$LINENO: checking for long file names" >&5
8152 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8153 if test "${ac_cv_sys_long_file_names+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_cv_sys_long_file_names
=yes
8157 # Test for long file names in all the places we know might matter:
8158 # . the current directory, where building will happen
8159 # $prefix/lib where we will be installing things
8160 # $exec_prefix/lib likewise
8161 # eval it to expand exec_prefix.
8162 # $TMPDIR if set, where it might want to write temporary files
8163 # if $TMPDIR is not set:
8164 # /tmp where it might want to write temporary files
8167 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8170 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8172 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8173 test -d $ac_dir ||
continue
8174 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8175 ac_xdir
=$ac_dir/cf$$
8176 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8177 ac_tf1
=$ac_xdir/conftest9012345
8178 ac_tf2
=$ac_xdir/conftest9012346
8179 (echo 1 >$ac_tf1) 2>/dev
/null
8180 (echo 2 >$ac_tf2) 2>/dev
/null
8181 ac_val
=`cat $ac_tf1 2>/dev/null`
8182 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8183 ac_cv_sys_long_file_names
=no
8184 rm -rf $ac_xdir 2>/dev
/null
8187 rm -rf $ac_xdir 2>/dev
/null
8190 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8191 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8192 if test $ac_cv_sys_long_file_names = yes; then
8194 cat >>confdefs.h
<<\_ACEOF
8195 #define HAVE_LONG_FILE_NAMES 1
8201 #### Choose a window system.
8203 echo "$as_me:$LINENO: checking for X" >&5
8204 echo $ECHO_N "checking for X... $ECHO_C" >&6
8206 ac_path_x_has_been_run
=yes
8208 # Check whether --with-x or --without-x was given.
8209 if test "${with_x+set}" = set; then
8213 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8214 if test "x$with_x" = xno
; then
8215 # The user explicitly disabled X.
8218 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8219 # Both variables are already set.
8222 if test "${ac_cv_have_x+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8225 # One or both of the vars are not set, and there is no cached value.
8226 ac_x_includes
=no ac_x_libraries
=no
8228 if mkdir conftest.dir
; then
8230 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8231 cat >Imakefile
<<'_ACEOF'
8233 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8235 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8237 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8238 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8239 for ac_extension
in a so sl
; do
8240 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8241 test -f $ac_im_libdir/libX11.
$ac_extension; then
8242 ac_im_usrlibdir
=$ac_im_libdir; break
8245 # Screen out bogus values from the imake configuration. They are
8246 # bogus both because they are the default anyway, and because
8247 # using them would break gcc on systems where it needs fixed includes.
8248 case $ac_im_incroot in
8250 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8252 case $ac_im_usrlibdir in
8254 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8261 # Standard set of common directories for X headers.
8262 # Check X11 before X11Rn because it is often a symlink to the current release.
8274 /usr/local/X11/include
8275 /usr/local/X11R6/include
8276 /usr/local/X11R5/include
8277 /usr/local/X11R4/include
8279 /usr/local/include/X11
8280 /usr/local/include/X11R6
8281 /usr/local/include/X11R5
8282 /usr/local/include/X11R4
8286 /usr/XFree86/include/X11
8290 /usr/unsupported/include
8292 /usr/local/x11r5/include
8293 /usr/lpp/Xamples/include
8295 /usr/openwin/include
8296 /usr/openwin/share/include'
8298 if test "$ac_x_includes" = no
; then
8299 # Guess where to find include files, by looking for a specified header file.
8300 # First, try using that file with no special directory specified.
8301 cat >conftest.
$ac_ext <<_ACEOF
8304 cat confdefs.h
>>conftest.
$ac_ext
8305 cat >>conftest.
$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #include <X11/Xlib.h>
8309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8310 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8312 grep -v '^ *+' conftest.er1
>conftest.err
8314 cat conftest.err
>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } >/dev
/null
; then
8317 if test -s conftest.err
; then
8318 ac_cpp_err
=$ac_c_preproc_warn_flag
8319 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8326 if test -z "$ac_cpp_err"; then
8327 # We can compile using X headers with no special include directory.
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.
$ac_ext >&5
8333 for ac_dir
in $ac_x_header_dirs; do
8334 if test -r "$ac_dir/X11/Xlib.h"; then
8335 ac_x_includes
=$ac_dir
8340 rm -f conftest.err conftest.
$ac_ext
8341 fi # $ac_x_includes = no
8343 if test "$ac_x_libraries" = no
; then
8344 # Check for the libraries.
8345 # See if we find them without any special options.
8346 # Don't add to $LIBS permanently.
8349 cat >conftest.
$ac_ext <<_ACEOF
8352 cat confdefs.h
>>conftest.
$ac_ext
8353 cat >>conftest.
$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 #include <X11/Xlib.h>
8364 rm -f conftest.
$ac_objext conftest
$ac_exeext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366 (eval $ac_link) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1
>conftest.err
8370 cat conftest.err
>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try
='test -s conftest$ac_exeext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8386 # We can link X programs with no special library path.
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.
$ac_ext >&5
8393 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8395 # Don't even attempt the hair of trying to link an X program!
8396 for ac_extension
in a so sl
; do
8397 if test -r $ac_dir/libX11.
$ac_extension; then
8398 ac_x_libraries
=$ac_dir
8404 rm -f conftest.err conftest.
$ac_objext \
8405 conftest
$ac_exeext conftest.
$ac_ext
8406 fi # $ac_x_libraries = no
8408 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8409 # Didn't find X anywhere. Cache the known absence of X.
8410 ac_cv_have_x
="have_x=no"
8412 # Record where we found X for the cache.
8413 ac_cv_have_x
="have_x=yes \
8414 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8419 eval "$ac_cv_have_x"
8422 if test "$have_x" != yes; then
8423 echo "$as_me:$LINENO: result: $have_x" >&5
8424 echo "${ECHO_T}$have_x" >&6
8427 # If each of the values was on the command line, it overrides each guess.
8428 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8429 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8430 # Update the cache value to reflect the command line values.
8431 ac_cv_have_x
="have_x=yes \
8432 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8433 # It might be that x_includes is empty (headers are found in the
8434 # standard search path. Then output the corresponding message
8435 ac_out_x_includes
=$x_includes
8436 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8437 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8438 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8441 if test "$no_x" = yes; then
8447 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8448 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8449 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8450 x_default_search_path
=""
8451 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8453 ${x_library}/X11/%L/%T/%N%C%S:\
8454 ${x_library}/X11/%l/%T/%N%C%S:\
8455 ${x_library}/X11/%T/%N%C%S:\
8456 ${x_library}/X11/%L/%T/%N%S:\
8457 ${x_library}/X11/%l/%T/%N%S:\
8458 ${x_library}/X11/%T/%N%S"
8459 if test x
"${x_default_search_path}" = x
; then
8460 x_default_search_path
=${x_search_path}
8462 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8466 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8467 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8470 if test x
"${x_includes}" = x
; then
8471 bitmapdir
=/usr
/include
/X11
/bitmaps
8473 # accumulate include directories that have X11 bitmap subdirectories
8475 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8476 if test -d "${bmd}/X11/bitmaps"; then
8477 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8479 if test -d "${bmd}/bitmaps"; then
8480 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8483 if test ${bmd_acc} != "dummyval"; then
8484 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8489 if test "${with_carbon}" != no
; then
8490 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8491 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8492 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8493 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8497 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8499 # Is the header compilable?
8500 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8501 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8502 cat >conftest.
$ac_ext <<_ACEOF
8505 cat confdefs.h
>>conftest.
$ac_ext
8506 cat >>conftest.
$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #include <Carbon/Carbon.h>
8511 rm -f conftest.
$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>conftest.er1
8515 grep -v '^ *+' conftest.er1
>conftest.err
8517 cat conftest.err
>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try
='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_header_compiler
=yes
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.
$ac_ext >&5
8537 ac_header_compiler
=no
8539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8541 echo "${ECHO_T}$ac_header_compiler" >&6
8543 # Is the header present?
8544 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8545 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8546 cat >conftest.
$ac_ext <<_ACEOF
8549 cat confdefs.h
>>conftest.
$ac_ext
8550 cat >>conftest.
$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 #include <Carbon/Carbon.h>
8554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8557 grep -v '^ *+' conftest.er1
>conftest.err
8559 cat conftest.err
>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } >/dev
/null
; then
8562 if test -s conftest.err
; then
8563 ac_cpp_err
=$ac_c_preproc_warn_flag
8564 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8571 if test -z "$ac_cpp_err"; then
8572 ac_header_preproc
=yes
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.
$ac_ext >&5
8577 ac_header_preproc
=no
8579 rm -f conftest.err conftest.
$ac_ext
8580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8581 echo "${ECHO_T}$ac_header_preproc" >&6
8583 # So? What about this header?
8584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8586 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8587 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8589 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8590 ac_header_preproc
=yes
8593 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8594 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8596 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8598 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8600 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8602 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8604 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8607 ## ------------------------------------------ ##
8608 ## Report this to the AC_PACKAGE_NAME lists. ##
8609 ## ------------------------------------------ ##
8612 sed "s/^/$as_me: WARNING: /" >&2
8615 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8616 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8617 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8622 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8626 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8632 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8633 if test "${with_carbon+set}" != set \
8634 && test "${carbon_appdir_x+set}" != set; then
8638 if test "${HAVE_CARBON}" = yes; then
8642 case "${window_system}" in
8646 case "${with_x_toolkit}" in
8647 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8648 motif
) USE_X_TOOLKIT
=MOTIF
;;
8650 USE_X_TOOLKIT
=none
;;
8651 no
) USE_X_TOOLKIT
=none
;;
8652 * ) USE_X_TOOLKIT
=maybe
;;
8662 ### If we're using X11, we should use the X menu package.
8665 yes ) HAVE_MENUS
=yes ;;
8668 if test "${opsys}" = "hpux9"; then
8669 case "${x_libraries}" in
8671 opsysfile
="s/hpux9-x11r4.h"
8676 if test "${opsys}" = "hpux9shr"; then
8677 case "${x_libraries}" in
8679 opsysfile
="s/hpux9shxr4.h"
8684 ### Compute the unexec source name from the object name.
8685 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8687 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8688 # Assume not, until told otherwise.
8691 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8692 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8693 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 cat >conftest.
$ac_ext <<_ACEOF
8699 cat confdefs.h
>>conftest.
$ac_ext
8700 cat >>conftest.
$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704 #define malloc_get_state innocuous_malloc_get_state
8706 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char malloc_get_state (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8712 # include <limits.h>
8714 # include <assert.h>
8717 #undef malloc_get_state
8719 /* Override any gcc2 internal prototype to avoid an error. */
8724 /* We use char because int might match the return type of a gcc2
8725 builtin and then its argument prototype would still apply. */
8726 char malloc_get_state ();
8727 /* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8733 char (*f) () = malloc_get_state;
8742 return f != malloc_get_state;
8747 rm -f conftest.
$ac_objext conftest
$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749 (eval $ac_link) 2>conftest.er1
8751 grep -v '^ *+' conftest.er1
>conftest.err
8753 cat conftest.err
>&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try
='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_func_malloc_get_state
=yes
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.
$ac_ext >&5
8773 ac_cv_func_malloc_get_state
=no
8775 rm -f conftest.err conftest.
$ac_objext \
8776 conftest
$ac_exeext conftest.
$ac_ext
8778 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8779 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8780 if test $ac_cv_func_malloc_get_state = yes; then
8786 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8787 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8788 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 cat >conftest.
$ac_ext <<_ACEOF
8794 cat confdefs.h
>>conftest.
$ac_ext
8795 cat >>conftest.
$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8799 #define malloc_set_state innocuous_malloc_set_state
8801 /* System header to define __stub macros and hopefully few prototypes,
8802 which can conflict with char malloc_set_state (); below.
8803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8804 <limits.h> exists even on freestanding compilers. */
8807 # include <limits.h>
8809 # include <assert.h>
8812 #undef malloc_set_state
8814 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char malloc_set_state ();
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8828 char (*f) () = malloc_set_state;
8837 return f != malloc_set_state;
8842 rm -f conftest.
$ac_objext conftest
$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>conftest.er1
8846 grep -v '^ *+' conftest.er1
>conftest.err
8848 cat conftest.err
>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } &&
8857 { ac_try
='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 ac_cv_func_malloc_set_state
=yes
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.
$ac_ext >&5
8868 ac_cv_func_malloc_set_state
=no
8870 rm -f conftest.err conftest.
$ac_objext \
8871 conftest
$ac_exeext conftest.
$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8874 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8875 if test $ac_cv_func_malloc_set_state = yes; then
8881 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8882 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8883 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 cat >conftest.
$ac_ext <<_ACEOF
8889 cat confdefs.h
>>conftest.
$ac_ext
8890 cat >>conftest.
$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 extern void (* __after_morecore_hook)();
8896 __after_morecore_hook = 0
8901 rm -f conftest.
$ac_objext conftest
$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>conftest.er1
8905 grep -v '^ *+' conftest.er1
>conftest.err
8907 cat conftest.err
>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try
='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 emacs_cv_var___after_morecore_hook
=yes
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.
$ac_ext >&5
8927 emacs_cv_var___after_morecore_hook
=no
8929 rm -f conftest.err conftest.
$ac_objext \
8930 conftest
$ac_exeext conftest.
$ac_ext
8932 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8933 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8934 if test $emacs_cv_var___after_morecore_hook = no
; then
8937 if test "${system_malloc}" = "yes"; then
8940 (The GNU allocators don't work with this system configuration.)"
8942 if test "$doug_lea_malloc" = "yes" ; then
8943 if test "$GNU_MALLOC" = yes ; then
8945 (Using Doug Lea's new malloc from the GNU C Library.)"
8948 cat >>confdefs.h
<<\_ACEOF
8949 #define DOUG_LEA_MALLOC 1
8954 if test x
"${REL_ALLOC}" = x
; then
8955 REL_ALLOC
=${GNU_MALLOC}
8961 for ac_header
in stdlib.h unistd.h
8963 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965 echo "$as_me:$LINENO: checking for $ac_header" >&5
8966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8973 # Is the header compilable?
8974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8976 cat >conftest.
$ac_ext <<_ACEOF
8979 cat confdefs.h
>>conftest.
$ac_ext
8980 cat >>conftest.
$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 $ac_includes_default
8983 #include <$ac_header>
8985 rm -f conftest.
$ac_objext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
8989 grep -v '^ *+' conftest.er1
>conftest.err
8991 cat conftest.err
>&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try
='test -s conftest.$ac_objext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_header_compiler
=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.
$ac_ext >&5
9011 ac_header_compiler
=no
9013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9015 echo "${ECHO_T}$ac_header_compiler" >&6
9017 # Is the header present?
9018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9020 cat >conftest.
$ac_ext <<_ACEOF
9023 cat confdefs.h
>>conftest.
$ac_ext
9024 cat >>conftest.
$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 #include <$ac_header>
9028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9031 grep -v '^ *+' conftest.er1
>conftest.err
9033 cat conftest.err
>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } >/dev
/null
; then
9036 if test -s conftest.err
; then
9037 ac_cpp_err
=$ac_c_preproc_warn_flag
9038 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9045 if test -z "$ac_cpp_err"; then
9046 ac_header_preproc
=yes
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.
$ac_ext >&5
9051 ac_header_preproc
=no
9053 rm -f conftest.err conftest.
$ac_ext
9054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9055 echo "${ECHO_T}$ac_header_preproc" >&6
9057 # So? What about this header?
9058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9064 ac_header_preproc
=yes
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9081 ## ------------------------------------------ ##
9082 ## Report this to the AC_PACKAGE_NAME lists. ##
9083 ## ------------------------------------------ ##
9086 sed "s/^/$as_me: WARNING: /" >&2
9089 echo "$as_me:$LINENO: checking for $ac_header" >&5
9090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 eval "$as_ac_Header=\$ac_header_preproc"
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9101 cat >>confdefs.h
<<_ACEOF
9102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9110 for ac_func
in getpagesize
9112 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 echo "$as_me:$LINENO: checking for $ac_func" >&5
9114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9115 if eval "test \"\${$as_ac_var+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cat >conftest.
$ac_ext <<_ACEOF
9121 cat confdefs.h
>>conftest.
$ac_ext
9122 cat >>conftest.
$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9126 #define $ac_func innocuous_$ac_func
9128 /* System header to define __stub macros and hopefully few prototypes,
9129 which can conflict with char $ac_func (); below.
9130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131 <limits.h> exists even on freestanding compilers. */
9134 # include <limits.h>
9136 # include <assert.h>
9141 /* Override any gcc2 internal prototype to avoid an error. */
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9149 /* The GNU C library defines this for functions which it implements
9150 to always fail with ENOSYS. Some functions are actually named
9151 something starting with __ and the normal name is an alias. */
9152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9155 char (*f) () = $ac_func;
9164 return f != $ac_func;
9169 rm -f conftest.
$ac_objext conftest
$ac_exeext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9171 (eval $ac_link) 2>conftest.er1
9173 grep -v '^ *+' conftest.er1
>conftest.err
9175 cat conftest.err
>&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try
='test -s conftest$ac_exeext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 eval "$as_ac_var=yes"
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.
$ac_ext >&5
9195 eval "$as_ac_var=no"
9197 rm -f conftest.err conftest.
$ac_objext \
9198 conftest
$ac_exeext conftest.
$ac_ext
9200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9202 if test `eval echo '${'$as_ac_var'}'` = yes; then
9203 cat >>confdefs.h
<<_ACEOF
9204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9210 echo "$as_me:$LINENO: checking for working mmap" >&5
9211 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9212 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 if test "$cross_compiling" = yes; then
9216 ac_cv_func_mmap_fixed_mapped
=no
9218 cat >conftest.
$ac_ext <<_ACEOF
9221 cat confdefs.h
>>conftest.
$ac_ext
9222 cat >>conftest.
$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 $ac_includes_default
9225 /* malloc might have been renamed as rpl_malloc. */
9228 /* Thanks to Mike Haertel and Jim Avera for this test.
9229 Here is a matrix of mmap possibilities:
9230 mmap private not fixed
9231 mmap private fixed at somewhere currently unmapped
9232 mmap private fixed at somewhere already mapped
9233 mmap shared not fixed
9234 mmap shared fixed at somewhere currently unmapped
9235 mmap shared fixed at somewhere already mapped
9236 For private mappings, we should verify that changes cannot be read()
9237 back from the file, nor mmap's back from the file at a different
9238 address. (There have been systems where private was not correctly
9239 implemented like the infamous i386 svr4.0, and systems where the
9240 VM page cache was not coherent with the file system buffer cache
9241 like early versions of FreeBSD and possibly contemporary NetBSD.)
9242 For shared mappings, we should conversely verify that changes get
9243 propagated back to all the places they're supposed to be.
9245 Grep wants private fixed already mapped.
9246 The main things grep needs to know about mmap are:
9247 * does it exist and is it safe to write into the mmap'd area
9248 * how to use it (BSD variants) */
9251 #include <sys/mman.h>
9253 #if !STDC_HEADERS && !HAVE_STDLIB_H
9257 /* This mess was copied from the GNU getpagesize.h. */
9258 #if !HAVE_GETPAGESIZE
9259 /* Assume that all systems that can run configure have sys/param.h. */
9260 # if !HAVE_SYS_PARAM_H
9261 # define HAVE_SYS_PARAM_H 1
9264 # ifdef _SC_PAGESIZE
9265 # define getpagesize() sysconf(_SC_PAGESIZE)
9266 # else /* no _SC_PAGESIZE */
9267 # if HAVE_SYS_PARAM_H
9268 # include <sys/param.h>
9269 # ifdef EXEC_PAGESIZE
9270 # define getpagesize() EXEC_PAGESIZE
9271 # else /* no EXEC_PAGESIZE */
9273 # define getpagesize() NBPG * CLSIZE
9276 # endif /* no CLSIZE */
9277 # else /* no NBPG */
9279 # define getpagesize() NBPC
9280 # else /* no NBPC */
9282 # define getpagesize() PAGESIZE
9283 # endif /* PAGESIZE */
9284 # endif /* no NBPC */
9285 # endif /* no NBPG */
9286 # endif /* no EXEC_PAGESIZE */
9287 # else /* no HAVE_SYS_PARAM_H */
9288 # define getpagesize() 8192 /* punt totally */
9289 # endif /* no HAVE_SYS_PARAM_H */
9290 # endif /* no _SC_PAGESIZE */
9292 #endif /* no HAVE_GETPAGESIZE */
9297 char *data, *data2, *data3;
9301 pagesize = getpagesize ();
9303 /* First, make a file with some known garbage in it. */
9304 data = (char *) malloc (pagesize);
9307 for (i = 0; i < pagesize; ++i)
9308 *(data + i) = rand ();
9310 fd = creat ("conftest.mmap", 0600);
9313 if (write (fd, data, pagesize) != pagesize)
9317 /* Next, try to mmap the file at a fixed address which already has
9318 something else allocated at it. If we can, also make sure that
9319 we see the same garbage. */
9320 fd = open ("conftest.mmap", O_RDWR);
9323 data2 = (char *) malloc (2 * pagesize);
9326 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9327 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9328 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9330 for (i = 0; i < pagesize; ++i)
9331 if (*(data + i) != *(data2 + i))
9334 /* Finally, make sure that changes to the mapped area do not
9335 percolate back to the file as seen by read(). (This is a bug on
9336 some variants of i386 svr4.0.) */
9337 for (i = 0; i < pagesize; ++i)
9338 *(data2 + i) = *(data2 + i) + 1;
9339 data3 = (char *) malloc (pagesize);
9342 if (read (fd, data3, pagesize) != pagesize)
9344 for (i = 0; i < pagesize; ++i)
9345 if (*(data + i) != *(data3 + i))
9351 rm -f conftest
$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_func_mmap_fixed_mapped
=yes
9364 echo "$as_me: program exited with status $ac_status" >&5
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.
$ac_ext >&5
9369 ac_cv_func_mmap_fixed_mapped
=no
9371 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9375 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9376 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9378 cat >>confdefs.h
<<\_ACEOF
9385 if test $use_mmap_for_buffers = yes; then
9389 LIBS
="$libsrc_libs $LIBS"
9392 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9393 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9394 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 ac_check_lib_save_LIBS
=$LIBS
9399 cat >conftest.
$ac_ext <<_ACEOF
9402 cat confdefs.h
>>conftest.
$ac_ext
9403 cat >>conftest.
$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9406 /* Override any gcc2 internal prototype to avoid an error. */
9410 /* We use char because int might match the return type of a gcc2
9411 builtin and then its argument prototype would still apply. */
9421 rm -f conftest.
$ac_objext conftest
$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>conftest.er1
9425 grep -v '^ *+' conftest.er1
>conftest.err
9427 cat conftest.err
>&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try
='test -s conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_lib_dnet_dnet_ntoa
=yes
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.
$ac_ext >&5
9447 ac_cv_lib_dnet_dnet_ntoa
=no
9449 rm -f conftest.err conftest.
$ac_objext \
9450 conftest
$ac_exeext conftest.
$ac_ext
9451 LIBS
=$ac_check_lib_save_LIBS
9453 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9454 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9455 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_LIBDNET 1
9465 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9466 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9467 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 ac_check_lib_save_LIBS
=$LIBS
9472 cat >conftest.
$ac_ext <<_ACEOF
9475 cat confdefs.h
>>conftest.
$ac_ext
9476 cat >>conftest.
$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9488 rm -f conftest.
$ac_objext conftest
$ac_exeext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9490 (eval $ac_link) 2>conftest.er1
9492 grep -v '^ *+' conftest.er1
>conftest.err
9494 cat conftest.err
>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try
='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 ac_cv_lib_Xbsd_main
=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.
$ac_ext >&5
9514 ac_cv_lib_Xbsd_main
=no
9516 rm -f conftest.err conftest.
$ac_objext \
9517 conftest
$ac_exeext conftest.
$ac_ext
9518 LIBS
=$ac_check_lib_save_LIBS
9520 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9521 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9522 if test $ac_cv_lib_Xbsd_main = yes; then
9523 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9528 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9529 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9530 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 ac_check_lib_save_LIBS
=$LIBS
9534 LIBS
="-lpthreads $LIBS"
9535 cat >conftest.
$ac_ext <<_ACEOF
9538 cat confdefs.h
>>conftest.
$ac_ext
9539 cat >>conftest.
$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9542 /* Override any gcc2 internal prototype to avoid an error. */
9546 /* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9557 rm -f conftest.
$ac_objext conftest
$ac_exeext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>conftest.er1
9561 grep -v '^ *+' conftest.er1
>conftest.err
9563 cat conftest.err
>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try
='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_lib_pthreads_cma_open
=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.
$ac_ext >&5
9583 ac_cv_lib_pthreads_cma_open
=no
9585 rm -f conftest.err conftest.
$ac_objext \
9586 conftest
$ac_exeext conftest.
$ac_ext
9587 LIBS
=$ac_check_lib_save_LIBS
9589 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9590 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9591 if test $ac_cv_lib_pthreads_cma_open = yes; then
9592 cat >>confdefs.h
<<_ACEOF
9593 #define HAVE_LIBPTHREADS 1
9596 LIBS
="-lpthreads $LIBS"
9601 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9602 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9603 if test -d /usr
/X386
/include
; then
9605 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9609 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9610 echo "${ECHO_T}$HAVE_XFREE386" >&6
9615 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9616 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9617 if test "${gdb_cv_bigtoc+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9623 *) gdb_cv_bigtoc
=-bbigtoc ;;
9626 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9627 cat >conftest.
$ac_ext <<_ACEOF
9630 cat confdefs.h
>>conftest.
$ac_ext
9631 cat >>conftest.
$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9642 rm -f conftest.
$ac_objext conftest
$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1
>conftest.err
9648 cat conftest.err
>&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try
='test -s conftest$ac_exeext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.
$ac_ext >&5
9670 rm -f conftest.err conftest.
$ac_objext \
9671 conftest
$ac_exeext conftest.
$ac_ext
9674 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9675 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9679 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9680 # used for the tests that follow. We set them back to REAL_CFLAGS and
9681 # REAL_CPPFLAGS later on.
9683 REAL_CPPFLAGS
="$CPPFLAGS"
9685 if test "${HAVE_X11}" = "yes"; then
9686 DEFS
="$C_SWITCH_X_SITE $DEFS"
9687 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9689 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9690 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9692 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9693 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9694 # but it's more convenient here to set LD_RUN_PATH
9695 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9696 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9697 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9701 if test "${opsys}" = "gnu-linux"; then
9702 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9703 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9704 cat >conftest.
$ac_ext <<_ACEOF
9707 cat confdefs.h
>>conftest.
$ac_ext
9708 cat >>conftest.
$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9714 XOpenDisplay ("foo");
9719 rm -f conftest.
$ac_objext conftest
$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721 (eval $ac_link) 2>conftest.er1
9723 grep -v '^ *+' conftest.er1
>conftest.err
9725 cat conftest.err
>&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try
='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 xlinux_first_failure
=no
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.
$ac_ext >&5
9745 xlinux_first_failure
=yes
9747 rm -f conftest.err conftest.
$ac_objext \
9748 conftest
$ac_exeext conftest.
$ac_ext
9749 if test "${xlinux_first_failure}" = "yes"; then
9750 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9751 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9752 OLD_CPPFLAGS
="$CPPFLAGS"
9754 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9755 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9756 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9757 LIBS
="$LIBS -b i486-linuxaout"
9758 cat >conftest.
$ac_ext <<_ACEOF
9761 cat confdefs.h
>>conftest.
$ac_ext
9762 cat >>conftest.
$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9768 XOpenDisplay ("foo");
9773 rm -f conftest.
$ac_objext conftest
$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9777 grep -v '^ *+' conftest.er1
>conftest.err
9779 cat conftest.err
>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try
='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 xlinux_second_failure
=no
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 xlinux_second_failure
=yes
9801 rm -f conftest.err conftest.
$ac_objext \
9802 conftest
$ac_exeext conftest.
$ac_ext
9803 if test "${xlinux_second_failure}" = "yes"; then
9804 # If we get the same failure with -b, there is no use adding -b.
9805 # So take it out. This plays safe.
9806 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9807 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9808 CPPFLAGS
="$OLD_CPPFLAGS"
9810 echo "$as_me:$LINENO: result: no" >&5
9811 echo "${ECHO_T}no" >&6
9813 echo "$as_me:$LINENO: result: yes" >&5
9814 echo "${ECHO_T}yes" >&6
9817 echo "$as_me:$LINENO: result: no" >&5
9818 echo "${ECHO_T}no" >&6
9822 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9823 # header files included from there.
9824 echo "$as_me:$LINENO: checking for Xkb" >&5
9825 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9826 cat >conftest.
$ac_ext <<_ACEOF
9829 cat confdefs.h
>>conftest.
$ac_ext
9830 cat >>conftest.
$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 #include <X11/Xlib.h>
9833 #include <X11/XKBlib.h>
9837 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9842 rm -f conftest.
$ac_objext conftest
$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>conftest.er1
9846 grep -v '^ *+' conftest.er1
>conftest.err
9848 cat conftest.err
>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try
='test -s conftest$ac_exeext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.
$ac_ext >&5
9870 rm -f conftest.err conftest.
$ac_objext \
9871 conftest
$ac_exeext conftest.
$ac_ext
9872 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9873 echo "${ECHO_T}$emacs_xkb" >&6
9874 if test $emacs_xkb = yes; then
9876 cat >>confdefs.h
<<\_ACEOF
9877 #define HAVE_XKBGETKEYBOARD 1
9886 for ac_func
in XrmSetDatabase XScreenResourceString \
9887 XScreenNumberOfScreen XSetWMProtocols
9889 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9890 echo "$as_me:$LINENO: checking for $ac_func" >&5
9891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9892 if eval "test \"\${$as_ac_var+set}\" = set"; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 cat >conftest.
$ac_ext <<_ACEOF
9898 cat confdefs.h
>>conftest.
$ac_ext
9899 cat >>conftest.
$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9903 #define $ac_func innocuous_$ac_func
9905 /* System header to define __stub macros and hopefully few prototypes,
9906 which can conflict with char $ac_func (); below.
9907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908 <limits.h> exists even on freestanding compilers. */
9911 # include <limits.h>
9913 # include <assert.h>
9918 /* Override any gcc2 internal prototype to avoid an error. */
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9926 /* The GNU C library defines this for functions which it implements
9927 to always fail with ENOSYS. Some functions are actually named
9928 something starting with __ and the normal name is an alias. */
9929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9932 char (*f) () = $ac_func;
9941 return f != $ac_func;
9946 rm -f conftest.
$ac_objext conftest
$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>conftest.er1
9950 grep -v '^ *+' conftest.er1
>conftest.err
9952 cat conftest.err
>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try
='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 eval "$as_ac_var=yes"
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.
$ac_ext >&5
9972 eval "$as_ac_var=no"
9974 rm -f conftest.err conftest.
$ac_objext \
9975 conftest
$ac_exeext conftest.
$ac_ext
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9979 if test `eval echo '${'$as_ac_var'}'` = yes; then
9980 cat >>confdefs.h
<<_ACEOF
9981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9989 if test "${window_system}" = "x11"; then
9990 echo "$as_me:$LINENO: checking X11 version 6" >&5
9991 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9992 if test "${emacs_cv_x11_version_6+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 cat >conftest.
$ac_ext <<_ACEOF
9998 cat confdefs.h
>>conftest.
$ac_ext
9999 cat >>conftest.
$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <X11/Xlib.h>
10005 #if XlibSpecificationRelease < 6
10013 rm -f conftest.
$ac_objext conftest
$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10017 grep -v '^ *+' conftest.er1
>conftest.err
10019 cat conftest.err
>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try
='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 emacs_cv_x11_version_6
=yes
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.
$ac_ext >&5
10039 emacs_cv_x11_version_6
=no
10041 rm -f conftest.err conftest.
$ac_objext \
10042 conftest
$ac_exeext conftest.
$ac_ext
10045 if test $emacs_cv_x11_version_6 = yes; then
10046 echo "$as_me:$LINENO: result: 6 or newer" >&5
10047 echo "${ECHO_T}6 or newer" >&6
10049 cat >>confdefs.h
<<\_ACEOF
10050 #define HAVE_X11R6 1
10054 echo "$as_me:$LINENO: result: before 6" >&5
10055 echo "${ECHO_T}before 6" >&6
10059 if test "${window_system}" = "x11"; then
10060 echo "$as_me:$LINENO: checking X11 version 5" >&5
10061 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10062 if test "${emacs_cv_x11_version_5+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 cat >conftest.
$ac_ext <<_ACEOF
10068 cat confdefs.h
>>conftest.
$ac_ext
10069 cat >>conftest.
$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10071 #include <X11/Xlib.h>
10075 #if XlibSpecificationRelease < 5
10083 rm -f conftest.
$ac_objext conftest
$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>conftest.er1
10087 grep -v '^ *+' conftest.er1
>conftest.err
10089 cat conftest.err
>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try
='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 emacs_cv_x11_version_5
=yes
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.
$ac_ext >&5
10109 emacs_cv_x11_version_5
=no
10111 rm -f conftest.err conftest.
$ac_objext \
10112 conftest
$ac_exeext conftest.
$ac_ext
10115 if test $emacs_cv_x11_version_5 = yes; then
10116 echo "$as_me:$LINENO: result: 5 or newer" >&5
10117 echo "${ECHO_T}5 or newer" >&6
10120 cat >>confdefs.h
<<\_ACEOF
10121 #define HAVE_X11R5 1
10126 echo "$as_me:$LINENO: result: before 5" >&5
10127 echo "${ECHO_T}before 5" >&6
10134 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10135 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10136 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10137 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10138 { (exit 1); exit 1; }; };
10140 GLIB_REQUIRED
=2.0.1
10142 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10144 if test "X${with_pkg_config_prog}" != X
; then
10145 PKG_CONFIG
="${with_pkg_config_prog}"
10150 if test -z "$PKG_CONFIG"; then
10151 # Extract the first word of "pkg-config", so it can be a program name with args.
10152 set dummy pkg-config
; ac_word
=$2
10153 echo "$as_me:$LINENO: checking for $ac_word" >&5
10154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10155 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 case $PKG_CONFIG in
10160 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10164 for as_dir
in $PATH
10167 test -z "$as_dir" && as_dir
=.
10168 for ac_exec_ext
in '' $ac_executable_extensions; do
10169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10181 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10183 if test -n "$PKG_CONFIG"; then
10184 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10185 echo "${ECHO_T}$PKG_CONFIG" >&6
10187 echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10193 if test "$PKG_CONFIG" = "no" ; then
10194 echo "*** The pkg-config script could not be found. Make sure it is"
10195 echo "*** in your path, or give the full path to pkg-config with"
10196 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10197 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10199 PKG_CONFIG_MIN_VERSION
=0.9.0
10200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10201 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10202 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10204 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10205 echo "$as_me:$LINENO: result: yes" >&5
10206 echo "${ECHO_T}yes" >&6
10209 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10210 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10211 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10212 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10213 echo "${ECHO_T}$GTK_CFLAGS" >&6
10215 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10216 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10217 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10218 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10219 echo "${ECHO_T}$GTK_LIBS" >&6
10223 ## If we have a custom action on failure, don't print errors, but
10224 ## do set a variable so people can do so.
10225 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10226 echo $GTK_PKG_ERRORS
10232 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10233 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10237 if test $succeeded = yes; then
10240 { { 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
10241 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;}
10242 { (exit 1); exit 1; }; }
10247 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10248 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10249 LIBS
="$GTK_LIBS $LIBS"
10252 cat >>confdefs.h
<<\_ACEOF
10258 if test "$with_toolkit_scroll_bars" != no
; then
10259 with_toolkit_scroll_bars
=yes
10262 HAVE_GTK_MULTIDISPLAY
=no
10264 HAVE_GTK_FILE_SELECTION
=no
10266 for ac_func
in gtk_file_selection_new
10268 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10269 echo "$as_me:$LINENO: checking for $ac_func" >&5
10270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10271 if eval "test \"\${$as_ac_var+set}\" = set"; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 cat >conftest.
$ac_ext <<_ACEOF
10277 cat confdefs.h
>>conftest.
$ac_ext
10278 cat >>conftest.
$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10282 #define $ac_func innocuous_$ac_func
10284 /* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char $ac_func (); below.
10286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10287 <limits.h> exists even on freestanding compilers. */
10290 # include <limits.h>
10292 # include <assert.h>
10297 /* Override any gcc2 internal prototype to avoid an error. */
10302 /* We use char because int might match the return type of a gcc2
10303 builtin and then its argument prototype would still apply. */
10305 /* The GNU C library defines this for functions which it implements
10306 to always fail with ENOSYS. Some functions are actually named
10307 something starting with __ and the normal name is an alias. */
10308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10311 char (*f) () = $ac_func;
10320 return f != $ac_func;
10325 rm -f conftest.
$ac_objext conftest
$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327 (eval $ac_link) 2>conftest.er1
10329 grep -v '^ *+' conftest.er1
>conftest.err
10331 cat conftest.err
>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try
='test -s conftest$ac_exeext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 eval "$as_ac_var=yes"
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 eval "$as_ac_var=no"
10353 rm -f conftest.err conftest.
$ac_objext \
10354 conftest
$ac_exeext conftest.
$ac_ext
10356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10358 if test `eval echo '${'$as_ac_var'}'` = yes; then
10359 cat >>confdefs.h
<<_ACEOF
10360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10362 HAVE_GTK_FILE_SELECTION
=yes
10367 HAVE_GTK_FILE_CHOOSER
=no
10369 for ac_func
in gtk_file_chooser_dialog_new
10371 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10372 echo "$as_me:$LINENO: checking for $ac_func" >&5
10373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10374 if eval "test \"\${$as_ac_var+set}\" = set"; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 cat >conftest.
$ac_ext <<_ACEOF
10380 cat confdefs.h
>>conftest.
$ac_ext
10381 cat >>conftest.
$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10385 #define $ac_func innocuous_$ac_func
10387 /* System header to define __stub macros and hopefully few prototypes,
10388 which can conflict with char $ac_func (); below.
10389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390 <limits.h> exists even on freestanding compilers. */
10393 # include <limits.h>
10395 # include <assert.h>
10400 /* Override any gcc2 internal prototype to avoid an error. */
10405 /* We use char because int might match the return type of a gcc2
10406 builtin and then its argument prototype would still apply. */
10408 /* The GNU C library defines this for functions which it implements
10409 to always fail with ENOSYS. Some functions are actually named
10410 something starting with __ and the normal name is an alias. */
10411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10414 char (*f) () = $ac_func;
10423 return f != $ac_func;
10428 rm -f conftest.
$ac_objext conftest
$ac_exeext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>conftest.er1
10432 grep -v '^ *+' conftest.er1
>conftest.err
10434 cat conftest.err
>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try
='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 eval "$as_ac_var=yes"
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.
$ac_ext >&5
10454 eval "$as_ac_var=no"
10456 rm -f conftest.err conftest.
$ac_objext \
10457 conftest
$ac_exeext conftest.
$ac_ext
10459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10461 if test `eval echo '${'$as_ac_var'}'` = yes; then
10462 cat >>confdefs.h
<<_ACEOF
10463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10465 HAVE_GTK_FILE_CHOOSER
=yes
10470 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10471 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10473 cat >>confdefs.h
<<\_ACEOF
10474 #define HAVE_GTK_FILE_BOTH 1
10479 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10480 HAVE_GTK_AND_PTHREAD
=no
10482 for ac_header
in pthread.h
10484 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10486 echo "$as_me:$LINENO: checking for $ac_header" >&5
10487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494 # Is the header compilable?
10495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10497 cat >conftest.
$ac_ext <<_ACEOF
10500 cat confdefs.h
>>conftest.
$ac_ext
10501 cat >>conftest.
$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 $ac_includes_default
10504 #include <$ac_header>
10506 rm -f conftest.
$ac_objext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508 (eval $ac_compile) 2>conftest.er1
10510 grep -v '^ *+' conftest.er1
>conftest.err
10512 cat conftest.err
>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try
='test -s conftest.$ac_objext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_header_compiler
=yes
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.
$ac_ext >&5
10532 ac_header_compiler
=no
10534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10536 echo "${ECHO_T}$ac_header_compiler" >&6
10538 # Is the header present?
10539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10541 cat >conftest.
$ac_ext <<_ACEOF
10544 cat confdefs.h
>>conftest.
$ac_ext
10545 cat >>conftest.
$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 #include <$ac_header>
10549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10552 grep -v '^ *+' conftest.er1
>conftest.err
10554 cat conftest.err
>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } >/dev
/null
; then
10557 if test -s conftest.err
; then
10558 ac_cpp_err
=$ac_c_preproc_warn_flag
10559 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10566 if test -z "$ac_cpp_err"; then
10567 ac_header_preproc
=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.
$ac_ext >&5
10572 ac_header_preproc
=no
10574 rm -f conftest.err conftest.
$ac_ext
10575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10576 echo "${ECHO_T}$ac_header_preproc" >&6
10578 # So? What about this header?
10579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10585 ac_header_preproc
=yes
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602 ## ------------------------------------------ ##
10603 ## Report this to the AC_PACKAGE_NAME lists. ##
10604 ## ------------------------------------------ ##
10607 sed "s/^/$as_me: WARNING: /" >&2
10610 echo "$as_me:$LINENO: checking for $ac_header" >&5
10611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 eval "$as_ac_Header=\$ac_header_preproc"
10617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h
<<_ACEOF
10623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10630 if test "$ac_cv_header_pthread_h"; then
10631 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10632 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10633 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 ac_check_lib_save_LIBS
=$LIBS
10637 LIBS
="-lpthread $LIBS"
10638 cat >conftest.
$ac_ext <<_ACEOF
10641 cat confdefs.h
>>conftest.
$ac_ext
10642 cat >>conftest.
$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10645 /* Override any gcc2 internal prototype to avoid an error. */
10649 /* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10651 char pthread_self ();
10660 rm -f conftest.
$ac_objext conftest
$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>conftest.er1
10664 grep -v '^ *+' conftest.er1
>conftest.err
10666 cat conftest.err
>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try
='test -s conftest$ac_exeext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_lib_pthread_pthread_self
=yes
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.
$ac_ext >&5
10686 ac_cv_lib_pthread_pthread_self
=no
10688 rm -f conftest.err conftest.
$ac_objext \
10689 conftest
$ac_exeext conftest.
$ac_ext
10690 LIBS
=$ac_check_lib_save_LIBS
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10693 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10694 if test $ac_cv_lib_pthread_pthread_self = yes; then
10695 HAVE_GTK_AND_PTHREAD
=yes
10699 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10700 GTK_LIBS
="$GTK_LIBS -lpthread"
10702 cat >>confdefs.h
<<\_ACEOF
10703 #define HAVE_GTK_AND_PTHREAD 1
10710 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10711 if test x
"${HAVE_X11R5}" = xyes
; then
10712 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10713 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10714 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 cat >conftest.
$ac_ext <<_ACEOF
10720 cat confdefs.h
>>conftest.
$ac_ext
10721 cat >>conftest.
$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10724 #include <X11/Intrinsic.h>
10725 #include <X11/Xaw/Simple.h>
10734 rm -f conftest.
$ac_objext conftest
$ac_exeext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>conftest.er1
10738 grep -v '^ *+' conftest.er1
>conftest.err
10740 cat conftest.err
>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; } &&
10749 { ac_try
='test -s conftest$ac_exeext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 emacs_cv_x11_version_5_with_xaw
=yes
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.
$ac_ext >&5
10760 emacs_cv_x11_version_5_with_xaw
=no
10762 rm -f conftest.err conftest.
$ac_objext \
10763 conftest
$ac_exeext conftest.
$ac_ext
10766 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10767 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10768 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10769 USE_X_TOOLKIT
=LUCID
10771 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10772 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10780 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10782 if test "${USE_X_TOOLKIT}" != "none"; then
10783 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10784 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10785 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 cat >conftest.
$ac_ext <<_ACEOF
10791 cat confdefs.h
>>conftest.
$ac_ext
10792 cat >>conftest.
$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 #include <X11/Intrinsic.h>
10798 #if XtSpecificationRelease < 6
10806 rm -f conftest.
$ac_objext conftest
$ac_exeext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808 (eval $ac_link) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1
>conftest.err
10812 cat conftest.err
>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try
='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 emacs_cv_x11_toolkit_version_6
=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.
$ac_ext >&5
10832 emacs_cv_x11_toolkit_version_6
=no
10834 rm -f conftest.err conftest.
$ac_objext \
10835 conftest
$ac_exeext conftest.
$ac_ext
10838 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10839 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10840 echo "$as_me:$LINENO: result: 6 or newer" >&5
10841 echo "${ECHO_T}6 or newer" >&6
10843 cat >>confdefs.h
<<\_ACEOF
10844 #define HAVE_X11XTR6 1
10848 echo "$as_me:$LINENO: result: before 6" >&5
10849 echo "${ECHO_T}before 6" >&6
10853 if test x
$HAVE_X11XTR6 = xyes
; then
10854 LIBS
="-lXt -lSM -lICE $LIBS"
10859 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10860 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10861 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 ac_check_lib_save_LIBS
=$LIBS
10866 cat >conftest.
$ac_ext <<_ACEOF
10869 cat confdefs.h
>>conftest.
$ac_ext
10870 cat >>conftest.
$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10873 /* Override any gcc2 internal prototype to avoid an error. */
10877 /* We use char because int might match the return type of a gcc2
10878 builtin and then its argument prototype would still apply. */
10879 char XmuConvertStandardSelection ();
10883 XmuConvertStandardSelection ();
10888 rm -f conftest.
$ac_objext conftest
$ac_exeext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890 (eval $ac_link) 2>conftest.er1
10892 grep -v '^ *+' conftest.er1
>conftest.err
10894 cat conftest.err
>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try
='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.
$ac_ext >&5
10914 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10916 rm -f conftest.err conftest.
$ac_objext \
10917 conftest
$ac_exeext conftest.
$ac_ext
10918 LIBS
=$ac_check_lib_save_LIBS
10920 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10921 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10922 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10923 cat >>confdefs.h
<<_ACEOF
10924 #define HAVE_LIBXMU 1
10931 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10934 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10935 if test "${HAVE_X11}" = "yes"; then
10936 if test "${USE_X_TOOLKIT}" != "none"; then
10938 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10939 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10940 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_check_lib_save_LIBS
=$LIBS
10944 LIBS
="-lXext $LIBS"
10945 cat >conftest.
$ac_ext <<_ACEOF
10948 cat confdefs.h
>>conftest.
$ac_ext
10949 cat >>conftest.
$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 /* Override any gcc2 internal prototype to avoid an error. */
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char XShapeQueryExtension ();
10962 XShapeQueryExtension ();
10967 rm -f conftest.
$ac_objext conftest
$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>conftest.er1
10971 grep -v '^ *+' conftest.er1
>conftest.err
10973 cat conftest.err
>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try
='test -s conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.
$ac_ext >&5
10993 ac_cv_lib_Xext_XShapeQueryExtension
=no
10995 rm -f conftest.err conftest.
$ac_objext \
10996 conftest
$ac_exeext conftest.
$ac_ext
10997 LIBS
=$ac_check_lib_save_LIBS
10999 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11000 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11001 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11002 cat >>confdefs.h
<<_ACEOF
11003 #define HAVE_LIBXEXT 1
11006 LIBS
="-lXext $LIBS"
11013 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11014 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11015 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11016 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11029 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11032 Motif version prior to 2.1.
11038 rm -f conftest.
$ac_objext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>conftest.er1
11042 grep -v '^ *+' conftest.er1
>conftest.err
11044 cat conftest.err
>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try
='test -s conftest.$ac_objext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 emacs_cv_motif_version_2_1
=yes
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.
$ac_ext >&5
11064 emacs_cv_motif_version_2_1
=no
11066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11068 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11069 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11070 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11071 if test $emacs_cv_motif_version_2_1 = yes; then
11074 cat >>confdefs.h
<<\_ACEOF
11075 #define HAVE_MOTIF_2_1 1
11078 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11079 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11080 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 ac_check_lib_save_LIBS
=$LIBS
11085 cat >conftest.
$ac_ext <<_ACEOF
11088 cat confdefs.h
>>conftest.
$ac_ext
11089 cat >>conftest.
$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11092 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11098 char XpCreateContext ();
11102 XpCreateContext ();
11107 rm -f conftest.
$ac_objext conftest
$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>conftest.er1
11111 grep -v '^ *+' conftest.er1
>conftest.err
11113 cat conftest.err
>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } &&
11116 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try
='test -s conftest$ac_exeext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 ac_cv_lib_Xp_XpCreateContext
=yes
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.
$ac_ext >&5
11133 ac_cv_lib_Xp_XpCreateContext
=no
11135 rm -f conftest.err conftest.
$ac_objext \
11136 conftest
$ac_exeext conftest.
$ac_ext
11137 LIBS
=$ac_check_lib_save_LIBS
11139 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11140 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11141 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11145 if test ${HAVE_LIBXP} = yes; then
11147 cat >>confdefs.h
<<\_ACEOF
11148 #define HAVE_LIBXP 1
11153 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11154 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11155 if test "${emacs_cv_lesstif+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 # We put this in CFLAGS temporarily to precede other -I options
11159 # that might be in CFLAGS temporarily.
11160 # We put this in CPPFLAGS where it precedes the other -I options.
11161 OLD_CPPFLAGS
=$CPPFLAGS
11163 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11164 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11165 cat >conftest.
$ac_ext <<_ACEOF
11168 cat confdefs.h
>>conftest.
$ac_ext
11169 cat >>conftest.
$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11180 rm -f conftest.
$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>conftest.er1
11184 grep -v '^ *+' conftest.er1
>conftest.err
11186 cat conftest.err
>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try
='test -s conftest.$ac_objext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 emacs_cv_lesstif
=yes
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.
$ac_ext >&5
11206 emacs_cv_lesstif
=no
11208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11210 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11211 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11212 if test $emacs_cv_lesstif = yes; then
11213 # Make sure this -I option remains in CPPFLAGS after it is set
11214 # back to REAL_CPPFLAGS.
11215 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11216 # have those other -I options anyway. Ultimately, having this
11217 # directory ultimately in CPPFLAGS will be enough.
11218 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11219 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11222 CPPFLAGS
=$OLD_CPPFLAGS
11227 ### Is -lXaw3d available?
11229 if test "${HAVE_X11}" = "yes"; then
11230 if test "${USE_X_TOOLKIT}" != "none"; then
11231 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11232 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11233 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 cat >conftest.
$ac_ext <<_ACEOF
11239 cat confdefs.h
>>conftest.
$ac_ext
11240 cat >>conftest.
$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <X11/Xaw3d/Scrollbar.h>
11244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11245 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11247 grep -v '^ *+' conftest.er1
>conftest.err
11249 cat conftest.err
>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } >/dev
/null
; then
11252 if test -s conftest.err
; then
11253 ac_cpp_err
=$ac_c_preproc_warn_flag
11254 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11261 if test -z "$ac_cpp_err"; then
11262 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.
$ac_ext >&5
11267 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11269 rm -f conftest.err conftest.
$ac_ext
11271 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11272 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11273 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11274 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11275 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11276 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 ac_check_lib_save_LIBS
=$LIBS
11280 LIBS
="-lXaw3d $LIBS"
11281 cat >conftest.
$ac_ext <<_ACEOF
11284 cat confdefs.h
>>conftest.
$ac_ext
11285 cat >>conftest.
$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11288 /* Override any gcc2 internal prototype to avoid an error. */
11292 /* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11294 char XawScrollbarSetThumb ();
11298 XawScrollbarSetThumb ();
11303 rm -f conftest.
$ac_objext conftest
$ac_exeext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>conftest.er1
11307 grep -v '^ *+' conftest.er1
>conftest.err
11309 cat conftest.err
>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try
='test -s conftest$ac_exeext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.
$ac_ext >&5
11329 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11331 rm -f conftest.err conftest.
$ac_objext \
11332 conftest
$ac_exeext conftest.
$ac_ext
11333 LIBS
=$ac_check_lib_save_LIBS
11335 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11336 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11337 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11344 if test "${HAVE_XAW3D}" = "yes"; then
11346 cat >>confdefs.h
<<\_ACEOF
11347 #define HAVE_XAW3D 1
11356 USE_TOOLKIT_SCROLL_BARS
=no
11357 if test "${with_toolkit_scroll_bars}" != "no"; then
11358 if test "${USE_X_TOOLKIT}" != "none"; then
11359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11360 cat >>confdefs.h
<<\_ACEOF
11361 #define USE_TOOLKIT_SCROLL_BARS 1
11365 USE_TOOLKIT_SCROLL_BARS
=yes
11366 elif test "${HAVE_XAW3D}" = "yes"; then
11367 cat >>confdefs.h
<<\_ACEOF
11368 #define USE_TOOLKIT_SCROLL_BARS 1
11371 USE_TOOLKIT_SCROLL_BARS
=yes
11373 elif test "${HAVE_GTK}" = "yes"; then
11374 cat >>confdefs.h
<<\_ACEOF
11375 #define USE_TOOLKIT_SCROLL_BARS 1
11378 USE_TOOLKIT_SCROLL_BARS
=yes
11379 elif test "${HAVE_CARBON}" = "yes"; then
11380 cat >>confdefs.h
<<\_ACEOF
11381 #define USE_TOOLKIT_SCROLL_BARS 1
11384 USE_TOOLKIT_SCROLL_BARS
=yes
11388 cat >conftest.
$ac_ext <<_ACEOF
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11395 #include <X11/Xlib.h>
11396 #include <X11/Xresource.h>
11405 rm -f conftest.
$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11409 grep -v '^ *+' conftest.er1
>conftest.err
11411 cat conftest.err
>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try
='test -s conftest.$ac_objext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11428 cat >>confdefs.h
<<\_ACEOF
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.
$ac_ext >&5
11438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11441 if test "${with_xim}" != "no"; then
11443 cat >>confdefs.h
<<\_ACEOF
11450 if test "${HAVE_XIM}" != "no"; then
11451 late_CFLAGS
=$CFLAGS
11452 if test "$GCC" = yes; then
11453 CFLAGS
="$CFLAGS --pedantic-errors"
11455 cat >conftest.
$ac_ext <<_ACEOF
11458 cat confdefs.h
>>conftest.
$ac_ext
11459 cat >>conftest.
$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11462 #include <X11/Xlib.h>
11463 #include <X11/Xresource.h>
11472 XPointer *client_data;
11474 /* If we're not using GCC, it's probably not XFree86, and this is
11475 probably right, but we can't use something like --pedantic-errors. */
11476 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11477 char*, XIMProc, XPointer*);
11479 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11485 rm -f conftest.
$ac_objext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>conftest.er1
11489 grep -v '^ *+' conftest.er1
>conftest.err
11491 cat conftest.err
>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try
='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 emacs_cv_arg6_star
=yes
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.
$ac_ext >&5
11512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11514 if test "$emacs_cv_arg6_star" = yes; then
11515 cat >>confdefs.h
<<\_ACEOF
11516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11520 cat >>confdefs.h
<<\_ACEOF
11521 #define XRegisterIMInstantiateCallback_arg6 XPointer
11525 CFLAGS
=$late_CFLAGS
11528 ### Use -lXpm if available, unless `--with-xpm=no'.
11530 if test "${HAVE_X11}" = "yes"; then
11531 if test "${with_xpm}" != "no"; then
11532 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11533 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11534 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11535 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11539 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11541 # Is the header compilable?
11542 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11543 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11544 cat >conftest.
$ac_ext <<_ACEOF
11547 cat confdefs.h
>>conftest.
$ac_ext
11548 cat >>conftest.
$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <X11/xpm.h>
11553 rm -f conftest.
$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11557 grep -v '^ *+' conftest.er1
>conftest.err
11559 cat conftest.err
>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try
='test -s conftest.$ac_objext'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 ac_header_compiler
=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.
$ac_ext >&5
11579 ac_header_compiler
=no
11581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11583 echo "${ECHO_T}$ac_header_compiler" >&6
11585 # Is the header present?
11586 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11587 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11588 cat >conftest.
$ac_ext <<_ACEOF
11591 cat confdefs.h
>>conftest.
$ac_ext
11592 cat >>conftest.
$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 #include <X11/xpm.h>
11596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11597 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11599 grep -v '^ *+' conftest.er1
>conftest.err
11601 cat conftest.err
>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } >/dev
/null
; then
11604 if test -s conftest.err
; then
11605 ac_cpp_err
=$ac_c_preproc_warn_flag
11606 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11613 if test -z "$ac_cpp_err"; then
11614 ac_header_preproc
=yes
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.
$ac_ext >&5
11619 ac_header_preproc
=no
11621 rm -f conftest.err conftest.
$ac_ext
11622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11623 echo "${ECHO_T}$ac_header_preproc" >&6
11625 # So? What about this header?
11626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11628 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11629 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11631 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11632 ac_header_preproc
=yes
11635 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11636 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11638 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11640 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11642 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11644 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11646 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11649 ## ------------------------------------------ ##
11650 ## Report this to the AC_PACKAGE_NAME lists. ##
11651 ## ------------------------------------------ ##
11654 sed "s/^/$as_me: WARNING: /" >&2
11657 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11658 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11659 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11664 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11665 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11668 if test $ac_cv_header_X11_xpm_h = yes; then
11669 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11670 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11671 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 ac_check_lib_save_LIBS
=$LIBS
11675 LIBS
="-lXpm -lX11 $LIBS"
11676 cat >conftest.
$ac_ext <<_ACEOF
11679 cat confdefs.h
>>conftest.
$ac_ext
11680 cat >>conftest.
$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11683 /* Override any gcc2 internal prototype to avoid an error. */
11687 /* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11689 char XpmReadFileToPixmap ();
11693 XpmReadFileToPixmap ();
11698 rm -f conftest.
$ac_objext conftest
$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11702 grep -v '^ *+' conftest.er1
>conftest.err
11704 cat conftest.err
>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try
='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.
$ac_ext >&5
11724 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11726 rm -f conftest.err conftest.
$ac_objext \
11727 conftest
$ac_exeext conftest.
$ac_ext
11728 LIBS
=$ac_check_lib_save_LIBS
11730 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11731 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11732 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11739 if test "${HAVE_XPM}" = "yes"; then
11740 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11741 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11742 cat >conftest.
$ac_ext <<_ACEOF
11745 cat confdefs.h
>>conftest.
$ac_ext
11746 cat >>conftest.
$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include "X11/xpm.h"
11749 #ifndef XpmReturnAllocPixels
11750 no_return_alloc_pixels
11754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11755 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11763 if test "${HAVE_XPM}" = "yes"; then
11764 echo "$as_me:$LINENO: result: yes" >&5
11765 echo "${ECHO_T}yes" >&6
11767 echo "$as_me:$LINENO: result: no" >&5
11768 echo "${ECHO_T}no" >&6
11773 if test "${HAVE_XPM}" = "yes"; then
11775 cat >>confdefs.h
<<\_ACEOF
11782 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11784 if test "${HAVE_X11}" = "yes"; then
11785 if test "${with_jpeg}" != "no"; then
11786 if test "${ac_cv_header_jerror_h+set}" = set; then
11787 echo "$as_me:$LINENO: checking for jerror.h" >&5
11788 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11789 if test "${ac_cv_header_jerror_h+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11793 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11795 # Is the header compilable?
11796 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11797 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11798 cat >conftest.
$ac_ext <<_ACEOF
11801 cat confdefs.h
>>conftest.
$ac_ext
11802 cat >>conftest.
$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 #include <jerror.h>
11807 rm -f conftest.
$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11811 grep -v '^ *+' conftest.er1
>conftest.err
11813 cat conftest.err
>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try
='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_header_compiler
=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.
$ac_ext >&5
11833 ac_header_compiler
=no
11835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837 echo "${ECHO_T}$ac_header_compiler" >&6
11839 # Is the header present?
11840 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11841 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11842 cat >conftest.
$ac_ext <<_ACEOF
11845 cat confdefs.h
>>conftest.
$ac_ext
11846 cat >>conftest.
$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <jerror.h>
11850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11853 grep -v '^ *+' conftest.er1
>conftest.err
11855 cat conftest.err
>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } >/dev
/null
; then
11858 if test -s conftest.err
; then
11859 ac_cpp_err
=$ac_c_preproc_warn_flag
11860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11867 if test -z "$ac_cpp_err"; then
11868 ac_header_preproc
=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.
$ac_ext >&5
11873 ac_header_preproc
=no
11875 rm -f conftest.err conftest.
$ac_ext
11876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11877 echo "${ECHO_T}$ac_header_preproc" >&6
11879 # So? What about this header?
11880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11882 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11883 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11885 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11886 ac_header_preproc
=yes
11889 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11894 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11896 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11898 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11900 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11903 ## ------------------------------------------ ##
11904 ## Report this to the AC_PACKAGE_NAME lists. ##
11905 ## ------------------------------------------ ##
11908 sed "s/^/$as_me: WARNING: /" >&2
11911 echo "$as_me:$LINENO: checking for jerror.h" >&5
11912 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11913 if test "${ac_cv_header_jerror_h+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 ac_cv_header_jerror_h
=$ac_header_preproc
11918 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11919 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11922 if test $ac_cv_header_jerror_h = yes; then
11923 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11924 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11925 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 ac_check_lib_save_LIBS
=$LIBS
11929 LIBS
="-ljpeg $LIBS"
11930 cat >conftest.
$ac_ext <<_ACEOF
11933 cat confdefs.h
>>conftest.
$ac_ext
11934 cat >>conftest.
$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11937 /* Override any gcc2 internal prototype to avoid an error. */
11941 /* We use char because int might match the return type of a gcc2
11942 builtin and then its argument prototype would still apply. */
11943 char jpeg_destroy_compress ();
11947 jpeg_destroy_compress ();
11952 rm -f conftest.
$ac_objext conftest
$ac_exeext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954 (eval $ac_link) 2>conftest.er1
11956 grep -v '^ *+' conftest.er1
>conftest.err
11958 cat conftest.err
>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try
='test -s conftest$ac_exeext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.
$ac_ext >&5
11978 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11980 rm -f conftest.err conftest.
$ac_objext \
11981 conftest
$ac_exeext conftest.
$ac_ext
11982 LIBS
=$ac_check_lib_save_LIBS
11984 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11985 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11986 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11996 if test "${HAVE_JPEG}" = "yes"; then
11997 cat >>confdefs.h
<<\_ACEOF
11998 #define HAVE_JPEG 1
12001 cat >conftest.
$ac_ext <<_ACEOF
12004 cat confdefs.h
>>conftest.
$ac_ext
12005 cat >>conftest.
$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <jpeglib.h>
12008 version=JPEG_LIB_VERSION
12011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12013 cat >>confdefs.h
<<\_ACEOF
12014 #define HAVE_JPEG 1
12018 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12019 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12027 ### Use -lpng if available, unless `--with-png=no'.
12029 if test "${HAVE_X11}" = "yes"; then
12030 if test "${with_png}" != "no"; then
12031 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12032 # in /usr/include/libpng.
12035 for ac_header
in png.h libpng
/png.h
12037 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12039 echo "$as_me:$LINENO: checking for $ac_header" >&5
12040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12047 # Is the header compilable?
12048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12050 cat >conftest.
$ac_ext <<_ACEOF
12053 cat confdefs.h
>>conftest.
$ac_ext
12054 cat >>conftest.
$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 $ac_includes_default
12057 #include <$ac_header>
12059 rm -f conftest.
$ac_objext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>conftest.er1
12063 grep -v '^ *+' conftest.er1
>conftest.err
12065 cat conftest.err
>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try
='test -s conftest.$ac_objext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 ac_header_compiler
=yes
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.
$ac_ext >&5
12085 ac_header_compiler
=no
12087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12089 echo "${ECHO_T}$ac_header_compiler" >&6
12091 # Is the header present?
12092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12094 cat >conftest.
$ac_ext <<_ACEOF
12097 cat confdefs.h
>>conftest.
$ac_ext
12098 cat >>conftest.
$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 #include <$ac_header>
12102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12105 grep -v '^ *+' conftest.er1
>conftest.err
12107 cat conftest.err
>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev
/null
; then
12110 if test -s conftest.err
; then
12111 ac_cpp_err
=$ac_c_preproc_warn_flag
12112 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12119 if test -z "$ac_cpp_err"; then
12120 ac_header_preproc
=yes
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.
$ac_ext >&5
12125 ac_header_preproc
=no
12127 rm -f conftest.err conftest.
$ac_ext
12128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12129 echo "${ECHO_T}$ac_header_preproc" >&6
12131 # So? What about this header?
12132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12138 ac_header_preproc
=yes
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12155 ## ------------------------------------------ ##
12156 ## Report this to the AC_PACKAGE_NAME lists. ##
12157 ## ------------------------------------------ ##
12160 sed "s/^/$as_me: WARNING: /" >&2
12163 echo "$as_me:$LINENO: checking for $ac_header" >&5
12164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 eval "$as_ac_Header=\$ac_header_preproc"
12170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12175 cat >>confdefs.h
<<_ACEOF
12176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12183 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12184 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12185 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12186 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 ac_check_lib_save_LIBS
=$LIBS
12190 LIBS
="-lpng -lz -lm $LIBS"
12191 cat >conftest.
$ac_ext <<_ACEOF
12194 cat confdefs.h
>>conftest.
$ac_ext
12195 cat >>conftest.
$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204 char png_get_channels ();
12208 png_get_channels ();
12213 rm -f conftest.
$ac_objext conftest
$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12217 grep -v '^ *+' conftest.er1
>conftest.err
12219 cat conftest.err
>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try
='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_lib_png_png_get_channels
=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.
$ac_ext >&5
12239 ac_cv_lib_png_png_get_channels
=no
12241 rm -f conftest.err conftest.
$ac_objext \
12242 conftest
$ac_exeext conftest.
$ac_ext
12243 LIBS
=$ac_check_lib_save_LIBS
12245 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12246 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12247 if test $ac_cv_lib_png_png_get_channels = yes; then
12254 if test "${HAVE_PNG}" = "yes"; then
12256 cat >>confdefs.h
<<\_ACEOF
12263 ### Use -ltiff if available, unless `--with-tiff=no'.
12265 if test "${HAVE_X11}" = "yes"; then
12266 if test "${with_tiff}" != "no"; then
12267 if test "${ac_cv_header_tiffio_h+set}" = set; then
12268 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12269 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12270 if test "${ac_cv_header_tiffio_h+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12274 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12276 # Is the header compilable?
12277 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12278 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12279 cat >conftest.
$ac_ext <<_ACEOF
12282 cat confdefs.h
>>conftest.
$ac_ext
12283 cat >>conftest.
$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12285 $ac_includes_default
12286 #include <tiffio.h>
12288 rm -f conftest.
$ac_objext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>conftest.er1
12292 grep -v '^ *+' conftest.er1
>conftest.err
12294 cat conftest.err
>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try
='test -s conftest.$ac_objext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_header_compiler
=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 ac_header_compiler
=no
12316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318 echo "${ECHO_T}$ac_header_compiler" >&6
12320 # Is the header present?
12321 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12322 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12323 cat >conftest.
$ac_ext <<_ACEOF
12326 cat confdefs.h
>>conftest.
$ac_ext
12327 cat >>conftest.
$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <tiffio.h>
12331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12332 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12334 grep -v '^ *+' conftest.er1
>conftest.err
12336 cat conftest.err
>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } >/dev
/null
; then
12339 if test -s conftest.err
; then
12340 ac_cpp_err
=$ac_c_preproc_warn_flag
12341 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12348 if test -z "$ac_cpp_err"; then
12349 ac_header_preproc
=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.
$ac_ext >&5
12354 ac_header_preproc
=no
12356 rm -f conftest.err conftest.
$ac_ext
12357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358 echo "${ECHO_T}$ac_header_preproc" >&6
12360 # So? What about this header?
12361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12363 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12364 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12366 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12367 ac_header_preproc
=yes
12370 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12371 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12373 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12375 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12377 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12379 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12381 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12384 ## ------------------------------------------ ##
12385 ## Report this to the AC_PACKAGE_NAME lists. ##
12386 ## ------------------------------------------ ##
12389 sed "s/^/$as_me: WARNING: /" >&2
12392 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12393 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12394 if test "${ac_cv_header_tiffio_h+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 ac_cv_header_tiffio_h
=$ac_header_preproc
12399 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12400 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12403 if test $ac_cv_header_tiffio_h = yes; then
12405 # At least one tiff package requires the jpeg library.
12406 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12407 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12408 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12409 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 ac_check_lib_save_LIBS
=$LIBS
12413 LIBS
="-ltiff $tifflibs $LIBS"
12414 cat >conftest.
$ac_ext <<_ACEOF
12417 cat confdefs.h
>>conftest.
$ac_ext
12418 cat >>conftest.
$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12421 /* Override any gcc2 internal prototype to avoid an error. */
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427 char TIFFGetVersion ();
12436 rm -f conftest.
$ac_objext conftest
$ac_exeext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12438 (eval $ac_link) 2>conftest.er1
12440 grep -v '^ *+' conftest.er1
>conftest.err
12442 cat conftest.err
>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try
='test -s conftest$ac_exeext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_lib_tiff_TIFFGetVersion
=yes
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.
$ac_ext >&5
12462 ac_cv_lib_tiff_TIFFGetVersion
=no
12464 rm -f conftest.err conftest.
$ac_objext \
12465 conftest
$ac_exeext conftest.
$ac_ext
12466 LIBS
=$ac_check_lib_save_LIBS
12468 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12469 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12470 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12479 if test "${HAVE_TIFF}" = "yes"; then
12481 cat >>confdefs.h
<<\_ACEOF
12482 #define HAVE_TIFF 1
12488 ### Use -lgif if available, unless `--with-gif=no'.
12490 if test "${HAVE_X11}" = "yes"; then
12491 if test "${with_gif}" != "no"; then
12492 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12493 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12494 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12495 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12499 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12501 # Is the header compilable?
12502 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12503 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12504 cat >conftest.
$ac_ext <<_ACEOF
12507 cat confdefs.h
>>conftest.
$ac_ext
12508 cat >>conftest.
$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 $ac_includes_default
12511 #include <gif_lib.h>
12513 rm -f conftest.
$ac_objext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>conftest.er1
12517 grep -v '^ *+' conftest.er1
>conftest.err
12519 cat conftest.err
>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try
='test -s conftest.$ac_objext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_header_compiler
=yes
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.
$ac_ext >&5
12539 ac_header_compiler
=no
12541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12543 echo "${ECHO_T}$ac_header_compiler" >&6
12545 # Is the header present?
12546 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12547 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12548 cat >conftest.
$ac_ext <<_ACEOF
12551 cat confdefs.h
>>conftest.
$ac_ext
12552 cat >>conftest.
$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 #include <gif_lib.h>
12556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12557 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12559 grep -v '^ *+' conftest.er1
>conftest.err
12561 cat conftest.err
>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } >/dev
/null
; then
12564 if test -s conftest.err
; then
12565 ac_cpp_err
=$ac_c_preproc_warn_flag
12566 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12573 if test -z "$ac_cpp_err"; then
12574 ac_header_preproc
=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.
$ac_ext >&5
12579 ac_header_preproc
=no
12581 rm -f conftest.err conftest.
$ac_ext
12582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12583 echo "${ECHO_T}$ac_header_preproc" >&6
12585 # So? What about this header?
12586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12588 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12589 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12591 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12592 ac_header_preproc
=yes
12595 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12596 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12598 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12600 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12601 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12602 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12604 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12606 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12609 ## ------------------------------------------ ##
12610 ## Report this to the AC_PACKAGE_NAME lists. ##
12611 ## ------------------------------------------ ##
12614 sed "s/^/$as_me: WARNING: /" >&2
12617 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12618 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12619 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 ac_cv_header_gif_lib_h
=$ac_header_preproc
12624 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12625 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12628 if test $ac_cv_header_gif_lib_h = yes; then
12629 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12630 # Earlier versions can crash Emacs.
12631 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12632 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12633 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 ac_check_lib_save_LIBS
=$LIBS
12637 LIBS
="-lungif $LIBS"
12638 cat >conftest.
$ac_ext <<_ACEOF
12641 cat confdefs.h
>>conftest.
$ac_ext
12642 cat >>conftest.
$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 /* Override any gcc2 internal prototype to avoid an error. */
12649 /* We use char because int might match the return type of a gcc2
12650 builtin and then its argument prototype would still apply. */
12651 char EGifPutExtensionLast ();
12655 EGifPutExtensionLast ();
12660 rm -f conftest.
$ac_objext conftest
$ac_exeext
12661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12662 (eval $ac_link) 2>conftest.er1
12664 grep -v '^ *+' conftest.er1
>conftest.err
12666 cat conftest.err
>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try
='test -s conftest$ac_exeext'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.
$ac_ext >&5
12686 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12688 rm -f conftest.err conftest.
$ac_objext \
12689 conftest
$ac_exeext conftest.
$ac_ext
12690 LIBS
=$ac_check_lib_save_LIBS
12692 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12693 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12694 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12703 if test "${HAVE_GIF}" = "yes"; then
12705 cat >>confdefs.h
<<\_ACEOF
12712 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12713 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12714 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12715 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12719 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12721 # Is the header compilable?
12722 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12723 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12724 cat >conftest.
$ac_ext <<_ACEOF
12727 cat confdefs.h
>>conftest.
$ac_ext
12728 cat >>conftest.
$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 #include <malloc/malloc.h>
12733 rm -f conftest.
$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735 (eval $ac_compile) 2>conftest.er1
12737 grep -v '^ *+' conftest.er1
>conftest.err
12739 cat conftest.err
>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
12742 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try
='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_header_compiler
=yes
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.
$ac_ext >&5
12759 ac_header_compiler
=no
12761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12763 echo "${ECHO_T}$ac_header_compiler" >&6
12765 # Is the header present?
12766 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12767 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12768 cat >conftest.
$ac_ext <<_ACEOF
12771 cat confdefs.h
>>conftest.
$ac_ext
12772 cat >>conftest.
$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 #include <malloc/malloc.h>
12776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12779 grep -v '^ *+' conftest.er1
>conftest.err
12781 cat conftest.err
>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } >/dev
/null
; then
12784 if test -s conftest.err
; then
12785 ac_cpp_err
=$ac_c_preproc_warn_flag
12786 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12793 if test -z "$ac_cpp_err"; then
12794 ac_header_preproc
=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.
$ac_ext >&5
12799 ac_header_preproc
=no
12801 rm -f conftest.err conftest.
$ac_ext
12802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12803 echo "${ECHO_T}$ac_header_preproc" >&6
12805 # So? What about this header?
12806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12808 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12809 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12811 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12812 ac_header_preproc
=yes
12815 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12816 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12818 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12820 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12822 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12823 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12824 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12826 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12829 ## ------------------------------------------ ##
12830 ## Report this to the AC_PACKAGE_NAME lists. ##
12831 ## ------------------------------------------ ##
12834 sed "s/^/$as_me: WARNING: /" >&2
12837 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12838 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12844 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12848 if test $ac_cv_header_malloc_malloc_h = yes; then
12850 cat >>confdefs.h
<<\_ACEOF
12851 #define HAVE_MALLOC_MALLOC_H 1
12858 ### Use Mac OS X Carbon API to implement GUI.
12859 if test "${HAVE_CARBON}" = "yes"; then
12861 cat >>confdefs.h
<<\_ACEOF
12862 #define HAVE_CARBON 1
12865 ## Specify the install directory
12867 if test "${carbon_appdir_x}" != ""; then
12868 case ${carbon_appdir_x} in
12869 y | ye |
yes) carbon_appdir
=/Applications
;;
12870 * ) carbon_appdir
=${carbon_appdir_x} ;;
12873 # We also have mouse menus.
12876 tmp_CFLAGS
="$CFLAGS"
12877 CFLAGS
="$CFLAGS -framework Carbon"
12878 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12879 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12880 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 cat >conftest.
$ac_ext <<_ACEOF
12886 cat confdefs.h
>>conftest.
$ac_ext
12887 cat >>conftest.
$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12891 #define CancelMenuTracking innocuous_CancelMenuTracking
12893 /* System header to define __stub macros and hopefully few prototypes,
12894 which can conflict with char CancelMenuTracking (); below.
12895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12896 <limits.h> exists even on freestanding compilers. */
12899 # include <limits.h>
12901 # include <assert.h>
12904 #undef CancelMenuTracking
12906 /* Override any gcc2 internal prototype to avoid an error. */
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12913 char CancelMenuTracking ();
12914 /* The GNU C library defines this for functions which it implements
12915 to always fail with ENOSYS. Some functions are actually named
12916 something starting with __ and the normal name is an alias. */
12917 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12920 char (*f) () = CancelMenuTracking;
12929 return f != CancelMenuTracking;
12934 rm -f conftest.
$ac_objext conftest
$ac_exeext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12936 (eval $ac_link) 2>conftest.er1
12938 grep -v '^ *+' conftest.er1
>conftest.err
12940 cat conftest.err
>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try
='test -s conftest$ac_exeext'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 ac_cv_func_CancelMenuTracking
=yes
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.
$ac_ext >&5
12960 ac_cv_func_CancelMenuTracking
=no
12962 rm -f conftest.err conftest.
$ac_objext \
12963 conftest
$ac_exeext conftest.
$ac_ext
12965 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12966 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12967 if test $ac_cv_func_CancelMenuTracking = yes; then
12973 if test "$have_cmt" = yes; then
12975 cat >>confdefs.h
<<\_ACEOF
12976 #define HAVE_CANCELMENUTRACKING 1
12980 CFLAGS
="$tmp_CFLAGS"
12983 ### Use session management (-lSM -lICE) if available
12985 if test "${HAVE_X11}" = "yes"; then
12986 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12987 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12988 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12989 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12993 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12995 # Is the header compilable?
12996 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12997 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12998 cat >conftest.
$ac_ext <<_ACEOF
13001 cat confdefs.h
>>conftest.
$ac_ext
13002 cat >>conftest.
$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 $ac_includes_default
13005 #include <X11/SM/SMlib.h>
13007 rm -f conftest.
$ac_objext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>conftest.er1
13011 grep -v '^ *+' conftest.er1
>conftest.err
13013 cat conftest.err
>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; } &&
13022 { ac_try
='test -s conftest.$ac_objext'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 ac_header_compiler
=yes
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.
$ac_ext >&5
13033 ac_header_compiler
=no
13035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13037 echo "${ECHO_T}$ac_header_compiler" >&6
13039 # Is the header present?
13040 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13041 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13042 cat >conftest.
$ac_ext <<_ACEOF
13045 cat confdefs.h
>>conftest.
$ac_ext
13046 cat >>conftest.
$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 #include <X11/SM/SMlib.h>
13050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1
>conftest.err
13055 cat conftest.err
>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev
/null
; then
13058 if test -s conftest.err
; then
13059 ac_cpp_err
=$ac_c_preproc_warn_flag
13060 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13067 if test -z "$ac_cpp_err"; then
13068 ac_header_preproc
=yes
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.
$ac_ext >&5
13073 ac_header_preproc
=no
13075 rm -f conftest.err conftest.
$ac_ext
13076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13077 echo "${ECHO_T}$ac_header_preproc" >&6
13079 # So? What about this header?
13080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13082 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13083 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13084 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13085 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13086 ac_header_preproc
=yes
13089 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13090 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13092 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13093 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13094 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13096 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13098 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13100 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13103 ## ------------------------------------------ ##
13104 ## Report this to the AC_PACKAGE_NAME lists. ##
13105 ## ------------------------------------------ ##
13108 sed "s/^/$as_me: WARNING: /" >&2
13111 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13112 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13113 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
13118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13119 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13122 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13123 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13124 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13125 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 ac_check_lib_save_LIBS
=$LIBS
13129 LIBS
="-lSM -lICE $LIBS"
13130 cat >conftest.
$ac_ext <<_ACEOF
13133 cat confdefs.h
>>conftest.
$ac_ext
13134 cat >>conftest.
$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13137 /* Override any gcc2 internal prototype to avoid an error. */
13141 /* We use char because int might match the return type of a gcc2
13142 builtin and then its argument prototype would still apply. */
13143 char SmcOpenConnection ();
13147 SmcOpenConnection ();
13152 rm -f conftest.
$ac_objext conftest
$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>conftest.er1
13156 grep -v '^ *+' conftest.er1
>conftest.err
13158 cat conftest.err
>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try
='test -s conftest$ac_exeext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_cv_lib_SM_SmcOpenConnection
=yes
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.
$ac_ext >&5
13178 ac_cv_lib_SM_SmcOpenConnection
=no
13180 rm -f conftest.err conftest.
$ac_objext \
13181 conftest
$ac_exeext conftest.
$ac_ext
13182 LIBS
=$ac_check_lib_save_LIBS
13184 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13185 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13186 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13194 if test "${HAVE_X_SM}" = "yes"; then
13196 cat >>confdefs.h
<<\_ACEOF
13197 #define HAVE_X_SM 1
13202 *) LIBS
="-lSM -lICE $LIBS" ;;
13207 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13208 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13209 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13210 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 cat >conftest.
$ac_ext <<_ACEOF
13216 cat confdefs.h
>>conftest.
$ac_ext
13217 cat >>conftest.
$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13228 rm -f conftest.
$ac_objext conftest
$ac_exeext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13230 (eval $ac_link) 2>conftest.er1
13232 grep -v '^ *+' conftest.er1
>conftest.err
13234 cat conftest.err
>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try
='test -s conftest$ac_exeext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 emacs_cv_netdb_declares_h_errno
=yes
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.
$ac_ext >&5
13254 emacs_cv_netdb_declares_h_errno
=no
13256 rm -f conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13259 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13260 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13261 if test $emacs_cv_netdb_declares_h_errno = yes; then
13263 cat >>confdefs.h
<<\_ACEOF
13264 #define HAVE_H_ERRNO 1
13269 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13270 # for constant arguments. Useless!
13271 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13272 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13273 if test "${ac_cv_working_alloca_h+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 cat >conftest.
$ac_ext <<_ACEOF
13279 cat confdefs.h
>>conftest.
$ac_ext
13280 cat >>conftest.
$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <alloca.h>
13286 char *p = (char *) alloca (2 * sizeof (int));
13291 rm -f conftest.
$ac_objext conftest
$ac_exeext
13292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13293 (eval $ac_link) 2>conftest.er1
13295 grep -v '^ *+' conftest.er1
>conftest.err
13297 cat conftest.err
>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
13300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try
='test -s conftest$ac_exeext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_working_alloca_h
=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.
$ac_ext >&5
13317 ac_cv_working_alloca_h
=no
13319 rm -f conftest.err conftest.
$ac_objext \
13320 conftest
$ac_exeext conftest.
$ac_ext
13322 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13323 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13324 if test $ac_cv_working_alloca_h = yes; then
13326 cat >>confdefs.h
<<\_ACEOF
13327 #define HAVE_ALLOCA_H 1
13332 echo "$as_me:$LINENO: checking for alloca" >&5
13333 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13334 if test "${ac_cv_func_alloca_works+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 cat >conftest.
$ac_ext <<_ACEOF
13340 cat confdefs.h
>>conftest.
$ac_ext
13341 cat >>conftest.
$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13344 # define alloca __builtin_alloca
13347 # include <malloc.h>
13348 # define alloca _alloca
13351 # include <alloca.h>
13356 # ifndef alloca /* predefined by HP cc +Olibcalls */
13367 char *p = (char *) alloca (1);
13372 rm -f conftest.
$ac_objext conftest
$ac_exeext
13373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13374 (eval $ac_link) 2>conftest.er1
13376 grep -v '^ *+' conftest.er1
>conftest.err
13378 cat conftest.err
>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try
='test -s conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_func_alloca_works
=yes
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.
$ac_ext >&5
13398 ac_cv_func_alloca_works
=no
13400 rm -f conftest.err conftest.
$ac_objext \
13401 conftest
$ac_exeext conftest.
$ac_ext
13403 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13404 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13406 if test $ac_cv_func_alloca_works = yes; then
13408 cat >>confdefs.h
<<\_ACEOF
13409 #define HAVE_ALLOCA 1
13413 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13414 # that cause trouble. Some versions do not even contain alloca or
13415 # contain a buggy version. If you still want to use their alloca,
13416 # use ar to extract alloca.o from them instead of compiling alloca.c.
13418 ALLOCA
=alloca.
$ac_objext
13420 cat >>confdefs.h
<<\_ACEOF
13425 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13426 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13427 if test "${ac_cv_os_cray+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.
$ac_ext <<_ACEOF
13433 cat confdefs.h
>>conftest.
$ac_ext
13434 cat >>conftest.
$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #if defined(CRAY) && ! defined(CRAY2)
13443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13444 $EGREP "webecray" >/dev
/null
2>&1; then
13452 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13453 echo "${ECHO_T}$ac_cv_os_cray" >&6
13454 if test $ac_cv_os_cray = yes; then
13455 for ac_func
in _getb67 GETB67 getb67
; do
13456 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13457 echo "$as_me:$LINENO: checking for $ac_func" >&5
13458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13459 if eval "test \"\${$as_ac_var+set}\" = set"; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 cat >conftest.
$ac_ext <<_ACEOF
13465 cat confdefs.h
>>conftest.
$ac_ext
13466 cat >>conftest.
$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13470 #define $ac_func innocuous_$ac_func
13472 /* System header to define __stub macros and hopefully few prototypes,
13473 which can conflict with char $ac_func (); below.
13474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13475 <limits.h> exists even on freestanding compilers. */
13478 # include <limits.h>
13480 # include <assert.h>
13485 /* Override any gcc2 internal prototype to avoid an error. */
13490 /* We use char because int might match the return type of a gcc2
13491 builtin and then its argument prototype would still apply. */
13493 /* The GNU C library defines this for functions which it implements
13494 to always fail with ENOSYS. Some functions are actually named
13495 something starting with __ and the normal name is an alias. */
13496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13499 char (*f) () = $ac_func;
13508 return f != $ac_func;
13513 rm -f conftest.
$ac_objext conftest
$ac_exeext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13515 (eval $ac_link) 2>conftest.er1
13517 grep -v '^ *+' conftest.er1
>conftest.err
13519 cat conftest.err
>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try
='test -s conftest$ac_exeext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 eval "$as_ac_var=yes"
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.
$ac_ext >&5
13539 eval "$as_ac_var=no"
13541 rm -f conftest.err conftest.
$ac_objext \
13542 conftest
$ac_exeext conftest.
$ac_ext
13544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13546 if test `eval echo '${'$as_ac_var'}'` = yes; then
13548 cat >>confdefs.h
<<_ACEOF
13549 #define CRAY_STACKSEG_END $ac_func
13558 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13559 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13560 if test "${ac_cv_c_stack_direction+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 if test "$cross_compiling" = yes; then
13564 ac_cv_c_stack_direction
=0
13566 cat >conftest.
$ac_ext <<_ACEOF
13569 cat confdefs.h
>>conftest.
$ac_ext
13570 cat >>conftest.
$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13573 find_stack_direction ()
13575 static char *addr = 0;
13580 return find_stack_direction ();
13583 return (&dummy > addr) ? 1 : -1;
13589 exit (find_stack_direction () < 0);
13592 rm -f conftest
$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594 (eval $ac_link) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_c_stack_direction
=1
13605 echo "$as_me: program exited with status $ac_status" >&5
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.
$ac_ext >&5
13609 ( exit $ac_status )
13610 ac_cv_c_stack_direction
=-1
13612 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13615 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13616 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13618 cat >>confdefs.h
<<_ACEOF
13619 #define STACK_DIRECTION $ac_cv_c_stack_direction
13626 # fmod, logb, and frexp are found in -lm on most systems.
13627 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13629 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13630 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13631 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 ac_check_lib_save_LIBS
=$LIBS
13636 cat >conftest.
$ac_ext <<_ACEOF
13639 cat confdefs.h
>>conftest.
$ac_ext
13640 cat >>conftest.
$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13643 /* Override any gcc2 internal prototype to avoid an error. */
13647 /* We use char because int might match the return type of a gcc2
13648 builtin and then its argument prototype would still apply. */
13658 rm -f conftest.
$ac_objext conftest
$ac_exeext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13660 (eval $ac_link) 2>conftest.er1
13662 grep -v '^ *+' conftest.er1
>conftest.err
13664 cat conftest.err
>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try
='test -s conftest$ac_exeext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 ac_cv_lib_m_sqrt
=yes
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.
$ac_ext >&5
13684 ac_cv_lib_m_sqrt
=no
13686 rm -f conftest.err conftest.
$ac_objext \
13687 conftest
$ac_exeext conftest.
$ac_ext
13688 LIBS
=$ac_check_lib_save_LIBS
13690 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13691 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13692 if test $ac_cv_lib_m_sqrt = yes; then
13693 cat >>confdefs.h
<<_ACEOF
13694 #define HAVE_LIBM 1
13702 # Check for mail-locking functions in a "mail" library. Probably this should
13703 # have the same check as for liblockfile below.
13705 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13706 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13707 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 ac_check_lib_save_LIBS
=$LIBS
13711 LIBS
="-lmail $LIBS"
13712 cat >conftest.
$ac_ext <<_ACEOF
13715 cat confdefs.h
>>conftest.
$ac_ext
13716 cat >>conftest.
$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13719 /* Override any gcc2 internal prototype to avoid an error. */
13723 /* We use char because int might match the return type of a gcc2
13724 builtin and then its argument prototype would still apply. */
13734 rm -f conftest.
$ac_objext conftest
$ac_exeext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13736 (eval $ac_link) 2>conftest.er1
13738 grep -v '^ *+' conftest.er1
>conftest.err
13740 cat conftest.err
>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try
='test -s conftest$ac_exeext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_lib_mail_maillock
=yes
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.
$ac_ext >&5
13760 ac_cv_lib_mail_maillock
=no
13762 rm -f conftest.err conftest.
$ac_objext \
13763 conftest
$ac_exeext conftest.
$ac_ext
13764 LIBS
=$ac_check_lib_save_LIBS
13766 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13767 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13768 if test $ac_cv_lib_mail_maillock = yes; then
13769 cat >>confdefs.h
<<_ACEOF
13770 #define HAVE_LIBMAIL 1
13773 LIBS
="-lmail $LIBS"
13778 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13779 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13780 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 ac_check_lib_save_LIBS
=$LIBS
13784 LIBS
="-llockfile $LIBS"
13785 cat >conftest.
$ac_ext <<_ACEOF
13788 cat confdefs.h
>>conftest.
$ac_ext
13789 cat >>conftest.
$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13792 /* Override any gcc2 internal prototype to avoid an error. */
13796 /* We use char because int might match the return type of a gcc2
13797 builtin and then its argument prototype would still apply. */
13807 rm -f conftest.
$ac_objext conftest
$ac_exeext
13808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13809 (eval $ac_link) 2>conftest.er1
13811 grep -v '^ *+' conftest.er1
>conftest.err
13813 cat conftest.err
>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try
='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_lib_lockfile_maillock
=yes
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.
$ac_ext >&5
13833 ac_cv_lib_lockfile_maillock
=no
13835 rm -f conftest.err conftest.
$ac_objext \
13836 conftest
$ac_exeext conftest.
$ac_ext
13837 LIBS
=$ac_check_lib_save_LIBS
13839 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13840 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13841 if test $ac_cv_lib_lockfile_maillock = yes; then
13842 cat >>confdefs.h
<<_ACEOF
13843 #define HAVE_LIBLOCKFILE 1
13846 LIBS
="-llockfile $LIBS"
13850 # If we have the shared liblockfile, assume we must use it for mail
13851 # locking (e.g. Debian). If we couldn't link against liblockfile
13852 # (no liblockfile.a installed), ensure that we don't need to.
13853 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13854 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13855 set dummy liblockfile.so
; ac_word
=$2
13856 echo "$as_me:$LINENO: checking for $ac_word" >&5
13857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13858 if test "${ac_cv_prog_liblockfile+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 if test -n "$liblockfile"; then
13862 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13865 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13866 for as_dir
in $as_dummy
13869 test -z "$as_dir" && as_dir
=.
13870 for ac_exec_ext
in '' $ac_executable_extensions; do
13871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872 ac_cv_prog_liblockfile
="yes"
13873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13882 liblockfile
=$ac_cv_prog_liblockfile
13883 if test -n "$liblockfile"; then
13884 echo "$as_me:$LINENO: result: $liblockfile" >&5
13885 echo "${ECHO_T}$liblockfile" >&6
13887 echo "$as_me:$LINENO: result: no" >&5
13888 echo "${ECHO_T}no" >&6
13891 if test $ac_cv_prog_liblockfile = yes; then
13892 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13893 This probably means that movemail could lose mail.
13894 There may be a \`development' package to install containing liblockfile." >&5
13895 echo "$as_me: error: Shared liblockfile found but can't link against it.
13896 This probably means that movemail could lose mail.
13897 There may be a \`development' package to install containing liblockfile." >&2;}
13898 { (exit 1); exit 1; }; }
13903 for ac_func
in touchlock
13905 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13906 echo "$as_me:$LINENO: checking for $ac_func" >&5
13907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13908 if eval "test \"\${$as_ac_var+set}\" = set"; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 cat >conftest.
$ac_ext <<_ACEOF
13914 cat confdefs.h
>>conftest.
$ac_ext
13915 cat >>conftest.
$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13919 #define $ac_func innocuous_$ac_func
13921 /* System header to define __stub macros and hopefully few prototypes,
13922 which can conflict with char $ac_func (); below.
13923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13924 <limits.h> exists even on freestanding compilers. */
13927 # include <limits.h>
13929 # include <assert.h>
13934 /* Override any gcc2 internal prototype to avoid an error. */
13939 /* We use char because int might match the return type of a gcc2
13940 builtin and then its argument prototype would still apply. */
13942 /* The GNU C library defines this for functions which it implements
13943 to always fail with ENOSYS. Some functions are actually named
13944 something starting with __ and the normal name is an alias. */
13945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13948 char (*f) () = $ac_func;
13957 return f != $ac_func;
13962 rm -f conftest.
$ac_objext conftest
$ac_exeext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13964 (eval $ac_link) 2>conftest.er1
13966 grep -v '^ *+' conftest.er1
>conftest.err
13968 cat conftest.err
>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try
='test -s conftest$ac_exeext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 eval "$as_ac_var=yes"
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.
$ac_ext >&5
13988 eval "$as_ac_var=no"
13990 rm -f conftest.err conftest.
$ac_objext \
13991 conftest
$ac_exeext conftest.
$ac_ext
13993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13995 if test `eval echo '${'$as_ac_var'}'` = yes; then
13996 cat >>confdefs.h
<<_ACEOF
13997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14004 for ac_header
in maillock.h
14006 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 # Is the header compilable?
14017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14019 cat >conftest.
$ac_ext <<_ACEOF
14022 cat confdefs.h
>>conftest.
$ac_ext
14023 cat >>conftest.
$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 $ac_includes_default
14026 #include <$ac_header>
14028 rm -f conftest.
$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14032 grep -v '^ *+' conftest.er1
>conftest.err
14034 cat conftest.err
>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try
='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_header_compiler
=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.
$ac_ext >&5
14054 ac_header_compiler
=no
14056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14058 echo "${ECHO_T}$ac_header_compiler" >&6
14060 # Is the header present?
14061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14063 cat >conftest.
$ac_ext <<_ACEOF
14066 cat confdefs.h
>>conftest.
$ac_ext
14067 cat >>conftest.
$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 #include <$ac_header>
14071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14072 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1
>conftest.err
14076 cat conftest.err
>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } >/dev
/null
; then
14079 if test -s conftest.err
; then
14080 ac_cpp_err
=$ac_c_preproc_warn_flag
14081 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14088 if test -z "$ac_cpp_err"; then
14089 ac_header_preproc
=yes
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.
$ac_ext >&5
14094 ac_header_preproc
=no
14096 rm -f conftest.err conftest.
$ac_ext
14097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6
14100 # So? What about this header?
14101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14107 ac_header_preproc
=yes
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14124 ## ------------------------------------------ ##
14125 ## Report this to the AC_PACKAGE_NAME lists. ##
14126 ## ------------------------------------------ ##
14129 sed "s/^/$as_me: WARNING: /" >&2
14132 echo "$as_me:$LINENO: checking for $ac_header" >&5
14133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 eval "$as_ac_Header=\$ac_header_preproc"
14139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14144 cat >>confdefs.h
<<_ACEOF
14145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14221 for ac_func
in gethostname getdomainname dup2 \
14222 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14223 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14224 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
14225 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14226 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14227 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14228 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14229 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14231 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14234 if eval "test \"\${$as_ac_var+set}\" = set"; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 cat >conftest.
$ac_ext <<_ACEOF
14240 cat confdefs.h
>>conftest.
$ac_ext
14241 cat >>conftest.
$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define $ac_func innocuous_$ac_func
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char $ac_func (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14253 # include <limits.h>
14255 # include <assert.h>
14260 /* Override any gcc2 internal prototype to avoid an error. */
14265 /* We use char because int might match the return type of a gcc2
14266 builtin and then its argument prototype would still apply. */
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14274 char (*f) () = $ac_func;
14283 return f != $ac_func;
14288 rm -f conftest.
$ac_objext conftest
$ac_exeext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14290 (eval $ac_link) 2>conftest.er1
14292 grep -v '^ *+' conftest.er1
>conftest.err
14294 cat conftest.err
>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try
='test -s conftest$ac_exeext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 eval "$as_ac_var=yes"
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14314 eval "$as_ac_var=no"
14316 rm -f conftest.err conftest.
$ac_objext \
14317 conftest
$ac_exeext conftest.
$ac_ext
14319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14321 if test `eval echo '${'$as_ac_var'}'` = yes; then
14322 cat >>confdefs.h
<<_ACEOF
14323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14331 for ac_header
in sys
/un.h
14333 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14335 echo "$as_me:$LINENO: checking for $ac_header" >&5
14336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343 # Is the header compilable?
14344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14346 cat >conftest.
$ac_ext <<_ACEOF
14349 cat confdefs.h
>>conftest.
$ac_ext
14350 cat >>conftest.
$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 $ac_includes_default
14353 #include <$ac_header>
14355 rm -f conftest.
$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1
>conftest.err
14361 cat conftest.err
>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try
='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler
=yes
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.
$ac_ext >&5
14381 ac_header_compiler
=no
14383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14385 echo "${ECHO_T}$ac_header_compiler" >&6
14387 # Is the header present?
14388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14390 cat >conftest.
$ac_ext <<_ACEOF
14393 cat confdefs.h
>>conftest.
$ac_ext
14394 cat >>conftest.
$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 #include <$ac_header>
14398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14401 grep -v '^ *+' conftest.er1
>conftest.err
14403 cat conftest.err
>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } >/dev
/null
; then
14406 if test -s conftest.err
; then
14407 ac_cpp_err
=$ac_c_preproc_warn_flag
14408 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14415 if test -z "$ac_cpp_err"; then
14416 ac_header_preproc
=yes
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.
$ac_ext >&5
14421 ac_header_preproc
=no
14423 rm -f conftest.err conftest.
$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14425 echo "${ECHO_T}$ac_header_preproc" >&6
14427 # So? What about this header?
14428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14434 ac_header_preproc
=yes
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14451 ## ------------------------------------------ ##
14452 ## Report this to the AC_PACKAGE_NAME lists. ##
14453 ## ------------------------------------------ ##
14456 sed "s/^/$as_me: WARNING: /" >&2
14459 echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 eval "$as_ac_Header=\$ac_header_preproc"
14466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14471 cat >>confdefs.h
<<_ACEOF
14472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14483 for ac_header
in stdlib.h sys
/time.h unistd.h
14485 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14495 # Is the header compilable?
14496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14498 cat >conftest.
$ac_ext <<_ACEOF
14501 cat confdefs.h
>>conftest.
$ac_ext
14502 cat >>conftest.
$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14505 #include <$ac_header>
14507 rm -f conftest.
$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509 (eval $ac_compile) 2>conftest.er1
14511 grep -v '^ *+' conftest.er1
>conftest.err
14513 cat conftest.err
>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try
='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_header_compiler
=yes
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.
$ac_ext >&5
14533 ac_header_compiler
=no
14535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6
14539 # Is the header present?
14540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14542 cat >conftest.
$ac_ext <<_ACEOF
14545 cat confdefs.h
>>conftest.
$ac_ext
14546 cat >>conftest.
$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 #include <$ac_header>
14550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14551 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14553 grep -v '^ *+' conftest.er1
>conftest.err
14555 cat conftest.err
>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } >/dev
/null
; then
14558 if test -s conftest.err
; then
14559 ac_cpp_err
=$ac_c_preproc_warn_flag
14560 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14567 if test -z "$ac_cpp_err"; then
14568 ac_header_preproc
=yes
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.
$ac_ext >&5
14573 ac_header_preproc
=no
14575 rm -f conftest.err conftest.
$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14577 echo "${ECHO_T}$ac_header_preproc" >&6
14579 # So? What about this header?
14580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14586 ac_header_preproc
=yes
14589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14603 ## ------------------------------------------ ##
14604 ## Report this to the AC_PACKAGE_NAME lists. ##
14605 ## ------------------------------------------ ##
14608 sed "s/^/$as_me: WARNING: /" >&2
14611 echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 eval "$as_ac_Header=\$ac_header_preproc"
14618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14623 cat >>confdefs.h
<<_ACEOF
14624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14632 for ac_func
in alarm
14634 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14635 echo "$as_me:$LINENO: checking for $ac_func" >&5
14636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14637 if eval "test \"\${$as_ac_var+set}\" = set"; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.
$ac_ext <<_ACEOF
14643 cat confdefs.h
>>conftest.
$ac_ext
14644 cat >>conftest.
$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14648 #define $ac_func innocuous_$ac_func
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char $ac_func (); below.
14652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14653 <limits.h> exists even on freestanding compilers. */
14656 # include <limits.h>
14658 # include <assert.h>
14663 /* Override any gcc2 internal prototype to avoid an error. */
14668 /* We use char because int might match the return type of a gcc2
14669 builtin and then its argument prototype would still apply. */
14671 /* The GNU C library defines this for functions which it implements
14672 to always fail with ENOSYS. Some functions are actually named
14673 something starting with __ and the normal name is an alias. */
14674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14677 char (*f) () = $ac_func;
14686 return f != $ac_func;
14691 rm -f conftest.
$ac_objext conftest
$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693 (eval $ac_link) 2>conftest.er1
14695 grep -v '^ *+' conftest.er1
>conftest.err
14697 cat conftest.err
>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try
='test -s conftest$ac_exeext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 eval "$as_ac_var=yes"
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.
$ac_ext >&5
14717 eval "$as_ac_var=no"
14719 rm -f conftest.err conftest.
$ac_objext \
14720 conftest
$ac_exeext conftest.
$ac_ext
14722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14724 if test `eval echo '${'$as_ac_var'}'` = yes; then
14725 cat >>confdefs.h
<<_ACEOF
14726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14732 echo "$as_me:$LINENO: checking for working mktime" >&5
14733 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14734 if test "${ac_cv_func_working_mktime+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 if test "$cross_compiling" = yes; then
14738 ac_cv_func_working_mktime
=no
14740 cat >conftest.
$ac_ext <<_ACEOF
14743 cat confdefs.h
>>conftest.
$ac_ext
14744 cat >>conftest.
$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 /* Test program from Paul Eggert and Tony Leneis. */
14747 #if TIME_WITH_SYS_TIME
14748 # include <sys/time.h>
14751 # if HAVE_SYS_TIME_H
14752 # include <sys/time.h>
14759 # include <stdlib.h>
14763 # include <unistd.h>
14767 # define alarm(X) /* empty */
14770 /* Work around redefinition to rpl_putenv by other config tests. */
14773 static time_t time_t_max;
14774 static time_t time_t_min;
14776 /* Values we'll use to set the TZ environment variable. */
14777 static char *tz_strings[] = {
14778 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14779 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14781 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14783 /* Fail if mktime fails to convert a date in the spring-forward gap.
14784 Based on a problem report from Andreas Jaeger. */
14786 spring_forward_gap ()
14788 /* glibc (up to about 1998-10-07) failed this test. */
14791 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14792 instead of "TZ=America/Vancouver" in order to detect the bug even
14793 on systems that don't support the Olson extension, or don't have the
14794 full zoneinfo tables installed. */
14795 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14804 if (mktime (&tm) == (time_t)-1)
14813 if ((lt = localtime (&now)) && mktime (lt) != now)
14821 mktime_test1 (now);
14822 mktime_test1 ((time_t) (time_t_max - now));
14823 mktime_test1 ((time_t) (time_t_min + now));
14829 /* Based on code from Ariel Faigon. */
14839 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14849 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14850 now = mktime (&tm);
14851 if (now != (time_t) -1)
14853 struct tm *lt = localtime (&now);
14855 && lt->tm_year == tm.tm_year
14856 && lt->tm_mon == tm.tm_mon
14857 && lt->tm_mday == tm.tm_mday
14858 && lt->tm_hour == tm.tm_hour
14859 && lt->tm_min == tm.tm_min
14860 && lt->tm_sec == tm.tm_sec
14861 && lt->tm_yday == tm.tm_yday
14862 && lt->tm_wday == tm.tm_wday
14863 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14864 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14875 /* This test makes some buggy mktime implementations loop.
14876 Give up after 60 seconds; a mktime slower than that
14877 isn't worth using anyway. */
14880 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14883 if ((time_t) -1 < 0)
14884 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14886 delta = time_t_max / 997; /* a suitable prime number */
14887 for (i = 0; i < N_STRINGS; i++)
14890 putenv (tz_strings[i]);
14892 for (t = 0; t <= time_t_max - delta; t += delta)
14894 mktime_test ((time_t) 1);
14895 mktime_test ((time_t) (60 * 60));
14896 mktime_test ((time_t) (60 * 60 * 24));
14898 for (j = 1; 0 < j; j *= 2)
14900 bigtime_test (j - 1);
14903 spring_forward_gap ();
14907 rm -f conftest
$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_cv_func_working_mktime
=yes
14920 echo "$as_me: program exited with status $ac_status" >&5
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.
$ac_ext >&5
14924 ( exit $ac_status )
14925 ac_cv_func_working_mktime
=no
14927 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14930 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14931 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14932 if test $ac_cv_func_working_mktime = no
; then
14934 "mktime.$ac_objext" | \
14935 *" mktime.$ac_objext" | \
14936 "mktime.$ac_objext "* | \
14937 *" mktime.$ac_objext "* ) ;;
14938 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14943 if test "$ac_cv_func_working_mktime" = no
; then
14945 cat >>confdefs.h
<<\_ACEOF
14946 #define BROKEN_MKTIME 1
14951 ac_have_func
=no
# yes means we've found a way to get the load average.
14953 # Make sure getloadavg.c is where it belongs, at configure-time.
14954 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14955 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14956 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14957 { (exit 1); exit 1; }; }
14961 # Check for getloadavg, but be sure not to touch the cache variable.
14962 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14963 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14964 if test "${ac_cv_func_getloadavg+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 cat >conftest.
$ac_ext <<_ACEOF
14970 cat confdefs.h
>>conftest.
$ac_ext
14971 cat >>conftest.
$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14975 #define getloadavg innocuous_getloadavg
14977 /* System header to define __stub macros and hopefully few prototypes,
14978 which can conflict with char getloadavg (); below.
14979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14980 <limits.h> exists even on freestanding compilers. */
14983 # include <limits.h>
14985 # include <assert.h>
14990 /* Override any gcc2 internal prototype to avoid an error. */
14995 /* We use char because int might match the return type of a gcc2
14996 builtin and then its argument prototype would still apply. */
14997 char getloadavg ();
14998 /* The GNU C library defines this for functions which it implements
14999 to always fail with ENOSYS. Some functions are actually named
15000 something starting with __ and the normal name is an alias. */
15001 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15004 char (*f) () = getloadavg;
15013 return f != getloadavg;
15018 rm -f conftest.
$ac_objext conftest
$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>conftest.er1
15022 grep -v '^ *+' conftest.er1
>conftest.err
15024 cat conftest.err
>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try
='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_func_getloadavg
=yes
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.
$ac_ext >&5
15044 ac_cv_func_getloadavg
=no
15046 rm -f conftest.err conftest.
$ac_objext \
15047 conftest
$ac_exeext conftest.
$ac_ext
15049 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15050 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15051 if test $ac_cv_func_getloadavg = yes; then
15056 ) && ac_have_func
=yes
15058 # On HPUX9, an unprivileged user can get load averages through this function.
15060 for ac_func
in pstat_getdynamic
15062 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15063 echo "$as_me:$LINENO: checking for $ac_func" >&5
15064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15065 if eval "test \"\${$as_ac_var+set}\" = set"; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 cat >conftest.
$ac_ext <<_ACEOF
15071 cat confdefs.h
>>conftest.
$ac_ext
15072 cat >>conftest.
$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15076 #define $ac_func innocuous_$ac_func
15078 /* System header to define __stub macros and hopefully few prototypes,
15079 which can conflict with char $ac_func (); below.
15080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15081 <limits.h> exists even on freestanding compilers. */
15084 # include <limits.h>
15086 # include <assert.h>
15091 /* Override any gcc2 internal prototype to avoid an error. */
15096 /* We use char because int might match the return type of a gcc2
15097 builtin and then its argument prototype would still apply. */
15099 /* The GNU C library defines this for functions which it implements
15100 to always fail with ENOSYS. Some functions are actually named
15101 something starting with __ and the normal name is an alias. */
15102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15105 char (*f) () = $ac_func;
15114 return f != $ac_func;
15119 rm -f conftest.
$ac_objext conftest
$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121 (eval $ac_link) 2>conftest.er1
15123 grep -v '^ *+' conftest.er1
>conftest.err
15125 cat conftest.err
>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try
='test -s conftest$ac_exeext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 eval "$as_ac_var=yes"
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.
$ac_ext >&5
15145 eval "$as_ac_var=no"
15147 rm -f conftest.err conftest.
$ac_objext \
15148 conftest
$ac_exeext conftest.
$ac_ext
15150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15152 if test `eval echo '${'$as_ac_var'}'` = yes; then
15153 cat >>confdefs.h
<<_ACEOF
15154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15161 # Solaris has libkstat which does not require root.
15163 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15164 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15165 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 ac_check_lib_save_LIBS
=$LIBS
15169 LIBS
="-lkstat $LIBS"
15170 cat >conftest.
$ac_ext <<_ACEOF
15173 cat confdefs.h
>>conftest.
$ac_ext
15174 cat >>conftest.
$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15177 /* Override any gcc2 internal prototype to avoid an error. */
15181 /* We use char because int might match the return type of a gcc2
15182 builtin and then its argument prototype would still apply. */
15183 char kstat_open ();
15192 rm -f conftest.
$ac_objext conftest
$ac_exeext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15194 (eval $ac_link) 2>conftest.er1
15196 grep -v '^ *+' conftest.er1
>conftest.err
15198 cat conftest.err
>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try
='test -s conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_lib_kstat_kstat_open
=yes
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.
$ac_ext >&5
15218 ac_cv_lib_kstat_kstat_open
=no
15220 rm -f conftest.err conftest.
$ac_objext \
15221 conftest
$ac_exeext conftest.
$ac_ext
15222 LIBS
=$ac_check_lib_save_LIBS
15224 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15225 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15226 if test $ac_cv_lib_kstat_kstat_open = yes; then
15227 cat >>confdefs.h
<<_ACEOF
15228 #define HAVE_LIBKSTAT 1
15231 LIBS
="-lkstat $LIBS"
15235 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
15237 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15238 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15239 # to get the right answer into the cache.
15240 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15241 if test $ac_have_func = no
; then
15242 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15243 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15244 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 ac_check_lib_save_LIBS
=$LIBS
15249 cat >conftest.
$ac_ext <<_ACEOF
15252 cat confdefs.h
>>conftest.
$ac_ext
15253 cat >>conftest.
$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15256 /* Override any gcc2 internal prototype to avoid an error. */
15260 /* We use char because int might match the return type of a gcc2
15261 builtin and then its argument prototype would still apply. */
15271 rm -f conftest.
$ac_objext conftest
$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>conftest.er1
15275 grep -v '^ *+' conftest.er1
>conftest.err
15277 cat conftest.err
>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; } &&
15286 { ac_try
='test -s conftest$ac_exeext'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; }; then
15292 ac_cv_lib_elf_elf_begin
=yes
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.
$ac_ext >&5
15297 ac_cv_lib_elf_elf_begin
=no
15299 rm -f conftest.err conftest.
$ac_objext \
15300 conftest
$ac_exeext conftest.
$ac_ext
15301 LIBS
=$ac_check_lib_save_LIBS
15303 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15304 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15305 if test $ac_cv_lib_elf_elf_begin = yes; then
15310 if test $ac_have_func = no
; then
15311 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15312 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15313 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 ac_check_lib_save_LIBS
=$LIBS
15318 cat >conftest.
$ac_ext <<_ACEOF
15321 cat confdefs.h
>>conftest.
$ac_ext
15322 cat >>conftest.
$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any gcc2 internal prototype to avoid an error. */
15329 /* We use char because int might match the return type of a gcc2
15330 builtin and then its argument prototype would still apply. */
15340 rm -f conftest.
$ac_objext conftest
$ac_exeext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15342 (eval $ac_link) 2>conftest.er1
15344 grep -v '^ *+' conftest.er1
>conftest.err
15346 cat conftest.err
>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try
='test -s conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_cv_lib_kvm_kvm_open
=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.
$ac_ext >&5
15366 ac_cv_lib_kvm_kvm_open
=no
15368 rm -f conftest.err conftest.
$ac_objext \
15369 conftest
$ac_exeext conftest.
$ac_ext
15370 LIBS
=$ac_check_lib_save_LIBS
15372 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15373 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15374 if test $ac_cv_lib_kvm_kvm_open = yes; then
15378 # Check for the 4.4BSD definition of getloadavg.
15379 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15380 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15381 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 ac_check_lib_save_LIBS
=$LIBS
15385 LIBS
="-lutil $LIBS"
15386 cat >conftest.
$ac_ext <<_ACEOF
15389 cat confdefs.h
>>conftest.
$ac_ext
15390 cat >>conftest.
$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15393 /* Override any gcc2 internal prototype to avoid an error. */
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15399 char getloadavg ();
15408 rm -f conftest.
$ac_objext conftest
$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>conftest.er1
15412 grep -v '^ *+' conftest.er1
>conftest.err
15414 cat conftest.err
>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
15417 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try
='test -s conftest$ac_exeext'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_cv_lib_util_getloadavg
=yes
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.
$ac_ext >&5
15434 ac_cv_lib_util_getloadavg
=no
15436 rm -f conftest.err conftest.
$ac_objext \
15437 conftest
$ac_exeext conftest.
$ac_ext
15438 LIBS
=$ac_check_lib_save_LIBS
15440 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15441 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15442 if test $ac_cv_lib_util_getloadavg = yes; then
15443 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15448 if test $ac_have_func = no
; then
15449 # There is a commonly available library for RS/6000 AIX.
15450 # Since it is not a standard part of AIX, it might be installed locally.
15451 ac_getloadavg_LIBS
=$LIBS
15452 LIBS
="-L/usr/local/lib $LIBS"
15453 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15454 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15455 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 ac_check_lib_save_LIBS
=$LIBS
15459 LIBS
="-lgetloadavg $LIBS"
15460 cat >conftest.
$ac_ext <<_ACEOF
15463 cat confdefs.h
>>conftest.
$ac_ext
15464 cat >>conftest.
$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15467 /* Override any gcc2 internal prototype to avoid an error. */
15471 /* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15473 char getloadavg ();
15482 rm -f conftest.
$ac_objext conftest
$ac_exeext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>conftest.er1
15486 grep -v '^ *+' conftest.er1
>conftest.err
15488 cat conftest.err
>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; } &&
15497 { ac_try
='test -s conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_lib_getloadavg_getloadavg
=yes
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.
$ac_ext >&5
15508 ac_cv_lib_getloadavg_getloadavg
=no
15510 rm -f conftest.err conftest.
$ac_objext \
15511 conftest
$ac_exeext conftest.
$ac_ext
15512 LIBS
=$ac_check_lib_save_LIBS
15514 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15515 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15516 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15517 LIBS
="-lgetloadavg $LIBS"
15519 LIBS
=$ac_getloadavg_LIBS
15524 # Make sure it is really in the library, if we think we found it,
15525 # otherwise set up the replacement function.
15527 for ac_func
in getloadavg
15529 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15530 echo "$as_me:$LINENO: checking for $ac_func" >&5
15531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15532 if eval "test \"\${$as_ac_var+set}\" = set"; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 cat >conftest.
$ac_ext <<_ACEOF
15538 cat confdefs.h
>>conftest.
$ac_ext
15539 cat >>conftest.
$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15543 #define $ac_func innocuous_$ac_func
15545 /* System header to define __stub macros and hopefully few prototypes,
15546 which can conflict with char $ac_func (); below.
15547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15548 <limits.h> exists even on freestanding compilers. */
15551 # include <limits.h>
15553 # include <assert.h>
15558 /* Override any gcc2 internal prototype to avoid an error. */
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15566 /* The GNU C library defines this for functions which it implements
15567 to always fail with ENOSYS. Some functions are actually named
15568 something starting with __ and the normal name is an alias. */
15569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15572 char (*f) () = $ac_func;
15581 return f != $ac_func;
15586 rm -f conftest.
$ac_objext conftest
$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1
>conftest.err
15592 cat conftest.err
>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; } &&
15601 { ac_try
='test -s conftest$ac_exeext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 eval "$as_ac_var=yes"
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.
$ac_ext >&5
15612 eval "$as_ac_var=no"
15614 rm -f conftest.err conftest.
$ac_objext \
15615 conftest
$ac_exeext conftest.
$ac_ext
15617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15619 if test `eval echo '${'$as_ac_var'}'` = yes; then
15620 cat >>confdefs.h
<<_ACEOF
15621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15626 "getloadavg.$ac_objext" | \
15627 *" getloadavg.$ac_objext" | \
15628 "getloadavg.$ac_objext "* | \
15629 *" getloadavg.$ac_objext "* ) ;;
15630 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15634 cat >>confdefs.h
<<\_ACEOF
15635 #define C_GETLOADAVG 1
15638 # Figure out what our getloadavg.c needs.
15640 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15641 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15642 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15643 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15647 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15649 # Is the header compilable?
15650 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15651 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15652 cat >conftest.
$ac_ext <<_ACEOF
15655 cat confdefs.h
>>conftest.
$ac_ext
15656 cat >>conftest.
$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 $ac_includes_default
15659 #include <sys/dg_sys_info.h>
15661 rm -f conftest.
$ac_objext
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>conftest.er1
15665 grep -v '^ *+' conftest.er1
>conftest.err
15667 cat conftest.err
>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try
='test -s conftest.$ac_objext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_header_compiler
=yes
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.
$ac_ext >&5
15687 ac_header_compiler
=no
15689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15691 echo "${ECHO_T}$ac_header_compiler" >&6
15693 # Is the header present?
15694 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15695 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15696 cat >conftest.
$ac_ext <<_ACEOF
15699 cat confdefs.h
>>conftest.
$ac_ext
15700 cat >>conftest.
$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 #include <sys/dg_sys_info.h>
15704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15707 grep -v '^ *+' conftest.er1
>conftest.err
15709 cat conftest.err
>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } >/dev
/null
; then
15712 if test -s conftest.err
; then
15713 ac_cpp_err
=$ac_c_preproc_warn_flag
15714 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15721 if test -z "$ac_cpp_err"; then
15722 ac_header_preproc
=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.
$ac_ext >&5
15727 ac_header_preproc
=no
15729 rm -f conftest.err conftest.
$ac_ext
15730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6
15733 # So? What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15736 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15740 ac_header_preproc
=yes
15743 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15757 ## ------------------------------------------ ##
15758 ## Report this to the AC_PACKAGE_NAME lists. ##
15759 ## ------------------------------------------ ##
15762 sed "s/^/$as_me: WARNING: /" >&2
15765 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15766 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15767 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15772 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15773 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15776 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15779 cat >>confdefs.h
<<\_ACEOF
15784 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15785 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15786 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 ac_check_lib_save_LIBS
=$LIBS
15791 cat >conftest.
$ac_ext <<_ACEOF
15794 cat confdefs.h
>>conftest.
$ac_ext
15795 cat >>conftest.
$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15798 /* Override any gcc2 internal prototype to avoid an error. */
15802 /* We use char because int might match the return type of a gcc2
15803 builtin and then its argument prototype would still apply. */
15804 char dg_sys_info ();
15813 rm -f conftest.
$ac_objext conftest
$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>conftest.er1
15817 grep -v '^ *+' conftest.er1
>conftest.err
15819 cat conftest.err
>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try
='test -s conftest$ac_exeext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_cv_lib_dgc_dg_sys_info
=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.
$ac_ext >&5
15839 ac_cv_lib_dgc_dg_sys_info
=no
15841 rm -f conftest.err conftest.
$ac_objext \
15842 conftest
$ac_exeext conftest.
$ac_ext
15843 LIBS
=$ac_check_lib_save_LIBS
15845 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15846 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15847 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15848 cat >>confdefs.h
<<_ACEOF
15849 #define HAVE_LIBDGC 1
15860 if test "${ac_cv_header_locale_h+set}" = set; then
15861 echo "$as_me:$LINENO: checking for locale.h" >&5
15862 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15863 if test "${ac_cv_header_locale_h+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15867 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15869 # Is the header compilable?
15870 echo "$as_me:$LINENO: checking locale.h usability" >&5
15871 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15872 cat >conftest.
$ac_ext <<_ACEOF
15875 cat confdefs.h
>>conftest.
$ac_ext
15876 cat >>conftest.
$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <locale.h>
15881 rm -f conftest.
$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15885 grep -v '^ *+' conftest.er1
>conftest.err
15887 cat conftest.err
>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try
='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_header_compiler
=yes
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.
$ac_ext >&5
15907 ac_header_compiler
=no
15909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15911 echo "${ECHO_T}$ac_header_compiler" >&6
15913 # Is the header present?
15914 echo "$as_me:$LINENO: checking locale.h presence" >&5
15915 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15916 cat >conftest.
$ac_ext <<_ACEOF
15919 cat confdefs.h
>>conftest.
$ac_ext
15920 cat >>conftest.
$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <locale.h>
15924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15927 grep -v '^ *+' conftest.er1
>conftest.err
15929 cat conftest.err
>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev
/null
; then
15932 if test -s conftest.err
; then
15933 ac_cpp_err
=$ac_c_preproc_warn_flag
15934 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15941 if test -z "$ac_cpp_err"; then
15942 ac_header_preproc
=yes
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.
$ac_ext >&5
15947 ac_header_preproc
=no
15949 rm -f conftest.err conftest.
$ac_ext
15950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6
15953 # So? What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc
=yes
15963 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15977 ## ------------------------------------------ ##
15978 ## Report this to the AC_PACKAGE_NAME lists. ##
15979 ## ------------------------------------------ ##
15982 sed "s/^/$as_me: WARNING: /" >&2
15985 echo "$as_me:$LINENO: checking for locale.h" >&5
15986 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15987 if test "${ac_cv_header_locale_h+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 ac_cv_header_locale_h
=$ac_header_preproc
15992 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15993 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15999 for ac_func
in setlocale
16001 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16002 echo "$as_me:$LINENO: checking for $ac_func" >&5
16003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16004 if eval "test \"\${$as_ac_var+set}\" = set"; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 cat >conftest.
$ac_ext <<_ACEOF
16010 cat confdefs.h
>>conftest.
$ac_ext
16011 cat >>conftest.
$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16015 #define $ac_func innocuous_$ac_func
16017 /* System header to define __stub macros and hopefully few prototypes,
16018 which can conflict with char $ac_func (); below.
16019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16020 <limits.h> exists even on freestanding compilers. */
16023 # include <limits.h>
16025 # include <assert.h>
16030 /* Override any gcc2 internal prototype to avoid an error. */
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16044 char (*f) () = $ac_func;
16053 return f != $ac_func;
16058 rm -f conftest.
$ac_objext conftest
$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>conftest.er1
16062 grep -v '^ *+' conftest.er1
>conftest.err
16064 cat conftest.err
>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try
='test -s conftest$ac_exeext'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 eval "$as_ac_var=yes"
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.
$ac_ext >&5
16084 eval "$as_ac_var=no"
16086 rm -f conftest.err conftest.
$ac_objext \
16087 conftest
$ac_exeext conftest.
$ac_ext
16089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16091 if test `eval echo '${'$as_ac_var'}'` = yes; then
16092 cat >>confdefs.h
<<_ACEOF
16093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16100 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16101 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16102 # Irix 4.0.5F has the header but not the library.
16103 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
16106 cat >>confdefs.h
<<\_ACEOF
16112 if test $ac_have_func = no
; then
16113 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16114 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16115 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16116 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16120 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16122 # Is the header compilable?
16123 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16124 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16125 cat >conftest.
$ac_ext <<_ACEOF
16128 cat confdefs.h
>>conftest.
$ac_ext
16129 cat >>conftest.
$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 $ac_includes_default
16132 #include <inq_stats/cpustats.h>
16134 rm -f conftest.
$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16138 grep -v '^ *+' conftest.er1
>conftest.err
16140 cat conftest.err
>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try
='test -s conftest.$ac_objext'
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 ac_header_compiler
=yes
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.
$ac_ext >&5
16160 ac_header_compiler
=no
16162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16164 echo "${ECHO_T}$ac_header_compiler" >&6
16166 # Is the header present?
16167 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16168 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16169 cat >conftest.
$ac_ext <<_ACEOF
16172 cat confdefs.h
>>conftest.
$ac_ext
16173 cat >>conftest.
$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <inq_stats/cpustats.h>
16177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16180 grep -v '^ *+' conftest.er1
>conftest.err
16182 cat conftest.err
>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } >/dev
/null
; then
16185 if test -s conftest.err
; then
16186 ac_cpp_err
=$ac_c_preproc_warn_flag
16187 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16194 if test -z "$ac_cpp_err"; then
16195 ac_header_preproc
=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.
$ac_ext >&5
16200 ac_header_preproc
=no
16202 rm -f conftest.err conftest.
$ac_ext
16203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16204 echo "${ECHO_T}$ac_header_preproc" >&6
16206 # So? What about this header?
16207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16209 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16210 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16212 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16213 ac_header_preproc
=yes
16216 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16217 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16218 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16219 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16221 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16223 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16225 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16227 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16230 ## ------------------------------------------ ##
16231 ## Report this to the AC_PACKAGE_NAME lists. ##
16232 ## ------------------------------------------ ##
16235 sed "s/^/$as_me: WARNING: /" >&2
16238 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16239 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16240 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
16245 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16246 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16249 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16252 cat >>confdefs.h
<<\_ACEOF
16257 cat >>confdefs.h
<<\_ACEOF
16266 if test $ac_have_func = no
; then
16267 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16268 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16269 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16270 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16274 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16276 # Is the header compilable?
16277 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16278 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16279 cat >conftest.
$ac_ext <<_ACEOF
16282 cat confdefs.h
>>conftest.
$ac_ext
16283 cat >>conftest.
$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 $ac_includes_default
16286 #include <sys/cpustats.h>
16288 rm -f conftest.
$ac_objext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>conftest.er1
16292 grep -v '^ *+' conftest.er1
>conftest.err
16294 cat conftest.err
>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try
='test -s conftest.$ac_objext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ac_header_compiler
=yes
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.
$ac_ext >&5
16314 ac_header_compiler
=no
16316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16318 echo "${ECHO_T}$ac_header_compiler" >&6
16320 # Is the header present?
16321 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16322 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16323 cat >conftest.
$ac_ext <<_ACEOF
16326 cat confdefs.h
>>conftest.
$ac_ext
16327 cat >>conftest.
$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16329 #include <sys/cpustats.h>
16331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16332 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16334 grep -v '^ *+' conftest.er1
>conftest.err
16336 cat conftest.err
>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } >/dev
/null
; then
16339 if test -s conftest.err
; then
16340 ac_cpp_err
=$ac_c_preproc_warn_flag
16341 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16348 if test -z "$ac_cpp_err"; then
16349 ac_header_preproc
=yes
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.
$ac_ext >&5
16354 ac_header_preproc
=no
16356 rm -f conftest.err conftest.
$ac_ext
16357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16358 echo "${ECHO_T}$ac_header_preproc" >&6
16360 # So? What about this header?
16361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16363 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16364 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16366 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16367 ac_header_preproc
=yes
16370 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16371 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16373 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16375 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16377 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16379 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16381 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16384 ## ------------------------------------------ ##
16385 ## Report this to the AC_PACKAGE_NAME lists. ##
16386 ## ------------------------------------------ ##
16389 sed "s/^/$as_me: WARNING: /" >&2
16392 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16393 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16394 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16400 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16403 if test $ac_cv_header_sys_cpustats_h = yes; then
16404 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16413 if test $ac_have_func = no
; then
16415 for ac_header
in mach
/mach.h
16417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16419 echo "$as_me:$LINENO: checking for $ac_header" >&5
16420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16427 # Is the header compilable?
16428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16430 cat >conftest.
$ac_ext <<_ACEOF
16433 cat confdefs.h
>>conftest.
$ac_ext
16434 cat >>conftest.
$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 $ac_includes_default
16437 #include <$ac_header>
16439 rm -f conftest.
$ac_objext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441 (eval $ac_compile) 2>conftest.er1
16443 grep -v '^ *+' conftest.er1
>conftest.err
16445 cat conftest.err
>&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try
='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_header_compiler
=yes
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.
$ac_ext >&5
16465 ac_header_compiler
=no
16467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16469 echo "${ECHO_T}$ac_header_compiler" >&6
16471 # Is the header present?
16472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16474 cat >conftest.
$ac_ext <<_ACEOF
16477 cat confdefs.h
>>conftest.
$ac_ext
16478 cat >>conftest.
$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 #include <$ac_header>
16482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16485 grep -v '^ *+' conftest.er1
>conftest.err
16487 cat conftest.err
>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } >/dev
/null
; then
16490 if test -s conftest.err
; then
16491 ac_cpp_err
=$ac_c_preproc_warn_flag
16492 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16499 if test -z "$ac_cpp_err"; then
16500 ac_header_preproc
=yes
16502 echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.
$ac_ext >&5
16505 ac_header_preproc
=no
16507 rm -f conftest.err conftest.
$ac_ext
16508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16509 echo "${ECHO_T}$ac_header_preproc" >&6
16511 # So? What about this header?
16512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16518 ac_header_preproc
=yes
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16535 ## ------------------------------------------ ##
16536 ## Report this to the AC_PACKAGE_NAME lists. ##
16537 ## ------------------------------------------ ##
16540 sed "s/^/$as_me: WARNING: /" >&2
16543 echo "$as_me:$LINENO: checking for $ac_header" >&5
16544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 eval "$as_ac_Header=\$ac_header_preproc"
16550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16555 cat >>confdefs.h
<<_ACEOF
16556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16566 for ac_header
in nlist.h
16568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16570 echo "$as_me:$LINENO: checking for $ac_header" >&5
16571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16578 # Is the header compilable?
16579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16581 cat >conftest.
$ac_ext <<_ACEOF
16584 cat confdefs.h
>>conftest.
$ac_ext
16585 cat >>conftest.
$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 $ac_includes_default
16588 #include <$ac_header>
16590 rm -f conftest.
$ac_objext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>conftest.er1
16594 grep -v '^ *+' conftest.er1
>conftest.err
16596 cat conftest.err
>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try
='test -s conftest.$ac_objext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_header_compiler
=yes
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.
$ac_ext >&5
16616 ac_header_compiler
=no
16618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16620 echo "${ECHO_T}$ac_header_compiler" >&6
16622 # Is the header present?
16623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16625 cat >conftest.
$ac_ext <<_ACEOF
16628 cat confdefs.h
>>conftest.
$ac_ext
16629 cat >>conftest.
$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 #include <$ac_header>
16633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16634 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16636 grep -v '^ *+' conftest.er1
>conftest.err
16638 cat conftest.err
>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } >/dev
/null
; then
16641 if test -s conftest.err
; then
16642 ac_cpp_err
=$ac_c_preproc_warn_flag
16643 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16650 if test -z "$ac_cpp_err"; then
16651 ac_header_preproc
=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.
$ac_ext >&5
16656 ac_header_preproc
=no
16658 rm -f conftest.err conftest.
$ac_ext
16659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16660 echo "${ECHO_T}$ac_header_preproc" >&6
16662 # So? What about this header?
16663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16669 ac_header_preproc
=yes
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16686 ## ------------------------------------------ ##
16687 ## Report this to the AC_PACKAGE_NAME lists. ##
16688 ## ------------------------------------------ ##
16691 sed "s/^/$as_me: WARNING: /" >&2
16694 echo "$as_me:$LINENO: checking for $ac_header" >&5
16695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 eval "$as_ac_Header=\$ac_header_preproc"
16701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706 cat >>confdefs.h
<<_ACEOF
16707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16709 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16710 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16711 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 cat >conftest.
$ac_ext <<_ACEOF
16717 cat confdefs.h
>>conftest.
$ac_ext
16718 cat >>conftest.
$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16725 static struct nlist ac_aggr;
16726 if (ac_aggr.n_un.n_name)
16732 rm -f conftest.
$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>conftest.er1
16736 grep -v '^ *+' conftest.er1
>conftest.err
16738 cat conftest.err
>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try
='test -s conftest.$ac_objext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_cv_member_struct_nlist_n_un_n_name
=yes
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.
$ac_ext >&5
16758 cat >conftest.
$ac_ext <<_ACEOF
16761 cat confdefs.h
>>conftest.
$ac_ext
16762 cat >>conftest.
$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16769 static struct nlist ac_aggr;
16770 if (sizeof ac_aggr.n_un.n_name)
16776 rm -f conftest.
$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>conftest.er1
16780 grep -v '^ *+' conftest.er1
>conftest.err
16782 cat conftest.err
>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try
='test -s conftest.$ac_objext'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_cv_member_struct_nlist_n_un_n_name
=yes
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.
$ac_ext >&5
16802 ac_cv_member_struct_nlist_n_un_n_name
=no
16804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16806 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16808 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16809 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16810 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16812 cat >>confdefs.h
<<_ACEOF
16813 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16817 cat >>confdefs.h
<<\_ACEOF
16818 #define NLIST_NAME_UNION 1
16832 # Some definitions of getloadavg require that the program be installed setgid.
16833 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16834 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16835 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 cat >conftest.
$ac_ext <<_ACEOF
16841 cat confdefs.h
>>conftest.
$ac_ext
16842 cat >>conftest.
$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16845 #ifdef LDAV_PRIVILEGED
16846 Yowza Am I SETGID yet
16849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16850 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16851 ac_cv_func_getloadavg_setgid
=yes
16853 ac_cv_func_getloadavg_setgid
=no
16858 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16859 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16860 if test $ac_cv_func_getloadavg_setgid = yes; then
16863 cat >>confdefs.h
<<\_ACEOF
16864 #define GETLOADAVG_PRIVILEGED 1
16871 if test $ac_cv_func_getloadavg_setgid = yes; then
16872 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16873 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16874 if test "${ac_cv_group_kmem+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16878 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16879 # If we got an error (system does not support symlinks), try without -L.
16880 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16881 ac_cv_group_kmem
=`echo $ac_ls_output \
16882 | sed -ne 's/[ ][ ]*/ /g;
16883 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16887 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16888 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16889 KMEM_GROUP
=$ac_cv_group_kmem
16891 if test "x$ac_save_LIBS" = x
; then
16892 GETLOADAVG_LIBS
=$LIBS
16894 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16900 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16901 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16902 if test "${ac_cv_sys_largefile_source+set}" = set; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 ac_cv_sys_largefile_source
=no
16907 cat >conftest.
$ac_ext <<_ACEOF
16910 cat confdefs.h
>>conftest.
$ac_ext
16911 cat >>conftest.
$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16922 rm -f conftest.
$ac_objext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16924 (eval $ac_compile) 2>conftest.er1
16926 grep -v '^ *+' conftest.er1
>conftest.err
16928 cat conftest.err
>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
16931 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try
='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.
$ac_ext >&5
16949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16950 cat >conftest.
$ac_ext <<_ACEOF
16953 cat confdefs.h
>>conftest.
$ac_ext
16954 cat >>conftest.
$ac_ext <<_ACEOF
16955 /* end confdefs.h. */
16956 #define _LARGEFILE_SOURCE 1
16966 rm -f conftest.
$ac_objext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16968 (eval $ac_compile) 2>conftest.er1
16970 grep -v '^ *+' conftest.er1
>conftest.err
16972 cat conftest.err
>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
16975 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try
='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_sys_largefile_source
=1; break
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.
$ac_ext >&5
16993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16997 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16998 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16999 if test "$ac_cv_sys_largefile_source" != no
; then
17001 cat >>confdefs.h
<<_ACEOF
17002 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17008 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17009 # in glibc 2.1.3, but that breaks too many other things.
17010 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17011 echo "$as_me:$LINENO: checking for fseeko" >&5
17012 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17013 if test "${ac_cv_func_fseeko+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 cat >conftest.
$ac_ext <<_ACEOF
17019 cat confdefs.h
>>conftest.
$ac_ext
17020 cat >>conftest.
$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17026 return fseeko && fseeko (stdin, 0, 0);
17031 rm -f conftest.
$ac_objext conftest
$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>conftest.er1
17035 grep -v '^ *+' conftest.er1
>conftest.err
17037 cat conftest.err
>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try
='test -s conftest$ac_exeext'
17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_func_fseeko
=yes
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.
$ac_ext >&5
17057 ac_cv_func_fseeko
=no
17059 rm -f conftest.err conftest.
$ac_objext \
17060 conftest
$ac_exeext conftest.
$ac_ext
17062 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17063 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17064 if test $ac_cv_func_fseeko = yes; then
17066 cat >>confdefs.h
<<\_ACEOF
17067 #define HAVE_FSEEKO 1
17073 # Configure getopt.
17074 # getopt.m4 serial 10
17076 # The getopt module assume you want GNU getopt, with getopt_long etc,
17077 # rather than vanilla POSIX getopt. This means your your code should
17078 # always include <getopt.h> for the getopt prototypes.
17090 # Prerequisites of lib/getopt*.
17097 for ac_header
in getopt.h
17099 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17101 echo "$as_me:$LINENO: checking for $ac_header" >&5
17102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17109 # Is the header compilable?
17110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17112 cat >conftest.
$ac_ext <<_ACEOF
17115 cat confdefs.h
>>conftest.
$ac_ext
17116 cat >>conftest.
$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 $ac_includes_default
17119 #include <$ac_header>
17121 rm -f conftest.
$ac_objext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17125 grep -v '^ *+' conftest.er1
>conftest.err
17127 cat conftest.err
>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try
='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_header_compiler
=yes
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.
$ac_ext >&5
17147 ac_header_compiler
=no
17149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17151 echo "${ECHO_T}$ac_header_compiler" >&6
17153 # Is the header present?
17154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17156 cat >conftest.
$ac_ext <<_ACEOF
17159 cat confdefs.h
>>conftest.
$ac_ext
17160 cat >>conftest.
$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <$ac_header>
17164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17167 grep -v '^ *+' conftest.er1
>conftest.err
17169 cat conftest.err
>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } >/dev
/null
; then
17172 if test -s conftest.err
; then
17173 ac_cpp_err
=$ac_c_preproc_warn_flag
17174 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17181 if test -z "$ac_cpp_err"; then
17182 ac_header_preproc
=yes
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.
$ac_ext >&5
17187 ac_header_preproc
=no
17189 rm -f conftest.err conftest.
$ac_ext
17190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17191 echo "${ECHO_T}$ac_header_preproc" >&6
17193 # So? What about this header?
17194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17200 ac_header_preproc
=yes
17203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17217 ## ------------------------------------------ ##
17218 ## Report this to the AC_PACKAGE_NAME lists. ##
17219 ## ------------------------------------------ ##
17222 sed "s/^/$as_me: WARNING: /" >&2
17225 echo "$as_me:$LINENO: checking for $ac_header" >&5
17226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 eval "$as_ac_Header=\$ac_header_preproc"
17232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17237 cat >>confdefs.h
<<_ACEOF
17238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17247 if test -z "$GETOPT_H"; then
17249 for ac_func
in getopt_long_only
17251 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17252 echo "$as_me:$LINENO: checking for $ac_func" >&5
17253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17254 if eval "test \"\${$as_ac_var+set}\" = set"; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17257 cat >conftest.
$ac_ext <<_ACEOF
17260 cat confdefs.h
>>conftest.
$ac_ext
17261 cat >>conftest.
$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17265 #define $ac_func innocuous_$ac_func
17267 /* System header to define __stub macros and hopefully few prototypes,
17268 which can conflict with char $ac_func (); below.
17269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17270 <limits.h> exists even on freestanding compilers. */
17273 # include <limits.h>
17275 # include <assert.h>
17280 /* Override any gcc2 internal prototype to avoid an error. */
17285 /* We use char because int might match the return type of a gcc2
17286 builtin and then its argument prototype would still apply. */
17288 /* The GNU C library defines this for functions which it implements
17289 to always fail with ENOSYS. Some functions are actually named
17290 something starting with __ and the normal name is an alias. */
17291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17294 char (*f) () = $ac_func;
17303 return f != $ac_func;
17308 rm -f conftest.
$ac_objext conftest
$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310 (eval $ac_link) 2>conftest.er1
17312 grep -v '^ *+' conftest.er1
>conftest.err
17314 cat conftest.err
>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try
='test -s conftest$ac_exeext'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 eval "$as_ac_var=yes"
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.
$ac_ext >&5
17334 eval "$as_ac_var=no"
17336 rm -f conftest.err conftest.
$ac_objext \
17337 conftest
$ac_exeext conftest.
$ac_ext
17339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17341 if test `eval echo '${'$as_ac_var'}'` = yes; then
17342 cat >>confdefs.h
<<_ACEOF
17343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17353 if test -z "$GETOPT_H"; then
17354 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17355 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17356 if test "${ac_cv_have_decl_optreset+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 cat >conftest.
$ac_ext <<_ACEOF
17362 cat confdefs.h
>>conftest.
$ac_ext
17363 cat >>conftest.
$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 #include <getopt.h>
17371 char *p = (char *) optreset;
17378 rm -f conftest.
$ac_objext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380 (eval $ac_compile) 2>conftest.er1
17382 grep -v '^ *+' conftest.er1
>conftest.err
17384 cat conftest.err
>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try
='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_have_decl_optreset
=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.
$ac_ext >&5
17404 ac_cv_have_decl_optreset
=no
17406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17408 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17409 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17410 if test $ac_cv_have_decl_optreset = yes; then
17416 if test -z "$GETOPT_H"; then
17417 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17418 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17419 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 if test "$cross_compiling" = yes; then
17423 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17424 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17425 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17428 cat >conftest.
$ac_ext <<_ACEOF
17431 cat confdefs.h
>>conftest.
$ac_ext
17432 cat >>conftest.
$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17434 #include <getopt.h>
17439 #ifndef getopt_clip
17440 char *p = (char *) getopt_clip;
17447 rm -f conftest.
$ac_objext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449 (eval $ac_compile) 2>conftest.er1
17451 grep -v '^ *+' conftest.er1
>conftest.err
17453 cat conftest.err
>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try
='test -s conftest.$ac_objext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_cv_have_decl_getopt_clip
=yes
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.
$ac_ext >&5
17473 ac_cv_have_decl_getopt_clip
=no
17475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17477 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17478 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17479 if test $ac_cv_have_decl_getopt_clip = yes; then
17480 gl_cv_func_gnu_getopt
=no
17482 gl_cv_func_gnu_getopt
=yes
17486 cat >conftest.
$ac_ext <<_ACEOF
17489 cat confdefs.h
>>conftest.
$ac_ext
17490 cat >>conftest.
$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17492 #include <getopt.h>
17498 myargv[0] = "conftest";
17501 return getopt (2, myargv, "+a") != '?';
17507 rm -f conftest
$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 gl_cv_func_gnu_getopt
=yes
17520 echo "$as_me: program exited with status $ac_status" >&5
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.
$ac_ext >&5
17524 ( exit $ac_status )
17525 gl_cv_func_gnu_getopt
=no
17527 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17530 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17531 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17532 if test "$gl_cv_func_gnu_getopt" = "no"; then
17539 if test -n "$GETOPT_H"; then
17544 cat >>confdefs.h
<<\_ACEOF
17545 #define __GETOPT_PREFIX rpl_
17551 GETOPTOBJS
='getopt.o getopt1.o'
17558 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17559 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17560 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 # Use it with a single arg.
17564 cat >conftest.
$ac_ext <<_ACEOF
17567 cat confdefs.h
>>conftest.
$ac_ext
17568 cat >>conftest.
$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 $ac_includes_default
17579 rm -f conftest.
$ac_objext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>conftest.er1
17583 grep -v '^ *+' conftest.er1
>conftest.err
17585 cat conftest.err
>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try
='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 ac_cv_func_getpgrp_void
=no
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.
$ac_ext >&5
17605 ac_cv_func_getpgrp_void
=yes
17607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17610 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17611 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17612 if test $ac_cv_func_getpgrp_void = yes; then
17614 cat >>confdefs.h
<<\_ACEOF
17615 #define GETPGRP_VOID 1
17622 for ac_func
in strftime
17624 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17625 echo "$as_me:$LINENO: checking for $ac_func" >&5
17626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17627 if eval "test \"\${$as_ac_var+set}\" = set"; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 cat >conftest.
$ac_ext <<_ACEOF
17633 cat confdefs.h
>>conftest.
$ac_ext
17634 cat >>conftest.
$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17638 #define $ac_func innocuous_$ac_func
17640 /* System header to define __stub macros and hopefully few prototypes,
17641 which can conflict with char $ac_func (); below.
17642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17643 <limits.h> exists even on freestanding compilers. */
17646 # include <limits.h>
17648 # include <assert.h>
17653 /* Override any gcc2 internal prototype to avoid an error. */
17658 /* We use char because int might match the return type of a gcc2
17659 builtin and then its argument prototype would still apply. */
17661 /* The GNU C library defines this for functions which it implements
17662 to always fail with ENOSYS. Some functions are actually named
17663 something starting with __ and the normal name is an alias. */
17664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17667 char (*f) () = $ac_func;
17676 return f != $ac_func;
17681 rm -f conftest.
$ac_objext conftest
$ac_exeext
17682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17683 (eval $ac_link) 2>conftest.er1
17685 grep -v '^ *+' conftest.er1
>conftest.err
17687 cat conftest.err
>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } &&
17690 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try
='test -s conftest$ac_exeext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 eval "$as_ac_var=yes"
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.
$ac_ext >&5
17707 eval "$as_ac_var=no"
17709 rm -f conftest.err conftest.
$ac_objext \
17710 conftest
$ac_exeext conftest.
$ac_ext
17712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17714 if test `eval echo '${'$as_ac_var'}'` = yes; then
17715 cat >>confdefs.h
<<_ACEOF
17716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17720 # strftime is in -lintl on SCO UNIX.
17721 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17722 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17723 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 ac_check_lib_save_LIBS
=$LIBS
17727 LIBS
="-lintl $LIBS"
17728 cat >conftest.
$ac_ext <<_ACEOF
17731 cat confdefs.h
>>conftest.
$ac_ext
17732 cat >>conftest.
$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17735 /* Override any gcc2 internal prototype to avoid an error. */
17739 /* We use char because int might match the return type of a gcc2
17740 builtin and then its argument prototype would still apply. */
17750 rm -f conftest.
$ac_objext conftest
$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>conftest.er1
17754 grep -v '^ *+' conftest.er1
>conftest.err
17756 cat conftest.err
>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try
='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_intl_strftime
=yes
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.
$ac_ext >&5
17776 ac_cv_lib_intl_strftime
=no
17778 rm -f conftest.err conftest.
$ac_objext \
17779 conftest
$ac_exeext conftest.
$ac_ext
17780 LIBS
=$ac_check_lib_save_LIBS
17782 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17783 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17784 if test $ac_cv_lib_intl_strftime = yes; then
17785 cat >>confdefs.h
<<\_ACEOF
17786 #define HAVE_STRFTIME 1
17789 LIBS
="-lintl $LIBS"
17798 for ac_func
in grantpt
17800 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17801 echo "$as_me:$LINENO: checking for $ac_func" >&5
17802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17803 if eval "test \"\${$as_ac_var+set}\" = set"; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 cat >conftest.
$ac_ext <<_ACEOF
17809 cat confdefs.h
>>conftest.
$ac_ext
17810 cat >>conftest.
$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17814 #define $ac_func innocuous_$ac_func
17816 /* System header to define __stub macros and hopefully few prototypes,
17817 which can conflict with char $ac_func (); below.
17818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17819 <limits.h> exists even on freestanding compilers. */
17822 # include <limits.h>
17824 # include <assert.h>
17829 /* Override any gcc2 internal prototype to avoid an error. */
17834 /* We use char because int might match the return type of a gcc2
17835 builtin and then its argument prototype would still apply. */
17837 /* The GNU C library defines this for functions which it implements
17838 to always fail with ENOSYS. Some functions are actually named
17839 something starting with __ and the normal name is an alias. */
17840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17843 char (*f) () = $ac_func;
17852 return f != $ac_func;
17857 rm -f conftest.
$ac_objext conftest
$ac_exeext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17859 (eval $ac_link) 2>conftest.er1
17861 grep -v '^ *+' conftest.er1
>conftest.err
17863 cat conftest.err
>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try
='test -s conftest$ac_exeext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 eval "$as_ac_var=yes"
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.
$ac_ext >&5
17883 eval "$as_ac_var=no"
17885 rm -f conftest.err conftest.
$ac_objext \
17886 conftest
$ac_exeext conftest.
$ac_ext
17888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17890 if test `eval echo '${'$as_ac_var'}'` = yes; then
17891 cat >>confdefs.h
<<_ACEOF
17892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17899 # PTY-related GNU extensions.
17901 for ac_func
in getpt
17903 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17904 echo "$as_me:$LINENO: checking for $ac_func" >&5
17905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17906 if eval "test \"\${$as_ac_var+set}\" = set"; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 cat >conftest.
$ac_ext <<_ACEOF
17912 cat confdefs.h
>>conftest.
$ac_ext
17913 cat >>conftest.
$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17917 #define $ac_func innocuous_$ac_func
17919 /* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char $ac_func (); below.
17921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922 <limits.h> exists even on freestanding compilers. */
17925 # include <limits.h>
17927 # include <assert.h>
17932 /* Override any gcc2 internal prototype to avoid an error. */
17937 /* We use char because int might match the return type of a gcc2
17938 builtin and then its argument prototype would still apply. */
17940 /* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17946 char (*f) () = $ac_func;
17955 return f != $ac_func;
17960 rm -f conftest.
$ac_objext conftest
$ac_exeext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962 (eval $ac_link) 2>conftest.er1
17964 grep -v '^ *+' conftest.er1
>conftest.err
17966 cat conftest.err
>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try
='test -s conftest$ac_exeext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 eval "$as_ac_var=yes"
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.
$ac_ext >&5
17986 eval "$as_ac_var=no"
17988 rm -f conftest.err conftest.
$ac_objext \
17989 conftest
$ac_exeext conftest.
$ac_ext
17991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17993 if test `eval echo '${'$as_ac_var'}'` = yes; then
17994 cat >>confdefs.h
<<_ACEOF
17995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18002 # Check this now, so that we will NOT find the above functions in ncurses.
18003 # That is because we have not set up to link ncurses in lib-src.
18004 # It's better to believe a function is not available
18005 # than to expect to find it in ncurses.
18007 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18008 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18009 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 ac_check_lib_save_LIBS
=$LIBS
18013 LIBS
="-lncurses $LIBS"
18014 cat >conftest.
$ac_ext <<_ACEOF
18017 cat confdefs.h
>>conftest.
$ac_ext
18018 cat >>conftest.
$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18021 /* Override any gcc2 internal prototype to avoid an error. */
18025 /* We use char because int might match the return type of a gcc2
18026 builtin and then its argument prototype would still apply. */
18036 rm -f conftest.
$ac_objext conftest
$ac_exeext
18037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18038 (eval $ac_link) 2>conftest.er1
18040 grep -v '^ *+' conftest.er1
>conftest.err
18042 cat conftest.err
>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try
='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_lib_ncurses_tparm
=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.
$ac_ext >&5
18062 ac_cv_lib_ncurses_tparm
=no
18064 rm -f conftest.err conftest.
$ac_objext \
18065 conftest
$ac_exeext conftest.
$ac_ext
18066 LIBS
=$ac_check_lib_save_LIBS
18068 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18069 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18070 if test $ac_cv_lib_ncurses_tparm = yes; then
18071 cat >>confdefs.h
<<_ACEOF
18072 #define HAVE_LIBNCURSES 1
18075 LIBS
="-lncurses $LIBS"
18080 # Do we need the Hesiod library to provide the support routines?
18081 if test "$with_hesiod" = yes ; then
18082 # Don't set $LIBS here -- see comments above.
18084 echo "$as_me:$LINENO: checking for res_send" >&5
18085 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18086 if test "${ac_cv_func_res_send+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 cat >conftest.
$ac_ext <<_ACEOF
18092 cat confdefs.h
>>conftest.
$ac_ext
18093 cat >>conftest.
$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18097 #define res_send innocuous_res_send
18099 /* System header to define __stub macros and hopefully few prototypes,
18100 which can conflict with char res_send (); below.
18101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102 <limits.h> exists even on freestanding compilers. */
18105 # include <limits.h>
18107 # include <assert.h>
18112 /* Override any gcc2 internal prototype to avoid an error. */
18117 /* We use char because int might match the return type of a gcc2
18118 builtin and then its argument prototype would still apply. */
18120 /* The GNU C library defines this for functions which it implements
18121 to always fail with ENOSYS. Some functions are actually named
18122 something starting with __ and the normal name is an alias. */
18123 #if defined (__stub_res_send) || defined (__stub___res_send)
18126 char (*f) () = res_send;
18135 return f != res_send;
18140 rm -f conftest.
$ac_objext conftest
$ac_exeext
18141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142 (eval $ac_link) 2>conftest.er1
18144 grep -v '^ *+' conftest.er1
>conftest.err
18146 cat conftest.err
>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try
='test -s conftest$ac_exeext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_func_res_send
=yes
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.
$ac_ext >&5
18166 ac_cv_func_res_send
=no
18168 rm -f conftest.err conftest.
$ac_objext \
18169 conftest
$ac_exeext conftest.
$ac_ext
18171 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18172 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18173 if test $ac_cv_func_res_send = yes; then
18176 echo "$as_me:$LINENO: checking for __res_send" >&5
18177 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18178 if test "${ac_cv_func___res_send+set}" = set; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 cat >conftest.
$ac_ext <<_ACEOF
18184 cat confdefs.h
>>conftest.
$ac_ext
18185 cat >>conftest.
$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189 #define __res_send innocuous___res_send
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char __res_send (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18197 # include <limits.h>
18199 # include <assert.h>
18204 /* Override any gcc2 internal prototype to avoid an error. */
18209 /* We use char because int might match the return type of a gcc2
18210 builtin and then its argument prototype would still apply. */
18211 char __res_send ();
18212 /* The GNU C library defines this for functions which it implements
18213 to always fail with ENOSYS. Some functions are actually named
18214 something starting with __ and the normal name is an alias. */
18215 #if defined (__stub___res_send) || defined (__stub_____res_send)
18218 char (*f) () = __res_send;
18227 return f != __res_send;
18232 rm -f conftest.
$ac_objext conftest
$ac_exeext
18233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234 (eval $ac_link) 2>conftest.er1
18236 grep -v '^ *+' conftest.er1
>conftest.err
18238 cat conftest.err
>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try
='test -s conftest$ac_exeext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 ac_cv_func___res_send
=yes
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.
$ac_ext >&5
18258 ac_cv_func___res_send
=no
18260 rm -f conftest.err conftest.
$ac_objext \
18261 conftest
$ac_exeext conftest.
$ac_ext
18263 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18264 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18265 if test $ac_cv_func___res_send = yes; then
18268 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18269 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18270 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 ac_check_lib_save_LIBS
=$LIBS
18274 LIBS
="-lresolv $LIBS"
18275 cat >conftest.
$ac_ext <<_ACEOF
18278 cat confdefs.h
>>conftest.
$ac_ext
18279 cat >>conftest.
$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18282 /* Override any gcc2 internal prototype to avoid an error. */
18286 /* We use char because int might match the return type of a gcc2
18287 builtin and then its argument prototype would still apply. */
18297 rm -f conftest.
$ac_objext conftest
$ac_exeext
18298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18299 (eval $ac_link) 2>conftest.er1
18301 grep -v '^ *+' conftest.er1
>conftest.err
18303 cat conftest.err
>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try
='test -s conftest$ac_exeext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_cv_lib_resolv_res_send
=yes
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.
$ac_ext >&5
18323 ac_cv_lib_resolv_res_send
=no
18325 rm -f conftest.err conftest.
$ac_objext \
18326 conftest
$ac_exeext conftest.
$ac_ext
18327 LIBS
=$ac_check_lib_save_LIBS
18329 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18330 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18331 if test $ac_cv_lib_resolv_res_send = yes; then
18334 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18335 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18336 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 ac_check_lib_save_LIBS
=$LIBS
18340 LIBS
="-lresolv $LIBS"
18341 cat >conftest.
$ac_ext <<_ACEOF
18344 cat confdefs.h
>>conftest.
$ac_ext
18345 cat >>conftest.
$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18348 /* Override any gcc2 internal prototype to avoid an error. */
18352 /* We use char because int might match the return type of a gcc2
18353 builtin and then its argument prototype would still apply. */
18354 char __res_send ();
18363 rm -f conftest.
$ac_objext conftest
$ac_exeext
18364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18365 (eval $ac_link) 2>conftest.er1
18367 grep -v '^ *+' conftest.er1
>conftest.err
18369 cat conftest.err
>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374 (eval $ac_try) 2>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); }; } &&
18378 { ac_try
='test -s conftest$ac_exeext'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_lib_resolv___res_send
=yes
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.
$ac_ext >&5
18389 ac_cv_lib_resolv___res_send
=no
18391 rm -f conftest.err conftest.
$ac_objext \
18392 conftest
$ac_exeext conftest.
$ac_ext
18393 LIBS
=$ac_check_lib_save_LIBS
18395 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18396 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18397 if test $ac_cv_lib_resolv___res_send = yes; then
18407 if test "$resolv" = yes ; then
18410 cat >>confdefs.h
<<\_ACEOF
18411 #define HAVE_LIBRESOLV 1
18417 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18418 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18419 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 cat >conftest.
$ac_ext <<_ACEOF
18425 cat confdefs.h
>>conftest.
$ac_ext
18426 cat >>conftest.
$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18430 #define hes_getmailhost innocuous_hes_getmailhost
18432 /* System header to define __stub macros and hopefully few prototypes,
18433 which can conflict with char hes_getmailhost (); below.
18434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18435 <limits.h> exists even on freestanding compilers. */
18438 # include <limits.h>
18440 # include <assert.h>
18443 #undef hes_getmailhost
18445 /* Override any gcc2 internal prototype to avoid an error. */
18450 /* We use char because int might match the return type of a gcc2
18451 builtin and then its argument prototype would still apply. */
18452 char hes_getmailhost ();
18453 /* The GNU C library defines this for functions which it implements
18454 to always fail with ENOSYS. Some functions are actually named
18455 something starting with __ and the normal name is an alias. */
18456 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18459 char (*f) () = hes_getmailhost;
18468 return f != hes_getmailhost;
18473 rm -f conftest.
$ac_objext conftest
$ac_exeext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475 (eval $ac_link) 2>conftest.er1
18477 grep -v '^ *+' conftest.er1
>conftest.err
18479 cat conftest.err
>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
18482 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try
='test -s conftest$ac_exeext'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 ac_cv_func_hes_getmailhost
=yes
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.
$ac_ext >&5
18499 ac_cv_func_hes_getmailhost
=no
18501 rm -f conftest.err conftest.
$ac_objext \
18502 conftest
$ac_exeext conftest.
$ac_ext
18504 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18505 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18506 if test $ac_cv_func_hes_getmailhost = yes; then
18509 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18510 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18511 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 ac_check_lib_save_LIBS
=$LIBS
18515 LIBS
="-lhesiod $RESOLVLIB $LIBS"
18516 cat >conftest.
$ac_ext <<_ACEOF
18519 cat confdefs.h
>>conftest.
$ac_ext
18520 cat >>conftest.
$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18523 /* Override any gcc2 internal prototype to avoid an error. */
18527 /* We use char because int might match the return type of a gcc2
18528 builtin and then its argument prototype would still apply. */
18529 char hes_getmailhost ();
18533 hes_getmailhost ();
18538 rm -f conftest.
$ac_objext conftest
$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>conftest.er1
18542 grep -v '^ *+' conftest.er1
>conftest.err
18544 cat conftest.err
>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } &&
18547 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try
='test -s conftest$ac_exeext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_lib_hesiod_hes_getmailhost
=yes
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.
$ac_ext >&5
18564 ac_cv_lib_hesiod_hes_getmailhost
=no
18566 rm -f conftest.err conftest.
$ac_objext \
18567 conftest
$ac_exeext conftest.
$ac_ext
18568 LIBS
=$ac_check_lib_save_LIBS
18570 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18571 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18572 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18574 cat >>confdefs.h
<<\_ACEOF
18575 #define HAVE_LIBHESIOD 1
18586 # These tell us which Kerberos-related libraries to use.
18587 if test "${with_kerberos+set}" = set; then
18589 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18590 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18591 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 ac_check_lib_save_LIBS
=$LIBS
18595 LIBS
="-lcom_err $LIBS"
18596 cat >conftest.
$ac_ext <<_ACEOF
18599 cat confdefs.h
>>conftest.
$ac_ext
18600 cat >>conftest.
$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18603 /* Override any gcc2 internal prototype to avoid an error. */
18607 /* We use char because int might match the return type of a gcc2
18608 builtin and then its argument prototype would still apply. */
18618 rm -f conftest.
$ac_objext conftest
$ac_exeext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620 (eval $ac_link) 2>conftest.er1
18622 grep -v '^ *+' conftest.er1
>conftest.err
18624 cat conftest.err
>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try
='test -s conftest$ac_exeext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_cv_lib_com_err_com_err
=yes
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.
$ac_ext >&5
18644 ac_cv_lib_com_err_com_err
=no
18646 rm -f conftest.err conftest.
$ac_objext \
18647 conftest
$ac_exeext conftest.
$ac_ext
18648 LIBS
=$ac_check_lib_save_LIBS
18650 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18651 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18652 if test $ac_cv_lib_com_err_com_err = yes; then
18653 cat >>confdefs.h
<<_ACEOF
18654 #define HAVE_LIBCOM_ERR 1
18657 LIBS
="-lcom_err $LIBS"
18662 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18663 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18664 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 ac_check_lib_save_LIBS
=$LIBS
18668 LIBS
="-lk5crypto $LIBS"
18669 cat >conftest.
$ac_ext <<_ACEOF
18672 cat confdefs.h
>>conftest.
$ac_ext
18673 cat >>conftest.
$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18676 /* Override any gcc2 internal prototype to avoid an error. */
18680 /* We use char because int might match the return type of a gcc2
18681 builtin and then its argument prototype would still apply. */
18682 char mit_des_cbc_encrypt ();
18686 mit_des_cbc_encrypt ();
18691 rm -f conftest.
$ac_objext conftest
$ac_exeext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18693 (eval $ac_link) 2>conftest.er1
18695 grep -v '^ *+' conftest.er1
>conftest.err
18697 cat conftest.err
>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try
='test -s conftest$ac_exeext'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.
$ac_ext >&5
18717 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18719 rm -f conftest.err conftest.
$ac_objext \
18720 conftest
$ac_exeext conftest.
$ac_ext
18721 LIBS
=$ac_check_lib_save_LIBS
18723 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18724 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18725 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18726 cat >>confdefs.h
<<_ACEOF
18727 #define HAVE_LIBK5CRYPTO 1
18730 LIBS
="-lk5crypto $LIBS"
18735 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18736 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18737 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 ac_check_lib_save_LIBS
=$LIBS
18741 LIBS
="-lcrypto $LIBS"
18742 cat >conftest.
$ac_ext <<_ACEOF
18745 cat confdefs.h
>>conftest.
$ac_ext
18746 cat >>conftest.
$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18749 /* Override any gcc2 internal prototype to avoid an error. */
18753 /* We use char because int might match the return type of a gcc2
18754 builtin and then its argument prototype would still apply. */
18755 char mit_des_cbc_encrypt ();
18759 mit_des_cbc_encrypt ();
18764 rm -f conftest.
$ac_objext conftest
$ac_exeext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766 (eval $ac_link) 2>conftest.er1
18768 grep -v '^ *+' conftest.er1
>conftest.err
18770 cat conftest.err
>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try
='test -s conftest$ac_exeext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.
$ac_ext >&5
18790 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18792 rm -f conftest.err conftest.
$ac_objext \
18793 conftest
$ac_exeext conftest.
$ac_ext
18794 LIBS
=$ac_check_lib_save_LIBS
18796 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18797 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18798 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18799 cat >>confdefs.h
<<_ACEOF
18800 #define HAVE_LIBCRYPTO 1
18803 LIBS
="-lcrypto $LIBS"
18808 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18809 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18810 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 ac_check_lib_save_LIBS
=$LIBS
18814 LIBS
="-lkrb5 $LIBS"
18815 cat >conftest.
$ac_ext <<_ACEOF
18818 cat confdefs.h
>>conftest.
$ac_ext
18819 cat >>conftest.
$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 /* Override any gcc2 internal prototype to avoid an error. */
18826 /* We use char because int might match the return type of a gcc2
18827 builtin and then its argument prototype would still apply. */
18828 char krb5_init_context ();
18832 krb5_init_context ();
18837 rm -f conftest.
$ac_objext conftest
$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>conftest.er1
18841 grep -v '^ *+' conftest.er1
>conftest.err
18843 cat conftest.err
>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try
='test -s conftest$ac_exeext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_cv_lib_krb5_krb5_init_context
=yes
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18863 ac_cv_lib_krb5_krb5_init_context
=no
18865 rm -f conftest.err conftest.
$ac_objext \
18866 conftest
$ac_exeext conftest.
$ac_ext
18867 LIBS
=$ac_check_lib_save_LIBS
18869 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18870 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18871 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18872 cat >>confdefs.h
<<_ACEOF
18873 #define HAVE_LIBKRB5 1
18876 LIBS
="-lkrb5 $LIBS"
18880 if test "${with_kerberos5+set}" != set; then
18882 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18883 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18884 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 ac_check_lib_save_LIBS
=$LIBS
18888 LIBS
="-ldes425 $LIBS"
18889 cat >conftest.
$ac_ext <<_ACEOF
18892 cat confdefs.h
>>conftest.
$ac_ext
18893 cat >>conftest.
$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18896 /* Override any gcc2 internal prototype to avoid an error. */
18900 /* We use char because int might match the return type of a gcc2
18901 builtin and then its argument prototype would still apply. */
18902 char des_cbc_encrypt ();
18906 des_cbc_encrypt ();
18911 rm -f conftest.
$ac_objext conftest
$ac_exeext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18913 (eval $ac_link) 2>conftest.er1
18915 grep -v '^ *+' conftest.er1
>conftest.err
18917 cat conftest.err
>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } &&
18920 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try
='test -s conftest$ac_exeext'
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_lib_des425_des_cbc_encrypt
=yes
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.
$ac_ext >&5
18937 ac_cv_lib_des425_des_cbc_encrypt
=no
18939 rm -f conftest.err conftest.
$ac_objext \
18940 conftest
$ac_exeext conftest.
$ac_ext
18941 LIBS
=$ac_check_lib_save_LIBS
18943 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18944 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18945 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18946 cat >>confdefs.h
<<_ACEOF
18947 #define HAVE_LIBDES425 1
18950 LIBS
="-ldes425 $LIBS"
18954 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18955 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18956 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 ac_check_lib_save_LIBS
=$LIBS
18961 cat >conftest.
$ac_ext <<_ACEOF
18964 cat confdefs.h
>>conftest.
$ac_ext
18965 cat >>conftest.
$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18968 /* Override any gcc2 internal prototype to avoid an error. */
18972 /* We use char because int might match the return type of a gcc2
18973 builtin and then its argument prototype would still apply. */
18974 char des_cbc_encrypt ();
18978 des_cbc_encrypt ();
18983 rm -f conftest.
$ac_objext conftest
$ac_exeext
18984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18985 (eval $ac_link) 2>conftest.er1
18987 grep -v '^ *+' conftest.er1
>conftest.err
18989 cat conftest.err
>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try
='test -s conftest$ac_exeext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_lib_des_des_cbc_encrypt
=yes
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.
$ac_ext >&5
19009 ac_cv_lib_des_des_cbc_encrypt
=no
19011 rm -f conftest.err conftest.
$ac_objext \
19012 conftest
$ac_exeext conftest.
$ac_ext
19013 LIBS
=$ac_check_lib_save_LIBS
19015 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19016 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19017 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19018 cat >>confdefs.h
<<_ACEOF
19019 #define HAVE_LIBDES 1
19029 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19030 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19031 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 ac_check_lib_save_LIBS
=$LIBS
19035 LIBS
="-lkrb4 $LIBS"
19036 cat >conftest.
$ac_ext <<_ACEOF
19039 cat confdefs.h
>>conftest.
$ac_ext
19040 cat >>conftest.
$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19043 /* Override any gcc2 internal prototype to avoid an error. */
19047 /* We use char because int might match the return type of a gcc2
19048 builtin and then its argument prototype would still apply. */
19049 char krb_get_cred ();
19058 rm -f conftest.
$ac_objext conftest
$ac_exeext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19060 (eval $ac_link) 2>conftest.er1
19062 grep -v '^ *+' conftest.er1
>conftest.err
19064 cat conftest.err
>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try
='test -s conftest$ac_exeext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_krb4_krb_get_cred
=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.
$ac_ext >&5
19084 ac_cv_lib_krb4_krb_get_cred
=no
19086 rm -f conftest.err conftest.
$ac_objext \
19087 conftest
$ac_exeext conftest.
$ac_ext
19088 LIBS
=$ac_check_lib_save_LIBS
19090 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19091 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19092 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19093 cat >>confdefs.h
<<_ACEOF
19094 #define HAVE_LIBKRB4 1
19097 LIBS
="-lkrb4 $LIBS"
19101 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19102 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19103 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 ac_check_lib_save_LIBS
=$LIBS
19108 cat >conftest.
$ac_ext <<_ACEOF
19111 cat confdefs.h
>>conftest.
$ac_ext
19112 cat >>conftest.
$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19115 /* Override any gcc2 internal prototype to avoid an error. */
19119 /* We use char because int might match the return type of a gcc2
19120 builtin and then its argument prototype would still apply. */
19121 char krb_get_cred ();
19130 rm -f conftest.
$ac_objext conftest
$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132 (eval $ac_link) 2>conftest.er1
19134 grep -v '^ *+' conftest.er1
>conftest.err
19136 cat conftest.err
>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; } &&
19145 { ac_try
='test -s conftest$ac_exeext'
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; }; then
19151 ac_cv_lib_krb_krb_get_cred
=yes
19153 echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.
$ac_ext >&5
19156 ac_cv_lib_krb_krb_get_cred
=no
19158 rm -f conftest.err conftest.
$ac_objext \
19159 conftest
$ac_exeext conftest.
$ac_ext
19160 LIBS
=$ac_check_lib_save_LIBS
19162 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19163 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19164 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19165 cat >>confdefs.h
<<_ACEOF
19166 #define HAVE_LIBKRB 1
19177 if test "${with_kerberos5+set}" = set; then
19179 for ac_header
in krb5.h
19181 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19183 echo "$as_me:$LINENO: checking for $ac_header" >&5
19184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19191 # Is the header compilable?
19192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19194 cat >conftest.
$ac_ext <<_ACEOF
19197 cat confdefs.h
>>conftest.
$ac_ext
19198 cat >>conftest.
$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 $ac_includes_default
19201 #include <$ac_header>
19203 rm -f conftest.
$ac_objext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19205 (eval $ac_compile) 2>conftest.er1
19207 grep -v '^ *+' conftest.er1
>conftest.err
19209 cat conftest.err
>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try
='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_header_compiler
=yes
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.
$ac_ext >&5
19229 ac_header_compiler
=no
19231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19233 echo "${ECHO_T}$ac_header_compiler" >&6
19235 # Is the header present?
19236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19238 cat >conftest.
$ac_ext <<_ACEOF
19241 cat confdefs.h
>>conftest.
$ac_ext
19242 cat >>conftest.
$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <$ac_header>
19246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19247 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19249 grep -v '^ *+' conftest.er1
>conftest.err
19251 cat conftest.err
>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } >/dev
/null
; then
19254 if test -s conftest.err
; then
19255 ac_cpp_err
=$ac_c_preproc_warn_flag
19256 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19263 if test -z "$ac_cpp_err"; then
19264 ac_header_preproc
=yes
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.
$ac_ext >&5
19269 ac_header_preproc
=no
19271 rm -f conftest.err conftest.
$ac_ext
19272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19273 echo "${ECHO_T}$ac_header_preproc" >&6
19275 # So? What about this header?
19276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19282 ac_header_preproc
=yes
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19299 ## ------------------------------------------ ##
19300 ## Report this to the AC_PACKAGE_NAME lists. ##
19301 ## ------------------------------------------ ##
19304 sed "s/^/$as_me: WARNING: /" >&2
19307 echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 eval "$as_ac_Header=\$ac_header_preproc"
19314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19319 cat >>confdefs.h
<<_ACEOF
19320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19329 for ac_header
in des.h
19331 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19333 echo "$as_me:$LINENO: checking for $ac_header" >&5
19334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19341 # Is the header compilable?
19342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19344 cat >conftest.
$ac_ext <<_ACEOF
19347 cat confdefs.h
>>conftest.
$ac_ext
19348 cat >>conftest.
$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 $ac_includes_default
19351 #include <$ac_header>
19353 rm -f conftest.
$ac_objext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19357 grep -v '^ *+' conftest.er1
>conftest.err
19359 cat conftest.err
>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try
='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_header_compiler
=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.
$ac_ext >&5
19379 ac_header_compiler
=no
19381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19383 echo "${ECHO_T}$ac_header_compiler" >&6
19385 # Is the header present?
19386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19388 cat >conftest.
$ac_ext <<_ACEOF
19391 cat confdefs.h
>>conftest.
$ac_ext
19392 cat >>conftest.
$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 #include <$ac_header>
19396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19397 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19399 grep -v '^ *+' conftest.er1
>conftest.err
19401 cat conftest.err
>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } >/dev
/null
; then
19404 if test -s conftest.err
; then
19405 ac_cpp_err
=$ac_c_preproc_warn_flag
19406 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19413 if test -z "$ac_cpp_err"; then
19414 ac_header_preproc
=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.
$ac_ext >&5
19419 ac_header_preproc
=no
19421 rm -f conftest.err conftest.
$ac_ext
19422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19423 echo "${ECHO_T}$ac_header_preproc" >&6
19425 # So? What about this header?
19426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19432 ac_header_preproc
=yes
19435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19449 ## ------------------------------------------ ##
19450 ## Report this to the AC_PACKAGE_NAME lists. ##
19451 ## ------------------------------------------ ##
19454 sed "s/^/$as_me: WARNING: /" >&2
19457 echo "$as_me:$LINENO: checking for $ac_header" >&5
19458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 eval "$as_ac_Header=\$ac_header_preproc"
19464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19469 cat >>confdefs.h
<<_ACEOF
19470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19475 for ac_header
in kerberosIV
/des.h
19477 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19479 echo "$as_me:$LINENO: checking for $ac_header" >&5
19480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19487 # Is the header compilable?
19488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19490 cat >conftest.
$ac_ext <<_ACEOF
19493 cat confdefs.h
>>conftest.
$ac_ext
19494 cat >>conftest.
$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 $ac_includes_default
19497 #include <$ac_header>
19499 rm -f conftest.
$ac_objext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19501 (eval $ac_compile) 2>conftest.er1
19503 grep -v '^ *+' conftest.er1
>conftest.err
19505 cat conftest.err
>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try
='test -s conftest.$ac_objext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_header_compiler
=yes
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.
$ac_ext >&5
19525 ac_header_compiler
=no
19527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19529 echo "${ECHO_T}$ac_header_compiler" >&6
19531 # Is the header present?
19532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19534 cat >conftest.
$ac_ext <<_ACEOF
19537 cat confdefs.h
>>conftest.
$ac_ext
19538 cat >>conftest.
$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 #include <$ac_header>
19542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19543 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19545 grep -v '^ *+' conftest.er1
>conftest.err
19547 cat conftest.err
>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } >/dev
/null
; then
19550 if test -s conftest.err
; then
19551 ac_cpp_err
=$ac_c_preproc_warn_flag
19552 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19559 if test -z "$ac_cpp_err"; then
19560 ac_header_preproc
=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.
$ac_ext >&5
19565 ac_header_preproc
=no
19567 rm -f conftest.err conftest.
$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19569 echo "${ECHO_T}$ac_header_preproc" >&6
19571 # So? What about this header?
19572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19578 ac_header_preproc
=yes
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19595 ## ------------------------------------------ ##
19596 ## Report this to the AC_PACKAGE_NAME lists. ##
19597 ## ------------------------------------------ ##
19600 sed "s/^/$as_me: WARNING: /" >&2
19603 echo "$as_me:$LINENO: checking for $ac_header" >&5
19604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 eval "$as_ac_Header=\$ac_header_preproc"
19610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19615 cat >>confdefs.h
<<_ACEOF
19616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19621 for ac_header
in kerberos
/des.h
19623 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19625 echo "$as_me:$LINENO: checking for $ac_header" >&5
19626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19633 # Is the header compilable?
19634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19636 cat >conftest.
$ac_ext <<_ACEOF
19639 cat confdefs.h
>>conftest.
$ac_ext
19640 cat >>conftest.
$ac_ext <<_ACEOF
19641 /* end confdefs.h. */
19642 $ac_includes_default
19643 #include <$ac_header>
19645 rm -f conftest.
$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>conftest.er1
19649 grep -v '^ *+' conftest.er1
>conftest.err
19651 cat conftest.err
>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try
='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_header_compiler
=yes
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.
$ac_ext >&5
19671 ac_header_compiler
=no
19673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19675 echo "${ECHO_T}$ac_header_compiler" >&6
19677 # Is the header present?
19678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19680 cat >conftest.
$ac_ext <<_ACEOF
19683 cat confdefs.h
>>conftest.
$ac_ext
19684 cat >>conftest.
$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 #include <$ac_header>
19688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19689 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19691 grep -v '^ *+' conftest.er1
>conftest.err
19693 cat conftest.err
>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } >/dev
/null
; then
19696 if test -s conftest.err
; then
19697 ac_cpp_err
=$ac_c_preproc_warn_flag
19698 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19705 if test -z "$ac_cpp_err"; then
19706 ac_header_preproc
=yes
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.
$ac_ext >&5
19711 ac_header_preproc
=no
19713 rm -f conftest.err conftest.
$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19715 echo "${ECHO_T}$ac_header_preproc" >&6
19717 # So? What about this header?
19718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19724 ac_header_preproc
=yes
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19741 ## ------------------------------------------ ##
19742 ## Report this to the AC_PACKAGE_NAME lists. ##
19743 ## ------------------------------------------ ##
19746 sed "s/^/$as_me: WARNING: /" >&2
19749 echo "$as_me:$LINENO: checking for $ac_header" >&5
19750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 eval "$as_ac_Header=\$ac_header_preproc"
19756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19761 cat >>confdefs.h
<<_ACEOF
19762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19778 for ac_header
in krb.h
19780 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19790 # Is the header compilable?
19791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19793 cat >conftest.
$ac_ext <<_ACEOF
19796 cat confdefs.h
>>conftest.
$ac_ext
19797 cat >>conftest.
$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 $ac_includes_default
19800 #include <$ac_header>
19802 rm -f conftest.
$ac_objext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804 (eval $ac_compile) 2>conftest.er1
19806 grep -v '^ *+' conftest.er1
>conftest.err
19808 cat conftest.err
>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try
='test -s conftest.$ac_objext'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_header_compiler
=yes
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.
$ac_ext >&5
19828 ac_header_compiler
=no
19830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19832 echo "${ECHO_T}$ac_header_compiler" >&6
19834 # Is the header present?
19835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19837 cat >conftest.
$ac_ext <<_ACEOF
19840 cat confdefs.h
>>conftest.
$ac_ext
19841 cat >>conftest.
$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19843 #include <$ac_header>
19845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19848 grep -v '^ *+' conftest.er1
>conftest.err
19850 cat conftest.err
>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } >/dev
/null
; then
19853 if test -s conftest.err
; then
19854 ac_cpp_err
=$ac_c_preproc_warn_flag
19855 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19862 if test -z "$ac_cpp_err"; then
19863 ac_header_preproc
=yes
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.
$ac_ext >&5
19868 ac_header_preproc
=no
19870 rm -f conftest.err conftest.
$ac_ext
19871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872 echo "${ECHO_T}$ac_header_preproc" >&6
19874 # So? What about this header?
19875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19881 ac_header_preproc
=yes
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19898 ## ------------------------------------------ ##
19899 ## Report this to the AC_PACKAGE_NAME lists. ##
19900 ## ------------------------------------------ ##
19903 sed "s/^/$as_me: WARNING: /" >&2
19906 echo "$as_me:$LINENO: checking for $ac_header" >&5
19907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 eval "$as_ac_Header=\$ac_header_preproc"
19913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19918 cat >>confdefs.h
<<_ACEOF
19919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924 for ac_header
in kerberosIV
/krb.h
19926 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19928 echo "$as_me:$LINENO: checking for $ac_header" >&5
19929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19936 # Is the header compilable?
19937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19939 cat >conftest.
$ac_ext <<_ACEOF
19942 cat confdefs.h
>>conftest.
$ac_ext
19943 cat >>conftest.
$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 $ac_includes_default
19946 #include <$ac_header>
19948 rm -f conftest.
$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950 (eval $ac_compile) 2>conftest.er1
19952 grep -v '^ *+' conftest.er1
>conftest.err
19954 cat conftest.err
>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try
='test -s conftest.$ac_objext'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 ac_header_compiler
=yes
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.
$ac_ext >&5
19974 ac_header_compiler
=no
19976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978 echo "${ECHO_T}$ac_header_compiler" >&6
19980 # Is the header present?
19981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19983 cat >conftest.
$ac_ext <<_ACEOF
19986 cat confdefs.h
>>conftest.
$ac_ext
19987 cat >>conftest.
$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #include <$ac_header>
19991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19992 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19994 grep -v '^ *+' conftest.er1
>conftest.err
19996 cat conftest.err
>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } >/dev
/null
; then
19999 if test -s conftest.err
; then
20000 ac_cpp_err
=$ac_c_preproc_warn_flag
20001 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20008 if test -z "$ac_cpp_err"; then
20009 ac_header_preproc
=yes
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.
$ac_ext >&5
20014 ac_header_preproc
=no
20016 rm -f conftest.err conftest.
$ac_ext
20017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20018 echo "${ECHO_T}$ac_header_preproc" >&6
20020 # So? What about this header?
20021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20027 ac_header_preproc
=yes
20030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20044 ## ------------------------------------------ ##
20045 ## Report this to the AC_PACKAGE_NAME lists. ##
20046 ## ------------------------------------------ ##
20049 sed "s/^/$as_me: WARNING: /" >&2
20052 echo "$as_me:$LINENO: checking for $ac_header" >&5
20053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 eval "$as_ac_Header=\$ac_header_preproc"
20059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20064 cat >>confdefs.h
<<_ACEOF
20065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20070 for ac_header
in kerberos
/krb.h
20072 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20074 echo "$as_me:$LINENO: checking for $ac_header" >&5
20075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20082 # Is the header compilable?
20083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20085 cat >conftest.
$ac_ext <<_ACEOF
20088 cat confdefs.h
>>conftest.
$ac_ext
20089 cat >>conftest.
$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 $ac_includes_default
20092 #include <$ac_header>
20094 rm -f conftest.
$ac_objext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20098 grep -v '^ *+' conftest.er1
>conftest.err
20100 cat conftest.err
>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try
='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_header_compiler
=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.
$ac_ext >&5
20120 ac_header_compiler
=no
20122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20124 echo "${ECHO_T}$ac_header_compiler" >&6
20126 # Is the header present?
20127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20129 cat >conftest.
$ac_ext <<_ACEOF
20132 cat confdefs.h
>>conftest.
$ac_ext
20133 cat >>conftest.
$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #include <$ac_header>
20137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20138 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20140 grep -v '^ *+' conftest.er1
>conftest.err
20142 cat conftest.err
>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } >/dev
/null
; then
20145 if test -s conftest.err
; then
20146 ac_cpp_err
=$ac_c_preproc_warn_flag
20147 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20154 if test -z "$ac_cpp_err"; then
20155 ac_header_preproc
=yes
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.
$ac_ext >&5
20160 ac_header_preproc
=no
20162 rm -f conftest.err conftest.
$ac_ext
20163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20164 echo "${ECHO_T}$ac_header_preproc" >&6
20166 # So? What about this header?
20167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20173 ac_header_preproc
=yes
20176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20190 ## ------------------------------------------ ##
20191 ## Report this to the AC_PACKAGE_NAME lists. ##
20192 ## ------------------------------------------ ##
20195 sed "s/^/$as_me: WARNING: /" >&2
20198 echo "$as_me:$LINENO: checking for $ac_header" >&5
20199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 eval "$as_ac_Header=\$ac_header_preproc"
20205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20210 cat >>confdefs.h
<<_ACEOF
20211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20228 for ac_header
in com_err.h
20230 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20232 echo "$as_me:$LINENO: checking for $ac_header" >&5
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20240 # Is the header compilable?
20241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20243 cat >conftest.
$ac_ext <<_ACEOF
20246 cat confdefs.h
>>conftest.
$ac_ext
20247 cat >>conftest.
$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 $ac_includes_default
20250 #include <$ac_header>
20252 rm -f conftest.
$ac_objext
20253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20254 (eval $ac_compile) 2>conftest.er1
20256 grep -v '^ *+' conftest.er1
>conftest.err
20258 cat conftest.err
>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } &&
20261 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try
='test -s conftest.$ac_objext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_header_compiler
=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.
$ac_ext >&5
20278 ac_header_compiler
=no
20280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20282 echo "${ECHO_T}$ac_header_compiler" >&6
20284 # Is the header present?
20285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20287 cat >conftest.
$ac_ext <<_ACEOF
20290 cat confdefs.h
>>conftest.
$ac_ext
20291 cat >>conftest.
$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 #include <$ac_header>
20295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20296 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20298 grep -v '^ *+' conftest.er1
>conftest.err
20300 cat conftest.err
>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } >/dev
/null
; then
20303 if test -s conftest.err
; then
20304 ac_cpp_err
=$ac_c_preproc_warn_flag
20305 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20312 if test -z "$ac_cpp_err"; then
20313 ac_header_preproc
=yes
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.
$ac_ext >&5
20318 ac_header_preproc
=no
20320 rm -f conftest.err conftest.
$ac_ext
20321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20322 echo "${ECHO_T}$ac_header_preproc" >&6
20324 # So? What about this header?
20325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20331 ac_header_preproc
=yes
20334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20348 ## ------------------------------------------ ##
20349 ## Report this to the AC_PACKAGE_NAME lists. ##
20350 ## ------------------------------------------ ##
20353 sed "s/^/$as_me: WARNING: /" >&2
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 eval "$as_ac_Header=\$ac_header_preproc"
20363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20368 cat >>confdefs.h
<<_ACEOF
20369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20378 # Solaris requires -lintl if you want strerror (which calls dgettext)
20379 # to return localized messages.
20381 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20382 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20383 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20386 ac_check_lib_save_LIBS
=$LIBS
20387 LIBS
="-lintl $LIBS"
20388 cat >conftest.
$ac_ext <<_ACEOF
20391 cat confdefs.h
>>conftest.
$ac_ext
20392 cat >>conftest.
$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20395 /* Override any gcc2 internal prototype to avoid an error. */
20399 /* We use char because int might match the return type of a gcc2
20400 builtin and then its argument prototype would still apply. */
20410 rm -f conftest.
$ac_objext conftest
$ac_exeext
20411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20412 (eval $ac_link) 2>conftest.er1
20414 grep -v '^ *+' conftest.er1
>conftest.err
20416 cat conftest.err
>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
20419 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } &&
20425 { ac_try
='test -s conftest$ac_exeext'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_cv_lib_intl_dgettext
=yes
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.
$ac_ext >&5
20436 ac_cv_lib_intl_dgettext
=no
20438 rm -f conftest.err conftest.
$ac_objext \
20439 conftest
$ac_exeext conftest.
$ac_ext
20440 LIBS
=$ac_check_lib_save_LIBS
20442 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20443 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20444 if test $ac_cv_lib_intl_dgettext = yes; then
20445 cat >>confdefs.h
<<_ACEOF
20446 #define HAVE_LIBINTL 1
20449 LIBS
="-lintl $LIBS"
20454 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20455 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20456 if test "${emacs_cv_localtime_cache+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 if test x
$ac_cv_func_tzset = xyes
; then
20460 if test "$cross_compiling" = yes; then
20461 # If we have tzset, assume the worst when cross-compiling.
20462 emacs_cv_localtime_cache
=yes
20464 cat >conftest.
$ac_ext <<_ACEOF
20467 cat confdefs.h
>>conftest.
$ac_ext
20468 cat >>conftest.
$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20471 extern char **environ;
20475 for (to = from = environ; (*to = *from); from++)
20476 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20479 char TZ_GMT0[] = "TZ=GMT0";
20480 char TZ_PST8[] = "TZ=PST8";
20483 time_t now = time ((time_t *) 0);
20484 int hour_GMT0, hour_unset;
20485 if (putenv (TZ_GMT0) != 0)
20487 hour_GMT0 = localtime (&now)->tm_hour;
20489 hour_unset = localtime (&now)->tm_hour;
20490 if (putenv (TZ_PST8) != 0)
20492 if (localtime (&now)->tm_hour == hour_GMT0)
20495 if (localtime (&now)->tm_hour != hour_unset)
20500 rm -f conftest
$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 emacs_cv_localtime_cache
=no
20513 echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.
$ac_ext >&5
20517 ( exit $ac_status )
20518 emacs_cv_localtime_cache
=yes
20520 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20523 # If we lack tzset, report that localtime does not cache TZ,
20524 # since we can't invalidate the cache if we don't have tzset.
20525 emacs_cv_localtime_cache
=no
20528 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20529 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20530 if test $emacs_cv_localtime_cache = yes; then
20532 cat >>confdefs.h
<<\_ACEOF
20533 #define LOCALTIME_CACHE 1
20538 if test "x$HAVE_TIMEVAL" = xyes
; then
20540 for ac_func
in gettimeofday
20542 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20543 echo "$as_me:$LINENO: checking for $ac_func" >&5
20544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20545 if eval "test \"\${$as_ac_var+set}\" = set"; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 cat >conftest.
$ac_ext <<_ACEOF
20551 cat confdefs.h
>>conftest.
$ac_ext
20552 cat >>conftest.
$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20556 #define $ac_func innocuous_$ac_func
20558 /* System header to define __stub macros and hopefully few prototypes,
20559 which can conflict with char $ac_func (); below.
20560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20561 <limits.h> exists even on freestanding compilers. */
20564 # include <limits.h>
20566 # include <assert.h>
20571 /* Override any gcc2 internal prototype to avoid an error. */
20576 /* We use char because int might match the return type of a gcc2
20577 builtin and then its argument prototype would still apply. */
20579 /* The GNU C library defines this for functions which it implements
20580 to always fail with ENOSYS. Some functions are actually named
20581 something starting with __ and the normal name is an alias. */
20582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20585 char (*f) () = $ac_func;
20594 return f != $ac_func;
20599 rm -f conftest.
$ac_objext conftest
$ac_exeext
20600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20601 (eval $ac_link) 2>conftest.er1
20603 grep -v '^ *+' conftest.er1
>conftest.err
20605 cat conftest.err
>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
20608 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; } &&
20614 { ac_try
='test -s conftest$ac_exeext'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 eval "$as_ac_var=yes"
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.
$ac_ext >&5
20625 eval "$as_ac_var=no"
20627 rm -f conftest.err conftest.
$ac_objext \
20628 conftest
$ac_exeext conftest.
$ac_ext
20630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20632 if test `eval echo '${'$as_ac_var'}'` = yes; then
20633 cat >>confdefs.h
<<_ACEOF
20634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20640 if test $ac_cv_func_gettimeofday = yes; then
20641 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20642 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20643 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 cat >conftest.
$ac_ext <<_ACEOF
20649 cat confdefs.h
>>conftest.
$ac_ext
20650 cat >>conftest.
$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20653 #ifdef TIME_WITH_SYS_TIME
20654 #include <sys/time.h>
20657 #ifdef HAVE_SYS_TIME_H
20658 #include <sys/time.h>
20666 struct timeval time;
20667 gettimeofday (&time, 0);
20672 rm -f conftest.
$ac_objext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20674 (eval $ac_compile) 2>conftest.er1
20676 grep -v '^ *+' conftest.er1
>conftest.err
20678 cat conftest.err
>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; } &&
20687 { ac_try
='test -s conftest.$ac_objext'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20693 emacs_cv_gettimeofday_two_arguments
=yes
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.
$ac_ext >&5
20698 emacs_cv_gettimeofday_two_arguments
=no
20700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20702 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20703 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20704 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20706 cat >>confdefs.h
<<\_ACEOF
20707 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20714 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20715 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20716 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20717 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 cat >conftest.
$ac_ext <<_ACEOF
20723 cat confdefs.h
>>conftest.
$ac_ext
20724 cat >>conftest.
$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 #include <sys/types.h>
20727 #include <$ac_cv_struct_tm>
20733 static struct tm ac_aggr;
20734 if (ac_aggr.tm_zone)
20740 rm -f conftest.
$ac_objext
20741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20742 (eval $ac_compile) 2>conftest.er1
20744 grep -v '^ *+' conftest.er1
>conftest.err
20746 cat conftest.err
>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try
='test -s conftest.$ac_objext'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_cv_member_struct_tm_tm_zone
=yes
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.
$ac_ext >&5
20766 cat >conftest.
$ac_ext <<_ACEOF
20769 cat confdefs.h
>>conftest.
$ac_ext
20770 cat >>conftest.
$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 #include <sys/types.h>
20773 #include <$ac_cv_struct_tm>
20779 static struct tm ac_aggr;
20780 if (sizeof ac_aggr.tm_zone)
20786 rm -f conftest.
$ac_objext
20787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20788 (eval $ac_compile) 2>conftest.er1
20790 grep -v '^ *+' conftest.er1
>conftest.err
20792 cat conftest.err
>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } &&
20795 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try
='test -s conftest.$ac_objext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 ac_cv_member_struct_tm_tm_zone
=yes
20809 echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.
$ac_ext >&5
20812 ac_cv_member_struct_tm_tm_zone
=no
20814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20818 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20819 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20820 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20822 cat >>confdefs.h
<<_ACEOF
20823 #define HAVE_STRUCT_TM_TM_ZONE 1
20829 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20831 cat >>confdefs.h
<<\_ACEOF
20832 #define HAVE_TM_ZONE 1
20836 echo "$as_me:$LINENO: checking for tzname" >&5
20837 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20838 if test "${ac_cv_var_tzname+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 cat >conftest.
$ac_ext <<_ACEOF
20844 cat confdefs.h
>>conftest.
$ac_ext
20845 cat >>conftest.
$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20848 #ifndef tzname /* For SGI. */
20849 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20860 rm -f conftest.
$ac_objext conftest
$ac_exeext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20862 (eval $ac_link) 2>conftest.er1
20864 grep -v '^ *+' conftest.er1
>conftest.err
20866 cat conftest.err
>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; } &&
20875 { ac_try
='test -s conftest$ac_exeext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 ac_cv_var_tzname
=yes
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.
$ac_ext >&5
20886 ac_cv_var_tzname
=no
20888 rm -f conftest.err conftest.
$ac_objext \
20889 conftest
$ac_exeext conftest.
$ac_ext
20891 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20892 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20893 if test $ac_cv_var_tzname = yes; then
20895 cat >>confdefs.h
<<\_ACEOF
20896 #define HAVE_TZNAME 1
20903 if test "$ac_cv_func_gettimeofday" = yes; then
20904 echo "$as_me:$LINENO: checking for struct timezone" >&5
20905 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20906 if test "${emacs_cv_struct_timezone+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 cat >conftest.
$ac_ext <<_ACEOF
20912 cat confdefs.h
>>conftest.
$ac_ext
20913 cat >>conftest.
$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <sys/time.h>
20919 struct timezone tz;
20924 rm -f conftest.
$ac_objext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20926 (eval $ac_compile) 2>conftest.er1
20928 grep -v '^ *+' conftest.er1
>conftest.err
20930 cat conftest.err
>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; } &&
20939 { ac_try
='test -s conftest.$ac_objext'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; }; then
20945 if test "$cross_compiling" = yes; then
20946 emacs_cv_struct_timezone
=yes
20948 cat >conftest.
$ac_ext <<_ACEOF
20951 cat confdefs.h
>>conftest.
$ac_ext
20952 cat >>conftest.
$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20955 #ifdef TIME_WITH_SYS_TIME
20956 #include <sys/time.h>
20959 #ifdef HAVE_SYS_TIME_H
20960 #include <sys/time.h>
20966 struct timeval time;
20967 struct timezone dummy;
20968 exit (gettimeofday (&time, &dummy));
20971 rm -f conftest
$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973 (eval $ac_link) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982 emacs_cv_struct_timezone
=yes
20984 echo "$as_me: program exited with status $ac_status" >&5
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.
$ac_ext >&5
20988 ( exit $ac_status )
20989 emacs_cv_struct_timezone
=no
20991 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.
$ac_ext >&5
20997 emacs_cv_struct_timezone
=no
20999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21001 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21002 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21006 echo "$as_me:$LINENO: checking for socket" >&5
21007 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21008 if test "${ac_cv_func_socket+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 cat >conftest.
$ac_ext <<_ACEOF
21014 cat confdefs.h
>>conftest.
$ac_ext
21015 cat >>conftest.
$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21019 #define socket innocuous_socket
21021 /* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char socket (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21027 # include <limits.h>
21029 # include <assert.h>
21034 /* Override any gcc2 internal prototype to avoid an error. */
21039 /* We use char because int might match the return type of a gcc2
21040 builtin and then its argument prototype would still apply. */
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined (__stub_socket) || defined (__stub___socket)
21048 char (*f) () = socket;
21057 return f != socket;
21062 rm -f conftest.
$ac_objext conftest
$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>conftest.er1
21066 grep -v '^ *+' conftest.er1
>conftest.err
21068 cat conftest.err
>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try
='test -s conftest$ac_exeext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_cv_func_socket
=yes
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.
$ac_ext >&5
21088 ac_cv_func_socket
=no
21090 rm -f conftest.err conftest.
$ac_objext \
21091 conftest
$ac_exeext conftest.
$ac_ext
21093 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21094 echo "${ECHO_T}$ac_cv_func_socket" >&6
21095 if test $ac_cv_func_socket = yes; then
21101 if test $ok_so_far = yes; then
21102 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21103 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21104 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21105 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21109 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21111 # Is the header compilable?
21112 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21113 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21114 cat >conftest.
$ac_ext <<_ACEOF
21117 cat confdefs.h
>>conftest.
$ac_ext
21118 cat >>conftest.
$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 $ac_includes_default
21121 #include <netinet/in.h>
21123 rm -f conftest.
$ac_objext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21125 (eval $ac_compile) 2>conftest.er1
21127 grep -v '^ *+' conftest.er1
>conftest.err
21129 cat conftest.err
>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } &&
21132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; } &&
21138 { ac_try
='test -s conftest.$ac_objext'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; }; then
21144 ac_header_compiler
=yes
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.
$ac_ext >&5
21149 ac_header_compiler
=no
21151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21153 echo "${ECHO_T}$ac_header_compiler" >&6
21155 # Is the header present?
21156 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21157 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21158 cat >conftest.
$ac_ext <<_ACEOF
21161 cat confdefs.h
>>conftest.
$ac_ext
21162 cat >>conftest.
$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 #include <netinet/in.h>
21166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21169 grep -v '^ *+' conftest.er1
>conftest.err
21171 cat conftest.err
>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } >/dev
/null
; then
21174 if test -s conftest.err
; then
21175 ac_cpp_err
=$ac_c_preproc_warn_flag
21176 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21183 if test -z "$ac_cpp_err"; then
21184 ac_header_preproc
=yes
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.
$ac_ext >&5
21189 ac_header_preproc
=no
21191 rm -f conftest.err conftest.
$ac_ext
21192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21193 echo "${ECHO_T}$ac_header_preproc" >&6
21195 # So? What about this header?
21196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21198 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21199 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21201 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21202 ac_header_preproc
=yes
21205 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21206 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21208 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21209 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21210 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21212 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21214 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21216 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21219 ## ------------------------------------------ ##
21220 ## Report this to the AC_PACKAGE_NAME lists. ##
21221 ## ------------------------------------------ ##
21224 sed "s/^/$as_me: WARNING: /" >&2
21227 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21228 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21229 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 ac_cv_header_netinet_in_h
=$ac_header_preproc
21234 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21235 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21238 if test $ac_cv_header_netinet_in_h = yes; then
21246 if test $ok_so_far = yes; then
21247 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21248 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21249 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21250 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21254 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21256 # Is the header compilable?
21257 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21258 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21259 cat >conftest.
$ac_ext <<_ACEOF
21262 cat confdefs.h
>>conftest.
$ac_ext
21263 cat >>conftest.
$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 $ac_includes_default
21266 #include <arpa/inet.h>
21268 rm -f conftest.
$ac_objext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>conftest.er1
21272 grep -v '^ *+' conftest.er1
>conftest.err
21274 cat conftest.err
>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try
='test -s conftest.$ac_objext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_header_compiler
=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.
$ac_ext >&5
21294 ac_header_compiler
=no
21296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298 echo "${ECHO_T}$ac_header_compiler" >&6
21300 # Is the header present?
21301 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21302 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21303 cat >conftest.
$ac_ext <<_ACEOF
21306 cat confdefs.h
>>conftest.
$ac_ext
21307 cat >>conftest.
$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <arpa/inet.h>
21311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21314 grep -v '^ *+' conftest.er1
>conftest.err
21316 cat conftest.err
>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } >/dev
/null
; then
21319 if test -s conftest.err
; then
21320 ac_cpp_err
=$ac_c_preproc_warn_flag
21321 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21328 if test -z "$ac_cpp_err"; then
21329 ac_header_preproc
=yes
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.
$ac_ext >&5
21334 ac_header_preproc
=no
21336 rm -f conftest.err conftest.
$ac_ext
21337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21343 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21344 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21346 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc
=yes
21350 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21355 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21357 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21359 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21361 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21364 ## ------------------------------------------ ##
21365 ## Report this to the AC_PACKAGE_NAME lists. ##
21366 ## ------------------------------------------ ##
21369 sed "s/^/$as_me: WARNING: /" >&2
21372 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21373 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21374 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 ac_cv_header_arpa_inet_h
=$ac_header_preproc
21379 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21380 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21383 if test $ac_cv_header_arpa_inet_h = yes; then
21391 if test $ok_so_far = yes; then
21393 cat >>confdefs.h
<<\_ACEOF
21394 #define HAVE_INET_SOCKETS 1
21400 for ac_header
in sys
/ioctl.h
21402 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21404 echo "$as_me:$LINENO: checking for $ac_header" >&5
21405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21412 # Is the header compilable?
21413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21415 cat >conftest.
$ac_ext <<_ACEOF
21418 cat confdefs.h
>>conftest.
$ac_ext
21419 cat >>conftest.
$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 $ac_includes_default
21422 #include <$ac_header>
21424 rm -f conftest.
$ac_objext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21426 (eval $ac_compile) 2>conftest.er1
21428 grep -v '^ *+' conftest.er1
>conftest.err
21430 cat conftest.err
>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; } &&
21439 { ac_try
='test -s conftest.$ac_objext'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; }; then
21445 ac_header_compiler
=yes
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.
$ac_ext >&5
21450 ac_header_compiler
=no
21452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21454 echo "${ECHO_T}$ac_header_compiler" >&6
21456 # Is the header present?
21457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21459 cat >conftest.
$ac_ext <<_ACEOF
21462 cat confdefs.h
>>conftest.
$ac_ext
21463 cat >>conftest.
$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 #include <$ac_header>
21467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21470 grep -v '^ *+' conftest.er1
>conftest.err
21472 cat conftest.err
>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } >/dev
/null
; then
21475 if test -s conftest.err
; then
21476 ac_cpp_err
=$ac_c_preproc_warn_flag
21477 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21484 if test -z "$ac_cpp_err"; then
21485 ac_header_preproc
=yes
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.
$ac_ext >&5
21490 ac_header_preproc
=no
21492 rm -f conftest.err conftest.
$ac_ext
21493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21494 echo "${ECHO_T}$ac_header_preproc" >&6
21496 # So? What about this header?
21497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21503 ac_header_preproc
=yes
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21520 ## ------------------------------------------ ##
21521 ## Report this to the AC_PACKAGE_NAME lists. ##
21522 ## ------------------------------------------ ##
21525 sed "s/^/$as_me: WARNING: /" >&2
21528 echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 eval "$as_ac_Header=\$ac_header_preproc"
21535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21540 cat >>confdefs.h
<<_ACEOF
21541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21549 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
21551 cat >>confdefs.h
<<\_ACEOF
21552 #define HAVE_AIX_SMT_EXP 1
21557 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21558 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21559 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
21560 echo "$as_me:$LINENO: result: yes" >&5
21561 echo "${ECHO_T}yes" >&6
21563 cat >>confdefs.h
<<\_ACEOF
21564 #define HAVE_DEV_PTMX 1
21568 echo "$as_me:$LINENO: result: no" >&5
21569 echo "${ECHO_T}no" >&6
21572 echo "$as_me:$LINENO: checking for pid_t" >&5
21573 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21574 if test "${ac_cv_type_pid_t+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >conftest.
$ac_ext <<_ACEOF
21580 cat confdefs.h
>>conftest.
$ac_ext
21581 cat >>conftest.
$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21589 if (sizeof (pid_t))
21595 rm -f conftest.
$ac_objext
21596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21597 (eval $ac_compile) 2>conftest.er1
21599 grep -v '^ *+' conftest.er1
>conftest.err
21601 cat conftest.err
>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } &&
21604 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; } &&
21610 { ac_try
='test -s conftest.$ac_objext'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616 ac_cv_type_pid_t
=yes
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.
$ac_ext >&5
21621 ac_cv_type_pid_t
=no
21623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21625 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21626 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21627 if test $ac_cv_type_pid_t = yes; then
21631 cat >>confdefs.h
<<_ACEOF
21639 for ac_header
in unistd.h vfork.h
21641 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21643 echo "$as_me:$LINENO: checking for $ac_header" >&5
21644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21646 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21651 # Is the header compilable?
21652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21654 cat >conftest.
$ac_ext <<_ACEOF
21657 cat confdefs.h
>>conftest.
$ac_ext
21658 cat >>conftest.
$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 $ac_includes_default
21661 #include <$ac_header>
21663 rm -f conftest.
$ac_objext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21667 grep -v '^ *+' conftest.er1
>conftest.err
21669 cat conftest.err
>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try
='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_header_compiler
=yes
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.
$ac_ext >&5
21689 ac_header_compiler
=no
21691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21693 echo "${ECHO_T}$ac_header_compiler" >&6
21695 # Is the header present?
21696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21698 cat >conftest.
$ac_ext <<_ACEOF
21701 cat confdefs.h
>>conftest.
$ac_ext
21702 cat >>conftest.
$ac_ext <<_ACEOF
21703 /* end confdefs.h. */
21704 #include <$ac_header>
21706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21709 grep -v '^ *+' conftest.er1
>conftest.err
21711 cat conftest.err
>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev
/null
; then
21714 if test -s conftest.err
; then
21715 ac_cpp_err
=$ac_c_preproc_warn_flag
21716 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21723 if test -z "$ac_cpp_err"; then
21724 ac_header_preproc
=yes
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.
$ac_ext >&5
21729 ac_header_preproc
=no
21731 rm -f conftest.err conftest.
$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21733 echo "${ECHO_T}$ac_header_preproc" >&6
21735 # So? What about this header?
21736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21742 ac_header_preproc
=yes
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21759 ## ------------------------------------------ ##
21760 ## Report this to the AC_PACKAGE_NAME lists. ##
21761 ## ------------------------------------------ ##
21764 sed "s/^/$as_me: WARNING: /" >&2
21767 echo "$as_me:$LINENO: checking for $ac_header" >&5
21768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 eval "$as_ac_Header=\$ac_header_preproc"
21774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21779 cat >>confdefs.h
<<_ACEOF
21780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21789 for ac_func
in fork vfork
21791 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21792 echo "$as_me:$LINENO: checking for $ac_func" >&5
21793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21794 if eval "test \"\${$as_ac_var+set}\" = set"; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21797 cat >conftest.
$ac_ext <<_ACEOF
21800 cat confdefs.h
>>conftest.
$ac_ext
21801 cat >>conftest.
$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21805 #define $ac_func innocuous_$ac_func
21807 /* System header to define __stub macros and hopefully few prototypes,
21808 which can conflict with char $ac_func (); below.
21809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21810 <limits.h> exists even on freestanding compilers. */
21813 # include <limits.h>
21815 # include <assert.h>
21820 /* Override any gcc2 internal prototype to avoid an error. */
21825 /* We use char because int might match the return type of a gcc2
21826 builtin and then its argument prototype would still apply. */
21828 /* The GNU C library defines this for functions which it implements
21829 to always fail with ENOSYS. Some functions are actually named
21830 something starting with __ and the normal name is an alias. */
21831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21834 char (*f) () = $ac_func;
21843 return f != $ac_func;
21848 rm -f conftest.
$ac_objext conftest
$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>conftest.er1
21852 grep -v '^ *+' conftest.er1
>conftest.err
21854 cat conftest.err
>&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } &&
21857 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try
='test -s conftest$ac_exeext'
21864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 eval "$as_ac_var=yes"
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.
$ac_ext >&5
21874 eval "$as_ac_var=no"
21876 rm -f conftest.err conftest.
$ac_objext \
21877 conftest
$ac_exeext conftest.
$ac_ext
21879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21881 if test `eval echo '${'$as_ac_var'}'` = yes; then
21882 cat >>confdefs.h
<<_ACEOF
21883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21889 if test "x$ac_cv_func_fork" = xyes
; then
21890 echo "$as_me:$LINENO: checking for working fork" >&5
21891 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21892 if test "${ac_cv_func_fork_works+set}" = set; then
21893 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 if test "$cross_compiling" = yes; then
21896 ac_cv_func_fork_works
=cross
21898 cat >conftest.
$ac_ext <<_ACEOF
21901 cat confdefs.h
>>conftest.
$ac_ext
21902 cat >>conftest.
$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21909 /* By Ruediger Kuhlmann. */
21918 rm -f conftest
$ac_exeext
21919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 ac_cv_func_fork_works
=yes
21931 echo "$as_me: program exited with status $ac_status" >&5
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.
$ac_ext >&5
21935 ( exit $ac_status )
21936 ac_cv_func_fork_works
=no
21938 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21941 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21942 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21945 ac_cv_func_fork_works
=$ac_cv_func_fork
21947 if test "x$ac_cv_func_fork_works" = xcross
; then
21949 *-*-amigaos* |
*-*-msdosdjgpp*)
21950 # Override, as these systems have only a dummy fork() stub
21951 ac_cv_func_fork_works
=no
21954 ac_cv_func_fork_works
=yes
21957 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21958 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21960 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21961 if test "x$ac_cv_func_vfork" = xyes
; then
21962 echo "$as_me:$LINENO: checking for working vfork" >&5
21963 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21964 if test "${ac_cv_func_vfork_works+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 if test "$cross_compiling" = yes; then
21968 ac_cv_func_vfork_works
=cross
21970 cat >conftest.
$ac_ext <<_ACEOF
21973 cat confdefs.h
>>conftest.
$ac_ext
21974 cat >>conftest.
$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 /* Thanks to Paul Eggert for this test. */
21978 #include <stdlib.h>
21979 #include <sys/types.h>
21980 #include <sys/stat.h>
21981 #include <sys/wait.h>
21983 # include <unistd.h>
21986 # include <vfork.h>
21988 /* On some sparc systems, changes by the child to local and incoming
21989 argument registers are propagated back to the parent. The compiler
21990 is told about this with #include <vfork.h>, but some compilers
21991 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21992 static variable whose address is put into a register that is
21993 clobbered by the vfork. */
21996 sparc_address_test (int arg)
21998 sparc_address_test (arg) int arg;
22001 static pid_t child;
22019 pid_t parent = getpid ();
22022 sparc_address_test (0);
22027 /* Here is another test for sparc vfork register problems. This
22028 test uses lots of local variables, at least as many local
22029 variables as main has allocated so far including compiler
22030 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22031 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22032 reuse the register of parent for one of the local variables,
22033 since it will think that parent can't possibly be used any more
22034 in this routine. Assigning to the local variable will thus
22035 munge parent in the parent process. */
22037 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22038 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22039 /* Convince the compiler that p..p7 are live; otherwise, it might
22040 use the same hardware register for all 8 local variables. */
22041 if (p != p1 || p != p2 || p != p3 || p != p4
22042 || p != p5 || p != p6 || p != p7)
22045 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22046 from child file descriptors. If the child closes a descriptor
22047 before it execs or exits, this munges the parent's descriptor
22048 as well. Test for this by closing stdout in the child. */
22049 _exit(close(fileno(stdout)) != 0);
22054 while (wait(&status) != child)
22057 /* Was there some problem with vforking? */
22060 /* Did the child fail? (This shouldn't happen.) */
22063 /* Did the vfork/compiler bug occur? */
22064 || parent != getpid()
22066 /* Did the file descriptor bug occur? */
22067 || fstat(fileno(stdout), &st) != 0
22072 rm -f conftest
$ac_exeext
22073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22074 (eval $ac_link) 2>&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 ac_cv_func_vfork_works
=yes
22085 echo "$as_me: program exited with status $ac_status" >&5
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.
$ac_ext >&5
22089 ( exit $ac_status )
22090 ac_cv_func_vfork_works
=no
22092 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22095 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22096 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22099 if test "x$ac_cv_func_fork_works" = xcross
; then
22100 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22101 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22102 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22105 if test "x$ac_cv_func_vfork_works" = xyes
; then
22107 cat >>confdefs.h
<<\_ACEOF
22108 #define HAVE_WORKING_VFORK 1
22113 cat >>confdefs.h
<<\_ACEOF
22118 if test "x$ac_cv_func_fork_works" = xyes
; then
22120 cat >>confdefs.h
<<\_ACEOF
22121 #define HAVE_WORKING_FORK 1
22127 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22128 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22129 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22130 echo $ECHO_N "(cached) $ECHO_C" >&6
22132 cat >conftest.
$ac_ext <<_ACEOF
22135 cat confdefs.h
>>conftest.
$ac_ext
22136 cat >>conftest.
$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 #include <langinfo.h>
22142 char* cs = nl_langinfo(CODESET);
22147 rm -f conftest.
$ac_objext conftest
$ac_exeext
22148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22149 (eval $ac_link) 2>conftest.er1
22151 grep -v '^ *+' conftest.er1
>conftest.err
22153 cat conftest.err
>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } &&
22156 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; } &&
22162 { ac_try
='test -s conftest$ac_exeext'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; }; then
22168 emacs_cv_langinfo_codeset
=yes
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.
$ac_ext >&5
22173 emacs_cv_langinfo_codeset
=no
22175 rm -f conftest.err conftest.
$ac_objext \
22176 conftest
$ac_exeext conftest.
$ac_ext
22179 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22180 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22181 if test $emacs_cv_langinfo_codeset = yes; then
22183 cat >>confdefs.h
<<\_ACEOF
22184 #define HAVE_LANGINFO_CODESET 1
22189 echo "$as_me:$LINENO: checking for size_t" >&5
22190 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22191 if test "${ac_cv_type_size_t+set}" = set; then
22192 echo $ECHO_N "(cached) $ECHO_C" >&6
22194 cat >conftest.
$ac_ext <<_ACEOF
22197 cat confdefs.h
>>conftest.
$ac_ext
22198 cat >>conftest.
$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 $ac_includes_default
22206 if (sizeof (size_t))
22212 rm -f conftest.
$ac_objext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22214 (eval $ac_compile) 2>conftest.er1
22216 grep -v '^ *+' conftest.er1
>conftest.err
22218 cat conftest.err
>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } &&
22221 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; } &&
22227 { ac_try
='test -s conftest.$ac_objext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 ac_cv_type_size_t
=yes
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.
$ac_ext >&5
22238 ac_cv_type_size_t
=no
22240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22242 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22243 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22244 if test $ac_cv_type_size_t = yes; then
22246 cat >>confdefs.h
<<_ACEOF
22247 #define HAVE_SIZE_T 1
22254 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22255 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22256 if test "${ac_cv_type_mbstate_t+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 cat >conftest.
$ac_ext <<_ACEOF
22262 cat confdefs.h
>>conftest.
$ac_ext
22263 cat >>conftest.
$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22265 $ac_includes_default
22266 # include <wchar.h>
22270 mbstate_t x; return sizeof x;
22275 rm -f conftest.
$ac_objext
22276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22277 (eval $ac_compile) 2>conftest.er1
22279 grep -v '^ *+' conftest.er1
>conftest.err
22281 cat conftest.err
>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } &&
22284 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try
='test -s conftest.$ac_objext'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 ac_cv_type_mbstate_t
=yes
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.
$ac_ext >&5
22301 ac_cv_type_mbstate_t
=no
22303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22305 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22306 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22307 if test $ac_cv_type_mbstate_t = yes; then
22309 cat >>confdefs.h
<<\_ACEOF
22310 #define HAVE_MBSTATE_T 1
22315 cat >>confdefs.h
<<\_ACEOF
22316 #define mbstate_t int
22321 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22322 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22323 if test "${emacs_cv_c_restrict+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22326 cat >conftest.
$ac_ext <<_ACEOF
22329 cat confdefs.h
>>conftest.
$ac_ext
22330 cat >>conftest.
$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 void fred (int *restrict x);
22341 rm -f conftest.
$ac_objext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22345 grep -v '^ *+' conftest.er1
>conftest.err
22347 cat conftest.err
>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; } &&
22356 { ac_try
='test -s conftest.$ac_objext'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 emacs_cv_c_restrict
=yes
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.
$ac_ext >&5
22367 cat >conftest.
$ac_ext <<_ACEOF
22370 cat confdefs.h
>>conftest.
$ac_ext
22371 cat >>conftest.
$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22373 void fred (int *__restrict x);
22382 rm -f conftest.
$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22386 grep -v '^ *+' conftest.er1
>conftest.err
22388 cat conftest.err
>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; } &&
22397 { ac_try
='test -s conftest.$ac_objext'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 emacs_cv_c_restrict
=__restrict
22405 echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.
$ac_ext >&5
22408 emacs_cv_c_restrict
=no
22410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22414 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22415 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22416 case "$emacs_cv_c_restrict" in
22417 yes) emacs_restrict
=restrict
;;
22418 no
) emacs_restrict
="";;
22419 *) emacs_restrict
="$emacs_cv_c_restrict";;
22421 if test "$emacs_restrict" != __restrict
; then
22423 cat >>confdefs.h
<<_ACEOF
22424 #define __restrict $emacs_restrict
22429 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22430 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22431 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 cat >conftest.
$ac_ext <<_ACEOF
22437 cat confdefs.h
>>conftest.
$ac_ext
22438 cat >>conftest.
$ac_ext <<_ACEOF
22439 /* end confdefs.h. */
22440 void fred (int x[__restrict]);
22449 rm -f conftest.
$ac_objext
22450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22451 (eval $ac_compile) 2>conftest.er1
22453 grep -v '^ *+' conftest.er1
>conftest.err
22455 cat conftest.err
>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
22458 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try
='test -s conftest.$ac_objext'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22470 emacs_cv_c_restrict_arr
=yes
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.
$ac_ext >&5
22475 emacs_cv_c_restrict_arr
=no
22477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22479 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22480 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22481 if test "$emacs_cv_c_restrict_arr" = yes; then
22483 cat >>confdefs.h
<<\_ACEOF
22484 #define __restrict_arr __restrict
22491 # Set up the CFLAGS for real compilation, so we can substitute it.
22492 CFLAGS
="$REAL_CFLAGS"
22493 CPPFLAGS
="$REAL_CPPFLAGS"
22495 #### Find out which version of Emacs this is.
22496 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22497 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22498 if test x
"${version}" = x
; then
22499 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22500 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22501 { (exit 1); exit 1; }; }
22504 ### Specify what sort of things we'll be editing into Makefile and config.h.
22505 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22541 cat >>confdefs.h
<<_ACEOF
22542 #define EMACS_CONFIGURATION "${canonical}"
22546 cat >>confdefs.h
<<_ACEOF
22547 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22551 cat >>confdefs.h
<<_ACEOF
22552 #define config_machfile "${machfile}"
22556 cat >>confdefs.h
<<_ACEOF
22557 #define config_opsysfile "${opsysfile}"
22561 cat >>confdefs.h
<<_ACEOF
22562 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22566 cat >>confdefs.h
<<_ACEOF
22567 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22571 cat >>confdefs.h
<<_ACEOF
22572 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22576 cat >>confdefs.h
<<_ACEOF
22577 #define UNEXEC_SRC ${UNEXEC_SRC}
22581 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22583 cat >>confdefs.h
<<\_ACEOF
22584 #define HAVE_X_WINDOWS 1
22588 if test "${USE_X_TOOLKIT}" != "none" ; then
22590 cat >>confdefs.h
<<\_ACEOF
22591 #define USE_X_TOOLKIT 1
22595 if test "${HAVE_X11}" = "yes" ; then
22597 cat >>confdefs.h
<<\_ACEOF
22602 if test "${HAVE_XFREE386}" = "yes" ; then
22604 cat >>confdefs.h
<<\_ACEOF
22605 #define HAVE_XFREE386 1
22609 if test "${HAVE_MENUS}" = "yes" ; then
22611 cat >>confdefs.h
<<\_ACEOF
22612 #define HAVE_MENUS 1
22616 if test "${GNU_MALLOC}" = "yes" ; then
22618 cat >>confdefs.h
<<\_ACEOF
22619 #define GNU_MALLOC 1
22623 if test "${REL_ALLOC}" = "yes" ; then
22625 cat >>confdefs.h
<<\_ACEOF
22626 #define REL_ALLOC 1
22635 #### Report on what we decided to do.
22636 #### Report GTK as a toolkit, even if it doesn't use Xt.
22637 #### It makes printing result more understandable as using GTK sets
22638 #### toolkit_scroll_bars to yes by default.
22639 if test "${HAVE_GTK}" = "yes"; then
22644 Configured for \`${canonical}'.
22646 Where should the build process find the source code? ${srcdir}
22647 What operating system and machine description files should Emacs use?
22648 \`${opsysfile}' and \`${machfile}'
22649 What compiler should emacs be built with? ${CC} ${CFLAGS}
22650 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22651 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22652 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22653 What window system should Emacs use? ${window_system}
22654 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22656 if test -n "${x_includes}"; then
22657 echo " Where do we find X Windows header files? ${x_includes}"
22659 echo " Where do we find X Windows header files? Standard dirs"
22661 if test -n "${x_libraries}"; then
22662 echo " Where do we find X Windows libraries? ${x_libraries}"
22664 echo " Where do we find X Windows libraries? Standard dirs"
22667 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22668 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22669 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22670 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22671 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22672 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22673 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22676 if test $USE_XASSERTS = yes; then
22677 echo " Compiling with asserts turned on."
22678 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
22684 # Remove any trailing slashes in these variables.
22685 test "${prefix}" != NONE
&&
22686 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22687 test "${exec_prefix}" != NONE
&&
22688 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22690 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22691 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22692 ## from Makefile.c can correctly provide the arg `-traditional' to the
22695 cat >conftest.
$ac_ext <<_ACEOF
22698 cat confdefs.h
>>conftest.
$ac_ext
22699 cat >>conftest.
$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22704 $EGREP "yes..yes" >/dev
/null
2>&1; then
22705 CPP_NEED_TRADITIONAL
=no
22707 CPP_NEED_TRADITIONAL
=yes
22712 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"
22713 ac_config_commands
="$ac_config_commands default"
22714 cat >confcache
<<\_ACEOF
22715 # This file is a shell script that caches the results of configure
22716 # tests run on this system so they can be shared between configure
22717 # scripts and configure runs, see configure's option --config-cache.
22718 # It is not useful on other systems. If it contains results you don't
22719 # want to keep, you may remove or edit it.
22721 # config.status only pays attention to the cache file if you give it
22722 # the --recheck option to rerun configure.
22724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22726 # following values.
22730 # The following way of writing the cache mishandles newlines in values,
22731 # but we know of no workaround that is simple, portable, and efficient.
22732 # So, don't put newlines in cache variables' values.
22733 # Ultrix sh set writes to stderr and can't be redirected directly,
22734 # and sets the high bit in the cache file unless we assign to the vars.
22737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22739 # `set' does not quote correctly, so add quotes (double-quote
22740 # substitution turns \\\\ into \\, and sed turns \\ into \).
22743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22746 # `set' quotes correctly as required by POSIX, so do not add quotes.
22748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22759 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22760 if test -w $cache_file; then
22761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22762 cat confcache
>$cache_file
22764 echo "not updating unwritable cache $cache_file"
22769 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22770 # Let make expand exec_prefix.
22771 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22775 # trailing colons and then remove the whole line if VPATH becomes empty
22776 # (actually we leave an empty line to preserve line numbers).
22777 if test "x$srcdir" = x.
; then
22778 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22779 s/:*\$(srcdir):*/:/;
22780 s/:*\${srcdir}:*/:/;
22782 s/^\([^=]*=[ ]*\):*/\1/;
22788 DEFS
=-DHAVE_CONFIG_H
22792 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22793 # 1. Remove the extension, and $U if already installed.
22794 ac_i
=`echo "$ac_i" |
22795 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22797 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22798 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22800 LIBOBJS
=$ac_libobjs
22802 LTLIBOBJS
=$ac_ltlibobjs
22806 : ${CONFIG_STATUS=./config.status}
22807 ac_clean_files_save
=$ac_clean_files
22808 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22809 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22810 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22811 cat >$CONFIG_STATUS <<_ACEOF
22813 # Generated by $as_me.
22814 # Run this file to recreate the current configuration.
22815 # Compiler output produced by configure, useful for debugging
22816 # configure, is in config.log if it exists.
22819 ac_cs_recheck=false
22821 SHELL=\${CONFIG_SHELL-$SHELL}
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22825 ## --------------------- ##
22826 ## M4sh Initialization. ##
22827 ## --------------------- ##
22829 # Be Bourne compatible
22830 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22833 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22834 # is contrary to our usage. Disable this feature.
22835 alias -g '${1+"$@"}'='"$@"'
22836 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22839 DUALCASE
=1; export DUALCASE
# for MKS sh
22841 # Support unset when possible.
22842 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22849 # Work around bugs in pre-3.0 UWIN ksh.
22850 $as_unset ENV MAIL MAILPATH
22857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22859 LC_TELEPHONE LC_TIME
22861 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22862 eval $as_var=C
; export $as_var
22868 # Required to use basename.
22869 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22875 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22876 as_basename
=basename
22882 # Name of the executable.
22883 as_me
=`$as_basename "$0" ||
22884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22885 X"$0" : 'X\(//\)$' \| \
22886 X"$0" : 'X\(/\)$' \| \
22887 . : '\(.\)' 2>/dev/null ||
22889 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22890 /^X\/\(\/\/\)$/{ s//\1/; q; }
22891 /^X\/\(\/\).*/{ s//\1/; q; }
22895 # PATH needs CR, and LINENO needs CR and PATH.
22896 # Avoid depending upon Character Ranges.
22897 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22898 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22899 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22900 as_cr_digits
='0123456789'
22901 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22903 # The user is always right.
22904 if test "${PATH_SEPARATOR+set}" != set; then
22905 echo "#! /bin/sh" >conf$$.sh
22906 echo "exit 0" >>conf$$.sh
22908 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22917 as_lineno_1
=$LINENO
22918 as_lineno_2
=$LINENO
22919 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22920 test "x$as_lineno_1" != "x$as_lineno_2" &&
22921 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22922 # Find who we are. Look in the path if we contain no path at all
22925 *[\\/]* ) as_myself
=$0 ;;
22926 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22927 for as_dir
in $PATH
22930 test -z "$as_dir" && as_dir
=.
22931 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22936 # We did not find ourselves, most probably we were run as `sh COMMAND'
22937 # in which case we are not to be found in the path.
22938 if test "x$as_myself" = x
; then
22941 if test ! -f "$as_myself"; then
22942 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22943 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22944 { (exit 1); exit 1; }; }
22946 case $CONFIG_SHELL in
22948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22949 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22952 test -z "$as_dir" && as_dir
=.
22953 for as_base
in sh bash ksh sh5
; do
22956 if ("$as_dir/$as_base" -c '
22957 as_lineno_1=$LINENO
22958 as_lineno_2=$LINENO
22959 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22960 test "x$as_lineno_1" != "x$as_lineno_2" &&
22961 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22962 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22963 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22964 CONFIG_SHELL
=$as_dir/$as_base
22965 export CONFIG_SHELL
22966 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22974 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22975 # uniformly replaced by the line number. The first 'sed' inserts a
22976 # line-number line before each line; the second 'sed' does the real
22977 # work. The second script uses 'N' to pair each line-number line
22978 # with the numbered line, and appends trailing '-' during
22979 # substitution so that $LINENO is not a special case at line end.
22980 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22981 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22982 sed '=' <$as_myself |
22987 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22990 s,^['$as_cr_digits']*\n,,
22991 ' >$as_me.lineno
&&
22992 chmod +x
$as_me.lineno ||
22993 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22994 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22995 { (exit 1); exit 1; }; }
22997 # Don't try to exec as it changes $[0], causing all sort of problems
22998 # (the dirname of $[0] is not the place where we might find the
22999 # original and so on. Autoconf is especially sensible to this).
23001 # Exit status is that of the last command.
23006 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23007 *c
*,-n*) ECHO_N
= ECHO_C
='
23009 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23010 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23013 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23019 rm -f conf$$ conf$$.exe conf$$.
file
23021 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23022 # We could just check for DJGPP; but this test a) works b) is more generic
23023 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23024 if test -f conf$$.exe
; then
23025 # Don't use ln at all; we don't have any links
23030 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23035 rm -f conf$$ conf$$.exe conf$$.
file
23037 if mkdir
-p .
2>/dev
/null
; then
23040 test -d .
/-p && rmdir .
/-p
23044 as_executable_p
="test -f"
23046 # Sed expression to map a string onto a valid CPP name.
23047 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23049 # Sed expression to map a string onto a valid variable name.
23050 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23054 # We need space, tab and new line, in precisely that order.
23064 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23065 # report actual input values of CONFIG_FILES etc. instead of their
23066 # values after options handling. Logging --version etc. is OK.
23070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23071 ## Running $as_me. ##
23076 This file was extended by $as_me, which was
23077 generated by GNU Autoconf 2.59. Invocation command line was
23079 CONFIG_FILES = $CONFIG_FILES
23080 CONFIG_HEADERS = $CONFIG_HEADERS
23081 CONFIG_LINKS = $CONFIG_LINKS
23082 CONFIG_COMMANDS = $CONFIG_COMMANDS
23086 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23090 # Files that config.status was made for.
23091 if test -n "$ac_config_files"; then
23092 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23095 if test -n "$ac_config_headers"; then
23096 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23099 if test -n "$ac_config_links"; then
23100 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23103 if test -n "$ac_config_commands"; then
23104 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23110 \`$as_me' instantiates files from templates according to the
23111 current configuration.
23113 Usage: $0 [OPTIONS] [FILE]...
23115 -h, --help print this help, then exit
23116 -V, --version print version number, then exit
23117 -q, --quiet do not print progress messages
23118 -d, --debug don't remove temporary files
23119 --recheck update $as_me by reconfiguring in the same conditions
23120 --file=FILE[:TEMPLATE]
23121 instantiate the configuration file FILE
23122 --header=FILE[:TEMPLATE]
23123 instantiate the configuration header FILE
23125 Configuration files:
23128 Configuration headers:
23131 Configuration commands:
23134 Report bugs to <bug-autoconf@gnu.org>."
23137 cat >>$CONFIG_STATUS <<_ACEOF
23140 configured by $0, generated by GNU Autoconf 2.59,
23141 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23143 Copyright (C) 2003 Free Software Foundation, Inc.
23144 This config.status script is free software; the Free Software Foundation
23145 gives unlimited permission to copy, distribute and modify it."
23150 cat >>$CONFIG_STATUS <<\_ACEOF
23151 # If no file are specified by the user, then we need to provide default
23152 # value. By we need to know if files were specified by the user.
23158 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23159 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23167 *) # This is not an option, so the user has probably given explicit
23170 ac_need_defaults
=false
;;
23174 # Handling of the options.
23176 cat >>$CONFIG_STATUS <<\_ACEOF
23177 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23179 --version |
--vers* |
-V )
23180 echo "$ac_cs_version"; exit 0 ;;
23182 # Conflict between --help and --header
23183 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23184 Try \`$0 --help' for more information." >&5
23185 echo "$as_me: error: ambiguous option: $1
23186 Try \`$0 --help' for more information." >&2;}
23187 { (exit 1); exit 1; }; };;
23188 --help |
--hel |
-h )
23189 echo "$ac_cs_usage"; exit 0 ;;
23190 --debug |
--d* |
-d )
23192 --file |
--fil |
--fi |
--f )
23194 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23195 ac_need_defaults
=false
;;
23196 --header |
--heade |
--head |
--hea )
23198 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23199 ac_need_defaults
=false
;;
23200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23201 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23204 # This is an error.
23205 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23206 Try \`$0 --help' for more information." >&5
23207 echo "$as_me: error: unrecognized option: $1
23208 Try \`$0 --help' for more information." >&2;}
23209 { (exit 1); exit 1; }; } ;;
23211 *) ac_config_targets
="$ac_config_targets $1" ;;
23217 ac_configure_extra_args
=
23219 if $ac_cs_silent; then
23221 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23225 cat >>$CONFIG_STATUS <<_ACEOF
23226 if \$ac_cs_recheck; then
23227 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23228 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23233 cat >>$CONFIG_STATUS <<_ACEOF
23235 # INIT-COMMANDS section.
23238 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23244 cat >>$CONFIG_STATUS <<\_ACEOF
23245 for ac_config_target
in $ac_config_targets
23247 case "$ac_config_target" in
23248 # Handling of arguments.
23249 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23250 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23251 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23252 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23253 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23254 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23255 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23256 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23257 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23258 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23259 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23260 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23261 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23262 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23263 { (exit 1); exit 1; }; };;
23267 # If the user did not use the arguments to specify the items to instantiate,
23268 # then the envvar interface is used. Set only those that are not.
23269 # We use the long form for the default assignment because of an extremely
23270 # bizarre bug on SunOS 4.1.3.
23271 if $ac_need_defaults; then
23272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23277 # Have a temporary directory for convenience. Make it in the build tree
23278 # simply because there is no reason to put it here, and in addition,
23279 # creating and moving files from /tmp can sometimes cause problems.
23280 # Create a temporary directory, and hook for its removal unless debugging.
23283 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23284 trap '{ (exit 1); exit 1; }' 1 2 13 15
23287 # Create a (secure) tmp directory for tmp files.
23290 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23291 test -n "$tmp" && test -d "$tmp"
23294 tmp
=.
/confstat$$
-$RANDOM
23295 (umask 077 && mkdir
$tmp)
23298 echo "$me: cannot create a temporary directory in ." >&2
23299 { (exit 1); exit 1; }
23304 cat >>$CONFIG_STATUS <<_ACEOF
23307 # CONFIG_FILES section.
23310 # No need to generate the scripts if there are no CONFIG_FILES.
23311 # This happens for instance when ./config.status config.h
23312 if test -n "\$CONFIG_FILES"; then
23313 # Protect against being on the right side of a sed subst in config.status.
23314 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23315 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23316 s,@SHELL@,$SHELL,;t t
23317 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23318 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23319 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23320 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23321 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23322 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23323 s,@exec_prefix@,$exec_prefix,;t t
23324 s,@prefix@,$prefix,;t t
23325 s,@program_transform_name@,$program_transform_name,;t t
23326 s,@bindir@,$bindir,;t t
23327 s,@sbindir@,$sbindir,;t t
23328 s,@libexecdir@,$libexecdir,;t t
23329 s,@datadir@,$datadir,;t t
23330 s,@sysconfdir@,$sysconfdir,;t t
23331 s,@sharedstatedir@,$sharedstatedir,;t t
23332 s,@localstatedir@,$localstatedir,;t t
23333 s,@libdir@,$libdir,;t t
23334 s,@includedir@,$includedir,;t t
23335 s,@oldincludedir@,$oldincludedir,;t t
23336 s,@infodir@,$infodir,;t t
23337 s,@mandir@,$mandir,;t t
23338 s,@build_alias@,$build_alias,;t t
23339 s,@host_alias@,$host_alias,;t t
23340 s,@target_alias@,$target_alias,;t t
23341 s,@DEFS@,$DEFS,;t t
23342 s,@ECHO_C@,$ECHO_C,;t t
23343 s,@ECHO_N@,$ECHO_N,;t t
23344 s,@ECHO_T@,$ECHO_T,;t t
23345 s,@LIBS@,$LIBS,;t t
23346 s,@MAINT@,$MAINT,;t t
23347 s,@build@,$build,;t t
23348 s,@build_cpu@,$build_cpu,;t t
23349 s,@build_vendor@,$build_vendor,;t t
23350 s,@build_os@,$build_os,;t t
23351 s,@host@,$host,;t t
23352 s,@host_cpu@,$host_cpu,;t t
23353 s,@host_vendor@,$host_vendor,;t t
23354 s,@host_os@,$host_os,;t t
23356 s,@CFLAGS@,$CFLAGS,;t t
23357 s,@LDFLAGS@,$LDFLAGS,;t t
23358 s,@CPPFLAGS@,$CPPFLAGS,;t t
23359 s,@ac_ct_CC@,$ac_ct_CC,;t t
23360 s,@EXEEXT@,$EXEEXT,;t t
23361 s,@OBJEXT@,$OBJEXT,;t t
23363 s,@EGREP@,$EGREP,;t t
23364 s,@LN_S@,$LN_S,;t t
23365 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23366 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23367 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23368 s,@RANLIB@,$RANLIB,;t t
23369 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23370 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23371 s,@GZIP_PROG@,$GZIP_PROG,;t t
23372 s,@LIBSOUND@,$LIBSOUND,;t t
23373 s,@SET_MAKE@,$SET_MAKE,;t t
23374 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23375 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23376 s,@GTK_LIBS@,$GTK_LIBS,;t t
23377 s,@ALLOCA@,$ALLOCA,;t t
23378 s,@liblockfile@,$liblockfile,;t t
23379 s,@LIBOBJS@,$LIBOBJS,;t t
23380 s,@NEED_SETGID@,$NEED_SETGID,;t t
23381 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23382 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23383 s,@GETOPT_H@,$GETOPT_H,;t t
23384 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23385 s,@version@,$version,;t t
23386 s,@configuration@,$configuration,;t t
23387 s,@canonical@,$canonical,;t t
23388 s,@srcdir@,$srcdir,;t t
23389 s,@lispdir@,$lispdir,;t t
23390 s,@locallisppath@,$locallisppath,;t t
23391 s,@lisppath@,$lisppath,;t t
23392 s,@x_default_search_path@,$x_default_search_path,;t t
23393 s,@etcdir@,$etcdir,;t t
23394 s,@archlibdir@,$archlibdir,;t t
23395 s,@docdir@,$docdir,;t t
23396 s,@bitmapdir@,$bitmapdir,;t t
23397 s,@gamedir@,$gamedir,;t t
23398 s,@gameuser@,$gameuser,;t t
23399 s,@c_switch_system@,$c_switch_system,;t t
23400 s,@c_switch_machine@,$c_switch_machine,;t t
23401 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23402 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23403 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23404 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23405 s,@machfile@,$machfile,;t t
23406 s,@opsysfile@,$opsysfile,;t t
23407 s,@carbon_appdir@,$carbon_appdir,;t t
23408 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23413 cat >>$CONFIG_STATUS <<\_ACEOF
23414 # Split the substitutions into bite-sized pieces for seds with
23415 # small command number limits, like on Digital OSF/1 and HP-UX.
23416 ac_max_sed_lines
=48
23417 ac_sed_frag
=1 # Number of current file.
23418 ac_beg
=1 # First line for current file.
23419 ac_end
=$ac_max_sed_lines # Line after last line for current file.
23422 while $ac_more_lines; do
23423 if test $ac_beg -gt 1; then
23424 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23426 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
23428 if test ! -s $tmp/subs.frag
; then
23429 ac_more_lines
=false
23431 # The purpose of the label and of the branching condition is to
23432 # speed up the sed processing (if there are no `@' at all, there
23433 # is no need to browse any of the substitutions).
23434 # These are the two extra sed commands mentioned above.
23436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
23437 if test -z "$ac_sed_cmds"; then
23438 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
23440 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23442 ac_sed_frag
=`expr $ac_sed_frag + 1`
23444 ac_end
=`expr $ac_end + $ac_max_sed_lines`
23447 if test -z "$ac_sed_cmds"; then
23450 fi # test -n "$CONFIG_FILES"
23453 cat >>$CONFIG_STATUS <<\_ACEOF
23454 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
23455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23457 - |
*:- |
*:-:* ) # input from stdin
23459 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23460 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23461 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23462 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23463 * ) ac_file_in
=$ac_file.
in ;;
23466 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23467 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23469 X"$ac_file" : 'X\(//\)[^/]' \| \
23470 X"$ac_file" : 'X\(//\)$' \| \
23471 X"$ac_file" : 'X\(/\)' \| \
23472 . : '\(.\)' 2>/dev/null ||
23474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23476 /^X\(\/\/\)$/{ s//\1/; q; }
23477 /^X\(\/\).*/{ s//\1/; q; }
23479 { if $as_mkdir_p; then
23484 while test ! -d "$as_dir"; do
23485 as_dirs
="$as_dir $as_dirs"
23486 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23488 X"$as_dir" : 'X\(//\)[^/]' \| \
23489 X"$as_dir" : 'X\(//\)$' \| \
23490 X"$as_dir" : 'X\(/\)' \| \
23491 . : '\(.\)' 2>/dev/null ||
23493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23495 /^X\(\/\/\)$/{ s//\1/; q; }
23496 /^X\(\/\).*/{ s//\1/; q; }
23499 test ! -n "$as_dirs" || mkdir
$as_dirs
23500 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23501 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23502 { (exit 1); exit 1; }; }; }
23506 if test "$ac_dir" != .
; then
23507 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23508 # A "../" for each directory in $ac_dir_suffix.
23509 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23511 ac_dir_suffix
= ac_top_builddir
=
23515 .
) # No --srcdir option. We are building in place.
23517 if test -z "$ac_top_builddir"; then
23520 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23522 [\\/]* | ?
:[\\/]* ) # Absolute path.
23523 ac_srcdir
=$srcdir$ac_dir_suffix;
23524 ac_top_srcdir
=$srcdir ;;
23525 *) # Relative path.
23526 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23527 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23530 # Do not use `cd foo && pwd` to compute absolute paths, because
23531 # the directories may not exist.
23533 .
) ac_abs_builddir
="$ac_dir";;
23536 .
) ac_abs_builddir
=`pwd`;;
23537 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23538 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23541 case $ac_abs_builddir in
23542 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23544 case ${ac_top_builddir}.
in
23545 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23546 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23547 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23550 case $ac_abs_builddir in
23551 .
) ac_abs_srcdir
=$ac_srcdir;;
23554 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23555 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23556 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23559 case $ac_abs_builddir in
23560 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23562 case $ac_top_srcdir in
23563 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23564 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23565 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23571 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23572 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
23575 # Let's still pretend it is `configure' which instantiates (i.e., don't
23576 # use $as_me), people would be surprised to read:
23577 # /* config.h. Generated by config.status. */
23578 if test x
"$ac_file" = x-
; then
23581 configure_input
="$ac_file. "
23583 configure_input
=$configure_input"Generated from `echo $ac_file_in |
23584 sed 's,.*/,,'` by configure."
23586 # First look for the input files in the build tree, otherwise in the
23588 ac_file_inputs
=`IFS=:
23589 for f in $ac_file_in; do
23591 -) echo $tmp/stdin ;;
23593 # Absolute (can't be DOS-style, as IFS=:)
23594 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23595 echo "$as_me: error: cannot find input file: $f" >&2;}
23596 { (exit 1); exit 1; }; }
23599 if test -f "$f"; then
23602 elif test -f "$srcdir/$f"; then
23607 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23608 echo "$as_me: error: cannot find input file: $f" >&2;}
23609 { (exit 1); exit 1; }; }
23612 done` ||
{ (exit 1); exit 1; }
23614 if test x
"$ac_file" != x-
; then
23615 { echo "$as_me:$LINENO: creating $ac_file" >&5
23616 echo "$as_me: creating $ac_file" >&6;}
23620 cat >>$CONFIG_STATUS <<_ACEOF
23624 cat >>$CONFIG_STATUS <<\_ACEOF
23626 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23627 s
,@configure_input@
,$configure_input,;t t
23628 s
,@srcdir@
,$ac_srcdir,;t t
23629 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
23630 s
,@top_srcdir@
,$ac_top_srcdir,;t t
23631 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
23632 s
,@builddir@
,$ac_builddir,;t t
23633 s
,@abs_builddir@
,$ac_abs_builddir,;t t
23634 s
,@top_builddir@
,$ac_top_builddir,;t t
23635 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
23636 s
,@INSTALL@
,$ac_INSTALL,;t t
23637 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23639 if test x"$ac_file" != x-; then
23640 mv $tmp/out $ac_file
23648 cat >>$CONFIG_STATUS <<\_ACEOF
23651 # CONFIG_HEADER section.
23654 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
23655 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23657 # ac_d sets the value in "#define NAME VALUE" lines.
23658 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23659 ac_dB
='[ ].*$,\1#\2'
23662 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23663 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23664 ac_uB
='$,\1#\2define\3'
23668 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
23669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23671 - |
*:- |
*:-:* ) # input from stdin
23673 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23674 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23675 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23676 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
23677 * ) ac_file_in
=$ac_file.
in ;;
23680 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
23681 echo "$as_me: creating $ac_file" >&6;}
23683 # First look for the input files in the build tree, otherwise in the
23685 ac_file_inputs
=`IFS=:
23686 for f in $ac_file_in; do
23688 -) echo $tmp/stdin ;;
23690 # Absolute (can't be DOS-style, as IFS=:)
23691 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23692 echo "$as_me: error: cannot find input file: $f" >&2;}
23693 { (exit 1); exit 1; }; }
23694 # Do quote $f, to prevent DOS paths from being IFS'd.
23697 if test -f "$f"; then
23700 elif test -f "$srcdir/$f"; then
23705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23706 echo "$as_me: error: cannot find input file: $f" >&2;}
23707 { (exit 1); exit 1; }; }
23710 done` ||
{ (exit 1); exit 1; }
23711 # Remove the trailing spaces.
23712 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23716 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23717 # `conftest.undefs', that substitutes the proper values into
23718 # config.h.in to produce config.h. The first handles `#define'
23719 # templates, and the second `#undef' templates.
23720 # And first: Protect against being on the right side of a sed subst in
23721 # config.status. Protect against being in an unquoted here document
23722 # in config.status.
23723 rm -f conftest.defines conftest.undefs
23724 # Using a here document instead of a string reduces the quoting nightmare.
23725 # Putting comments in sed scripts is not portable.
23727 # `end' is used to avoid that the second main sed command (meant for
23728 # 0-ary CPP macros) applies to n-ary macro definitions.
23729 # See the Autoconf documentation for `clear'.
23730 cat >confdef2sed.
sed <<\_ACEOF
23735 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23737 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23740 # If some macros were called several times there might be several times
23741 # the same #defines, which is useless. Nevertheless, we may not want to
23742 # sort them, since we want the *last* AC-DEFINE to be honored.
23743 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23744 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23745 rm -f confdef2sed.sed
23747 # This sed command replaces #undef with comments. This is necessary, for
23748 # example, in the case of _POSIX_SOURCE, which is predefined and required
23749 # on some systems where configure will not decide to define it.
23750 cat >>conftest.undefs <<\_ACEOF
23751 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23754 # Break up conftest.defines because some shells have a limit on the size
23755 # of here documents, and old seds have small limits too (100 cmds).
23756 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23757 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23758 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23759 echo ' :' >>$CONFIG_STATUS
23760 rm -f conftest.tail
23761 while grep . conftest.defines >/dev/null
23763 # Write a limited-size here document to $tmp/defines.sed.
23764 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23765 # Speed up: don't consider the non `#define' lines.
23766 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23767 # Work around the forget-to-reset-the-flag bug.
23768 echo 't clr' >>$CONFIG_STATUS
23769 echo ': clr' >>$CONFIG_STATUS
23770 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23772 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23774 mv $tmp/out $tmp/in
23776 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23777 rm -f conftest.defines
23778 mv conftest.
tail conftest.defines
23780 rm -f conftest.defines
23781 echo ' fi # grep' >>$CONFIG_STATUS
23782 echo >>$CONFIG_STATUS
23784 # Break up conftest.undefs because some shells have a limit on the size
23785 # of here documents, and old seds have small limits too (100 cmds).
23786 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23787 rm -f conftest.
tail
23788 while grep . conftest.undefs
>/dev
/null
23790 # Write a limited-size here document to $tmp/undefs.sed.
23791 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23792 # Speed up: don't consider the non
`#undef'
23793 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23794 # Work around the forget-to-reset-the-flag bug.
23795 echo 't clr' >>$CONFIG_STATUS
23796 echo ': clr' >>$CONFIG_STATUS
23797 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23799 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23801 mv $tmp/out $tmp/in
23803 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23804 rm -f conftest.undefs
23805 mv conftest.tail conftest.undefs
23807 rm -f conftest.undefs
23809 cat >>$CONFIG_STATUS <<\_ACEOF
23810 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23811 # use $as_me), people would be surprised to read:
23812 # /* config.h. Generated by config.status. */
23813 if test x
"$ac_file" = x-
; then
23814 echo "/* Generated by configure. */" >$tmp/config.h
23816 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23818 cat $tmp/in >>$tmp/config.h
23820 if test x
"$ac_file" != x-
; then
23821 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23822 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23823 echo "$as_me: $ac_file is unchanged" >&6;}
23825 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23827 X"$ac_file" : 'X\(//\)[^/]' \| \
23828 X"$ac_file" : 'X\(//\)$' \| \
23829 X"$ac_file" : 'X\(/\)' \| \
23830 . : '\(.\)' 2>/dev/null ||
23832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23834 /^X\(\/\/\)$/{ s//\1/; q; }
23835 /^X\(\/\).*/{ s//\1/; q; }
23837 { if $as_mkdir_p; then
23842 while test ! -d "$as_dir"; do
23843 as_dirs
="$as_dir $as_dirs"
23844 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23846 X"$as_dir" : 'X\(//\)[^/]' \| \
23847 X"$as_dir" : 'X\(//\)$' \| \
23848 X"$as_dir" : 'X\(/\)' \| \
23849 . : '\(.\)' 2>/dev/null ||
23851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23853 /^X\(\/\/\)$/{ s//\1/; q; }
23854 /^X\(\/\).*/{ s//\1/; q; }
23857 test ! -n "$as_dirs" || mkdir
$as_dirs
23858 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23859 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23860 { (exit 1); exit 1; }; }; }
23863 mv $tmp/config.h
$ac_file
23867 rm -f $tmp/config.h
23871 cat >>$CONFIG_STATUS <<\_ACEOF
23874 # CONFIG_COMMANDS section.
23876 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23877 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23878 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23879 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23880 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23881 X"$ac_dest" : 'X\(//\)[^/]' \| \
23882 X"$ac_dest" : 'X\(//\)$' \| \
23883 X"$ac_dest" : 'X\(/\)' \| \
23884 . : '\(.\)' 2>/dev/null ||
23886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23888 /^X\(\/\/\)$/{ s//\1/; q; }
23889 /^X\(\/\).*/{ s//\1/; q; }
23891 { if $as_mkdir_p; then
23896 while test ! -d "$as_dir"; do
23897 as_dirs
="$as_dir $as_dirs"
23898 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23900 X"$as_dir" : 'X\(//\)[^/]' \| \
23901 X"$as_dir" : 'X\(//\)$' \| \
23902 X"$as_dir" : 'X\(/\)' \| \
23903 . : '\(.\)' 2>/dev/null ||
23905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23907 /^X\(\/\/\)$/{ s//\1/; q; }
23908 /^X\(\/\).*/{ s//\1/; q; }
23911 test ! -n "$as_dirs" || mkdir
$as_dirs
23912 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23913 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23914 { (exit 1); exit 1; }; }; }
23918 if test "$ac_dir" != .
; then
23919 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23920 # A "../" for each directory in $ac_dir_suffix.
23921 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23923 ac_dir_suffix
= ac_top_builddir
=
23927 .
) # No --srcdir option. We are building in place.
23929 if test -z "$ac_top_builddir"; then
23932 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23934 [\\/]* | ?
:[\\/]* ) # Absolute path.
23935 ac_srcdir
=$srcdir$ac_dir_suffix;
23936 ac_top_srcdir
=$srcdir ;;
23937 *) # Relative path.
23938 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23939 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23942 # Do not use `cd foo && pwd` to compute absolute paths, because
23943 # the directories may not exist.
23945 .
) ac_abs_builddir
="$ac_dir";;
23948 .
) ac_abs_builddir
=`pwd`;;
23949 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23950 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23953 case $ac_abs_builddir in
23954 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23956 case ${ac_top_builddir}.
in
23957 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23958 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23959 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23962 case $ac_abs_builddir in
23963 .
) ac_abs_srcdir
=$ac_srcdir;;
23966 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23967 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23968 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23971 case $ac_abs_builddir in
23972 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23974 case $ac_top_srcdir in
23975 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23976 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23977 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23982 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23983 echo "$as_me: executing $ac_dest commands" >&6;}
23987 ### Make the necessary directories, if they don't exist.
23988 for dir
in etc lisp
; do
23989 test -d ${dir} || mkdir
${dir}
23992 # Build src/Makefile from ${srcdir}/src/Makefile.c
23993 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23994 # This must be done after src/config.h is built, since we rely on that file.
23996 # Now get this: Some word that is part of the ${srcdir} directory name
23997 # or the ${configuration} value might, just might, happen to be an
23998 # identifier like `sun4' or `i386' or something, and be predefined by
23999 # the C preprocessor to some helpful value like 1, or maybe the empty
24000 # string. Needless to say consequent macro substitutions are less
24001 # than conducive to the makefile finding the correct directory.
24002 undefs
="`echo $top_srcdir $configuration $canonical |
24003 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24004 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24007 echo creating src
/epaths.h
24008 ${MAKE-make} epaths-force
24010 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24011 # `..' to `. .' unless invoked with -traditional
24013 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24014 CPPFLAGS
="$CPPFLAGS -traditional"
24017 echo creating lib-src
/Makefile
24019 rm -f junk.c junk1.c junk2.c
24020 sed -e '/start of cpp stuff/q' \
24021 < Makefile.c
> junk1.c
24022 sed -e '1,/start of cpp stuff/d'\
24023 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24024 < Makefile.c
> junk.c
24025 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24026 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24027 cat junk1.c junk2.c
> Makefile.new
24028 rm -f junk.c junk1.c junk2.c
24029 chmod 444 Makefile.new
24030 mv -f Makefile.new Makefile
24033 echo creating src
/Makefile
24035 rm -f junk.c junk1.c junk2.c
24036 sed -e '/start of cpp stuff/q' \
24037 < Makefile.c
> junk1.c
24038 sed -e '1,/start of cpp stuff/d'\
24039 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24040 < Makefile.c
> junk.c
24041 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24042 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24043 cat junk1.c junk2.c
> Makefile.new
24044 rm -f junk.c junk1.c junk2.c
24045 chmod 444 Makefile.new
24046 mv -f Makefile.new Makefile
24049 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24050 echo creating src
/.gdbinit
24051 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24054 # This is how we know whether to re-run configure in certain cases.
24055 touch src
/config.stamp
24062 cat >>$CONFIG_STATUS <<\_ACEOF
24064 { (exit 0); exit 0; }
24066 chmod +x
$CONFIG_STATUS
24067 ac_clean_files
=$ac_clean_files_save
24070 # configure is writing to config.log, and then calls config.status.
24071 # config.status does its own redirection, appending to config.log.
24072 # Unfortunately, on DOS this fails, as config.log is still kept open
24073 # by configure, so config.status won't be able to write to it; its
24074 # output is simply discarded. So we exec the FD to /dev/null,
24075 # effectively closing config.log, so it can be properly (re)opened and
24076 # appended to by config.status. When coming back to configure, we
24077 # need to make the FD available again.
24078 if test "$no_create" != yes; then
24080 ac_config_status_args
=
24081 test "$silent" = yes &&
24082 ac_config_status_args
="$ac_config_status_args --quiet"
24084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24087 # would make configure fail if this is the last instruction.
24088 $ac_cs_success ||
{ (exit 1); exit 1; }