2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57a.
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
23 # Support unset when possible.
24 if (as_foo
=foo
; unset as_foo
) >/dev
/null
2>&1; then
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C
; export $as_var
50 # Required to use basename.
51 if expr a
: '\(a\)' >/dev
/null
2>&1; then
57 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
64 # Name of the executable.
65 as_me
=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits
='0123456789'
83 as_cr_alnum
=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
90 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
101 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
104 # Find who we are. Look in the path if we contain no path at all
107 *[\\/]* ) as_myself
=$0 ;;
108 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir
=.
113 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x
; then
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
130 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
133 test -z "$as_dir" && as_dir
=.
134 for as_base
in sh bash ksh sh5
; do
137 if ("$as_dir/$as_base" -c '
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
143 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
144 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
145 CONFIG_SHELL
=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x
$as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c
*,-n*) ECHO_N
= ECHO_C
='
189 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
190 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
193 if expr a
: '\(a\)' >/dev
/null
2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.
file
201 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe
; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.
file conf$$
2>/dev
/null
; then
215 rm -f conf$$ conf$$.exe conf$$.
file
217 if mkdir
-p .
2>/dev
/null
; then
223 as_executable_p
="test -f"
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # We need space, tab and new line, in precisely that order.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix
=/usr
/local
253 ac_config_libobj_dir
=.
258 SHELL
=${CONFIG_SHELL-/bin/sh}
260 # Maximum number of lines to put in a shell here document.
261 # This variable seems obsolete. It should probably be removed, and
262 # only ac_max_sed_lines should be used.
263 : ${ac_max_here_lines=38}
265 # Identity of this package.
272 ac_unique_file
="src/lisp.h"
273 ac_config_libobj_dir
=src
274 # Factoring default headers for most tests.
275 ac_includes_default
="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS 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'
314 # Initialize some variables set by options.
316 ac_init_version
=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name
=s
,x
,x
,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir
='${exec_prefix}/bin'
340 sbindir
='${exec_prefix}/sbin'
341 libexecdir
='${exec_prefix}/libexec'
342 datadir
='${prefix}/share'
343 sysconfdir
='${prefix}/etc'
344 sharedstatedir
='${prefix}/com'
345 localstatedir
='${prefix}/var'
346 libdir
='${exec_prefix}/lib'
347 includedir
='${prefix}/include'
348 oldincludedir
='/usr/include'
349 infodir
='${prefix}/info'
350 mandir
='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
370 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
373 -build |
--build |
--buil |
--bui |
--bu)
374 ac_prev
=build_alias
;;
375 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
376 build_alias
=$ac_optarg ;;
378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
380 ac_prev
=cache_file
;;
381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
383 cache_file
=$ac_optarg ;;
386 cache_file
=config.cache
;;
388 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
390 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
392 datadir
=$ac_optarg ;;
394 -disable-* |
--disable-*)
395 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* |
--enable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
417 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
418 |
--exec |
--exe |
--ex)
419 ac_prev
=exec_prefix
;;
420 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
421 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
422 |
--exec=* |
--exe=* |
--ex=*)
423 exec_prefix
=$ac_optarg ;;
425 -gas |
--gas |
--ga |
--g)
426 # Obsolete; use --with-gas.
429 -help |
--help |
--hel |
--he |
-h)
431 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
432 ac_init_help
=recursive
;;
433 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
434 ac_init_help
=short
;;
436 -host |
--host |
--hos |
--ho)
437 ac_prev
=host_alias
;;
438 -host=* |
--host=* |
--hos=* |
--ho=*)
439 host_alias
=$ac_optarg ;;
441 -includedir |
--includedir |
--includedi |
--included |
--include \
442 |
--includ |
--inclu |
--incl |
--inc)
443 ac_prev
=includedir
;;
444 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
445 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
446 includedir
=$ac_optarg ;;
448 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
450 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
451 infodir
=$ac_optarg ;;
453 -libdir |
--libdir |
--libdi |
--libd)
455 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
458 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
459 |
--libexe |
--libex |
--libe)
460 ac_prev
=libexecdir
;;
461 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
462 |
--libexe=* |
--libex=* |
--libe=*)
463 libexecdir
=$ac_optarg ;;
465 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
466 |
--localstate |
--localstat |
--localsta |
--localst \
467 |
--locals |
--local |
--loca |
--loc |
--lo)
468 ac_prev
=localstatedir
;;
469 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
470 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
471 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
472 localstatedir
=$ac_optarg ;;
474 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
476 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
480 # Obsolete; use --without-fp.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c |
-n)
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
491 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
492 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
493 |
--oldin |
--oldi |
--old |
--ol |
--o)
494 ac_prev
=oldincludedir
;;
495 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
496 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
497 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
498 oldincludedir
=$ac_optarg ;;
500 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
502 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
505 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
506 |
--program-pre |
--program-pr |
--program-p)
507 ac_prev
=program_prefix
;;
508 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
509 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
510 program_prefix
=$ac_optarg ;;
512 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
513 |
--program-suf |
--program-su |
--program-s)
514 ac_prev
=program_suffix
;;
515 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
516 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
517 program_suffix
=$ac_optarg ;;
519 -program-transform-name |
--program-transform-name \
520 |
--program-transform-nam |
--program-transform-na \
521 |
--program-transform-n |
--program-transform- \
522 |
--program-transform |
--program-transfor \
523 |
--program-transfo |
--program-transf \
524 |
--program-trans |
--program-tran \
525 |
--progr-tra |
--program-tr |
--program-t)
526 ac_prev
=program_transform_name
;;
527 -program-transform-name=* |
--program-transform-name=* \
528 |
--program-transform-nam=* |
--program-transform-na=* \
529 |
--program-transform-n=* |
--program-transform-=* \
530 |
--program-transform=* |
--program-transfor=* \
531 |
--program-transfo=* |
--program-transf=* \
532 |
--program-trans=* |
--program-tran=* \
533 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
534 program_transform_name
=$ac_optarg ;;
536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
537 |
-silent |
--silent |
--silen |
--sile |
--sil)
540 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
542 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
544 sbindir
=$ac_optarg ;;
546 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
547 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
548 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
550 ac_prev
=sharedstatedir
;;
551 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
552 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
553 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
555 sharedstatedir
=$ac_optarg ;;
557 -site |
--site |
--sit)
559 -site=* |
--site=* |
--sit=*)
562 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
564 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
567 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
568 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
569 ac_prev
=sysconfdir
;;
570 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
571 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
572 sysconfdir
=$ac_optarg ;;
574 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
575 ac_prev
=target_alias
;;
576 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
577 target_alias
=$ac_optarg ;;
579 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
582 -version |
--version |
--versio |
--versi |
--vers |
-V)
586 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* |
--without-*)
599 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package
=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
612 |
--x-incl |
--x-inc |
--x-in |
--x-i)
613 ac_prev
=x_includes
;;
614 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
615 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
616 x_includes
=$ac_optarg ;;
618 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
619 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
620 ac_prev
=x_libraries
;;
621 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
622 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
623 x_libraries
=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var
in exec_prefix prefix
660 eval ac_val
=$
`echo $ac_var`
662 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val
=$
`echo $ac_var`
674 [\\/$
]* | ?
:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x
; then
689 if test "x$build_alias" = x
; then
690 cross_compiling
=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
701 test "$silent" = yes && exec 6>/dev
/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted
=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir
=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted
=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set
=${build_alias+set}
741 ac_env_build_alias_value
=$build_alias
742 ac_cv_env_build_alias_set
=${build_alias+set}
743 ac_cv_env_build_alias_value
=$build_alias
744 ac_env_host_alias_set
=${host_alias+set}
745 ac_env_host_alias_value
=$host_alias
746 ac_cv_env_host_alias_set
=${host_alias+set}
747 ac_cv_env_host_alias_value
=$host_alias
748 ac_env_target_alias_set
=${target_alias+set}
749 ac_env_target_alias_value
=$target_alias
750 ac_cv_env_target_alias_set
=${target_alias+set}
751 ac_cv_env_target_alias_value
=$target_alias
752 ac_env_CC_set
=${CC+set}
754 ac_cv_env_CC_set
=${CC+set}
755 ac_cv_env_CC_value
=$CC
756 ac_env_CFLAGS_set
=${CFLAGS+set}
757 ac_env_CFLAGS_value
=$CFLAGS
758 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value
=$CFLAGS
760 ac_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_env_LDFLAGS_value
=$LDFLAGS
762 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value
=$LDFLAGS
764 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_env_CPP_set
=${CPP+set}
769 ac_env_CPP_value
=$CPP
770 ac_cv_env_CPP_set
=${CPP+set}
771 ac_cv_env_CPP_value
=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
839 --x-includes=DIR X include files are
in DIR
840 --x-libraries=DIR X library files are
in DIR
843 --build=BUILD configure
for building on BUILD
[guessed
]
844 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
848 if test -n "$ac_init_help"; then
853 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
854 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
855 --enable-carbon-app[=DIR
] [DIR
=/Application
]
856 specify
install directory
for Emacs.app on Mac OS X
857 --disable-largefile omit support
for large files
860 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
861 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
862 --without-gcc don
't use GCC to compile Emacs if GCC is found
863 --without-pop don't support POP
mail retrieval with movemail
864 --with-kerberos support Kerberos-authenticated POP
865 --with-kerberos5 support Kerberos version
5 authenticated POP
866 --with-hesiod support Hesiod to get the POP server
host
867 --without-sound don
't compile with sound support
868 --with-x-toolkit=KIT use an X toolkit
869 (KIT = yes/lucid/athena/motif/gtk/no)
870 --with-xpm use -lXpm for displaying XPM images
871 --with-jpeg use -ljpeg for displaying JPEG images
872 --with-tiff use -ltiff for displaying TIFF images
873 --with-gif use -lungif for displaying GIF images
874 --with-png use -lpng for displaying PNG images
875 --with-gtk use GTK (same as --with-x-toolkit=gtk)
876 --with-pkg-config-prog Path to pkg-config to use for finding GTK
877 --without-toolkit-scroll-bars
878 don't use Motif or Xaw3d scroll bars
879 --without-xim don
't use X11 XIM
880 --without-carbon don't use Carbon GUI on Mac OS X
881 --with-x use the X Window System
883 Some influential environment variables
:
884 CC C compiler
command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
887 nonstandard directory
<lib dir
>
888 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
889 headers
in a nonstandard directory
<include dir
>
892 Use these variables to override the choices made by
`configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
931 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
958 Copyright (C) 2003 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.57a. Invocation command line was
981 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
982 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
983 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
984 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
985 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
987 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
988 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
990 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
992 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
993 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
994 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
996 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Strip out --silent because we don't want to record it for future runs.
1023 # Also quote any args containing shell meta-characters.
1024 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_must_keep_next=false
1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046 if test $ac_must_keep_next = true; then
1047 ac_must_keep_next=false # Got value, back to normal.
1050 *=* | --config-cache | -C | -disable-* | --disable-* \
1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053 | -with-* | --with-* | -without-* | --without-* | --x)
1054 case "$ac_configure_args0 " in
1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 -* ) ac_must_keep_next=true ;;
1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062 # Get rid of the leading space.
1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close
' the trap.
1076 trap 'exit_status
=$?
1077 # Save into config.log some information that might help in debugging.
1082 ## ---------------- ##
1083 ## Cache variables. ##
1084 ## ---------------- ##
1087 # The following way of writing the cache mishandles newlines in values,
1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105 ## ----------------- ##
1106 ## Output variables. ##
1107 ## ----------------- ##
1110 for ac_var
in $ac_subst_vars
1112 eval ac_val
=$
`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1117 if test -n "$ac_subst_files"; then
1124 for ac_var
in $ac_subst_files
1126 eval ac_val
=$
`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -s confdefs.h
; then
1139 sed "/^$/d" confdefs.h |
sort
1142 test "$ac_signal" != 0 &&
1143 echo "$as_me: caught signal $ac_signal"
1144 echo "$as_me: exit $exit_status"
1146 rm -f core core.
* *.core
&&
1147 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1150 for ac_signal in 1 2 13 15; do
1151 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1156 rm -rf conftest* confdefs.h
1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 # Predefined preprocessor variables.
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 # Let the site file select an alternate cache file if it wants to.
1188 # Prefer explicitly selected file to automatically selected ones.
1189 if test -z "$CONFIG_SITE"; then
1190 if test "x$prefix" != xNONE; then
1191 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 for ac_site_file in $CONFIG_SITE; do
1197 if test -r "$ac_site_file"; then
1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199 echo "$as_me: loading site script $ac_site_file" >&6;}
1200 sed 's
/^
/|
/' "$ac_site_file" >&5
1205 if test -r "$cache_file"; then
1206 # Some versions of bash will fail to source /dev/null (special
1207 # files actually), so we avoid doing that.
1208 if test -f "$cache_file"; then
1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210 echo "$as_me: loading cache $cache_file" >&6;}
1212 [\\/]* | ?:[\\/]* ) . $cache_file;;
1213 *) . ./$cache_file;;
1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218 echo "$as_me: creating cache $cache_file" >&6;}
1222 # Check that the precious variables saved in the cache have kept the same
1224 ac_cache_corrupted=false
1225 for ac_var in `(set) 2>&1 |
1226 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228 eval ac_new_set=\$ac_env_${ac_var}_set
1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230 eval ac_new_val="\$ac_env_${ac_var}_value"
1231 case $ac_old_set,$ac_new_set in
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1235 ac_cache_corrupted=: ;;
1237 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1242 if test "x$ac_old_val" != "x$ac_new_val"; then
1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1244 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246 echo "$as_me: former value: $ac_old_val" >&2;}
1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248 echo "$as_me: current value: $ac_new_val" >&2;}
1249 ac_cache_corrupted=:
1252 # Pass precious variables to config.status.
1253 if test "$ac_new_set" = set; then
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1257 *) ac_arg=$ac_var=$ac_new_val ;;
1259 case " $ac_configure_args " in
1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 if $ac_cache_corrupted; then
1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1269 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270 { (exit 1); exit 1; }; }
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1276 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1300 test "$program_prefix" != NONE &&
1301 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1302 # Use a double $ so make ignores it.
1303 test "$program_suffix" != NONE &&
1304 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1305 # Double any \ or $. echo might interpret backslashes.
1306 # By default was `s,x,x', remove it
if useless.
1307 cat <<\_ACEOF
>conftest.
sed
1308 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1310 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1314 lispdir
='${datadir}/emacs/${version}/lisp'
1315 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1316 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1317 lisppath
='${locallisppath}:${lispdir}'
1318 etcdir
='${datadir}/emacs/${version}/etc'
1319 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1320 docdir
='${datadir}/emacs/${version}/etc'
1321 gamedir
='${localstatedir}/games/emacs'
1326 # Check whether --with-gcc or --without-gcc was given.
1327 if test "${with_gcc+set}" = set; then
1332 # Check whether --with-pop or --without-pop was given.
1333 if test "${with_pop+set}" = set; then
1335 if test "$withval" = yes; then
1336 cat >>confdefs.h
<<\_ACEOF
1337 #define MAIL_USE_POP 1
1343 cat >>confdefs.h
<<\_ACEOF
1344 #define MAIL_USE_POP 1
1350 # Check whether --with-kerberos or --without-kerberos was given.
1351 if test "${with_kerberos+set}" = set; then
1352 withval
="$with_kerberos"
1353 cat >>confdefs.h
<<\_ACEOF
1360 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1361 if test "${with_kerberos5+set}" = set; then
1362 withval
="$with_kerberos5"
1363 if test "${with_kerberos5+set}" = set; then
1364 if test "${with_kerberos+set}" != set; then
1366 cat >>confdefs.h
<<\_ACEOF
1373 cat >>confdefs.h
<<\_ACEOF
1379 # Check whether --with-hesiod or --without-hesiod was given.
1380 if test "${with_hesiod+set}" = set; then
1381 withval
="$with_hesiod"
1383 cat >>confdefs.h
<<\_ACEOF
1390 # Check whether --with-sound or --without-sound was given.
1391 if test "${with_sound+set}" = set; then
1392 withval
="$with_sound"
1397 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1398 if test "${with_x_toolkit+set}" = set; then
1399 withval
="$with_x_toolkit"
1400 case "${withval}" in
1401 y | ye |
yes ) val
=athena
;;
1403 l | lu | luc | luci | lucid
) val
=lucid
;;
1404 a |
at | ath | athe | athen | athena
) val
=athena
;;
1405 m | mo | mot | moti | motif
) val
=motif
;;
1406 g | gt | gtk
) val
=gtk
;;
1408 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1409 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1410 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1411 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1412 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1413 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1414 { (exit 1); exit 1; }; }
1421 # Check whether --with-xpm or --without-xpm was given.
1422 if test "${with_xpm+set}" = set; then
1427 # Check whether --with-jpeg or --without-jpeg was given.
1428 if test "${with_jpeg+set}" = set; then
1429 withval
="$with_jpeg"
1433 # Check whether --with-tiff or --without-tiff was given.
1434 if test "${with_tiff+set}" = set; then
1435 withval
="$with_tiff"
1439 # Check whether --with-gif or --without-gif was given.
1440 if test "${with_gif+set}" = set; then
1445 # Check whether --with-png or --without-png was given.
1446 if test "${with_png+set}" = set; then
1451 # Check whether --with-gtk or --without-gtk was given.
1452 if test "${with_gtk+set}" = set; then
1457 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1458 if test "${with_pkg_config_prog+set}" = set; then
1459 withval
="$with_pkg_config_prog"
1463 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1464 if test "${with_toolkit_scroll_bars+set}" = set; then
1465 withval
="$with_toolkit_scroll_bars"
1469 # Check whether --with-xim or --without-xim was given.
1470 if test "${with_xim+set}" = set; then
1475 # Check whether --with-carbon or --without-carbon was given.
1476 if test "${with_carbon+set}" = set; then
1477 withval
="$with_carbon"
1480 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1481 if test "${enable_carbon_app+set}" = set; then
1482 enableval
="$enable_carbon_app"
1483 carbon_appdir_x
=${enableval}
1486 #### Make srcdir absolute, if it isn't already. It's important to
1487 #### avoid running the path through pwd unnecessarily, since pwd can
1488 #### give you automounter prefixes, which can go away. We do all this
1489 #### so Emacs can find its files when run uninstalled.
1490 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1495 ## We may be able to use the $PWD environment variable to make this
1496 ## absolute. But sometimes PWD is inaccurate.
1497 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1498 ## but that tested only for a well-formed and valid PWD,
1499 ## it did not object when PWD was well-formed and valid but just wrong.
1500 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1504 srcdir
="`(cd ${srcdir}; pwd)`"
1507 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1510 #### Check if the source directory already has a configured system in it.
1511 if test `pwd` != `(cd ${srcdir} && pwd)` \
1512 && test -f "${srcdir}/src/config.h" ; then
1513 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1514 as a build directory right now; it has been configured in its own
1515 right. To configure in another directory as well, you MUST
1516 use GNU make. If you do not have GNU make, then you must
1517 now do \`make distclean' in ${srcdir},
1518 and then run $0 again." >&5
1519 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1520 as a build directory right now; it has been configured in its own
1521 right. To configure in another directory as well, you MUST
1522 use GNU make. If you do not have GNU make, then you must
1523 now do \`make distclean' in ${srcdir},
1524 and then run $0 again." >&2;}
1526 extrasub
='/^VPATH[ ]*=/c\
1527 vpath %.c $(srcdir)\
1528 vpath %.h $(srcdir)\
1529 vpath %.y $(srcdir)\
1530 vpath %.l $(srcdir)\
1531 vpath %.s $(srcdir)\
1532 vpath %.in $(srcdir)\
1533 vpath %.texi $(srcdir)'
1536 #### Given the configuration name, set machfile and opsysfile to the
1537 #### names of the m/*.h and s/*.h files we should use.
1539 ### Canonicalize the configuration name.
1542 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1543 if test -f $ac_dir/install-sh
; then
1545 ac_install_sh
="$ac_aux_dir/install-sh -c"
1547 elif test -f $ac_dir/install.sh
; then
1549 ac_install_sh
="$ac_aux_dir/install.sh -c"
1551 elif test -f $ac_dir/shtool
; then
1553 ac_install_sh
="$ac_aux_dir/shtool install -c"
1557 if test -z "$ac_aux_dir"; then
1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1559 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1560 { (exit 1); exit 1; }; }
1562 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1563 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1564 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566 # Make sure we can run config.sub.
1567 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1568 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1569 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1570 { (exit 1); exit 1; }; }
1572 echo "$as_me:$LINENO: checking build system type" >&5
1573 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1574 if test "${ac_cv_build+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 ac_cv_build_alias
=$build_alias
1578 test -z "$ac_cv_build_alias" &&
1579 ac_cv_build_alias
=`$ac_config_guess`
1580 test -z "$ac_cv_build_alias" &&
1581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1582 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1583 { (exit 1); exit 1; }; }
1584 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1586 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1591 echo "${ECHO_T}$ac_cv_build" >&6
1593 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598 echo "$as_me:$LINENO: checking host system type" >&5
1599 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1600 if test "${ac_cv_host+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 ac_cv_host_alias
=$host_alias
1604 test -z "$ac_cv_host_alias" &&
1605 ac_cv_host_alias
=$ac_cv_build_alias
1606 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1608 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1612 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1613 echo "${ECHO_T}$ac_cv_host" >&6
1615 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621 configuration
=${host_alias-$host}
1625 ### If you add support for a new configuration, add code to this
1626 ### switch statement to recognize your configuration name and select
1627 ### the appropriate operating system and machine description files.
1629 ### You would hope that you could choose an m/*.h file pretty much
1630 ### based on the machine portion of the configuration name, and an s-
1631 ### file based on the operating system portion. However, it turns out
1632 ### that each m/*.h file is pretty manufacturer-specific - for
1633 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1634 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1635 ### machines. So we basically have to have a special case for each
1636 ### configuration name.
1638 ### As far as handling version numbers on operating systems is
1639 ### concerned, make sure things will fail in a fixable way. If
1640 ### /etc/MACHINES doesn't say anything about version numbers, be
1641 ### prepared to handle anything reasonably. If version numbers
1642 ### matter, be sure /etc/MACHINES says something about it.
1644 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1645 ### "System V Release 4"; he writes, "The old convention encouraged
1646 ### confusion between `system' and `release' levels'."
1648 machine
='' opsys
='' unported
=no
1649 case "${canonical}" in
1654 case "${canonical}" in
1655 alpha
*-*-freebsd*) machine
=alpha
;;
1656 i
[3456]86-*-freebsd*) machine
=intel386
;;
1663 if test -f /usr
/lib
/crti.o
; then
1664 cat >>confdefs.h
<<\_ACEOF
1665 #define HAVE_CRTIN 1
1670 case "${canonical}" in
1671 alpha
*-*-netbsd*) machine
=alpha
;;
1672 i
[3456]86-*-netbsd*) machine
=intel386
;;
1674 # This is somewhat bogus.
1675 machine
=hp9000s300
;;
1676 powerpc-apple-netbsd
*) machine
=macppc
;;
1677 mips-
*-netbsd*) machine
=pmax
;;
1678 mipsel-
*-netbsd*) machine
=pmax
;;
1679 mipseb-
*-netbsd*) machine
=pmax
;;
1680 ns32k-
*-netbsd*) machine
=ns32000
;;
1681 powerpc-
*-netbsd*) machine
=macppc
;;
1682 sparc
*-*-netbsd*) machine
=sparc
;;
1683 vax-
*-netbsd*) machine
=vax
;;
1684 arm-
*-netbsd*) machine
=arm
;;
1691 case "${canonical}" in
1692 alpha
*-*-openbsd*) machine
=alpha
;;
1693 i386-
*-openbsd*) machine
=intel386
;;
1694 m68k-
*-openbsd*) machine
=hp9000s300
;;
1695 mipsel-
*-openbsd*) machine
=pmax
;;
1696 ns32k-
*-openbsd*) machine
=ns32000
;;
1697 sparc-
*-openbsd*) machine
=sparc
;;
1698 vax-
*-openbsd*) machine
=vax
;;
1703 arm-acorn-riscix1.1
* )
1704 machine
=acorn opsys
=riscix1-1
1706 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1707 ## This name is riscix12 instead of riscix1.2
1708 ## to avoid a file name conflict on MSDOS.
1709 machine
=acorn opsys
=riscix12
1715 case "${canonical}" in
1716 i
[345]86-*-bsdi*) machine
=intel386
;;
1717 sparc-
*-bsdi*) machine
=sparc
;;
1718 powerpc-
*-bsdi*) machine
=macppc
;;
1720 case "${canonical}" in
1721 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1722 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1723 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1724 *-*-bsdi3* ) opsys
=bsdos3
;;
1725 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1730 ## Strictly speaking, we need the version of the alliant operating
1731 ## system to choose the right machine file, but currently the
1732 ## configuration name doesn't tell us enough to choose the right
1733 ## one; we need to give alliants their own operating system name to
1734 ## do this right. When someone cares, they can help us.
1736 machine
=alliant4 opsys
=bsd4-2
1739 machine
=alliant-2800 opsys
=bsd4-3
1742 ## Alpha (DEC) machines.
1744 machine
=alpha opsys
=osf1
1745 # This is needed to find X11R6.1 libraries for certain tests.
1746 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1747 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1748 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1749 # due to non-traditional preprocessing with the current compiler
1750 # defaults. OSF 4 can also have that compiler version, and there
1751 # seems always to have been a usable /usr/bin/cpp.
1752 NON_GNU_CPP
=/usr
/bin
/cpp
1753 case "${canonical}" in
1754 alpha
*-dec-osf[5-9]*)
1759 alpha
*-*-linux-gnu* )
1760 machine
=alpha opsys
=gnu-linux
1764 machine
=arm opsys
=gnu-linux
1769 machine
=macppc opsys
=gnu-linux
1774 machine
=altos opsys
=usg5-2
1779 machine
=amdahl opsys
=usg5-2-2
1782 ## Apollo, Domain/OS
1784 machine
=apollo opsys
=bsd4-3
1787 ## AT&T 3b2, 3b5, 3b15, 3b20
1789 machine
=att3b opsys
=usg5-2-2
1792 ## AT&T 3b1 - The Mighty Unix PC!
1794 machine
=7300 opsys
=usg5-2-2
1799 machine
=ibmrs6000 opsys
=aix3-2
1804 machine
=dpx2 opsys
=usg5-3
1809 machine
=sps7 opsys
=usg5-2
1812 ## CCI 5/32, 6/32 -- see "Tahoe".
1815 ## I don't know what configuration name to use for this; config.sub
1816 ## doesn't seem to know anything about it. Hey, Celerity users, get
1817 ## in touch with us!
1818 celerity-celerity-bsd
* )
1819 machine
=celerity opsys
=bsd4-2
1823 ## What operating systems does this chip run that Emacs has been
1827 ## We'll use the catch-all code at the bottom to guess the
1828 ## operating system.
1832 mips-compaq-nonstopux
* )
1833 machine
=nonstopux opsys
=nonstopux
1837 *-convex-bsd* |
*-convex-convexos* )
1838 machine
=convex opsys
=bsd4-3
1839 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1840 NON_GNU_CPP
="cc -E -P"
1844 i
[3456]86-cubix-sysv* )
1845 machine
=intel386 opsys
=usg5-3
1849 cydra
*-cydrome-sysv* )
1850 machine
=cydra5 opsys
=usg5-3
1853 ## Data General AViiON Machines
1854 ## DG changed naming conventions with the release of 5.4.4.10, they
1855 ## dropped the initial 5.4 but left the intervening R. Because of the
1856 ## R this shouldn't conflict with older versions of the OS (which I
1857 ## think were named like dgux4.*). In addition, DG new AViiONs series
1858 ## uses either Motorola M88k or Intel Pentium CPUs.
1859 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1860 machine
=aviion opsys
=dgux4
1862 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1863 ## This name is dgux5-4-3 instead of dgux5-4r3
1864 ## to avoid a file name conflict on MSDOS.
1865 machine
=aviion opsys
=dgux5-4-3
1867 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1868 machine
=aviion opsys
=dgux5-4r2
1871 machine
=aviion opsys
=dgux
1874 ## Data General AViiON Intel (x86) Machines
1875 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1876 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1877 i
[345]86-dg-dguxR4* )
1878 machine
=aviion-intel opsys
=dgux4
1882 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1883 machine
=pmax opsys
=bsd4-2
1885 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1886 machine
=pmax opsys
=bsd4-3
1889 machine
=pmax opsys
=ultrix4-3
1892 machine
=pmax opsys
=osf1
1894 mips-dec-mach_bsd4.3
* )
1895 machine
=pmax opsys
=mach-bsd4-3
1898 ## Motorola Delta machines
1899 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1900 machine
=delta opsys
=usg5-3
1901 if test -z "`type gnucc | grep 'not found'`"
1903 if test -s /etc
/167config
1904 then CC
="gnucc -m68040"
1905 else CC
="gnucc -m68881"
1908 if test -z "`type gcc | grep 'not found'`"
1914 m88k-motorola-sysv4
* )
1915 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1916 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1917 # I hope there are not other 4.0 versions for this machine
1918 # which really need usg5-4 instead.
1919 machine
=delta88k opsys
=usg5-4-2
1921 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1922 machine
=delta88k opsys
=usg5-3
1927 machine
=dual opsys
=usg5-2
1929 m68
*-dual-uniplus* )
1930 machine
=dual opsys
=unipl5-2
1935 machine
=elxsi opsys
=usg5-2
1940 machine
=ns16000 opsys
=umax
1943 ## The GEC 63 - apparently, this port isn't really finished yet.
1944 # I'm sure we finished off the last of the machines, though. -- fx
1946 ## Gould Power Node and NP1
1948 machine
=gould opsys
=bsd4-2
1951 machine
=gould opsys
=bsd4-3
1954 machine
=gould-np1 opsys
=bsd4-3
1957 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1958 ## as far as Emacs is concerned).
1960 # Build needs to be different on 7.0 and later releases
1961 case "`uname -r`" in
1962 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1963 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1965 NON_GNU_CPP
="/lib/cpp"
1967 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1969 machine
=nh3000 opsys
=cxux
1971 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1972 powerpc-harris-powerunix
)
1973 machine
=nh6000 opsys
=powerunix
1974 NON_GNU_CPP
="cc -Xo -E -P"
1976 ## SR2001/SR2201 running HI-UX/MPP
1977 hppa1.1
-hitachi-hiuxmpp* )
1978 machine
=sr2k opsys
=hiuxmpp
1980 hppa1.1
-hitachi-hiuxwe2* )
1981 machine
=sr2k opsys
=hiuxwe2
1984 xps
*-honeywell-sysv* )
1985 machine
=xps100 opsys
=usg5-2
1988 ## HP 9000 series 200 or 300
1990 machine
=hp9000s300 opsys
=bsd4-3
1992 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1994 case "`uname -r`" in
1995 ## Someone's system reports A.B8.05 for this.
1996 ## I wonder what other possibilities there are.
1997 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1998 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1999 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2000 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2001 *) machine
=hp9000s300 opsys
=hpux
;;
2005 ## HP 9000 series 700 and 800, running HP/UX
2007 machine
=hp800 opsys
=hpux
2010 machine
=hp800 opsys
=hpux8
2012 hppa
*-hp-hpux9shr* )
2013 machine
=hp800 opsys
=hpux9shr
2016 machine
=hp800 opsys
=hpux9
2018 hppa
*-hp-hpux10.2
* )
2019 machine
=hp800 opsys
=hpux10-20
2022 machine
=hp800 opsys
=hpux10
2024 hppa
*-hp-hpux1[1-9]* )
2025 machine
=hp800 opsys
=hpux11
2028 hppa
*-*-linux-gnu* )
2029 machine
=hp800 opsys
=gnu-linux
2032 ## HP 9000 series 700 and 800, running HP/UX
2034 ## Cross-compilation? Nah!
2035 case "`uname -r`" in
2036 ## Someone's system reports A.B8.05 for this.
2037 ## I wonder what other possibilities there are.
2038 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2039 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2040 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2041 *) machine
=hp800 opsys
=hpux10
;;
2045 machine
=hp800 opsys
=nextstep
2050 machine
=orion opsys
=bsd4-2
2052 clipper-orion-bsd
* )
2053 machine
=orion105 opsys
=bsd4-2
2057 i
[3456]86-ibm-aix1.1
* )
2058 machine
=ibmps2-aix opsys
=usg5-2-2
2060 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2061 machine
=ibmps2-aix opsys
=usg5-3
2064 machine
=ibm370aix opsys
=usg5-3
2067 machine
=ibms390 opsys
=gnu-linux
2069 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2070 machine
=ibmrs6000 opsys
=aix3-1
2072 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2073 machine
=ibmrs6000 opsys
=aix3-2-5
2075 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2076 machine
=ibmrs6000 opsys
=aix4-1
2078 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2079 machine
=ibmrs6000 opsys
=aix4-2
2081 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2082 machine
=ibmrs6000 opsys
=aix4-2
2084 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2085 machine
=ibmrs6000 opsys
=aix4
2087 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2088 machine
=ibmrs6000 opsys
=aix4-1
2090 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2091 machine
=ibmrs6000 opsys
=aix3-2
2094 machine
=ibmrt opsys
=bsd4-3
2097 machine
=ibmrt opsys
=bsd4-2
2100 machine
=ibmrt opsys
=bsd4-3
2103 machine
=ibmrt opsys
=bsd4-2
2106 machine
=ibmrt opsys
=bsd4-3
2109 machine
=ibmrt opsys
=bsd4-3
2112 machine
=ibmrt-aix opsys
=usg5-2-2
2115 ## Integrated Solutions `Optimum V'
2117 machine
=isi-ov opsys
=bsd4-2
2120 machine
=isi-ov opsys
=bsd4-3
2123 ## Intel 386 machines where we do care about the manufacturer
2124 i
[3456]86-intsys-sysv* )
2125 machine
=is386 opsys
=usg5-2-2
2129 i
[3456]86-prime-sysv* )
2130 machine
=i386 opsys
=usg5-3
2133 ## Sequent Symmetry running Dynix
2134 i
[3456]86-sequent-bsd* )
2135 machine
=symmetry opsys
=bsd4-3
2138 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2139 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2140 machine
=sequent-ptx opsys
=ptx4
2141 NON_GNU_CPP
=/lib
/cpp
2144 ## Sequent Symmetry running DYNIX/ptx
2145 ## Use the old cpp rather than the newer ANSI one.
2146 i
[3456]86-sequent-ptx* )
2147 machine
=sequent-ptx opsys
=ptx
2148 NON_GNU_CPP
="/lib/cpp"
2151 ## ncr machine running svr4.3.
2152 i
[3456]86-ncr-sysv4.3
)
2153 machine
=ncr386 opsys
=usg5-4-3
2156 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2157 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2158 i
[3456]86-ncr-sysv* )
2159 machine
=ncr386 opsys
=usg5-4-2
2162 ## Intel Paragon OSF/1
2164 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2169 machine
=i860 opsys
=usg5-4
2170 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2171 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2174 ## Macintosh PowerPC
2175 powerpc
*-*-linux-gnu* )
2176 machine
=macppc opsys
=gnu-linux
2179 ## Masscomp machines
2180 m68
*-masscomp-rtu* )
2181 machine
=masscomp opsys
=rtu
2184 ## Megatest machines
2185 m68
*-megatest-bsd* )
2186 machine
=mega68 opsys
=bsd4-2
2189 ## Workstations sold by MIPS
2190 ## This is not necessarily all workstations using the MIPS processor -
2191 ## Irises are produced by SGI, and DECstations by DEC.
2193 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2194 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2195 ## it gives for choosing between the alternatives seems to be "Use
2196 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2197 ## the BSD world." I'll assume that these are instructions for
2198 ## handling two odd situations, and that every other situation
2199 ## should use mips.h and usg5-2-2, they being listed first.
2202 ## Fall through to the general code at the bottom to decide on the OS.
2204 mips-mips-riscos4
* )
2205 machine
=mips4 opsys
=bsd4-3
2206 NON_GNU_CC
="cc -systype bsd43"
2207 NON_GNU_CPP
="cc -systype bsd43 -E"
2209 mips-mips-riscos5
* )
2210 machine
=mips4 opsys
=riscos5
2211 NON_GNU_CC
="cc -systype bsd43"
2212 NON_GNU_CPP
="cc -systype bsd43 -E"
2215 machine
=mips opsys
=bsd4-3
2218 machine
=mips opsys
=usg5-2-2
2222 m68
*-next-* | m68k-
*-nextstep* )
2223 machine
=m68k opsys
=nextstep
2226 ## The complete machine from National Semiconductor
2228 machine
=ns32000 opsys
=usg5-2
2232 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2233 machine
=tower32 opsys
=usg5-2-2
2235 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2236 machine
=tower32v3 opsys
=usg5-3
2241 machine
=ews4800 opsys
=ux4800
2244 ## Nixdorf Targon 31
2245 m68
*-nixdorf-sysv* )
2246 machine
=targon31 opsys
=usg5-2-2
2251 machine
=nu opsys
=usg5-2
2256 machine
=plexus opsys
=usg5-2
2260 ## I don't really have any idea what sort of processor the Pyramid has,
2261 ## so I'm assuming it is its own architecture.
2262 pyramid-pyramid-bsd
* )
2263 machine
=pyramid opsys
=bsd4-2
2267 ns32k-sequent-bsd4.2
* )
2268 machine
=sequent opsys
=bsd4-2
2270 ns32k-sequent-bsd4.3
* )
2271 machine
=sequent opsys
=bsd4-3
2275 mips-siemens-sysv
* | mips-sni-sysv
*)
2276 machine
=mips-siemens opsys
=usg5-4
2277 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2278 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2281 ## Silicon Graphics machines
2282 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2284 machine
=irist opsys
=iris3-5
2286 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2287 machine
=irist opsys
=iris3-6
2291 machine
=iris4d opsys
=irix3-3
2294 machine
=iris4d opsys
=irix4-0
2297 machine
=iris4d opsys
=irix6-5
2298 # Without defining _LANGUAGE_C, things get masked out in the headers
2299 # so that, for instance, grepping for `free' in stdlib.h fails and
2300 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2301 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2302 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2305 machine
=iris4d opsys
=irix6-0
2306 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2307 # but presumably it does no harm.
2308 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2309 # -32 probably isn't necessary in later v.6s -- anyone know which?
2310 NON_GCC_TEST_OPTIONS
=-32
2312 mips-sgi-irix5.
[01]* )
2313 machine
=iris4d opsys
=irix5-0
2315 mips-sgi-irix5
* | mips-sgi-irix
* )
2316 machine
=iris4d opsys
=irix5-2
2321 machine
=news opsys
=bsd4-2
2324 machine
=news opsys
=bsd4-3
2326 m68
*-sony-newsos3* | m68
*-sony-news3*)
2327 machine
=news opsys
=bsd4-3
2329 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2330 machine
=news-risc opsys
=bsd4-3
2332 mips-sony-newsos6
* )
2333 machine
=news-r6 opsys
=newsos6
2336 machine
=news-risc opsys
=newsos5
2341 machine
=stride opsys
=usg5-2
2345 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2346 machine
=sparc opsys
=gnu-linux
2349 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2350 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2351 | rs6000-
*-solaris2*)
2352 case "${canonical}" in
2353 m68
*-sunos1* ) machine
=sun1
;;
2354 m68
*-sunos2* ) machine
=sun2
;;
2355 m68
* ) machine
=sun3
;;
2356 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2357 i
[3456]86-*-* ) machine
=intel386
;;
2358 powerpcle
* ) machine
=powerpcle
;;
2359 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2360 sparc
* ) machine
=sparc
;;
2363 case "${canonical}" in
2364 ## The Sun386 didn't get past 4.0.
2365 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2366 *-sunos4.0
* ) opsys
=sunos4-0
;;
2367 *-sunos4.1.
[3-9]*noshare
)
2368 ## This name is sunos413 instead of sunos4-1-3
2369 ## to avoid a file name conflict on MSDOS.
2371 NON_GNU_CPP
=/usr
/lib
/cpp
2372 NON_GCC_TEST_OPTIONS
=-Bstatic
2373 GCC_TEST_OPTIONS
=-static
2375 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2377 NON_GNU_CPP
=/usr
/lib
/cpp
2379 *-sunos4* |
*-sunos )
2381 NON_GCC_TEST_OPTIONS
=-Bstatic
2382 GCC_TEST_OPTIONS
=-static
2384 *-sunos5.3
* |
*-solaris2.3
* )
2386 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2388 *-sunos5.4
* |
*-solaris2.4
* )
2390 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2393 *-sunos5.5
* |
*-solaris2.5
* )
2395 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2398 *-sunos5.6
* |
*-solaris2.6
* )
2400 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2403 *-sunos5* |
*-solaris* )
2405 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2409 ## Watch out for a compiler that we know will not work.
2410 case "${canonical}" in
2411 *-solaris* |
*-sunos5* )
2412 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2413 ## /usr/ucb/cc doesn't work;
2414 ## we should find some other compiler that does work.
2422 machine
=sparc opsys
=nextstep
2426 m68
*-tadpole-sysv* )
2427 machine
=tad68k opsys
=usg5-3
2431 tahoe-tahoe-bsd4.2
* )
2432 machine
=tahoe opsys
=bsd4-2
2434 tahoe-tahoe-bsd4.3
* )
2435 machine
=tahoe opsys
=bsd4-3
2438 ## Tandem Integrity S2
2440 machine
=tandem-s2 opsys
=usg5-3
2444 m88k-tektronix-sysv3
* )
2445 machine
=tekxd88 opsys
=usg5-3
2448 ## Tektronix 16000 box (6130?)
2449 ns16k-tektronix-bsd
* )
2450 machine
=ns16000 opsys
=bsd4-2
2453 ## src/m/tek4300.h hints that this is a m68k machine.
2454 m68
*-tektronix-bsd* )
2455 machine
=tek4300 opsys
=bsd4-3
2459 ## We seem to have lost the machine-description file titan.h!
2461 machine
=titan opsys
=usg5-3
2464 ## Ustation E30 (SS5E)
2465 m68
*-unisys-uniplus* )
2466 machine
=ustation opsystem
=unipl5-2
2472 case "${canonical}" in
2473 *-bsd4.1
* ) opsys
=bsd4-1
;;
2474 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2475 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2476 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2477 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2478 *-vms* ) opsys
=vms
;;
2484 ns16k-whitechapel-
* )
2486 ## We don't know what sort of OS runs on these; we'll let the
2487 ## operating system guessing code below try.
2492 machine
=wicat opsys
=usg5-2
2497 machine
=ia64 opsys
=gnu-linux
2500 ## Intel 386 machines where we don't care about the manufacturer
2503 case "${canonical}" in
2504 *-cygwin ) opsys
=cygwin
;;
2505 *-lynxos* ) opsys
=lynxos
;;
2506 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2507 *-isc2.2
* ) opsys
=isc2-2
;;
2508 *-isc4.0
* ) opsys
=isc4-0
;;
2509 *-isc4.
* ) opsys
=isc4-1
2510 GCC_TEST_OPTIONS
=-posix
2511 NON_GCC_TEST_OPTIONS
=-Xp
2513 *-isc* ) opsys
=isc3-0
;;
2514 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2515 *-esix* ) opsys
=esix
;;
2516 *-xenix* ) opsys
=xenix
;;
2517 *-linux-gnu* ) opsys
=gnu-linux
;;
2518 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2519 *-sco3.2v5
* ) opsys
=sco5
2520 NON_GNU_CPP
=/lib
/cpp
2521 # Prevent -belf from being passed to $CPP.
2522 # /lib/cpp does not accept it.
2523 OVERRIDE_CPPFLAGS
=" "
2525 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2526 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2527 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2528 *-386bsd* ) opsys
=386bsd
;;
2529 *-nextstep* ) opsys
=nextstep
;;
2530 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2534 ## m68k Linux-based GNU system
2536 machine
=m68k opsys
=gnu-linux
2539 ## Mips Linux-based GNU system
2540 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2541 machine
=mips opsys
=gnu-linux
2545 sparc-fujitsu-sysv4
* )
2546 machine
=sparc opsys
=uxpds
2547 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2552 f301-fujitsu-uxpv4.1
)
2553 machine
=f301 opsys
=uxpv
2556 ## Darwin / Mac OS X
2557 powerpc-apple-darwin
* )
2558 machine
=powermac opsys
=darwin
2559 # Define CPP as follows to make autoconf work correctly.
2560 CPP
="cc -E -traditional-cpp"
2563 ## AMD x86-64 Linux-based GNU system
2564 x86_64-
*-linux-gnu* )
2565 machine
=amdx86-64 opsys
=gnu-linux
2573 ### If the code above didn't choose an operating system, just choose
2574 ### an operating system based on the configuration name. You really
2575 ### only want to use this when you have no idea what the right
2576 ### operating system is; if you know what operating systems a machine
2577 ### runs, it's cleaner to make it explicit in the case statement
2579 if test x
"${opsys}" = x
; then
2580 case "${canonical}" in
2581 *-gnu* ) opsys
=gnu
;;
2582 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2583 *-bsd4.2
) opsys
=bsd4-2
;;
2584 *-bsd4.3
) opsys
=bsd4-3
;;
2585 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2586 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2587 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2588 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2589 *-sysv4.2uw
* ) opsys
=unixware
;;
2590 *-sysv5uw* ) opsys
=unixware
;;
2591 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2592 *-sysv4.1
* |
*-sysvr4.1
* )
2593 NON_GNU_CPP
=/usr
/lib
/cpp
2595 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2596 if [ x
$NON_GNU_CPP = x
]; then
2597 if [ -f /usr
/ccs
/lib
/cpp
]; then
2598 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2600 NON_GNU_CPP
=/lib
/cpp
2604 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2613 if test $unported = yes; then
2614 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2615 Check \`etc/MACHINES' for recognized configuration names." >&5
2616 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2617 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2618 { (exit 1); exit 1; }; }
2621 machfile
="m/${machine}.h"
2622 opsysfile
="s/${opsys}.h"
2625 #### Choose a compiler.
2626 test -n "$CC" && cc_specified
=yes
2628 # Save the value of CFLAGS that the user specified.
2629 SPECIFIED_CFLAGS
="$CFLAGS"
2632 "yes" ) CC
="gcc" GCC
=yes ;;
2633 "no" ) : ${CC=cc} ;;
2637 ac_cpp
='$CPP $CPPFLAGS'
2638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2641 if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_CC+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC
="$CC" # Let the user override the test.
2652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir
=.
2657 for ac_exec_ext
in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 if test -n "$CC"; then
2670 echo "$as_me:$LINENO: result: $CC" >&5
2671 echo "${ECHO_T}$CC" >&6
2673 echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2678 if test -z "$ac_cv_prog_CC"; then
2680 # Extract the first word of "gcc", so it can be a program name with args.
2681 set dummy gcc
; ac_word
=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir
=.
2695 for ac_exec_ext
in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_ac_ct_CC
="gcc"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709 echo "${ECHO_T}$ac_ct_CC" >&6
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2723 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2724 echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726 if test "${ac_cv_prog_CC+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC
="$CC" # Let the user override the test.
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 for ac_exec_ext
in '' $ac_executable_extensions; do
2738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test -n "$CC"; then
2750 echo "$as_me:$LINENO: result: $CC" >&5
2751 echo "${ECHO_T}$CC" >&6
2753 echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2758 if test -z "$ac_cv_prog_CC"; then
2760 # Extract the first word of "cc", so it can be a program name with args.
2761 set dummy cc
; ac_word
=$2
2762 echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_CC
="cc"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 echo "${ECHO_T}$ac_ct_CC" >&6
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2801 if test -z "$CC"; then
2802 # Extract the first word of "cc", so it can be a program name with args.
2803 set dummy cc
; ac_word
=$2
2804 echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806 if test "${ac_cv_prog_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC
="$CC" # Let the user override the test.
2813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir
=.
2818 for ac_exec_ext
in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2821 ac_prog_rejected
=yes
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test $ac_prog_rejected = yes; then
2832 # We found a bogon in the path, so make sure we never use it.
2833 set dummy
$ac_cv_prog_CC
2835 if test $# != 0; then
2836 # We chose a different compiler from the bogus one.
2837 # However, it has the same basename, so the bogon will be chosen
2838 # first if we set CC to just the basename; use the full file name.
2840 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2846 if test -n "$CC"; then
2847 echo "$as_me:$LINENO: result: $CC" >&5
2848 echo "${ECHO_T}$CC" >&6
2850 echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2861 echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_prog_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC
="$CC" # Let the user override the test.
2869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir
=.
2874 for ac_exec_ext
in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 if test -n "$CC"; then
2887 echo "$as_me:$LINENO: result: $CC" >&5
2888 echo "${ECHO_T}$CC" >&6
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2894 test -n "$CC" && break
2897 if test -z "$CC"; then
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902 set dummy
$ac_prog; ac_word
=$2
2903 echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir
=.
2916 for ac_exec_ext
in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_CC
="$ac_prog"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930 echo "${ECHO_T}$ac_ct_CC" >&6
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2936 test -n "$ac_ct_CC" && break
2945 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: no acceptable C compiler found in \$PATH
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2951 # Provide some information about the compiler.
2952 echo "$as_me:$LINENO:" \
2953 "checking for C compiler version" >&5
2954 ac_compiler
=`set X $ac_compile; echo $2`
2955 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2956 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2961 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2965 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2966 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }
2971 cat >conftest.
$ac_ext <<_ACEOF
2974 cat confdefs.h
>>conftest.
$ac_ext
2975 cat >>conftest.
$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 ac_clean_files_save
=$ac_clean_files
2987 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2991 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2993 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2995 (eval $ac_link_default) 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; then
2999 # Find the output, starting from the most likely. This scheme is
3000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3003 # Be careful to initialize this variable, since it used to be cached.
3004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3006 # b.out is created by i960 compilers.
3007 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3009 test -f "$ac_file" ||
continue
3011 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3014 # This is the source file.
3017 # We found the default executable, but exeext='' is most
3021 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 # FIXME: I believe we export ac_cv_exeext for Libtool,
3023 # but it would be cool to find out if it's true. Does anybody
3024 # maintain Libtool? --akim.
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.
$ac_ext >&5
3035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C compiler cannot create executables
3038 See \`config.log' for more details." >&2;}
3039 { (exit 77); exit 77; }; }
3042 ac_exeext
=$ac_cv_exeext
3043 echo "$as_me:$LINENO: result: $ac_file" >&5
3044 echo "${ECHO_T}$ac_file" >&6
3046 # Check the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3051 # If not cross compiling, check that we can run a simple program.
3052 if test "$cross_compiling" != yes; then
3053 if { ac_try
='./$ac_file'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 if test "$cross_compiling" = maybe
; then
3064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3065 If you meant to cross compile, use \`--host'.
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot run C compiled programs.
3068 If you meant to cross compile, use \`--host'.
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3074 echo "$as_me:$LINENO: result: yes" >&5
3075 echo "${ECHO_T}yes" >&6
3077 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3078 ac_clean_files
=$ac_clean_files_save
3079 # Check the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3084 echo "${ECHO_T}$cross_compiling" >&6
3086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089 (eval $ac_link) 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3097 for ac_file
in conftest.exe conftest conftest.
*; do
3098 test -f "$ac_file" ||
continue
3100 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3101 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3115 rm -f conftest
$ac_cv_exeext
3116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 echo "${ECHO_T}$ac_cv_exeext" >&6
3119 rm -f conftest.
$ac_ext
3120 EXEEXT
=$ac_cv_exeext
3122 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3124 if test "${ac_cv_objext+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 cat >conftest.
$ac_ext <<_ACEOF
3130 cat confdefs.h
>>conftest.
$ac_ext
3131 cat >>conftest.
$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3142 rm -f conftest.o conftest.obj
3143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144 (eval $ac_compile) 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; then
3148 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3150 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3151 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.
$ac_ext >&5
3159 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3162 See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3166 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3168 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3169 echo "${ECHO_T}$ac_cv_objext" >&6
3170 OBJEXT
=$ac_cv_objext
3172 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3173 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3174 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 cat >conftest.
$ac_ext <<_ACEOF
3180 cat confdefs.h
>>conftest.
$ac_ext
3181 cat >>conftest.
$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3195 rm -f conftest.
$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try
='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.
$ac_ext >&5
3214 rm -f conftest.
$ac_objext conftest.
$ac_ext
3215 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3218 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3220 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3221 ac_test_CFLAGS
=${CFLAGS+set}
3222 ac_save_CFLAGS
=$CFLAGS
3224 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3225 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3226 if test "${ac_cv_prog_cc_g+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 cat >conftest.
$ac_ext <<_ACEOF
3232 cat confdefs.h
>>conftest.
$ac_ext
3233 cat >>conftest.
$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try
='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.
$ac_ext >&5
3263 rm -f conftest.
$ac_objext conftest.
$ac_ext
3265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3267 if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS
=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3276 if test "$GCC" = yes; then
3282 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3283 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3284 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 ac_cv_prog_cc_stdc
=no
3289 cat >conftest.
$ac_ext <<_ACEOF
3292 cat confdefs.h
>>conftest.
$ac_ext
3293 cat >>conftest.
$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3313 s = g (p, va_arg (v,int));
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 # Don't try gcc -ansi; that turns off useful extensions and
3332 # breaks some systems' header files.
3333 # AIX -qlanglvl=ansi
3334 # Ultrix and OSF/1 -std1
3335 # HP-UX 10.20 and later -Ae
3336 # HP-UX older versions -Aa -D_HPUX_SOURCE
3337 # SVR4 -Xc -D__EXTENSIONS__
3338 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC
="$ac_save_CC $ac_arg"
3341 rm -f conftest.
$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try
='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_stdc
=$ac_arg
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.
$ac_ext >&5
3360 rm -f conftest.
$ac_objext
3362 rm -f conftest.
$ac_ext conftest.
$ac_objext
3367 case "x$ac_cv_prog_cc_stdc" in
3369 echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6 ;;
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3374 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3377 # Some people use a C++ compiler to compile C. Since we use `exit',
3378 # in C++ we need to declare it. In case someone uses the same compiler
3379 # for both compiling C and C++ we need to have the C++ compiler decide
3380 # the declaration of exit, since it's the most demanding environment.
3381 cat >conftest.
$ac_ext <<_ACEOF
3386 rm -f conftest.
$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try
='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 for ac_declaration
in \
3400 'extern "C" void std::exit (int) throw (); using std::exit;' \
3401 'extern "C" void std::exit (int); using std::exit;' \
3402 'extern "C" void exit (int) throw ();' \
3403 'extern "C" void exit (int);' \
3406 cat >conftest.
$ac_ext <<_ACEOF
3409 cat confdefs.h
>>conftest.
$ac_ext
3410 cat >>conftest.
$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3422 rm -f conftest.
$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try
='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.
$ac_ext >&5
3441 rm -f conftest.
$ac_objext conftest.
$ac_ext
3442 cat >conftest.
$ac_ext <<_ACEOF
3445 cat confdefs.h
>>conftest.
$ac_ext
3446 cat >>conftest.
$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3457 rm -f conftest.
$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try
='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3475 rm -f conftest.
$ac_objext conftest.
$ac_ext
3478 if test -n "$ac_declaration"; then
3479 echo '#ifdef __cplusplus' >>confdefs.h
3480 echo $ac_declaration >>confdefs.h
3481 echo '#endif' >>confdefs.h
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.
$ac_ext >&5
3489 rm -f conftest.
$ac_objext conftest.
$ac_ext
3491 ac_cpp
='$CPP $CPPFLAGS'
3492 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3497 # On Suns, sometimes $CPP names a directory.
3498 if test -n "$CPP" && test -d "$CPP"; then
3502 #### Some systems specify a CPP to use unless we are using GCC.
3503 #### Now that we know whether we are using GCC, we can decide whether
3504 #### to use that one.
3505 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3510 #### Some systems specify a CC to use unless we are using GCC.
3511 #### Now that we know whether we are using GCC, we can decide whether
3512 #### to use that one.
3513 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3514 test x
$cc_specified != xyes
3519 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3521 CC
="$CC $GCC_TEST_OPTIONS"
3524 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3526 CC
="$CC $NON_GCC_TEST_OPTIONS"
3529 #### Some other nice autoconf tests.
3531 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3532 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3534 if test "$LN_S" = "ln -s"; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3538 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3539 echo "${ECHO_T}no, using $LN_S" >&6
3543 ac_cpp
='$CPP $CPPFLAGS'
3544 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3547 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3548 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3549 # On Suns, sometimes $CPP names a directory.
3550 if test -n "$CPP" && test -d "$CPP"; then
3553 if test -z "$CPP"; then
3554 if test "${ac_cv_prog_CPP+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 # Double quotes because CPP needs to be expanded
3558 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3561 for ac_c_preproc_warn_flag
in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.
$ac_ext <<_ACEOF
3572 cat confdefs.h
>>conftest.
$ac_ext
3573 cat >>conftest.
$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3576 # include <limits.h>
3578 # include <assert.h>
3582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3583 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1
>conftest.err
3587 cat conftest.err
>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev
/null
; then
3590 if test -s conftest.err
; then
3591 ac_cpp_err
=$ac_c_preproc_warn_flag
3598 if test -z "$ac_cpp_err"; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 # Broken: fails on valid input.
3607 rm -f conftest.err conftest.
$ac_ext
3609 # OK, works on sane cases. Now check whether non-existent headers
3610 # can be detected and how.
3611 cat >conftest.
$ac_ext <<_ACEOF
3614 cat confdefs.h
>>conftest.
$ac_ext
3615 cat >>conftest.
$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3620 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3622 grep -v '^ *+' conftest.er1
>conftest.err
3624 cat conftest.err
>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } >/dev
/null
; then
3627 if test -s conftest.err
; then
3628 ac_cpp_err
=$ac_c_preproc_warn_flag
3635 if test -z "$ac_cpp_err"; then
3636 # Broken: success on invalid input.
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.
$ac_ext >&5
3642 # Passes both tests.
3646 rm -f conftest.err conftest.
$ac_ext
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.
$ac_ext
3651 if $ac_preproc_ok; then
3663 echo "$as_me:$LINENO: result: $CPP" >&5
3664 echo "${ECHO_T}$CPP" >&6
3666 for ac_c_preproc_warn_flag
in '' yes
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error" is here to catch this case.
3674 cat >conftest.
$ac_ext <<_ACEOF
3677 cat confdefs.h
>>conftest.
$ac_ext
3678 cat >>conftest.
$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 # include <limits.h>
3683 # include <assert.h>
3687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3688 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3690 grep -v '^ *+' conftest.er1
>conftest.err
3692 cat conftest.err
>&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } >/dev
/null
; then
3695 if test -s conftest.err
; then
3696 ac_cpp_err
=$ac_c_preproc_warn_flag
3703 if test -z "$ac_cpp_err"; then
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.
$ac_ext >&5
3709 # Broken: fails on valid input.
3712 rm -f conftest.err conftest.
$ac_ext
3714 # OK, works on sane cases. Now check whether non-existent headers
3715 # can be detected and how.
3716 cat >conftest.
$ac_ext <<_ACEOF
3719 cat confdefs.h
>>conftest.
$ac_ext
3720 cat >>conftest.
$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3727 grep -v '^ *+' conftest.er1
>conftest.err
3729 cat conftest.err
>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev
/null
; then
3732 if test -s conftest.err
; then
3733 ac_cpp_err
=$ac_c_preproc_warn_flag
3740 if test -z "$ac_cpp_err"; then
3741 # Broken: success on invalid input.
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 # Passes both tests.
3751 rm -f conftest.err conftest.
$ac_ext
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.
$ac_ext
3756 if $ac_preproc_ok; then
3759 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&2;}
3763 { (exit 1); exit 1; }; }
3767 ac_cpp
='$CPP $CPPFLAGS'
3768 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3772 # Find a good install program. We prefer a C program (faster),
3773 # so one script is as good as another. But avoid the broken or
3774 # incompatible versions:
3775 # SysV /etc/install, /usr/sbin/install
3776 # SunOS /usr/etc/install
3777 # IRIX /sbin/install
3779 # AmigaOS /C/install, which installs bootblocks on floppy discs
3780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3783 # OS/2's system install, which has a completely different semantic
3784 # ./install, which can be erroneously created by make from ./install.sh.
3785 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3786 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3787 if test -z "$INSTALL"; then
3788 if test "${ac_cv_path_install+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir
=.
3796 # Account for people who put trailing slashes in PATH elements.
3798 .
/ | .
// |
/cC
/* | \
3799 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3800 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3803 # OSF1 and SCO ODT 3.0 have their own names for install.
3804 # Don't use installbsd from OSF since it installs stuff as root
3806 for ac_prog
in ginstall scoinst
install; do
3807 for ac_exec_ext
in '' $ac_executable_extensions; do
3808 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3809 if test $ac_prog = install &&
3810 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3811 # AIX install. It has an incompatible calling convention.
3813 elif test $ac_prog = install &&
3814 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3815 # program-specific install script used by HP pwplus--don't use.
3818 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3830 if test "${ac_cv_path_install+set}" = set; then
3831 INSTALL
=$ac_cv_path_install
3833 # As a last resort, use the slow shell script. We don't cache a
3834 # path for INSTALL within a source directory, because that will
3835 # break other packages using the cache if that directory is
3836 # removed, or if the path is relative.
3837 INSTALL
=$ac_install_sh
3840 echo "$as_me:$LINENO: result: $INSTALL" >&5
3841 echo "${ECHO_T}$INSTALL" >&6
3843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3844 # It thinks the first close brace ends the variable substitution.
3845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3849 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3851 if test "x$RANLIB" = x
; then
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3854 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_RANLIB+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if test -n "$RANLIB"; then
3861 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir
=.
3868 for ac_exec_ext
in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 RANLIB
=$ac_cv_prog_RANLIB
3880 if test -n "$RANLIB"; then
3881 echo "$as_me:$LINENO: result: $RANLIB" >&5
3882 echo "${ECHO_T}$RANLIB" >&6
3884 echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3889 if test -z "$ac_cv_prog_RANLIB"; then
3890 ac_ct_RANLIB
=$RANLIB
3891 # Extract the first word of "ranlib", so it can be a program name with args.
3892 set dummy ranlib
; ac_word
=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 if test -n "$ac_ct_RANLIB"; then
3899 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir
=.
3906 for ac_exec_ext
in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3918 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3919 if test -n "$ac_ct_RANLIB"; then
3920 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3921 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3923 echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3927 RANLIB
=$ac_ct_RANLIB
3929 RANLIB
="$ac_cv_prog_RANLIB"
3933 # Extract the first word of "install-info", so it can be a program name with args.
3934 set dummy install-info
; ac_word
=$2
3935 echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 case $INSTALL_INFO in
3942 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3964 if test -n "$INSTALL_INFO"; then
3965 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3966 echo "${ECHO_T}$INSTALL_INFO" >&6
3968 echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3972 # Extract the first word of "install-info", so it can be a program name with args.
3973 set dummy install-info
; ac_word
=$2
3974 echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3976 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 case $INSTALL_INFO in
3981 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 for as_dir
in /usr
/sbin
3988 test -z "$as_dir" && as_dir
=.
3989 for ac_exec_ext
in '' $ac_executable_extensions; do
3990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4003 if test -n "$INSTALL_INFO"; then
4004 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4005 echo "${ECHO_T}$INSTALL_INFO" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4011 # Extract the first word of "install-info", so it can be a program name with args.
4012 set dummy install-info
; ac_word
=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 case $INSTALL_INFO in
4020 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir
=.
4028 for ac_exec_ext
in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4041 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4043 if test -n "$INSTALL_INFO"; then
4044 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4045 echo "${ECHO_T}$INSTALL_INFO" >&6
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4053 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4055 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4058 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4060 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4065 echo "$as_me:$LINENO: checking for egrep" >&5
4066 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4067 if test "${ac_cv_prog_egrep+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4071 then ac_cv_prog_egrep
='grep -E'
4072 else ac_cv_prog_egrep
='egrep'
4075 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4076 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4077 EGREP
=$ac_cv_prog_egrep
4081 echo "$as_me:$LINENO: checking for AIX" >&5
4082 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4083 cat >conftest.
$ac_ext <<_ACEOF
4086 cat confdefs.h
>>conftest.
$ac_ext
4087 cat >>conftest.
$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "yes" >/dev
/null
2>&1; then
4096 echo "$as_me:$LINENO: result: yes" >&5
4097 echo "${ECHO_T}yes" >&6
4098 cat >>confdefs.h
<<\_ACEOF
4099 #define _ALL_SOURCE 1
4103 echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4110 #### Extract some information from the operating system and machine files.
4112 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4113 - which libraries the lib-src programs will want, and
4114 - whether the GNU malloc routines are usable..." >&5
4115 echo "$as_me: checking the machine- and system-dependent files to find out
4116 - which libraries the lib-src programs will want, and
4117 - whether the GNU malloc routines are usable..." >&6;}
4119 ### First figure out CFLAGS (which we use for running the compiler here)
4120 ### and REAL_CFLAGS (which we use for real compilation).
4121 ### The two are the same except on a few systems, where they are made
4122 ### different to work around various lossages. For example,
4123 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4124 ### as implying static linking.
4126 ### If the CFLAGS env var is specified, we use that value
4127 ### instead of the default.
4129 ### It's not important that this name contain the PID; you can't run
4130 ### two configures in the same directory and have anything work
4132 tempcname
="conftest.c"
4135 #include "'${srcdir}'/src/'${opsysfile}'"
4136 #include "'${srcdir}'/src/'${machfile}'"
4137 #ifndef LIBS_MACHINE
4138 #define LIBS_MACHINE
4143 #ifndef C_SWITCH_SYSTEM
4144 #define C_SWITCH_SYSTEM
4146 #ifndef C_SWITCH_MACHINE
4147 #define C_SWITCH_MACHINE
4149 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4150 configure___ c_switch_system=C_SWITCH_SYSTEM
4151 configure___ c_switch_machine=C_SWITCH_MACHINE
4154 #define LIB_X11_LIB -lX11
4157 #ifndef LIBX11_MACHINE
4158 #define LIBX11_MACHINE
4161 #ifndef LIBX11_SYSTEM
4162 #define LIBX11_SYSTEM
4164 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4167 configure___ unexec=UNEXEC
4169 configure___ unexec=unexec.o
4172 #ifdef SYSTEM_MALLOC
4173 configure___ system_malloc=yes
4175 configure___ system_malloc=no
4178 #ifdef USE_MMAP_FOR_BUFFERS
4179 configure___ use_mmap_for_buffers=yes
4181 configure___ use_mmap_for_buffers=no
4184 #ifndef C_DEBUG_SWITCH
4185 #define C_DEBUG_SWITCH -g
4188 #ifndef C_OPTIMIZE_SWITCH
4190 #define C_OPTIMIZE_SWITCH -O2
4192 #define C_OPTIMIZE_SWITCH -O
4196 #ifndef LD_SWITCH_MACHINE
4197 #define LD_SWITCH_MACHINE
4200 #ifndef LD_SWITCH_SYSTEM
4201 #define LD_SWITCH_SYSTEM
4204 #ifndef LD_SWITCH_X_SITE_AUX
4205 #define LD_SWITCH_X_SITE_AUX
4208 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4209 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4211 #ifdef THIS_IS_CONFIGURE
4213 /* Get the CFLAGS for tests in configure. */
4215 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4217 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4220 #else /* not THIS_IS_CONFIGURE */
4222 /* Get the CFLAGS for real compilation. */
4224 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4226 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4229 #endif /* not THIS_IS_CONFIGURE */
4232 # The value of CPP is a quoted variable reference, so we need to do this
4233 # to get its actual value...
4234 CPP
=`eval "echo $CPP"`
4235 eval `${CPP} -Isrc ${tempcname} \
4236 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4237 if test "x$SPECIFIED_CFLAGS" = x
; then
4238 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4239 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4241 REAL_CFLAGS
="$CFLAGS"
4245 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4247 ### Make sure subsequent tests use flags consistent with the build flags.
4249 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4250 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4252 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4258 cat >>confdefs.h
<<\_ACEOF
4259 #define _GNU_SOURCE 1
4264 # Check whether --enable-largefile or --disable-largefile was given.
4265 if test "${enable_largefile+set}" = set; then
4266 enableval
="$enable_largefile"
4269 if test "$enable_largefile" != no
; then
4271 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4272 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4273 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_cv_sys_largefile_CC
=no
4277 if test "$GCC" != yes; then
4280 # IRIX 6.2 and later do not support large files by default,
4281 # so use the C compiler's -n32 option if that helps.
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 /* Check that off_t can represent 2**63 - 1 correctly.
4290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291 since some C++ compilers masquerading as C compilers
4292 incorrectly reject 9223372036854775807. */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295 && LARGE_OFF_T % 2147483647 == 1)
4305 rm -f conftest.
$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try
='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.
$ac_ext >&5
4323 rm -f conftest.
$ac_objext
4325 rm -f conftest.
$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try
='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_sys_largefile_CC
=' -n32'; break
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.
$ac_ext >&5
4343 rm -f conftest.
$ac_objext
4347 rm -f conftest.
$ac_ext
4350 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4351 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4352 if test "$ac_cv_sys_largefile_CC" != no
; then
4353 CC
=$CC$ac_cv_sys_largefile_CC
4356 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4357 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_cv_sys_file_offset_bits
=no
4363 cat >conftest.
$ac_ext <<_ACEOF
4366 cat confdefs.h
>>conftest.
$ac_ext
4367 cat >>conftest.
$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4386 rm -f conftest.
$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try
='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.
$ac_ext >&5
4404 rm -f conftest.
$ac_objext conftest.
$ac_ext
4405 cat >conftest.
$ac_ext <<_ACEOF
4408 cat confdefs.h
>>conftest.
$ac_ext
4409 cat >>conftest.
$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #define _FILE_OFFSET_BITS 64
4412 #include <sys/types.h>
4413 /* Check that off_t can represent 2**63 - 1 correctly.
4414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4415 since some C++ compilers masquerading as C compilers
4416 incorrectly reject 9223372036854775807. */
4417 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4419 && LARGE_OFF_T % 2147483647 == 1)
4429 rm -f conftest.
$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try
='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_cv_sys_file_offset_bits
=64; break
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.
$ac_ext >&5
4447 rm -f conftest.
$ac_objext conftest.
$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4452 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4453 if test "$ac_cv_sys_file_offset_bits" != no
; then
4455 cat >>confdefs.h
<<_ACEOF
4456 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4461 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4462 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4463 if test "${ac_cv_sys_large_files+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 ac_cv_sys_large_files
=no
4468 cat >conftest.
$ac_ext <<_ACEOF
4471 cat confdefs.h
>>conftest.
$ac_ext
4472 cat >>conftest.
$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <sys/types.h>
4475 /* Check that off_t can represent 2**63 - 1 correctly.
4476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4477 since some C++ compilers masquerading as C compilers
4478 incorrectly reject 9223372036854775807. */
4479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4481 && LARGE_OFF_T % 2147483647 == 1)
4491 rm -f conftest.
$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try
='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.
$ac_ext >&5
4509 rm -f conftest.
$ac_objext conftest.
$ac_ext
4510 cat >conftest.
$ac_ext <<_ACEOF
4513 cat confdefs.h
>>conftest.
$ac_ext
4514 cat >>conftest.
$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 #define _LARGE_FILES 1
4517 #include <sys/types.h>
4518 /* Check that off_t can represent 2**63 - 1 correctly.
4519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4520 since some C++ compilers masquerading as C compilers
4521 incorrectly reject 9223372036854775807. */
4522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4524 && LARGE_OFF_T % 2147483647 == 1)
4534 rm -f conftest.
$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try
='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_sys_large_files
=1; break
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.
$ac_ext >&5
4552 rm -f conftest.
$ac_objext conftest.
$ac_ext
4556 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4557 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4558 if test "$ac_cv_sys_large_files" != no
; then
4560 cat >>confdefs.h
<<_ACEOF
4561 #define _LARGE_FILES $ac_cv_sys_large_files
4569 if test "${with_sound}" != "no"; then
4570 # Sound support for GNU/Linux and the free BSDs.
4571 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4573 if test "${ac_cv_header_stdc+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.
$ac_ext <<_ACEOF
4579 cat confdefs.h
>>conftest.
$ac_ext
4580 cat >>conftest.
$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4595 rm -f conftest.
$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try
='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_header_stdc
=yes
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.
$ac_ext >&5
4612 ac_cv_header_stdc
=no
4614 rm -f conftest.
$ac_objext conftest.
$ac_ext
4616 if test $ac_cv_header_stdc = yes; then
4617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4618 cat >conftest.
$ac_ext <<_ACEOF
4621 cat confdefs.h
>>conftest.
$ac_ext
4622 cat >>conftest.
$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "memchr" >/dev
/null
2>&1; then
4631 ac_cv_header_stdc
=no
4637 if test $ac_cv_header_stdc = yes; then
4638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4639 cat >conftest.
$ac_ext <<_ACEOF
4642 cat confdefs.h
>>conftest.
$ac_ext
4643 cat >>conftest.
$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "free" >/dev
/null
2>&1; then
4652 ac_cv_header_stdc
=no
4658 if test $ac_cv_header_stdc = yes; then
4659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4660 if test "$cross_compiling" = yes; then
4663 cat >conftest.
$ac_ext <<_ACEOF
4666 cat confdefs.h
>>conftest.
$ac_ext
4667 cat >>conftest.
$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4674 # define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
4676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4693 rm -f conftest
$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: program exited with status $ac_status" >&5
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.
$ac_ext >&5
4711 ac_cv_header_stdc
=no
4713 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4717 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4718 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4719 if test $ac_cv_header_stdc = yes; then
4721 cat >>confdefs.h
<<\_ACEOF
4722 #define STDC_HEADERS 1
4727 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4737 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4738 inttypes.h stdint.h unistd.h
4740 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4741 echo "$as_me:$LINENO: checking for $ac_header" >&5
4742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 cat >conftest.
$ac_ext <<_ACEOF
4749 cat confdefs.h
>>conftest.
$ac_ext
4750 cat >>conftest.
$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752 $ac_includes_default
4754 #include <$ac_header>
4756 rm -f conftest.
$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try
='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 eval "$as_ac_Header=yes"
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.
$ac_ext >&5
4773 eval "$as_ac_Header=no"
4775 rm -f conftest.
$ac_objext conftest.
$ac_ext
4777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4780 cat >>confdefs.h
<<_ACEOF
4781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4794 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4796 echo "$as_me:$LINENO: checking for $ac_header" >&5
4797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4804 # Is the header compilable?
4805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 $ac_includes_default
4814 #include <$ac_header>
4816 rm -f conftest.
$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try
='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_header_compiler
=yes
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.
$ac_ext >&5
4833 ac_header_compiler
=no
4835 rm -f conftest.
$ac_objext conftest.
$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 echo "${ECHO_T}$ac_header_compiler" >&6
4839 # Is the header present?
4840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4842 cat >conftest.
$ac_ext <<_ACEOF
4845 cat confdefs.h
>>conftest.
$ac_ext
4846 cat >>conftest.
$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <$ac_header>
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4853 grep -v '^ *+' conftest.er1
>conftest.err
4855 cat conftest.err
>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev
/null
; then
4858 if test -s conftest.err
; then
4859 ac_cpp_err
=$ac_c_preproc_warn_flag
4866 if test -z "$ac_cpp_err"; then
4867 ac_header_preproc
=yes
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.
$ac_ext >&5
4872 ac_header_preproc
=no
4874 rm -f conftest.err conftest.
$ac_ext
4875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4876 echo "${ECHO_T}$ac_header_preproc" >&6
4878 # So? What about this header?
4879 case $ac_header_compiler:$ac_header_preproc in
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4885 ac_header_preproc
=yes
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4902 ## ------------------------------------------ ##
4903 ## Report this to the AC_PACKAGE_NAME lists. ##
4904 ## ------------------------------------------ ##
4907 sed "s/^/$as_me: WARNING: /" >&2
4910 echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 eval "$as_ac_Header=\$ac_header_preproc"
4917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4922 cat >>confdefs.h
<<_ACEOF
4923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4930 # Emulation library used on NetBSD.
4931 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4932 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4933 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 ac_check_lib_save_LIBS
=$LIBS
4937 LIBS
="-lossaudio $LIBS"
4938 cat >conftest.
$ac_ext <<_ACEOF
4941 cat confdefs.h
>>conftest.
$ac_ext
4942 cat >>conftest.
$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4960 rm -f conftest.
$ac_objext conftest
$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try
='test -s conftest$ac_exeext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 ac_cv_lib_ossaudio__oss_ioctl
=yes
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4977 ac_cv_lib_ossaudio__oss_ioctl
=no
4979 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4980 LIBS
=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4983 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4984 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5016 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5017 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5018 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5019 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5021 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5023 echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 # Is the header compilable?
5032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5034 cat >conftest.
$ac_ext <<_ACEOF
5037 cat confdefs.h
>>conftest.
$ac_ext
5038 cat >>conftest.
$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 $ac_includes_default
5041 #include <$ac_header>
5043 rm -f conftest.
$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try
='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_header_compiler
=yes
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.
$ac_ext >&5
5060 ac_header_compiler
=no
5062 rm -f conftest.
$ac_objext conftest.
$ac_ext
5063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5064 echo "${ECHO_T}$ac_header_compiler" >&6
5066 # Is the header present?
5067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5069 cat >conftest.
$ac_ext <<_ACEOF
5072 cat confdefs.h
>>conftest.
$ac_ext
5073 cat >>conftest.
$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 #include <$ac_header>
5077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5078 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5080 grep -v '^ *+' conftest.er1
>conftest.err
5082 cat conftest.err
>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev
/null
; then
5085 if test -s conftest.err
; then
5086 ac_cpp_err
=$ac_c_preproc_warn_flag
5093 if test -z "$ac_cpp_err"; then
5094 ac_header_preproc
=yes
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.
$ac_ext >&5
5099 ac_header_preproc
=no
5101 rm -f conftest.err conftest.
$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 echo "${ECHO_T}$ac_header_preproc" >&6
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc in
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112 ac_header_preproc
=yes
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5129 ## ------------------------------------------ ##
5130 ## Report this to the AC_PACKAGE_NAME lists. ##
5131 ## ------------------------------------------ ##
5134 sed "s/^/$as_me: WARNING: /" >&2
5137 echo "$as_me:$LINENO: checking for $ac_header" >&5
5138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 eval "$as_ac_Header=\$ac_header_preproc"
5144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149 cat >>confdefs.h
<<_ACEOF
5150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5158 for ac_header
in term.h
5160 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161 echo "$as_me:$LINENO: checking for $ac_header" >&5
5162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 cat >conftest.
$ac_ext <<_ACEOF
5169 cat confdefs.h
>>conftest.
$ac_ext
5170 cat >>conftest.
$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #include <$ac_header>
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5177 grep -v '^ *+' conftest.er1
>conftest.err
5179 cat conftest.err
>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } >/dev
/null
; then
5182 if test -s conftest.err
; then
5183 ac_cpp_err
=$ac_c_preproc_warn_flag
5190 if test -z "$ac_cpp_err"; then
5191 eval "$as_ac_Header=yes"
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.
$ac_ext >&5
5196 eval "$as_ac_Header=no"
5198 rm -f conftest.err conftest.
$ac_ext
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h
<<_ACEOF
5204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5211 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5212 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5213 if test "${ac_cv_header_stdc+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 cat >conftest.
$ac_ext <<_ACEOF
5219 cat confdefs.h
>>conftest.
$ac_ext
5220 cat >>conftest.
$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5235 rm -f conftest.
$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_cv_header_stdc
=yes
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.
$ac_ext >&5
5252 ac_cv_header_stdc
=no
5254 rm -f conftest.
$ac_objext conftest.
$ac_ext
5256 if test $ac_cv_header_stdc = yes; then
5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258 cat >conftest.
$ac_ext <<_ACEOF
5261 cat confdefs.h
>>conftest.
$ac_ext
5262 cat >>conftest.
$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5268 $EGREP "memchr" >/dev
/null
2>&1; then
5271 ac_cv_header_stdc
=no
5277 if test $ac_cv_header_stdc = yes; then
5278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5279 cat >conftest.
$ac_ext <<_ACEOF
5282 cat confdefs.h
>>conftest.
$ac_ext
5283 cat >>conftest.
$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "free" >/dev
/null
2>&1; then
5292 ac_cv_header_stdc
=no
5298 if test $ac_cv_header_stdc = yes; then
5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5300 if test "$cross_compiling" = yes; then
5303 cat >conftest.
$ac_ext <<_ACEOF
5306 cat confdefs.h
>>conftest.
$ac_ext
5307 cat >>conftest.
$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5310 #if ((' ' & 0x0FF) == 0x020)
5311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5314 # define ISLOWER(c) \
5315 (('a' <= (c) && (c) <= 'i') \
5316 || ('j' <= (c) && (c) <= 'r') \
5317 || ('s' <= (c) && (c) <= 'z'))
5318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 for (i = 0; i < 256; i++)
5327 if (XOR (islower (i), ISLOWER (i))
5328 || toupper (i) != TOUPPER (i))
5333 rm -f conftest
$ac_exeext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335 (eval $ac_link) 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5346 echo "$as_me: program exited with status $ac_status" >&5
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.
$ac_ext >&5
5351 ac_cv_header_stdc
=no
5353 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5358 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5359 if test $ac_cv_header_stdc = yes; then
5361 cat >>confdefs.h
<<\_ACEOF
5362 #define STDC_HEADERS 1
5367 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5369 if test "${ac_cv_header_time+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cat >conftest.
$ac_ext <<_ACEOF
5375 cat confdefs.h
>>conftest.
$ac_ext
5376 cat >>conftest.
$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 #include <sys/time.h>
5385 if ((struct tm *) 0)
5391 rm -f conftest.
$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try
='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_header_time
=yes
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.
$ac_ext >&5
5408 ac_cv_header_time
=no
5410 rm -f conftest.
$ac_objext conftest.
$ac_ext
5412 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5413 echo "${ECHO_T}$ac_cv_header_time" >&6
5414 if test $ac_cv_header_time = yes; then
5416 cat >>confdefs.h
<<\_ACEOF
5417 #define TIME_WITH_SYS_TIME 1
5422 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5423 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5424 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 cat >conftest.
$ac_ext <<_ACEOF
5430 cat confdefs.h
>>conftest.
$ac_ext
5431 cat >>conftest.
$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5438 char *p = (char *) sys_siglist;
5445 rm -f conftest.
$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447 (eval $ac_compile) 2>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try
='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_cv_have_decl_sys_siglist
=yes
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.
$ac_ext >&5
5462 ac_cv_have_decl_sys_siglist
=no
5464 rm -f conftest.
$ac_objext conftest.
$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5467 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5468 if test $ac_cv_have_decl_sys_siglist = yes; then
5470 cat >>confdefs.h
<<_ACEOF
5471 #define HAVE_DECL_SYS_SIGLIST 1
5476 cat >>confdefs.h
<<_ACEOF
5477 #define HAVE_DECL_SYS_SIGLIST 0
5484 if test $ac_cv_have_decl_sys_siglist != yes; then
5485 # For Tru64, at least:
5486 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5487 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5488 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 cat >conftest.
$ac_ext <<_ACEOF
5494 cat confdefs.h
>>conftest.
$ac_ext
5495 cat >>conftest.
$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5501 #ifndef __sys_siglist
5502 char *p = (char *) __sys_siglist;
5509 rm -f conftest.
$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try
='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_cv_have_decl___sys_siglist
=yes
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.
$ac_ext >&5
5526 ac_cv_have_decl___sys_siglist
=no
5528 rm -f conftest.
$ac_objext conftest.
$ac_ext
5530 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5531 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5532 if test $ac_cv_have_decl___sys_siglist = yes; then
5534 cat >>confdefs.h
<<_ACEOF
5535 #define HAVE_DECL___SYS_SIGLIST 1
5540 cat >>confdefs.h
<<_ACEOF
5541 #define HAVE_DECL___SYS_SIGLIST 0
5548 if test $ac_cv_have_decl___sys_siglist = yes; then
5550 cat >>confdefs.h
<<\_ACEOF
5551 #define sys_siglist __sys_siglist
5556 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5557 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5558 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 cat >conftest.
$ac_ext <<_ACEOF
5564 cat confdefs.h
>>conftest.
$ac_ext
5565 cat >>conftest.
$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 #include <sys/wait.h>
5570 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5573 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5581 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5586 rm -f conftest.
$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try
='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_header_sys_wait_h
=yes
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.
$ac_ext >&5
5603 ac_cv_header_sys_wait_h
=no
5605 rm -f conftest.
$ac_objext conftest.
$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5608 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5609 if test $ac_cv_header_sys_wait_h = yes; then
5611 cat >>confdefs.h
<<\_ACEOF
5612 #define HAVE_SYS_WAIT_H 1
5618 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5619 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5620 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 cat >conftest.
$ac_ext <<_ACEOF
5626 cat confdefs.h
>>conftest.
$ac_ext
5627 cat >>conftest.
$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 #ifdef TIME_WITH_SYS_TIME
5630 #include <sys/time.h>
5633 #ifdef HAVE_SYS_TIME_H
5634 #include <sys/time.h>
5645 static struct utimbuf x; x.actime = x.modtime;
5650 rm -f conftest.
$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652 (eval $ac_compile) 2>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try
='test -s conftest.$ac_objext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 emacs_cv_struct_utimbuf
=yes
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.
$ac_ext >&5
5667 emacs_cv_struct_utimbuf
=no
5669 rm -f conftest.
$ac_objext conftest.
$ac_ext
5671 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5672 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5673 if test $emacs_cv_struct_utimbuf = yes; then
5675 cat >>confdefs.h
<<\_ACEOF
5676 #define HAVE_STRUCT_UTIMBUF 1
5681 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5682 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5683 if test "${ac_cv_type_signal+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 cat >conftest.
$ac_ext <<_ACEOF
5689 cat confdefs.h
>>conftest.
$ac_ext
5690 cat >>conftest.
$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 #include <sys/types.h>
5698 extern "C" void (*signal (int, void (*)(int)))(int);
5700 void (*signal ()) ();
5711 rm -f conftest.
$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try
='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_type_signal
=void
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.
$ac_ext >&5
5728 ac_cv_type_signal
=int
5730 rm -f conftest.
$ac_objext conftest.
$ac_ext
5732 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5733 echo "${ECHO_T}$ac_cv_type_signal" >&6
5735 cat >>confdefs.h
<<_ACEOF
5736 #define RETSIGTYPE $ac_cv_type_signal
5741 echo "$as_me:$LINENO: checking for speed_t" >&5
5742 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5743 if test "${emacs_cv_speed_t+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 cat >conftest.
$ac_ext <<_ACEOF
5749 cat confdefs.h
>>conftest.
$ac_ext
5750 cat >>conftest.
$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <termios.h>
5761 rm -f conftest.
$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try
='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 emacs_cv_speed_t
=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.
$ac_ext >&5
5780 rm -f conftest.
$ac_objext conftest.
$ac_ext
5782 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5783 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5784 if test $emacs_cv_speed_t = yes; then
5786 cat >>confdefs.h
<<\_ACEOF
5787 #define HAVE_SPEED_T 1
5792 echo "$as_me:$LINENO: checking for struct timeval" >&5
5793 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5794 if test "${emacs_cv_struct_timeval+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.
$ac_ext <<_ACEOF
5800 cat confdefs.h
>>conftest.
$ac_ext
5801 cat >>conftest.
$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #ifdef TIME_WITH_SYS_TIME
5804 #include <sys/time.h>
5807 #ifdef HAVE_SYS_TIME_H
5808 #include <sys/time.h>
5816 static struct timeval x; x.tv_sec = x.tv_usec;
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 emacs_cv_struct_timeval
=yes
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.
$ac_ext >&5
5838 emacs_cv_struct_timeval
=no
5840 rm -f conftest.
$ac_objext conftest.
$ac_ext
5842 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5843 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5844 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5845 if test $emacs_cv_struct_timeval = yes; then
5847 cat >>confdefs.h
<<\_ACEOF
5848 #define HAVE_TIMEVAL 1
5853 echo "$as_me:$LINENO: checking for struct exception" >&5
5854 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5855 if test "${emacs_cv_struct_exception+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 cat >conftest.
$ac_ext <<_ACEOF
5861 cat confdefs.h
>>conftest.
$ac_ext
5862 cat >>conftest.
$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5868 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5873 rm -f conftest.
$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try
='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 emacs_cv_struct_exception
=yes
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.
$ac_ext >&5
5890 emacs_cv_struct_exception
=no
5892 rm -f conftest.
$ac_objext conftest.
$ac_ext
5894 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5895 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5896 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5897 if test $emacs_cv_struct_exception != yes; then
5899 cat >>confdefs.h
<<\_ACEOF
5900 #define NO_MATHERR 1
5905 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5906 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5907 if test "${ac_cv_struct_tm+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <sys/types.h>
5922 struct tm *tp; tp->tm_sec;
5927 rm -f conftest.
$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try
='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_struct_tm
=time.h
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.
$ac_ext >&5
5944 ac_cv_struct_tm
=sys
/time.h
5946 rm -f conftest.
$ac_objext conftest.
$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5949 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5950 if test $ac_cv_struct_tm = sys
/time.h
; then
5952 cat >>confdefs.h
<<\_ACEOF
5953 #define TM_IN_SYS_TIME 1
5958 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5959 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5960 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 cat >conftest.
$ac_ext <<_ACEOF
5966 cat confdefs.h
>>conftest.
$ac_ext
5967 cat >>conftest.
$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <sys/types.h>
5970 #include <$ac_cv_struct_tm>
5976 static struct tm ac_aggr;
5977 if (ac_aggr.tm_zone)
5983 rm -f conftest.
$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try
='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_member_struct_tm_tm_zone
=yes
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6000 cat >conftest.
$ac_ext <<_ACEOF
6003 cat confdefs.h
>>conftest.
$ac_ext
6004 cat >>conftest.
$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #include <sys/types.h>
6007 #include <$ac_cv_struct_tm>
6013 static struct tm ac_aggr;
6014 if (sizeof ac_aggr.tm_zone)
6020 rm -f conftest.
$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try
='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_member_struct_tm_tm_zone
=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.
$ac_ext >&5
6037 ac_cv_member_struct_tm_tm_zone
=no
6039 rm -f conftest.
$ac_objext conftest.
$ac_ext
6041 rm -f conftest.
$ac_objext conftest.
$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6044 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6045 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6047 cat >>confdefs.h
<<_ACEOF
6048 #define HAVE_STRUCT_TM_TM_ZONE 1
6054 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6056 cat >>confdefs.h
<<\_ACEOF
6057 #define HAVE_TM_ZONE 1
6061 echo "$as_me:$LINENO: checking for tzname" >&5
6062 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6063 if test "${ac_cv_var_tzname+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 cat >conftest.
$ac_ext <<_ACEOF
6069 cat confdefs.h
>>conftest.
$ac_ext
6070 cat >>conftest.
$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 #ifndef tzname /* For SGI. */
6074 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6085 rm -f conftest.
$ac_objext conftest
$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try
='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_var_tzname
=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.
$ac_ext >&5
6104 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6107 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6108 if test $ac_cv_var_tzname = yes; then
6110 cat >>confdefs.h
<<\_ACEOF
6111 #define HAVE_TZNAME 1
6117 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6118 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6119 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6133 static struct tm ac_aggr;
6134 if (ac_aggr.tm_gmtoff)
6140 rm -f conftest.
$ac_objext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try
='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_member_struct_tm_tm_gmtoff
=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6168 static struct tm ac_aggr;
6169 if (sizeof ac_aggr.tm_gmtoff)
6175 rm -f conftest.
$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try
='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_member_struct_tm_tm_gmtoff
=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.
$ac_ext >&5
6192 ac_cv_member_struct_tm_tm_gmtoff
=no
6194 rm -f conftest.
$ac_objext conftest.
$ac_ext
6196 rm -f conftest.
$ac_objext conftest.
$ac_ext
6198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6199 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6200 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6202 cat >>confdefs.h
<<\_ACEOF
6203 #define HAVE_TM_GMTOFF 1
6210 echo "$as_me:$LINENO: checking for function prototypes" >&5
6211 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6212 if test "$ac_cv_prog_cc_stdc" != no
; then
6213 echo "$as_me:$LINENO: result: yes" >&5
6214 echo "${ECHO_T}yes" >&6
6216 cat >>confdefs.h
<<\_ACEOF
6217 #define PROTOTYPES 1
6221 cat >>confdefs.h
<<\_ACEOF
6222 #define __PROTOTYPES 1
6226 echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6
6230 echo "$as_me:$LINENO: checking for working volatile" >&5
6231 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6232 if test "${ac_cv_c_volatile+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 cat >conftest.
$ac_ext <<_ACEOF
6238 cat confdefs.h
>>conftest.
$ac_ext
6239 cat >>conftest.
$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6252 rm -f conftest.
$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try
='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_c_volatile
=yes
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.
$ac_ext >&5
6271 rm -f conftest.
$ac_objext conftest.
$ac_ext
6273 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6274 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6275 if test $ac_cv_c_volatile = no
; then
6277 cat >>confdefs.h
<<\_ACEOF
6283 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6284 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6285 if test "${ac_cv_c_const+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. */
6298 /* FIXME: Include the comments suggested by Paul. */
6300 /* Ultrix mips cc rejects this. */
6301 typedef int charset[2];
6303 /* SunOS 4.1.1 cc rejects this. */
6304 char const *const *ccp;
6306 /* NEC SVR4.0.2 mips cc rejects this. */
6307 struct point {int x, y;};
6308 static struct point const zero = {0,0};
6309 /* AIX XL C 1.02.0.0 rejects this.
6310 It does not let you subtract one const X* pointer from another in
6311 an arm of an if-expression whose if-part is not a constant
6313 const char *g = "string";
6314 ccp = &g + (g ? g-g : 0);
6315 /* HPUX 7.0 cc rejects these. */
6318 ccp = (char const *const *) p;
6319 { /* SCO 3.2v4 cc rejects this. */
6321 char const *s = 0 ? (char *) 0 : (char const *) 0;
6325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6327 const int *foo = &x[0];
6330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6331 typedef const int *iptr;
6335 { /* AIX XL C 1.02.0.0 rejects this saying
6336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6337 struct s { int j; const int *ap[3]; };
6338 struct s *b; b->j = 5;
6340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6349 rm -f conftest.
$ac_objext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351 (eval $ac_compile) 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try
='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.
$ac_ext >&5
6368 rm -f conftest.
$ac_objext conftest.
$ac_ext
6370 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6371 echo "${ECHO_T}$ac_cv_c_const" >&6
6372 if test $ac_cv_c_const = no
; then
6374 cat >>confdefs.h
<<\_ACEOF
6380 echo "$as_me:$LINENO: checking for void * support" >&5
6381 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6382 if test "${emacs_cv_void_star+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 cat >conftest.
$ac_ext <<_ACEOF
6388 cat confdefs.h
>>conftest.
$ac_ext
6389 cat >>conftest.
$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6400 rm -f conftest.
$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try
='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 emacs_cv_void_star
=yes
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.
$ac_ext >&5
6417 emacs_cv_void_star
=no
6419 rm -f conftest.
$ac_objext conftest.
$ac_ext
6421 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6422 echo "${ECHO_T}$emacs_cv_void_star" >&6
6423 if test $emacs_cv_void_star = yes; then
6424 cat >>confdefs.h
<<\_ACEOF
6425 #define POINTER_TYPE void
6429 cat >>confdefs.h
<<\_ACEOF
6430 #define POINTER_TYPE char
6437 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6438 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6439 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6440 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 cat >conftest.
make <<\_ACEOF
6445 @
echo 'ac_maketemp="$(MAKE)"'
6447 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6448 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6449 if test -n "$ac_maketemp"; then
6450 eval ac_cv_prog_make_
${ac_make}_set
=yes
6452 eval ac_cv_prog_make_
${ac_make}_set
=no
6456 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6457 echo "$as_me:$LINENO: result: yes" >&5
6458 echo "${ECHO_T}yes" >&6
6461 echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6463 SET_MAKE
="MAKE=${MAKE-make}"
6467 echo "$as_me:$LINENO: checking for long file names" >&5
6468 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6469 if test "${ac_cv_sys_long_file_names+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 ac_cv_sys_long_file_names
=yes
6473 # Test for long file names in all the places we know might matter:
6474 # . the current directory, where building will happen
6475 # $prefix/lib where we will be installing things
6476 # $exec_prefix/lib likewise
6477 # eval it to expand exec_prefix.
6478 # $TMPDIR if set, where it might want to write temporary files
6479 # if $TMPDIR is not set:
6480 # /tmp where it might want to write temporary files
6483 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6486 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6488 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6489 test -d $ac_dir ||
continue
6490 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6491 ac_xdir
=$ac_dir/cf$$
6492 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6493 ac_tf1
=$ac_xdir/conftest9012345
6494 ac_tf2
=$ac_xdir/conftest9012346
6495 (echo 1 >$ac_tf1) 2>/dev
/null
6496 (echo 2 >$ac_tf2) 2>/dev
/null
6497 ac_val
=`cat $ac_tf1 2>/dev/null`
6498 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6499 ac_cv_sys_long_file_names
=no
6500 rm -rf $ac_xdir 2>/dev
/null
6503 rm -rf $ac_xdir 2>/dev
/null
6506 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6507 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6508 if test $ac_cv_sys_long_file_names = yes; then
6510 cat >>confdefs.h
<<\_ACEOF
6511 #define HAVE_LONG_FILE_NAMES 1
6517 #### Choose a window system.
6519 echo "$as_me:$LINENO: checking for X" >&5
6520 echo $ECHO_N "checking for X... $ECHO_C" >&6
6523 # Check whether --with-x or --without-x was given.
6524 if test "${with_x+set}" = set; then
6528 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6529 if test "x$with_x" = xno
; then
6530 # The user explicitly disabled X.
6533 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6534 # Both variables are already set.
6537 if test "${ac_cv_have_x+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 # One or both of the vars are not set, and there is no cached value.
6541 ac_x_includes
=no ac_x_libraries
=no
6543 if mkdir conftest.dir
; then
6545 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6546 cat >Imakefile
<<'_ACEOF'
6548 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6550 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6552 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6553 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6554 for ac_extension
in a so sl
; do
6555 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6556 test -f $ac_im_libdir/libX11.
$ac_extension; then
6557 ac_im_usrlibdir
=$ac_im_libdir; break
6560 # Screen out bogus values from the imake configuration. They are
6561 # bogus both because they are the default anyway, and because
6562 # using them would break gcc on systems where it needs fixed includes.
6563 case $ac_im_incroot in
6565 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6567 case $ac_im_usrlibdir in
6569 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6576 # Standard set of common directories for X headers.
6577 # Check X11 before X11Rn because it is often a symlink to the current release.
6589 /usr/local/X11/include
6590 /usr/local/X11R6/include
6591 /usr/local/X11R5/include
6592 /usr/local/X11R4/include
6594 /usr/local/include/X11
6595 /usr/local/include/X11R6
6596 /usr/local/include/X11R5
6597 /usr/local/include/X11R4
6601 /usr/XFree86/include/X11
6605 /usr/unsupported/include
6607 /usr/local/x11r5/include
6608 /usr/lpp/Xamples/include
6610 /usr/openwin/include
6611 /usr/openwin/share/include'
6613 if test "$ac_x_includes" = no
; then
6614 # Guess where to find include files, by looking for Intrinsic.h.
6615 # First, try using that file with no special directory specified.
6616 cat >conftest.
$ac_ext <<_ACEOF
6619 cat confdefs.h
>>conftest.
$ac_ext
6620 cat >>conftest.
$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <X11/Intrinsic.h>
6624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6627 grep -v '^ *+' conftest.er1
>conftest.err
6629 cat conftest.err
>&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } >/dev
/null
; then
6632 if test -s conftest.err
; then
6633 ac_cpp_err
=$ac_c_preproc_warn_flag
6640 if test -z "$ac_cpp_err"; then
6641 # We can compile using X headers with no special include directory.
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.
$ac_ext >&5
6647 for ac_dir
in $ac_x_header_dirs; do
6648 if test -r "$ac_dir/X11/Intrinsic.h"; then
6649 ac_x_includes
=$ac_dir
6654 rm -f conftest.err conftest.
$ac_ext
6655 fi # $ac_x_includes = no
6657 if test "$ac_x_libraries" = no
; then
6658 # Check for the libraries.
6659 # See if we find them without any special options.
6660 # Don't add to $LIBS permanently.
6663 cat >conftest.
$ac_ext <<_ACEOF
6666 cat confdefs.h
>>conftest.
$ac_ext
6667 cat >>conftest.
$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <X11/Intrinsic.h>
6678 rm -f conftest.
$ac_objext conftest
$ac_exeext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try
='test -s conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6691 # We can link X programs with no special library path.
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.
$ac_ext >&5
6698 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6700 # Don't even attempt the hair of trying to link an X program!
6701 for ac_extension
in a so sl
; do
6702 if test -r $ac_dir/libXt.
$ac_extension; then
6703 ac_x_libraries
=$ac_dir
6709 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6710 fi # $ac_x_libraries = no
6712 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6713 # Didn't find X anywhere. Cache the known absence of X.
6714 ac_cv_have_x
="have_x=no"
6716 # Record where we found X for the cache.
6717 ac_cv_have_x
="have_x=yes \
6718 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6723 eval "$ac_cv_have_x"
6726 if test "$have_x" != yes; then
6727 echo "$as_me:$LINENO: result: $have_x" >&5
6728 echo "${ECHO_T}$have_x" >&6
6731 # If each of the values was on the command line, it overrides each guess.
6732 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6733 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6734 # Update the cache value to reflect the command line values.
6735 ac_cv_have_x
="have_x=yes \
6736 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6737 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6738 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6741 if test "$no_x" = yes; then
6747 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6748 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6749 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6750 x_default_search_path
=""
6751 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6753 ${x_library}/X11/%L/%T/%N%C%S:\
6754 ${x_library}/X11/%l/%T/%N%C%S:\
6755 ${x_library}/X11/%T/%N%C%S:\
6756 ${x_library}/X11/%L/%T/%N%S:\
6757 ${x_library}/X11/%l/%T/%N%S:\
6758 ${x_library}/X11/%T/%N%S"
6759 if test x
"${x_default_search_path}" = x
; then
6760 x_default_search_path
=${x_search_path}
6762 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6766 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6767 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6770 if test x
"${x_includes}" = x
; then
6771 bitmapdir
=/usr
/include
/X11
/bitmaps
6773 # accumulate include directories that have X11 bitmap subdirectories
6775 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6776 if test -d "${bmd}/X11/bitmaps"; then
6777 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6779 if test -d "${bmd}/bitmaps"; then
6780 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6783 if test ${bmd_acc} != "dummyval"; then
6784 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6788 case "${window_system}" in
6792 case "${with_x_toolkit}" in
6793 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6794 motif
) USE_X_TOOLKIT
=MOTIF
;;
6796 USE_X_TOOLKIT
=none
;;
6797 no
) USE_X_TOOLKIT
=none
;;
6798 * ) USE_X_TOOLKIT
=maybe
;;
6808 ### If we're using X11, we should use the X menu package.
6811 yes ) HAVE_MENUS
=yes ;;
6814 if test "${opsys}" = "hpux9"; then
6815 case "${x_libraries}" in
6817 opsysfile
="s/hpux9-x11r4.h"
6822 if test "${opsys}" = "hpux9shr"; then
6823 case "${x_libraries}" in
6825 opsysfile
="s/hpux9shxr4.h"
6830 ### Compute the unexec source name from the object name.
6831 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6833 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6834 # Assume not, until told otherwise.
6837 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6838 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6839 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 cat >conftest.
$ac_ext <<_ACEOF
6845 cat confdefs.h
>>conftest.
$ac_ext
6846 cat >>conftest.
$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
6849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6850 #define malloc_get_state innocuous_malloc_get_state
6852 /* System header to define __stub macros and hopefully few prototypes,
6853 which can conflict with char malloc_get_state (); below.
6854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6855 <limits.h> exists even on freestanding compilers. */
6858 # include <limits.h>
6860 # include <assert.h>
6863 #undef malloc_get_state
6865 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char malloc_get_state ();
6873 /* The GNU C library defines this for functions which it implements
6874 to always fail with ENOSYS. Some functions are actually named
6875 something starting with __ and the normal name is an alias. */
6876 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6879 char (*f) () = malloc_get_state;
6888 return f != malloc_get_state;
6893 rm -f conftest.
$ac_objext conftest
$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try
='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_cv_func_malloc_get_state
=yes
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.
$ac_ext >&5
6910 ac_cv_func_malloc_get_state
=no
6912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6914 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6915 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6916 if test $ac_cv_func_malloc_get_state = yes; then
6922 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6923 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6924 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
6934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6935 #define malloc_set_state innocuous_malloc_set_state
6937 /* System header to define __stub macros and hopefully few prototypes,
6938 which can conflict with char malloc_set_state (); below.
6939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940 <limits.h> exists even on freestanding compilers. */
6943 # include <limits.h>
6945 # include <assert.h>
6948 #undef malloc_set_state
6950 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957 char malloc_set_state ();
6958 /* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6964 char (*f) () = malloc_set_state;
6973 return f != malloc_set_state;
6978 rm -f conftest.
$ac_objext conftest
$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try
='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_cv_func_malloc_set_state
=yes
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.
$ac_ext >&5
6995 ac_cv_func_malloc_set_state
=no
6997 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6999 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7000 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7001 if test $ac_cv_func_malloc_set_state = yes; then
7007 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7008 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7009 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 cat >conftest.
$ac_ext <<_ACEOF
7015 cat confdefs.h
>>conftest.
$ac_ext
7016 cat >>conftest.
$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 extern void (* __after_morecore_hook)();
7022 __after_morecore_hook = 0
7027 rm -f conftest.
$ac_objext conftest
$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try
='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 emacs_cv_var___after_morecore_hook
=yes
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.
$ac_ext >&5
7044 emacs_cv_var___after_morecore_hook
=no
7046 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7048 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7049 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7050 if test $emacs_cv_var___after_morecore_hook = no
; then
7053 if test "${system_malloc}" = "yes"; then
7056 (The GNU allocators don't work with this system configuration.)"
7058 if test "$doug_lea_malloc" = "yes" ; then
7059 if test "$GNU_MALLOC" = yes ; then
7061 (Using Doug Lea's new malloc from the GNU C Library.)"
7064 cat >>confdefs.h
<<\_ACEOF
7065 #define DOUG_LEA_MALLOC 1
7070 if test x
"${REL_ALLOC}" = x
; then
7071 REL_ALLOC
=${GNU_MALLOC}
7077 for ac_header
in stdlib.h unistd.h
7079 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7081 echo "$as_me:$LINENO: checking for $ac_header" >&5
7082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089 # Is the header compilable?
7090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7092 cat >conftest.
$ac_ext <<_ACEOF
7095 cat confdefs.h
>>conftest.
$ac_ext
7096 cat >>conftest.
$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7099 #include <$ac_header>
7101 rm -f conftest.
$ac_objext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7103 (eval $ac_compile) 2>&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try
='test -s conftest.$ac_objext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 ac_header_compiler
=yes
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.
$ac_ext >&5
7118 ac_header_compiler
=no
7120 rm -f conftest.
$ac_objext conftest.
$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7122 echo "${ECHO_T}$ac_header_compiler" >&6
7124 # Is the header present?
7125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7127 cat >conftest.
$ac_ext <<_ACEOF
7130 cat confdefs.h
>>conftest.
$ac_ext
7131 cat >>conftest.
$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 #include <$ac_header>
7135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7136 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7138 grep -v '^ *+' conftest.er1
>conftest.err
7140 cat conftest.err
>&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } >/dev
/null
; then
7143 if test -s conftest.err
; then
7144 ac_cpp_err
=$ac_c_preproc_warn_flag
7151 if test -z "$ac_cpp_err"; then
7152 ac_header_preproc
=yes
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.
$ac_ext >&5
7157 ac_header_preproc
=no
7159 rm -f conftest.err conftest.
$ac_ext
7160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7161 echo "${ECHO_T}$ac_header_preproc" >&6
7163 # So? What about this header?
7164 case $ac_header_compiler:$ac_header_preproc in
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7170 ac_header_preproc
=yes
7173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7187 ## ------------------------------------------ ##
7188 ## Report this to the AC_PACKAGE_NAME lists. ##
7189 ## ------------------------------------------ ##
7192 sed "s/^/$as_me: WARNING: /" >&2
7195 echo "$as_me:$LINENO: checking for $ac_header" >&5
7196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 eval "$as_ac_Header=\$ac_header_preproc"
7202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7207 cat >>confdefs.h
<<_ACEOF
7208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216 for ac_func
in getpagesize
7218 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7219 echo "$as_me:$LINENO: checking for $ac_func" >&5
7220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7221 if eval "test \"\${$as_ac_var+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.
$ac_ext <<_ACEOF
7227 cat confdefs.h
>>conftest.
$ac_ext
7228 cat >>conftest.
$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7232 #define $ac_func innocuous_$ac_func
7234 /* System header to define __stub macros and hopefully few prototypes,
7235 which can conflict with char $ac_func (); below.
7236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237 <limits.h> exists even on freestanding compilers. */
7240 # include <limits.h>
7242 # include <assert.h>
7247 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7255 /* The GNU C library defines this for functions which it implements
7256 to always fail with ENOSYS. Some functions are actually named
7257 something starting with __ and the normal name is an alias. */
7258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7261 char (*f) () = $ac_func;
7270 return f != $ac_func;
7275 rm -f conftest.
$ac_objext conftest
$ac_exeext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277 (eval $ac_link) 2>&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try
='test -s conftest$ac_exeext'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 eval "$as_ac_var=yes"
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.
$ac_ext >&5
7292 eval "$as_ac_var=no"
7294 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7298 if test `eval echo '${'$as_ac_var'}'` = yes; then
7299 cat >>confdefs.h
<<_ACEOF
7300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7306 echo "$as_me:$LINENO: checking for working mmap" >&5
7307 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7308 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 if test "$cross_compiling" = yes; then
7312 ac_cv_func_mmap_fixed_mapped
=no
7314 cat >conftest.
$ac_ext <<_ACEOF
7317 cat confdefs.h
>>conftest.
$ac_ext
7318 cat >>conftest.
$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 /* malloc might have been renamed as rpl_malloc. */
7324 /* Thanks to Mike Haertel and Jim Avera for this test.
7325 Here is a matrix of mmap possibilities:
7326 mmap private not fixed
7327 mmap private fixed at somewhere currently unmapped
7328 mmap private fixed at somewhere already mapped
7329 mmap shared not fixed
7330 mmap shared fixed at somewhere currently unmapped
7331 mmap shared fixed at somewhere already mapped
7332 For private mappings, we should verify that changes cannot be read()
7333 back from the file, nor mmap's back from the file at a different
7334 address. (There have been systems where private was not correctly
7335 implemented like the infamous i386 svr4.0, and systems where the
7336 VM page cache was not coherent with the file system buffer cache
7337 like early versions of FreeBSD and possibly contemporary NetBSD.)
7338 For shared mappings, we should conversely verify that changes get
7339 propagated back to all the places they're supposed to be.
7341 Grep wants private fixed already mapped.
7342 The main things grep needs to know about mmap are:
7343 * does it exist and is it safe to write into the mmap'd area
7344 * how to use it (BSD variants) */
7347 #include <sys/mman.h>
7349 #if !STDC_HEADERS && !HAVE_STDLIB_H
7353 /* This mess was copied from the GNU getpagesize.h. */
7354 #if !HAVE_GETPAGESIZE
7355 /* Assume that all systems that can run configure have sys/param.h. */
7356 # if !HAVE_SYS_PARAM_H
7357 # define HAVE_SYS_PARAM_H 1
7360 # ifdef _SC_PAGESIZE
7361 # define getpagesize() sysconf(_SC_PAGESIZE)
7362 # else /* no _SC_PAGESIZE */
7363 # if HAVE_SYS_PARAM_H
7364 # include <sys/param.h>
7365 # ifdef EXEC_PAGESIZE
7366 # define getpagesize() EXEC_PAGESIZE
7367 # else /* no EXEC_PAGESIZE */
7369 # define getpagesize() NBPG * CLSIZE
7372 # endif /* no CLSIZE */
7373 # else /* no NBPG */
7375 # define getpagesize() NBPC
7376 # else /* no NBPC */
7378 # define getpagesize() PAGESIZE
7379 # endif /* PAGESIZE */
7380 # endif /* no NBPC */
7381 # endif /* no NBPG */
7382 # endif /* no EXEC_PAGESIZE */
7383 # else /* no HAVE_SYS_PARAM_H */
7384 # define getpagesize() 8192 /* punt totally */
7385 # endif /* no HAVE_SYS_PARAM_H */
7386 # endif /* no _SC_PAGESIZE */
7388 #endif /* no HAVE_GETPAGESIZE */
7393 char *data, *data2, *data3;
7397 pagesize = getpagesize ();
7399 /* First, make a file with some known garbage in it. */
7400 data = (char *) malloc (pagesize);
7403 for (i = 0; i < pagesize; ++i)
7404 *(data + i) = rand ();
7406 fd = creat ("conftest.mmap", 0600);
7409 if (write (fd, data, pagesize) != pagesize)
7413 /* Next, try to mmap the file at a fixed address which already has
7414 something else allocated at it. If we can, also make sure that
7415 we see the same garbage. */
7416 fd = open ("conftest.mmap", O_RDWR);
7419 data2 = (char *) malloc (2 * pagesize);
7422 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7423 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7424 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7426 for (i = 0; i < pagesize; ++i)
7427 if (*(data + i) != *(data2 + i))
7430 /* Finally, make sure that changes to the mapped area do not
7431 percolate back to the file as seen by read(). (This is a bug on
7432 some variants of i386 svr4.0.) */
7433 for (i = 0; i < pagesize; ++i)
7434 *(data2 + i) = *(data2 + i) + 1;
7435 data3 = (char *) malloc (pagesize);
7438 if (read (fd, data3, pagesize) != pagesize)
7440 for (i = 0; i < pagesize; ++i)
7441 if (*(data + i) != *(data3 + i))
7447 rm -f conftest
$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_func_mmap_fixed_mapped
=yes
7460 echo "$as_me: program exited with status $ac_status" >&5
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.
$ac_ext >&5
7465 ac_cv_func_mmap_fixed_mapped
=no
7467 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7471 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7472 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7474 cat >>confdefs.h
<<\_ACEOF
7481 if test $use_mmap_for_buffers = yes; then
7485 LIBS
="$libsrc_libs $LIBS"
7488 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7489 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7490 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 ac_check_lib_save_LIBS
=$LIBS
7495 cat >conftest.
$ac_ext <<_ACEOF
7498 cat confdefs.h
>>conftest.
$ac_ext
7499 cat >>conftest.
$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7502 /* Override any gcc2 internal prototype to avoid an error. */
7506 /* We use char because int might match the return type of a gcc2
7507 builtin and then its argument prototype would still apply. */
7517 rm -f conftest.
$ac_objext conftest
$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try
='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_dnet_dnet_ntoa
=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.
$ac_ext >&5
7534 ac_cv_lib_dnet_dnet_ntoa
=no
7536 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7537 LIBS
=$ac_check_lib_save_LIBS
7539 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7540 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7541 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7542 cat >>confdefs.h
<<_ACEOF
7543 #define HAVE_LIBDNET 1
7551 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7552 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7553 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_check_lib_save_LIBS
=$LIBS
7558 cat >conftest.
$ac_ext <<_ACEOF
7561 cat confdefs.h
>>conftest.
$ac_ext
7562 cat >>conftest.
$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7574 rm -f conftest.
$ac_objext conftest
$ac_exeext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576 (eval $ac_link) 2>&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try
='test -s conftest$ac_exeext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_lib_Xbsd_main
=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.
$ac_ext >&5
7591 ac_cv_lib_Xbsd_main
=no
7593 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7594 LIBS
=$ac_check_lib_save_LIBS
7596 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7597 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7598 if test $ac_cv_lib_Xbsd_main = yes; then
7599 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7604 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7605 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7606 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 ac_check_lib_save_LIBS
=$LIBS
7610 LIBS
="-lpthreads $LIBS"
7611 cat >conftest.
$ac_ext <<_ACEOF
7614 cat confdefs.h
>>conftest.
$ac_ext
7615 cat >>conftest.
$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7618 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7633 rm -f conftest.
$ac_objext conftest
$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try
='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_lib_pthreads_cma_open
=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.
$ac_ext >&5
7650 ac_cv_lib_pthreads_cma_open
=no
7652 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7653 LIBS
=$ac_check_lib_save_LIBS
7655 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7656 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7657 if test $ac_cv_lib_pthreads_cma_open = yes; then
7658 cat >>confdefs.h
<<_ACEOF
7659 #define HAVE_LIBPTHREADS 1
7662 LIBS
="-lpthreads $LIBS"
7667 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7668 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7669 if test -d /usr
/X386
/include
; then
7671 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7675 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7676 echo "${ECHO_T}$HAVE_XFREE386" >&6
7681 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7682 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7683 if test "${gdb_cv_bigtoc+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7689 *) gdb_cv_bigtoc
=-bbigtoc ;;
7692 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7693 cat >conftest.
$ac_ext <<_ACEOF
7696 cat confdefs.h
>>conftest.
$ac_ext
7697 cat >>conftest.
$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7708 rm -f conftest.
$ac_objext conftest
$ac_exeext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try
='test -s conftest$ac_exeext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7727 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7730 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7731 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7735 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7736 # used for the tests that follow. We set them back to REAL_CFLAGS and
7737 # REAL_CPPFLAGS later on.
7739 REAL_CPPFLAGS
="$CPPFLAGS"
7741 if test "${HAVE_X11}" = "yes"; then
7742 DEFS
="$C_SWITCH_X_SITE $DEFS"
7743 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7745 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7746 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7748 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7749 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7750 # but it's more convenient here to set LD_RUN_PATH
7751 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7752 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7753 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7757 if test "${opsys}" = "gnu-linux"; then
7758 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7759 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7760 cat >conftest.
$ac_ext <<_ACEOF
7763 cat confdefs.h
>>conftest.
$ac_ext
7764 cat >>conftest.
$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7770 XOpenDisplay ("foo");
7775 rm -f conftest.
$ac_objext conftest
$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try
='test -s conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 xlinux_first_failure
=no
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.
$ac_ext >&5
7792 xlinux_first_failure
=yes
7794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7795 if test "${xlinux_first_failure}" = "yes"; then
7796 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7797 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7798 OLD_CPPFLAGS
="$CPPFLAGS"
7800 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7801 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7802 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7803 LIBS
="$LIBS -b i486-linuxaout"
7804 cat >conftest.
$ac_ext <<_ACEOF
7807 cat confdefs.h
>>conftest.
$ac_ext
7808 cat >>conftest.
$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7814 XOpenDisplay ("foo");
7819 rm -f conftest.
$ac_objext conftest
$ac_exeext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7821 (eval $ac_link) 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try
='test -s conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 xlinux_second_failure
=no
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.
$ac_ext >&5
7836 xlinux_second_failure
=yes
7838 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7839 if test "${xlinux_second_failure}" = "yes"; then
7840 # If we get the same failure with -b, there is no use adding -b.
7841 # So take it out. This plays safe.
7842 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7843 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7844 CPPFLAGS
="$OLD_CPPFLAGS"
7846 echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7849 echo "$as_me:$LINENO: result: yes" >&5
7850 echo "${ECHO_T}yes" >&6
7853 echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6
7858 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7859 # header files included from there.
7860 echo "$as_me:$LINENO: checking for Xkb" >&5
7861 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7862 cat >conftest.
$ac_ext <<_ACEOF
7865 cat confdefs.h
>>conftest.
$ac_ext
7866 cat >>conftest.
$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 #include <X11/Xlib.h>
7869 #include <X11/XKBlib.h>
7873 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7878 rm -f conftest.
$ac_objext conftest
$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try
='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.
$ac_ext >&5
7897 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7898 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7899 echo "${ECHO_T}$emacs_xkb" >&6
7900 if test $emacs_xkb = yes; then
7902 cat >>confdefs.h
<<\_ACEOF
7903 #define HAVE_XKBGETKEYBOARD 1
7912 for ac_func
in XrmSetDatabase XScreenResourceString \
7913 XScreenNumberOfScreen XSetWMProtocols
7915 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7916 echo "$as_me:$LINENO: checking for $ac_func" >&5
7917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7918 if eval "test \"\${$as_ac_var+set}\" = set"; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7929 #define $ac_func innocuous_$ac_func
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char $ac_func (); below.
7933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934 <limits.h> exists even on freestanding compilers. */
7937 # include <limits.h>
7939 # include <assert.h>
7944 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7958 char (*f) () = $ac_func;
7967 return f != $ac_func;
7972 rm -f conftest.
$ac_objext conftest
$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try
='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 eval "$as_ac_var=yes"
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.
$ac_ext >&5
7989 eval "$as_ac_var=no"
7991 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7995 if test `eval echo '${'$as_ac_var'}'` = yes; then
7996 cat >>confdefs.h
<<_ACEOF
7997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8005 if test "${window_system}" = "x11"; then
8006 echo "$as_me:$LINENO: checking X11 version 6" >&5
8007 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8008 if test "${emacs_cv_x11_version_6+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 cat >conftest.
$ac_ext <<_ACEOF
8014 cat confdefs.h
>>conftest.
$ac_ext
8015 cat >>conftest.
$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017 #include <X11/Xlib.h>
8021 #if XlibSpecificationRelease < 6
8029 rm -f conftest.
$ac_objext conftest
$ac_exeext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8031 (eval $ac_link) 2>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try
='test -s conftest$ac_exeext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 emacs_cv_x11_version_6
=yes
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.
$ac_ext >&5
8046 emacs_cv_x11_version_6
=no
8048 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8051 if test $emacs_cv_x11_version_6 = yes; then
8052 echo "$as_me:$LINENO: result: 6 or newer" >&5
8053 echo "${ECHO_T}6 or newer" >&6
8055 cat >>confdefs.h
<<\_ACEOF
8056 #define HAVE_X11R6 1
8060 echo "$as_me:$LINENO: result: before 6" >&5
8061 echo "${ECHO_T}before 6" >&6
8065 if test "${window_system}" = "x11"; then
8066 echo "$as_me:$LINENO: checking X11 version 5" >&5
8067 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8068 if test "${emacs_cv_x11_version_5+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <X11/Xlib.h>
8081 #if XlibSpecificationRelease < 5
8089 rm -f conftest.
$ac_objext conftest
$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try
='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 emacs_cv_x11_version_5
=yes
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.
$ac_ext >&5
8106 emacs_cv_x11_version_5
=no
8108 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8111 if test $emacs_cv_x11_version_5 = yes; then
8112 echo "$as_me:$LINENO: result: 5 or newer" >&5
8113 echo "${ECHO_T}5 or newer" >&6
8116 cat >>confdefs.h
<<\_ACEOF
8117 #define HAVE_X11R5 1
8122 echo "$as_me:$LINENO: result: before 5" >&5
8123 echo "${ECHO_T}before 5" >&6
8130 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8131 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8132 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8133 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8134 { (exit 1); exit 1; }; };
8138 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8140 if test "X${with_pkg_config_prog}" != X
; then
8141 PKG_CONFIG
="${with_pkg_config_prog}"
8146 if test -z "$PKG_CONFIG"; then
8147 # Extract the first word of "pkg-config", so it can be a program name with args.
8148 set dummy pkg-config
; ac_word
=$2
8149 echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir
=.
8164 for ac_exec_ext
in '' $ac_executable_extensions; do
8165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8177 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8179 if test -n "$PKG_CONFIG"; then
8180 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8181 echo "${ECHO_T}$PKG_CONFIG" >&6
8183 echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8189 if test "$PKG_CONFIG" = "no" ; then
8190 echo "*** The pkg-config script could not be found. Make sure it is"
8191 echo "*** in your path, or give the full path to pkg-config with"
8192 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8193 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8195 PKG_CONFIG_MIN_VERSION
=0.9.0
8196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8197 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8198 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8200 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8201 echo "$as_me:$LINENO: result: yes" >&5
8202 echo "${ECHO_T}yes" >&6
8205 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8206 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8207 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8208 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8209 echo "${ECHO_T}$GTK_CFLAGS" >&6
8211 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8212 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8213 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8214 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8215 echo "${ECHO_T}$GTK_LIBS" >&6
8219 ## If we have a custom action on failure, don't print errors, but
8220 ## do set a variable so people can do so.
8221 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8222 echo $GTK_PKG_ERRORS
8228 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8229 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8233 if test $succeeded = yes; then
8236 { { 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
8237 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;}
8238 { (exit 1); exit 1; }; }
8243 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8246 cat >>confdefs.h
<<\_ACEOF
8252 with_toolkit_scroll_bars
=yes
8255 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8256 if test x
"${HAVE_X11R5}" = xyes
; then
8257 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8258 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8259 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.
$ac_ext <<_ACEOF
8265 cat confdefs.h
>>conftest.
$ac_ext
8266 cat >>conftest.
$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8269 #include <X11/Intrinsic.h>
8270 #include <X11/Xaw/Simple.h>
8279 rm -f conftest.
$ac_objext conftest
$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281 (eval $ac_link) 2>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try
='test -s conftest$ac_exeext'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 emacs_cv_x11_version_5_with_xaw
=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 emacs_cv_x11_version_5_with_xaw
=no
8298 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8301 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8302 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8303 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8306 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8307 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8315 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8317 if test "${USE_X_TOOLKIT}" != "none"; then
8318 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8319 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8320 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.
$ac_ext <<_ACEOF
8326 cat confdefs.h
>>conftest.
$ac_ext
8327 cat >>conftest.
$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <X11/Intrinsic.h>
8333 #if XtSpecificationRelease < 6
8341 rm -f conftest.
$ac_objext conftest
$ac_exeext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343 (eval $ac_link) 2>&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try
='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 emacs_cv_x11_toolkit_version_6
=yes
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.
$ac_ext >&5
8358 emacs_cv_x11_toolkit_version_6
=no
8360 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8363 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8364 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8365 echo "$as_me:$LINENO: result: 6 or newer" >&5
8366 echo "${ECHO_T}6 or newer" >&6
8368 cat >>confdefs.h
<<\_ACEOF
8369 #define HAVE_X11XTR6 1
8373 echo "$as_me:$LINENO: result: before 6" >&5
8374 echo "${ECHO_T}before 6" >&6
8378 if test x
$HAVE_X11XTR6 = xyes
; then
8379 LIBS
="-lXt -lSM -lICE $LIBS"
8384 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8385 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8386 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_check_lib_save_LIBS
=$LIBS
8391 cat >conftest.
$ac_ext <<_ACEOF
8394 cat confdefs.h
>>conftest.
$ac_ext
8395 cat >>conftest.
$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8398 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8404 char XmuConvertStandardSelection ();
8408 XmuConvertStandardSelection ();
8413 rm -f conftest.
$ac_objext conftest
$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415 (eval $ac_link) 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try
='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.
$ac_ext >&5
8430 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8432 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8433 LIBS
=$ac_check_lib_save_LIBS
8435 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8436 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8437 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8438 cat >>confdefs.h
<<_ACEOF
8439 #define HAVE_LIBXMU 1
8446 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8449 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8450 if test "${HAVE_X11}" = "yes"; then
8451 if test "${USE_X_TOOLKIT}" != "none"; then
8453 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8454 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8455 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 ac_check_lib_save_LIBS
=$LIBS
8460 cat >conftest.
$ac_ext <<_ACEOF
8463 cat confdefs.h
>>conftest.
$ac_ext
8464 cat >>conftest.
$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8467 /* Override any gcc2 internal prototype to avoid an error. */
8471 /* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473 char XShapeQueryExtension ();
8477 XShapeQueryExtension ();
8482 rm -f conftest.
$ac_objext conftest
$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484 (eval $ac_link) 2>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try
='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.
$ac_ext >&5
8499 ac_cv_lib_Xext_XShapeQueryExtension
=no
8501 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8502 LIBS
=$ac_check_lib_save_LIBS
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8505 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8506 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8507 cat >>confdefs.h
<<_ACEOF
8508 #define HAVE_LIBXEXT 1
8518 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8519 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8520 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8521 if test "${emacs_cv_lesstif+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 # We put this in CFLAGS temporarily to precede other -I options
8525 # that might be in CFLAGS temporarily.
8526 # We put this in CPPFLAGS where it precedes the other -I options.
8527 OLD_CPPFLAGS
=$CPPFLAGS
8529 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8530 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8531 cat >conftest.
$ac_ext <<_ACEOF
8534 cat confdefs.h
>>conftest.
$ac_ext
8535 cat >>conftest.
$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8546 rm -f conftest.
$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try
='test -s conftest.$ac_objext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 emacs_cv_lesstif
=yes
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.
$ac_ext >&5
8565 rm -f conftest.
$ac_objext conftest.
$ac_ext
8567 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8568 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8569 if test $emacs_cv_lesstif = yes; then
8570 # Make sure this -I option remains in CPPFLAGS after it is set
8571 # back to REAL_CPPFLAGS.
8572 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8573 # have those other -I options anyway. Ultimately, having this
8574 # directory ultimately in CPPFLAGS will be enough.
8575 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8576 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8579 CPPFLAGS
=$OLD_CPPFLAGS
8581 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8582 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8583 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 cat >conftest.
$ac_ext <<_ACEOF
8589 cat confdefs.h
>>conftest.
$ac_ext
8590 cat >>conftest.
$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8596 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8599 Motif version prior to 2.1.
8605 rm -f conftest.
$ac_objext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607 (eval $ac_compile) 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try
='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 emacs_cv_motif_version_2_1
=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.
$ac_ext >&5
8622 emacs_cv_motif_version_2_1
=no
8624 rm -f conftest.
$ac_objext conftest.
$ac_ext
8626 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8627 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8628 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8629 if test $emacs_cv_motif_version_2_1 = yes; then
8632 cat >>confdefs.h
<<\_ACEOF
8633 #define HAVE_MOTIF_2_1 1
8636 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8637 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8638 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 ac_check_lib_save_LIBS
=$LIBS
8643 cat >conftest.
$ac_ext <<_ACEOF
8646 cat confdefs.h
>>conftest.
$ac_ext
8647 cat >>conftest.
$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8656 char XpCreateContext ();
8665 rm -f conftest.
$ac_objext conftest
$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try
='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_lib_Xp_XpCreateContext
=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.
$ac_ext >&5
8682 ac_cv_lib_Xp_XpCreateContext
=no
8684 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8685 LIBS
=$ac_check_lib_save_LIBS
8687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8688 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8689 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8693 if test ${HAVE_LIBXP} = yes; then
8695 cat >>confdefs.h
<<\_ACEOF
8696 #define HAVE_LIBXP 1
8703 ### Is -lXaw3d available?
8705 if test "${HAVE_X11}" = "yes"; then
8706 if test "${USE_X_TOOLKIT}" != "none"; then
8707 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8708 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8709 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 cat >conftest.
$ac_ext <<_ACEOF
8715 cat confdefs.h
>>conftest.
$ac_ext
8716 cat >>conftest.
$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 #include <X11/Xaw3d/Scrollbar.h>
8720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8721 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8723 grep -v '^ *+' conftest.er1
>conftest.err
8725 cat conftest.err
>&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } >/dev
/null
; then
8728 if test -s conftest.err
; then
8729 ac_cpp_err
=$ac_c_preproc_warn_flag
8736 if test -z "$ac_cpp_err"; then
8737 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.
$ac_ext >&5
8742 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8744 rm -f conftest.err conftest.
$ac_ext
8746 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8747 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8748 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8749 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8750 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8751 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 ac_check_lib_save_LIBS
=$LIBS
8755 LIBS
="-lXaw3d $LIBS"
8756 cat >conftest.
$ac_ext <<_ACEOF
8759 cat confdefs.h
>>conftest.
$ac_ext
8760 cat >>conftest.
$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 /* Override any gcc2 internal prototype to avoid an error. */
8767 /* We use char because int might match the return type of a gcc2
8768 builtin and then its argument prototype would still apply. */
8769 char XawScrollbarSetThumb ();
8773 XawScrollbarSetThumb ();
8778 rm -f conftest.
$ac_objext conftest
$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try
='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.
$ac_ext >&5
8795 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8797 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8798 LIBS
=$ac_check_lib_save_LIBS
8800 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8801 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8802 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8809 if test "${HAVE_XAW3D}" = "yes"; then
8811 cat >>confdefs.h
<<\_ACEOF
8812 #define HAVE_XAW3D 1
8821 USE_TOOLKIT_SCROLL_BARS
=no
8822 if test "${with_toolkit_scroll_bars}" != "no"; then
8823 if test "${USE_X_TOOLKIT}" != "none"; then
8824 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8825 cat >>confdefs.h
<<\_ACEOF
8826 #define USE_TOOLKIT_SCROLL_BARS 1
8830 USE_TOOLKIT_SCROLL_BARS
=yes
8831 elif test "${HAVE_XAW3D}" = "yes"; then
8832 cat >>confdefs.h
<<\_ACEOF
8833 #define USE_TOOLKIT_SCROLL_BARS 1
8836 USE_TOOLKIT_SCROLL_BARS
=yes
8838 elif test "${HAVE_GTK}" = "yes"; then
8839 cat >>confdefs.h
<<\_ACEOF
8840 #define USE_TOOLKIT_SCROLL_BARS 1
8843 USE_TOOLKIT_SCROLL_BARS
=yes
8848 if test "${with_xim}" != "no"; then
8850 cat >>confdefs.h
<<\_ACEOF
8855 if test "$GCC" = yes; then
8856 CFLAGS
="$CFLAGS --pedantic-errors"
8858 cat >conftest.
$ac_ext <<_ACEOF
8861 cat confdefs.h
>>conftest.
$ac_ext
8862 cat >>conftest.
$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 #include <X11/Xlib.h>
8866 #include <X11/Xresource.h>
8875 XPointer *client_data;
8877 /* If we're not using GCC, it's probably not XFree86, and this is
8878 probably right, but we can't use something like --pedantic-errors. */
8879 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8880 char*, XIMProc, XPointer*);
8882 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8888 rm -f conftest.
$ac_objext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8890 (eval $ac_compile) 2>&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try
='test -s conftest.$ac_objext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 emacs_cv_arg6_star
=yes
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.
$ac_ext >&5
8906 rm -f conftest.
$ac_objext conftest.
$ac_ext
8908 if test "$emacs_cv_arg6_star" = yes; then
8909 cat >>confdefs.h
<<\_ACEOF
8910 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8914 cat >>confdefs.h
<<\_ACEOF
8915 #define XRegisterIMInstantiateCallback_arg6 XPointer
8922 ### Use -lXpm if available, unless `--with-xpm=no'.
8924 if test "${HAVE_X11}" = "yes"; then
8925 if test "${with_xpm}" != "no"; then
8926 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8927 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8928 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8929 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8933 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8935 # Is the header compilable?
8936 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8937 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8938 cat >conftest.
$ac_ext <<_ACEOF
8941 cat confdefs.h
>>conftest.
$ac_ext
8942 cat >>conftest.
$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 $ac_includes_default
8945 #include <X11/xpm.h>
8947 rm -f conftest.
$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try
='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_header_compiler
=yes
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.
$ac_ext >&5
8964 ac_header_compiler
=no
8966 rm -f conftest.
$ac_objext conftest.
$ac_ext
8967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8968 echo "${ECHO_T}$ac_header_compiler" >&6
8970 # Is the header present?
8971 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8972 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8973 cat >conftest.
$ac_ext <<_ACEOF
8976 cat confdefs.h
>>conftest.
$ac_ext
8977 cat >>conftest.
$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 #include <X11/xpm.h>
8981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8982 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8984 grep -v '^ *+' conftest.er1
>conftest.err
8986 cat conftest.err
>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } >/dev
/null
; then
8989 if test -s conftest.err
; then
8990 ac_cpp_err
=$ac_c_preproc_warn_flag
8997 if test -z "$ac_cpp_err"; then
8998 ac_header_preproc
=yes
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.
$ac_ext >&5
9003 ac_header_preproc
=no
9005 rm -f conftest.err conftest.
$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9007 echo "${ECHO_T}$ac_header_preproc" >&6
9009 # So? What about this header?
9010 case $ac_header_compiler:$ac_header_preproc in
9012 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9013 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
9015 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
9016 ac_header_preproc
=yes
9019 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9020 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9022 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
9024 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
9026 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9028 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
9030 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
9033 ## ------------------------------------------ ##
9034 ## Report this to the AC_PACKAGE_NAME lists. ##
9035 ## ------------------------------------------ ##
9038 sed "s/^/$as_me: WARNING: /" >&2
9041 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9042 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9043 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9048 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9049 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9052 if test $ac_cv_header_X11_xpm_h = yes; then
9053 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9054 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9055 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 ac_check_lib_save_LIBS
=$LIBS
9059 LIBS
="-lXpm -lX11 $LIBS"
9060 cat >conftest.
$ac_ext <<_ACEOF
9063 cat confdefs.h
>>conftest.
$ac_ext
9064 cat >>conftest.
$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9067 /* Override any gcc2 internal prototype to avoid an error. */
9071 /* We use char because int might match the return type of a gcc2
9072 builtin and then its argument prototype would still apply. */
9073 char XpmReadFileToPixmap ();
9077 XpmReadFileToPixmap ();
9082 rm -f conftest.
$ac_objext conftest
$ac_exeext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try
='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.
$ac_ext >&5
9099 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9101 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9102 LIBS
=$ac_check_lib_save_LIBS
9104 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9105 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9106 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9113 if test "${HAVE_XPM}" = "yes"; then
9114 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9115 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9116 cat >conftest.
$ac_ext <<_ACEOF
9119 cat confdefs.h
>>conftest.
$ac_ext
9120 cat >>conftest.
$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9122 #include "X11/xpm.h"
9123 #ifndef XpmReturnAllocPixels
9124 no_return_alloc_pixels
9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9137 if test "${HAVE_XPM}" = "yes"; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139 echo "${ECHO_T}yes" >&6
9141 echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6
9147 if test "${HAVE_XPM}" = "yes"; then
9149 cat >>confdefs.h
<<\_ACEOF
9156 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9158 if test "${HAVE_X11}" = "yes"; then
9159 if test "${with_jpeg}" != "no"; then
9160 if test "${ac_cv_header_jerror_h+set}" = set; then
9161 echo "$as_me:$LINENO: checking for jerror.h" >&5
9162 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9163 if test "${ac_cv_header_jerror_h+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9167 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9169 # Is the header compilable?
9170 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9171 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9172 cat >conftest.
$ac_ext <<_ACEOF
9175 cat confdefs.h
>>conftest.
$ac_ext
9176 cat >>conftest.
$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 $ac_includes_default
9181 rm -f conftest.
$ac_objext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try
='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_header_compiler
=yes
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.
$ac_ext >&5
9198 ac_header_compiler
=no
9200 rm -f conftest.
$ac_objext conftest.
$ac_ext
9201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202 echo "${ECHO_T}$ac_header_compiler" >&6
9204 # Is the header present?
9205 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9206 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9207 cat >conftest.
$ac_ext <<_ACEOF
9210 cat confdefs.h
>>conftest.
$ac_ext
9211 cat >>conftest.
$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9216 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9218 grep -v '^ *+' conftest.er1
>conftest.err
9220 cat conftest.err
>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } >/dev
/null
; then
9223 if test -s conftest.err
; then
9224 ac_cpp_err
=$ac_c_preproc_warn_flag
9231 if test -z "$ac_cpp_err"; then
9232 ac_header_preproc
=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.
$ac_ext >&5
9237 ac_header_preproc
=no
9239 rm -f conftest.err conftest.
$ac_ext
9240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9241 echo "${ECHO_T}$ac_header_preproc" >&6
9243 # So? What about this header?
9244 case $ac_header_compiler:$ac_header_preproc in
9246 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9247 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
9249 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
9250 ac_header_preproc
=yes
9253 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9254 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9256 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
9258 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
9260 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9262 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
9264 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
9267 ## ------------------------------------------ ##
9268 ## Report this to the AC_PACKAGE_NAME lists. ##
9269 ## ------------------------------------------ ##
9272 sed "s/^/$as_me: WARNING: /" >&2
9275 echo "$as_me:$LINENO: checking for jerror.h" >&5
9276 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9277 if test "${ac_cv_header_jerror_h+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 ac_cv_header_jerror_h
=$ac_header_preproc
9282 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9283 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9286 if test $ac_cv_header_jerror_h = yes; then
9287 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9288 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9289 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 ac_check_lib_save_LIBS
=$LIBS
9294 cat >conftest.
$ac_ext <<_ACEOF
9297 cat confdefs.h
>>conftest.
$ac_ext
9298 cat >>conftest.
$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any gcc2 internal prototype to avoid an error. */
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9307 char jpeg_destroy_compress ();
9311 jpeg_destroy_compress ();
9316 rm -f conftest.
$ac_objext conftest
$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } &&
9322 { ac_try
='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.
$ac_ext >&5
9333 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9335 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9336 LIBS
=$ac_check_lib_save_LIBS
9338 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9339 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9340 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9350 if test "${HAVE_JPEG}" = "yes"; then
9351 cat >>confdefs.h
<<\_ACEOF
9355 cat >conftest.
$ac_ext <<_ACEOF
9358 cat confdefs.h
>>conftest.
$ac_ext
9359 cat >>conftest.
$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #include <jpeglib.h>
9362 version=JPEG_LIB_VERSION
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
9367 cat >>confdefs.h
<<\_ACEOF
9372 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9373 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9381 ### Use -lpng if available, unless `--with-png=no'.
9383 if test "${HAVE_X11}" = "yes"; then
9384 if test "${with_png}" != "no"; then
9385 if test "${ac_cv_header_png_h+set}" = set; then
9386 echo "$as_me:$LINENO: checking for png.h" >&5
9387 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9388 if test "${ac_cv_header_png_h+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9392 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9394 # Is the header compilable?
9395 echo "$as_me:$LINENO: checking png.h usability" >&5
9396 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9397 cat >conftest.
$ac_ext <<_ACEOF
9400 cat confdefs.h
>>conftest.
$ac_ext
9401 cat >>conftest.
$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 $ac_includes_default
9406 rm -f conftest.
$ac_objext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9408 (eval $ac_compile) 2>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try
='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_header_compiler
=yes
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.
$ac_ext >&5
9423 ac_header_compiler
=no
9425 rm -f conftest.
$ac_objext conftest.
$ac_ext
9426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427 echo "${ECHO_T}$ac_header_compiler" >&6
9429 # Is the header present?
9430 echo "$as_me:$LINENO: checking png.h presence" >&5
9431 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9432 cat >conftest.
$ac_ext <<_ACEOF
9435 cat confdefs.h
>>conftest.
$ac_ext
9436 cat >>conftest.
$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9441 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9443 grep -v '^ *+' conftest.er1
>conftest.err
9445 cat conftest.err
>&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } >/dev
/null
; then
9448 if test -s conftest.err
; then
9449 ac_cpp_err
=$ac_c_preproc_warn_flag
9456 if test -z "$ac_cpp_err"; then
9457 ac_header_preproc
=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.
$ac_ext >&5
9462 ac_header_preproc
=no
9464 rm -f conftest.err conftest.
$ac_ext
9465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9466 echo "${ECHO_T}$ac_header_preproc" >&6
9468 # So? What about this header?
9469 case $ac_header_compiler:$ac_header_preproc in
9471 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9472 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
9474 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
9475 ac_header_preproc
=yes
9478 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9479 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9481 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
9483 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
9485 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9487 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
9489 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
9492 ## ------------------------------------------ ##
9493 ## Report this to the AC_PACKAGE_NAME lists. ##
9494 ## ------------------------------------------ ##
9497 sed "s/^/$as_me: WARNING: /" >&2
9500 echo "$as_me:$LINENO: checking for png.h" >&5
9501 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9502 if test "${ac_cv_header_png_h+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 ac_cv_header_png_h
=$ac_header_preproc
9507 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9508 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9511 if test $ac_cv_header_png_h = yes; then
9512 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9513 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9514 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 ac_check_lib_save_LIBS
=$LIBS
9518 LIBS
="-lpng -lz -lm $LIBS"
9519 cat >conftest.
$ac_ext <<_ACEOF
9522 cat confdefs.h
>>conftest.
$ac_ext
9523 cat >>conftest.
$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9526 /* Override any gcc2 internal prototype to avoid an error. */
9530 /* We use char because int might match the return type of a gcc2
9531 builtin and then its argument prototype would still apply. */
9532 char png_get_channels ();
9536 png_get_channels ();
9541 rm -f conftest.
$ac_objext conftest
$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try
='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_lib_png_png_get_channels
=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.
$ac_ext >&5
9558 ac_cv_lib_png_png_get_channels
=no
9560 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9561 LIBS
=$ac_check_lib_save_LIBS
9563 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9564 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9565 if test $ac_cv_lib_png_png_get_channels = yes; then
9574 if test "${HAVE_PNG}" = "yes"; then
9576 cat >>confdefs.h
<<\_ACEOF
9583 ### Use -ltiff if available, unless `--with-tiff=no'.
9585 if test "${HAVE_X11}" = "yes"; then
9586 if test "${with_tiff}" != "no"; then
9587 if test "${ac_cv_header_tiffio_h+set}" = set; then
9588 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9589 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9590 if test "${ac_cv_header_tiffio_h+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9594 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9596 # Is the header compilable?
9597 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9598 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9599 cat >conftest.
$ac_ext <<_ACEOF
9602 cat confdefs.h
>>conftest.
$ac_ext
9603 cat >>conftest.
$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 $ac_includes_default
9608 rm -f conftest.
$ac_objext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610 (eval $ac_compile) 2>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try
='test -s conftest.$ac_objext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 ac_header_compiler
=yes
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.
$ac_ext >&5
9625 ac_header_compiler
=no
9627 rm -f conftest.
$ac_objext conftest.
$ac_ext
9628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9629 echo "${ECHO_T}$ac_header_compiler" >&6
9631 # Is the header present?
9632 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9633 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9634 cat >conftest.
$ac_ext <<_ACEOF
9637 cat confdefs.h
>>conftest.
$ac_ext
9638 cat >>conftest.
$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9645 grep -v '^ *+' conftest.er1
>conftest.err
9647 cat conftest.err
>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev
/null
; then
9650 if test -s conftest.err
; then
9651 ac_cpp_err
=$ac_c_preproc_warn_flag
9658 if test -z "$ac_cpp_err"; then
9659 ac_header_preproc
=yes
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.
$ac_ext >&5
9664 ac_header_preproc
=no
9666 rm -f conftest.err conftest.
$ac_ext
9667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668 echo "${ECHO_T}$ac_header_preproc" >&6
9670 # So? What about this header?
9671 case $ac_header_compiler:$ac_header_preproc in
9673 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9674 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
9676 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
9677 ac_header_preproc
=yes
9680 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9681 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9683 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
9685 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
9687 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9689 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
9691 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
9694 ## ------------------------------------------ ##
9695 ## Report this to the AC_PACKAGE_NAME lists. ##
9696 ## ------------------------------------------ ##
9699 sed "s/^/$as_me: WARNING: /" >&2
9702 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9703 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9704 if test "${ac_cv_header_tiffio_h+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 ac_cv_header_tiffio_h
=$ac_header_preproc
9709 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9710 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9713 if test $ac_cv_header_tiffio_h = yes; then
9715 # At least one tiff package requires the jpeg library.
9716 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9717 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9718 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9719 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 ac_check_lib_save_LIBS
=$LIBS
9723 LIBS
="-ltiff $tifflibs $LIBS"
9724 cat >conftest.
$ac_ext <<_ACEOF
9727 cat confdefs.h
>>conftest.
$ac_ext
9728 cat >>conftest.
$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9737 char TIFFGetVersion ();
9746 rm -f conftest.
$ac_objext conftest
$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try
='test -s conftest$ac_exeext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_lib_tiff_TIFFGetVersion
=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.
$ac_ext >&5
9763 ac_cv_lib_tiff_TIFFGetVersion
=no
9765 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9766 LIBS
=$ac_check_lib_save_LIBS
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9769 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9770 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9779 if test "${HAVE_TIFF}" = "yes"; then
9781 cat >>confdefs.h
<<\_ACEOF
9788 ### Use -lgif if available, unless `--with-gif=no'.
9790 if test "${HAVE_X11}" = "yes"; then
9791 if test "${with_gif}" != "no"; then
9792 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9793 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9794 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9795 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9799 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9801 # Is the header compilable?
9802 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9803 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9804 cat >conftest.
$ac_ext <<_ACEOF
9807 cat confdefs.h
>>conftest.
$ac_ext
9808 cat >>conftest.
$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 #include <gif_lib.h>
9813 rm -f conftest.
$ac_objext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9815 (eval $ac_compile) 2>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try
='test -s conftest.$ac_objext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_header_compiler
=yes
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.
$ac_ext >&5
9830 ac_header_compiler
=no
9832 rm -f conftest.
$ac_objext conftest.
$ac_ext
9833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9834 echo "${ECHO_T}$ac_header_compiler" >&6
9836 # Is the header present?
9837 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9838 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9839 cat >conftest.
$ac_ext <<_ACEOF
9842 cat confdefs.h
>>conftest.
$ac_ext
9843 cat >>conftest.
$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <gif_lib.h>
9847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9848 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9850 grep -v '^ *+' conftest.er1
>conftest.err
9852 cat conftest.err
>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } >/dev
/null
; then
9855 if test -s conftest.err
; then
9856 ac_cpp_err
=$ac_c_preproc_warn_flag
9863 if test -z "$ac_cpp_err"; then
9864 ac_header_preproc
=yes
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.
$ac_ext >&5
9869 ac_header_preproc
=no
9871 rm -f conftest.err conftest.
$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9873 echo "${ECHO_T}$ac_header_preproc" >&6
9875 # So? What about this header?
9876 case $ac_header_compiler:$ac_header_preproc in
9878 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9879 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
9881 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
9882 ac_header_preproc
=yes
9885 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9886 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9888 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
9890 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
9892 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9894 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
9896 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
9899 ## ------------------------------------------ ##
9900 ## Report this to the AC_PACKAGE_NAME lists. ##
9901 ## ------------------------------------------ ##
9904 sed "s/^/$as_me: WARNING: /" >&2
9907 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9908 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9909 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 ac_cv_header_gif_lib_h
=$ac_header_preproc
9914 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9915 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9918 if test $ac_cv_header_gif_lib_h = yes; then
9919 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9920 # Earlier versions can crash Emacs.
9921 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9922 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9923 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 ac_check_lib_save_LIBS
=$LIBS
9927 LIBS
="-lungif $LIBS"
9928 cat >conftest.
$ac_ext <<_ACEOF
9931 cat confdefs.h
>>conftest.
$ac_ext
9932 cat >>conftest.
$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9935 /* Override any gcc2 internal prototype to avoid an error. */
9939 /* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941 char EGifPutExtensionLast ();
9945 EGifPutExtensionLast ();
9950 rm -f conftest.
$ac_objext conftest
$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try
='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.
$ac_ext >&5
9967 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9969 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9970 LIBS
=$ac_check_lib_save_LIBS
9972 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9973 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9974 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9983 if test "${HAVE_GIF}" = "yes"; then
9985 cat >>confdefs.h
<<\_ACEOF
9992 ### Use Mac OS X Carbon API to implement GUI.
9994 if test "${with_carbon}" != "no"; then
9995 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9996 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9997 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9998 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10002 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10004 # Is the header compilable?
10005 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10006 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10007 cat >conftest.
$ac_ext <<_ACEOF
10010 cat confdefs.h
>>conftest.
$ac_ext
10011 cat >>conftest.
$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 $ac_includes_default
10014 #include <Carbon/Carbon.h>
10016 rm -f conftest.
$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try
='test -s conftest.$ac_objext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_header_compiler
=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.
$ac_ext >&5
10033 ac_header_compiler
=no
10035 rm -f conftest.
$ac_objext conftest.
$ac_ext
10036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10037 echo "${ECHO_T}$ac_header_compiler" >&6
10039 # Is the header present?
10040 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10041 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10042 cat >conftest.
$ac_ext <<_ACEOF
10045 cat confdefs.h
>>conftest.
$ac_ext
10046 cat >>conftest.
$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <Carbon/Carbon.h>
10050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1
>conftest.err
10055 cat conftest.err
>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } >/dev
/null
; then
10058 if test -s conftest.err
; then
10059 ac_cpp_err
=$ac_c_preproc_warn_flag
10066 if test -z "$ac_cpp_err"; then
10067 ac_header_preproc
=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 ac_header_preproc
=no
10074 rm -f conftest.err conftest.
$ac_ext
10075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10076 echo "${ECHO_T}$ac_header_preproc" >&6
10078 # So? What about this header?
10079 case $ac_header_compiler:$ac_header_preproc in
10081 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10082 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10084 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10085 ac_header_preproc
=yes
10088 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10089 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10090 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10091 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
10093 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
10095 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10097 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
10099 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10102 ## ------------------------------------------ ##
10103 ## Report this to the AC_PACKAGE_NAME lists. ##
10104 ## ------------------------------------------ ##
10107 sed "s/^/$as_me: WARNING: /" >&2
10110 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10111 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10112 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10117 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10118 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10121 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10128 if test "${HAVE_CARBON}" = "yes"; then
10130 cat >>confdefs.h
<<\_ACEOF
10131 #define HAVE_CARBON 1
10135 ## Specify the install directory
10137 if test "${carbon_appdir_x}" != ""; then
10138 case ${carbon_appdir_x} in
10139 y | ye |
yes) carbon_appdir
=/Applications
;;
10140 * ) carbon_appdir
=${carbon_appdir_x} ;;
10143 # We also have mouse menus.
10147 ### Use session management (-lSM -lICE) if available
10149 if test "${HAVE_X11}" = "yes"; then
10150 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10151 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10152 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10153 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10157 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10159 # Is the header compilable?
10160 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10161 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10162 cat >conftest.
$ac_ext <<_ACEOF
10165 cat confdefs.h
>>conftest.
$ac_ext
10166 cat >>conftest.
$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 $ac_includes_default
10169 #include <X11/SM/SMlib.h>
10171 rm -f conftest.
$ac_objext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10173 (eval $ac_compile) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try
='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_header_compiler
=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.
$ac_ext >&5
10188 ac_header_compiler
=no
10190 rm -f conftest.
$ac_objext conftest.
$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10192 echo "${ECHO_T}$ac_header_compiler" >&6
10194 # Is the header present?
10195 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10196 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10197 cat >conftest.
$ac_ext <<_ACEOF
10200 cat confdefs.h
>>conftest.
$ac_ext
10201 cat >>conftest.
$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #include <X11/SM/SMlib.h>
10205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10206 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10208 grep -v '^ *+' conftest.er1
>conftest.err
10210 cat conftest.err
>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } >/dev
/null
; then
10213 if test -s conftest.err
; then
10214 ac_cpp_err
=$ac_c_preproc_warn_flag
10221 if test -z "$ac_cpp_err"; then
10222 ac_header_preproc
=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.
$ac_ext >&5
10227 ac_header_preproc
=no
10229 rm -f conftest.err conftest.
$ac_ext
10230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10231 echo "${ECHO_T}$ac_header_preproc" >&6
10233 # So? What about this header?
10234 case $ac_header_compiler:$ac_header_preproc in
10236 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10237 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
10239 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
10240 ac_header_preproc
=yes
10243 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10244 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10246 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
10248 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
10250 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10252 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
10254 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
10257 ## ------------------------------------------ ##
10258 ## Report this to the AC_PACKAGE_NAME lists. ##
10259 ## ------------------------------------------ ##
10262 sed "s/^/$as_me: WARNING: /" >&2
10265 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10266 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10267 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10272 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10273 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10276 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10277 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10278 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10279 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 ac_check_lib_save_LIBS
=$LIBS
10284 cat >conftest.
$ac_ext <<_ACEOF
10287 cat confdefs.h
>>conftest.
$ac_ext
10288 cat >>conftest.
$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10291 /* Override any gcc2 internal prototype to avoid an error. */
10295 /* We use char because int might match the return type of a gcc2
10296 builtin and then its argument prototype would still apply. */
10297 char SmcOpenConnection ();
10301 SmcOpenConnection ();
10306 rm -f conftest.
$ac_objext conftest
$ac_exeext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try
='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_lib_SM_SmcOpenConnection
=yes
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.
$ac_ext >&5
10323 ac_cv_lib_SM_SmcOpenConnection
=no
10325 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10326 LIBS
=$ac_check_lib_save_LIBS
10328 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10329 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10330 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10340 if test "${HAVE_X_SM}" = "yes"; then
10342 cat >>confdefs.h
<<\_ACEOF
10343 #define HAVE_X_SM 1
10348 *) LIBS
="-lSM -lICE $LIBS" ;;
10353 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10354 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10355 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10356 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 cat >conftest.
$ac_ext <<_ACEOF
10362 cat confdefs.h
>>conftest.
$ac_ext
10363 cat >>conftest.
$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10374 rm -f conftest.
$ac_objext conftest
$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try
='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 emacs_cv_netdb_declares_h_errno
=yes
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.
$ac_ext >&5
10391 emacs_cv_netdb_declares_h_errno
=no
10393 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10395 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10396 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10397 if test $emacs_cv_netdb_declares_h_errno = yes; then
10399 cat >>confdefs.h
<<\_ACEOF
10400 #define HAVE_H_ERRNO 1
10405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10406 # for constant arguments. Useless!
10407 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10408 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10409 if test "${ac_cv_working_alloca_h+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 cat >conftest.
$ac_ext <<_ACEOF
10415 cat confdefs.h
>>conftest.
$ac_ext
10416 cat >>conftest.
$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 #include <alloca.h>
10422 char *p = (char *) alloca (2 * sizeof (int));
10427 rm -f conftest.
$ac_objext conftest
$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try
='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_working_alloca_h
=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.
$ac_ext >&5
10444 ac_cv_working_alloca_h
=no
10446 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10449 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10450 if test $ac_cv_working_alloca_h = yes; then
10452 cat >>confdefs.h
<<\_ACEOF
10453 #define HAVE_ALLOCA_H 1
10458 echo "$as_me:$LINENO: checking for alloca" >&5
10459 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10460 if test "${ac_cv_func_alloca_works+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 cat >conftest.
$ac_ext <<_ACEOF
10466 cat confdefs.h
>>conftest.
$ac_ext
10467 cat >>conftest.
$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10470 # define alloca __builtin_alloca
10473 # include <malloc.h>
10474 # define alloca _alloca
10477 # include <alloca.h>
10482 # ifndef alloca /* predefined by HP cc +Olibcalls */
10493 char *p = (char *) alloca (1);
10498 rm -f conftest.
$ac_objext conftest
$ac_exeext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
10504 { ac_try
='test -s conftest$ac_exeext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 ac_cv_func_alloca_works
=yes
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.
$ac_ext >&5
10515 ac_cv_func_alloca_works
=no
10517 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10519 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10520 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10522 if test $ac_cv_func_alloca_works = yes; then
10524 cat >>confdefs.h
<<\_ACEOF
10525 #define HAVE_ALLOCA 1
10529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10530 # that cause trouble. Some versions do not even contain alloca or
10531 # contain a buggy version. If you still want to use their alloca,
10532 # use ar to extract alloca.o from them instead of compiling alloca.c.
10534 ALLOCA
=alloca.
$ac_objext
10536 cat >>confdefs.h
<<\_ACEOF
10541 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10542 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10543 if test "${ac_cv_os_cray+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 cat >conftest.
$ac_ext <<_ACEOF
10549 cat confdefs.h
>>conftest.
$ac_ext
10550 cat >>conftest.
$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #if defined(CRAY) && ! defined(CRAY2)
10559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10560 $EGREP "webecray" >/dev
/null
2>&1; then
10568 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10569 echo "${ECHO_T}$ac_cv_os_cray" >&6
10570 if test $ac_cv_os_cray = yes; then
10571 for ac_func
in _getb67 GETB67 getb67
; do
10572 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10573 echo "$as_me:$LINENO: checking for $ac_func" >&5
10574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10575 if eval "test \"\${$as_ac_var+set}\" = set"; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 cat >conftest.
$ac_ext <<_ACEOF
10581 cat confdefs.h
>>conftest.
$ac_ext
10582 cat >>conftest.
$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10586 #define $ac_func innocuous_$ac_func
10588 /* System header to define __stub macros and hopefully few prototypes,
10589 which can conflict with char $ac_func (); below.
10590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10591 <limits.h> exists even on freestanding compilers. */
10594 # include <limits.h>
10596 # include <assert.h>
10601 /* Override any gcc2 internal prototype to avoid an error. */
10606 /* We use char because int might match the return type of a gcc2
10607 builtin and then its argument prototype would still apply. */
10609 /* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10615 char (*f) () = $ac_func;
10624 return f != $ac_func;
10629 rm -f conftest.
$ac_objext conftest
$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try
='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 eval "$as_ac_var=yes"
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.
$ac_ext >&5
10646 eval "$as_ac_var=no"
10648 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10652 if test `eval echo '${'$as_ac_var'}'` = yes; then
10654 cat >>confdefs.h
<<_ACEOF
10655 #define CRAY_STACKSEG_END $ac_func
10664 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10665 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10666 if test "${ac_cv_c_stack_direction+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 if test "$cross_compiling" = yes; then
10670 ac_cv_c_stack_direction
=0
10672 cat >conftest.
$ac_ext <<_ACEOF
10675 cat confdefs.h
>>conftest.
$ac_ext
10676 cat >>conftest.
$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10679 find_stack_direction ()
10681 static char *addr = 0;
10686 return find_stack_direction ();
10689 return (&dummy > addr) ? 1 : -1;
10695 exit (find_stack_direction () < 0);
10698 rm -f conftest
$ac_exeext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ac_cv_c_stack_direction
=1
10711 echo "$as_me: program exited with status $ac_status" >&5
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.
$ac_ext >&5
10715 ( exit $ac_status )
10716 ac_cv_c_stack_direction
=-1
10718 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10721 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10722 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10724 cat >>confdefs.h
<<_ACEOF
10725 #define STACK_DIRECTION $ac_cv_c_stack_direction
10732 # fmod, logb, and frexp are found in -lm on most systems.
10733 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10735 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10736 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10737 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 ac_check_lib_save_LIBS
=$LIBS
10742 cat >conftest.
$ac_ext <<_ACEOF
10745 cat confdefs.h
>>conftest.
$ac_ext
10746 cat >>conftest.
$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10749 /* Override any gcc2 internal prototype to avoid an error. */
10753 /* We use char because int might match the return type of a gcc2
10754 builtin and then its argument prototype would still apply. */
10764 rm -f conftest.
$ac_objext conftest
$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try
='test -s conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_lib_m_sqrt
=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.
$ac_ext >&5
10781 ac_cv_lib_m_sqrt
=no
10783 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10784 LIBS
=$ac_check_lib_save_LIBS
10786 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10787 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10788 if test $ac_cv_lib_m_sqrt = yes; then
10789 cat >>confdefs.h
<<_ACEOF
10790 #define HAVE_LIBM 1
10798 # Check for mail-locking functions in a "mail" library. Probably this should
10799 # have the same check as for liblockfile below.
10801 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10802 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10803 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 ac_check_lib_save_LIBS
=$LIBS
10807 LIBS
="-lmail $LIBS"
10808 cat >conftest.
$ac_ext <<_ACEOF
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10815 /* Override any gcc2 internal prototype to avoid an error. */
10819 /* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10830 rm -f conftest.
$ac_objext conftest
$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try
='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_lib_mail_maillock
=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_cv_lib_mail_maillock
=no
10849 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10850 LIBS
=$ac_check_lib_save_LIBS
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10853 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10854 if test $ac_cv_lib_mail_maillock = yes; then
10855 cat >>confdefs.h
<<_ACEOF
10856 #define HAVE_LIBMAIL 1
10859 LIBS
="-lmail $LIBS"
10864 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10865 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10866 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 ac_check_lib_save_LIBS
=$LIBS
10870 LIBS
="-llockfile $LIBS"
10871 cat >conftest.
$ac_ext <<_ACEOF
10874 cat confdefs.h
>>conftest.
$ac_ext
10875 cat >>conftest.
$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10878 /* Override any gcc2 internal prototype to avoid an error. */
10882 /* We use char because int might match the return type of a gcc2
10883 builtin and then its argument prototype would still apply. */
10893 rm -f conftest.
$ac_objext conftest
$ac_exeext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10895 (eval $ac_link) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try
='test -s conftest$ac_exeext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 ac_cv_lib_lockfile_maillock
=yes
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.
$ac_ext >&5
10910 ac_cv_lib_lockfile_maillock
=no
10912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10913 LIBS
=$ac_check_lib_save_LIBS
10915 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10916 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10917 if test $ac_cv_lib_lockfile_maillock = yes; then
10918 cat >>confdefs.h
<<_ACEOF
10919 #define HAVE_LIBLOCKFILE 1
10922 LIBS
="-llockfile $LIBS"
10926 # If we have the shared liblockfile, assume we must use it for mail
10927 # locking (e.g. Debian). If we couldn't link against liblockfile
10928 # (no liblockfile.a installed), ensure that we don't need to.
10929 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10930 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10931 set dummy liblockfile.so
; ac_word
=$2
10932 echo "$as_me:$LINENO: checking for $ac_word" >&5
10933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10934 if test "${ac_cv_prog_liblockfile+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 if test -n "$liblockfile"; then
10938 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10941 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10942 for as_dir
in $as_dummy
10945 test -z "$as_dir" && as_dir
=.
10946 for ac_exec_ext
in '' $ac_executable_extensions; do
10947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10948 ac_cv_prog_liblockfile
="yes"
10949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10958 liblockfile
=$ac_cv_prog_liblockfile
10959 if test -n "$liblockfile"; then
10960 echo "$as_me:$LINENO: result: $liblockfile" >&5
10961 echo "${ECHO_T}$liblockfile" >&6
10963 echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6
10967 if test $ac_cv_prog_liblockfile = yes; then
10968 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10969 This probably means that movemail could lose mail.
10970 There may be a \`development' package to install containing liblockfile." >&5
10971 echo "$as_me: error: Shared liblockfile found but can't link against it.
10972 This probably means that movemail could lose mail.
10973 There may be a \`development' package to install containing liblockfile." >&2;}
10974 { (exit 1); exit 1; }; }
10979 for ac_func
in touchlock
10981 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10982 echo "$as_me:$LINENO: checking for $ac_func" >&5
10983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10984 if eval "test \"\${$as_ac_var+set}\" = set"; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 cat >conftest.
$ac_ext <<_ACEOF
10990 cat confdefs.h
>>conftest.
$ac_ext
10991 cat >>conftest.
$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10995 #define $ac_func innocuous_$ac_func
10997 /* System header to define __stub macros and hopefully few prototypes,
10998 which can conflict with char $ac_func (); below.
10999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11000 <limits.h> exists even on freestanding compilers. */
11003 # include <limits.h>
11005 # include <assert.h>
11010 /* Override any gcc2 internal prototype to avoid an error. */
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11018 /* The GNU C library defines this for functions which it implements
11019 to always fail with ENOSYS. Some functions are actually named
11020 something starting with __ and the normal name is an alias. */
11021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11024 char (*f) () = $ac_func;
11033 return f != $ac_func;
11038 rm -f conftest.
$ac_objext conftest
$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try
='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 eval "$as_ac_var=yes"
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.
$ac_ext >&5
11055 eval "$as_ac_var=no"
11057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11061 if test `eval echo '${'$as_ac_var'}'` = yes; then
11062 cat >>confdefs.h
<<_ACEOF
11063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11070 for ac_header
in maillock.h
11072 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11074 echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11082 # Is the header compilable?
11083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11085 cat >conftest.
$ac_ext <<_ACEOF
11088 cat confdefs.h
>>conftest.
$ac_ext
11089 cat >>conftest.
$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 $ac_includes_default
11092 #include <$ac_header>
11094 rm -f conftest.
$ac_objext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try
='test -s conftest.$ac_objext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler
=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.
$ac_ext >&5
11111 ac_header_compiler
=no
11113 rm -f conftest.
$ac_objext conftest.
$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 echo "${ECHO_T}$ac_header_compiler" >&6
11117 # Is the header present?
11118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11120 cat >conftest.
$ac_ext <<_ACEOF
11123 cat confdefs.h
>>conftest.
$ac_ext
11124 cat >>conftest.
$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <$ac_header>
11128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11129 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11131 grep -v '^ *+' conftest.er1
>conftest.err
11133 cat conftest.err
>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev
/null
; then
11136 if test -s conftest.err
; then
11137 ac_cpp_err
=$ac_c_preproc_warn_flag
11144 if test -z "$ac_cpp_err"; then
11145 ac_header_preproc
=yes
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.
$ac_ext >&5
11150 ac_header_preproc
=no
11152 rm -f conftest.err conftest.
$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154 echo "${ECHO_T}$ac_header_preproc" >&6
11156 # So? What about this header?
11157 case $ac_header_compiler:$ac_header_preproc in
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11163 ac_header_preproc
=yes
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11180 ## ------------------------------------------ ##
11181 ## Report this to the AC_PACKAGE_NAME lists. ##
11182 ## ------------------------------------------ ##
11185 sed "s/^/$as_me: WARNING: /" >&2
11188 echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 eval "$as_ac_Header=\$ac_header_preproc"
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11200 cat >>confdefs.h
<<_ACEOF
11201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276 for ac_func
in gethostname getdomainname dup2 \
11277 rename closedir mkdir
rmdir sysinfo \
11278 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11279 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11280 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11281 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11282 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11283 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11284 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11286 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11289 if eval "test \"\${$as_ac_var+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 cat >conftest.
$ac_ext <<_ACEOF
11295 cat confdefs.h
>>conftest.
$ac_ext
11296 cat >>conftest.
$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11300 #define $ac_func innocuous_$ac_func
11302 /* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below.
11304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305 <limits.h> exists even on freestanding compilers. */
11308 # include <limits.h>
11310 # include <assert.h>
11315 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11329 char (*f) () = $ac_func;
11338 return f != $ac_func;
11343 rm -f conftest.
$ac_objext conftest
$ac_exeext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345 (eval $ac_link) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try
='test -s conftest$ac_exeext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 eval "$as_ac_var=yes"
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.
$ac_ext >&5
11360 eval "$as_ac_var=no"
11362 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h
<<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11376 for ac_header
in sys
/un.h
11378 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11380 echo "$as_me:$LINENO: checking for $ac_header" >&5
11381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11388 # Is the header compilable?
11389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11391 cat >conftest.
$ac_ext <<_ACEOF
11394 cat confdefs.h
>>conftest.
$ac_ext
11395 cat >>conftest.
$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 #include <$ac_header>
11400 rm -f conftest.
$ac_objext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try
='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_header_compiler
=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.
$ac_ext >&5
11417 ac_header_compiler
=no
11419 rm -f conftest.
$ac_objext conftest.
$ac_ext
11420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11421 echo "${ECHO_T}$ac_header_compiler" >&6
11423 # Is the header present?
11424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11426 cat >conftest.
$ac_ext <<_ACEOF
11429 cat confdefs.h
>>conftest.
$ac_ext
11430 cat >>conftest.
$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 #include <$ac_header>
11434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11435 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11437 grep -v '^ *+' conftest.er1
>conftest.err
11439 cat conftest.err
>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } >/dev
/null
; then
11442 if test -s conftest.err
; then
11443 ac_cpp_err
=$ac_c_preproc_warn_flag
11450 if test -z "$ac_cpp_err"; then
11451 ac_header_preproc
=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.
$ac_ext >&5
11456 ac_header_preproc
=no
11458 rm -f conftest.err conftest.
$ac_ext
11459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc in
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc
=yes
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11486 ## ------------------------------------------ ##
11487 ## Report this to the AC_PACKAGE_NAME lists. ##
11488 ## ------------------------------------------ ##
11491 sed "s/^/$as_me: WARNING: /" >&2
11494 echo "$as_me:$LINENO: checking for $ac_header" >&5
11495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 eval "$as_ac_Header=\$ac_header_preproc"
11501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h
<<_ACEOF
11507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11518 for ac_header
in stdlib.h sys
/time.h unistd.h
11520 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11522 echo "$as_me:$LINENO: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11530 # Is the header compilable?
11531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11533 cat >conftest.
$ac_ext <<_ACEOF
11536 cat confdefs.h
>>conftest.
$ac_ext
11537 cat >>conftest.
$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11540 #include <$ac_header>
11542 rm -f conftest.
$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544 (eval $ac_compile) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try
='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_header_compiler
=yes
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.
$ac_ext >&5
11559 ac_header_compiler
=no
11561 rm -f conftest.
$ac_objext conftest.
$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6
11565 # Is the header present?
11566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11568 cat >conftest.
$ac_ext <<_ACEOF
11571 cat confdefs.h
>>conftest.
$ac_ext
11572 cat >>conftest.
$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11579 grep -v '^ *+' conftest.er1
>conftest.err
11581 cat conftest.err
>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev
/null
; then
11584 if test -s conftest.err
; then
11585 ac_cpp_err
=$ac_c_preproc_warn_flag
11592 if test -z "$ac_cpp_err"; then
11593 ac_header_preproc
=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.
$ac_ext >&5
11598 ac_header_preproc
=no
11600 rm -f conftest.err conftest.
$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc in
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11611 ac_header_preproc
=yes
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11628 ## ------------------------------------------ ##
11629 ## Report this to the AC_PACKAGE_NAME lists. ##
11630 ## ------------------------------------------ ##
11633 sed "s/^/$as_me: WARNING: /" >&2
11636 echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 eval "$as_ac_Header=\$ac_header_preproc"
11643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11648 cat >>confdefs.h
<<_ACEOF
11649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11657 for ac_func
in alarm
11659 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11662 if eval "test \"\${$as_ac_var+set}\" = set"; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 cat >conftest.
$ac_ext <<_ACEOF
11668 cat confdefs.h
>>conftest.
$ac_ext
11669 cat >>conftest.
$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11673 #define $ac_func innocuous_$ac_func
11675 /* System header to define __stub macros and hopefully few prototypes,
11676 which can conflict with char $ac_func (); below.
11677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678 <limits.h> exists even on freestanding compilers. */
11681 # include <limits.h>
11683 # include <assert.h>
11688 /* Override any gcc2 internal prototype to avoid an error. */
11693 /* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11702 char (*f) () = $ac_func;
11711 return f != $ac_func;
11716 rm -f conftest.
$ac_objext conftest
$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try
='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 eval "$as_ac_var=yes"
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.
$ac_ext >&5
11733 eval "$as_ac_var=no"
11735 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h
<<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 echo "$as_me:$LINENO: checking for working mktime" >&5
11748 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11749 if test "${ac_cv_func_working_mktime+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 if test "$cross_compiling" = yes; then
11753 ac_cv_func_working_mktime
=no
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 /* Test program from Paul Eggert and Tony Leneis. */
11762 #if TIME_WITH_SYS_TIME
11763 # include <sys/time.h>
11766 # if HAVE_SYS_TIME_H
11767 # include <sys/time.h>
11774 # include <stdlib.h>
11778 # include <unistd.h>
11782 # define alarm(X) /* empty */
11785 /* Work around redefinition to rpl_putenv by other config tests. */
11788 static time_t time_t_max;
11789 static time_t time_t_min;
11791 /* Values we'll use to set the TZ environment variable. */
11792 static char *tz_strings[] = {
11793 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11794 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11796 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11798 /* Fail if mktime fails to convert a date in the spring-forward gap.
11799 Based on a problem report from Andreas Jaeger. */
11801 spring_forward_gap ()
11803 /* glibc (up to about 1998-10-07) failed this test. */
11806 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11807 instead of "TZ=America/Vancouver" in order to detect the bug even
11808 on systems that don't support the Olson extension, or don't have the
11809 full zoneinfo tables installed. */
11810 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11819 if (mktime (&tm) == (time_t)-1)
11828 if ((lt = localtime (&now)) && mktime (lt) != now)
11836 mktime_test1 (now);
11837 mktime_test1 ((time_t) (time_t_max - now));
11838 mktime_test1 ((time_t) (time_t_min + now));
11844 /* Based on code from Ariel Faigon. */
11854 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11864 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11865 now = mktime (&tm);
11866 if (now != (time_t) -1)
11868 struct tm *lt = localtime (&now);
11870 && lt->tm_year == tm.tm_year
11871 && lt->tm_mon == tm.tm_mon
11872 && lt->tm_mday == tm.tm_mday
11873 && lt->tm_hour == tm.tm_hour
11874 && lt->tm_min == tm.tm_min
11875 && lt->tm_sec == tm.tm_sec
11876 && lt->tm_yday == tm.tm_yday
11877 && lt->tm_wday == tm.tm_wday
11878 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11879 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11890 /* This test makes some buggy mktime implementations loop.
11891 Give up after 60 seconds; a mktime slower than that
11892 isn't worth using anyway. */
11895 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11898 if ((time_t) -1 < 0)
11899 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11901 delta = time_t_max / 997; /* a suitable prime number */
11902 for (i = 0; i < N_STRINGS; i++)
11905 putenv (tz_strings[i]);
11907 for (t = 0; t <= time_t_max - delta; t += delta)
11909 mktime_test ((time_t) 1);
11910 mktime_test ((time_t) (60 * 60));
11911 mktime_test ((time_t) (60 * 60 * 24));
11913 for (j = 1; 0 < j; j *= 2)
11915 bigtime_test (j - 1);
11918 spring_forward_gap ();
11922 rm -f conftest
$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_func_working_mktime
=yes
11935 echo "$as_me: program exited with status $ac_status" >&5
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.
$ac_ext >&5
11939 ( exit $ac_status )
11940 ac_cv_func_working_mktime
=no
11942 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11945 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11946 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11947 if test $ac_cv_func_working_mktime = no
; then
11948 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11951 if test "$ac_cv_func_working_mktime" = no
; then
11953 cat >>confdefs.h
<<\_ACEOF
11954 #define BROKEN_MKTIME 1
11959 ac_have_func
=no
# yes means we've found a way to get the load average.
11961 # Make sure getloadavg.c is where it belongs, at configure-time.
11962 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11963 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11964 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11965 { (exit 1); exit 1; }; }
11969 # Check for getloadavg, but be sure not to touch the cache variable.
11970 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11971 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11972 if test "${ac_cv_func_getloadavg+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 cat >conftest.
$ac_ext <<_ACEOF
11978 cat confdefs.h
>>conftest.
$ac_ext
11979 cat >>conftest.
$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
11982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11983 #define getloadavg innocuous_getloadavg
11985 /* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char getloadavg (); below.
11987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 <limits.h> exists even on freestanding compilers. */
11991 # include <limits.h>
11993 # include <assert.h>
11998 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005 char getloadavg ();
12006 /* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
12009 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12012 char (*f) () = getloadavg;
12021 return f != getloadavg;
12026 rm -f conftest.
$ac_objext conftest
$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try
='test -s conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 ac_cv_func_getloadavg
=yes
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.
$ac_ext >&5
12043 ac_cv_func_getloadavg
=no
12045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12048 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12049 if test $ac_cv_func_getloadavg = yes; then
12054 ) && ac_have_func
=yes
12056 # On HPUX9, an unprivileged user can get load averages through this function.
12058 for ac_func
in pstat_getdynamic
12060 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12061 echo "$as_me:$LINENO: checking for $ac_func" >&5
12062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_var+set}\" = set"; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 cat >conftest.
$ac_ext <<_ACEOF
12069 cat confdefs.h
>>conftest.
$ac_ext
12070 cat >>conftest.
$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12074 #define $ac_func innocuous_$ac_func
12076 /* System header to define __stub macros and hopefully few prototypes,
12077 which can conflict with char $ac_func (); below.
12078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079 <limits.h> exists even on freestanding compilers. */
12082 # include <limits.h>
12084 # include <assert.h>
12089 /* Override any gcc2 internal prototype to avoid an error. */
12094 /* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12097 /* The GNU C library defines this for functions which it implements
12098 to always fail with ENOSYS. Some functions are actually named
12099 something starting with __ and the normal name is an alias. */
12100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12103 char (*f) () = $ac_func;
12112 return f != $ac_func;
12117 rm -f conftest.
$ac_objext conftest
$ac_exeext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119 (eval $ac_link) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try
='test -s conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 eval "$as_ac_var=yes"
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.
$ac_ext >&5
12134 eval "$as_ac_var=no"
12136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12140 if test `eval echo '${'$as_ac_var'}'` = yes; then
12141 cat >>confdefs.h
<<_ACEOF
12142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149 # Solaris has libkstat which does not require root.
12151 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12152 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12153 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 ac_check_lib_save_LIBS
=$LIBS
12157 LIBS
="-lkstat $LIBS"
12158 cat >conftest.
$ac_ext <<_ACEOF
12161 cat confdefs.h
>>conftest.
$ac_ext
12162 cat >>conftest.
$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12165 /* Override any gcc2 internal prototype to avoid an error. */
12169 /* We use char because int might match the return type of a gcc2
12170 builtin and then its argument prototype would still apply. */
12171 char kstat_open ();
12180 rm -f conftest.
$ac_objext conftest
$ac_exeext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12182 (eval $ac_link) 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try
='test -s conftest$ac_exeext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_cv_lib_kstat_kstat_open
=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.
$ac_ext >&5
12197 ac_cv_lib_kstat_kstat_open
=no
12199 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12200 LIBS
=$ac_check_lib_save_LIBS
12202 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12203 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12204 if test $ac_cv_lib_kstat_kstat_open = yes; then
12205 cat >>confdefs.h
<<_ACEOF
12206 #define HAVE_LIBKSTAT 1
12209 LIBS
="-lkstat $LIBS"
12213 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12215 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12216 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12217 # to get the right answer into the cache.
12218 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12219 if test $ac_have_func = no
; then
12220 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12221 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12222 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 ac_check_lib_save_LIBS
=$LIBS
12227 cat >conftest.
$ac_ext <<_ACEOF
12230 cat confdefs.h
>>conftest.
$ac_ext
12231 cat >>conftest.
$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12234 /* Override any gcc2 internal prototype to avoid an error. */
12238 /* We use char because int might match the return type of a gcc2
12239 builtin and then its argument prototype would still apply. */
12249 rm -f conftest.
$ac_objext conftest
$ac_exeext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251 (eval $ac_link) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try
='test -s conftest$ac_exeext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_lib_elf_elf_begin
=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.
$ac_ext >&5
12266 ac_cv_lib_elf_elf_begin
=no
12268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12269 LIBS
=$ac_check_lib_save_LIBS
12271 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12272 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12273 if test $ac_cv_lib_elf_elf_begin = yes; then
12278 if test $ac_have_func = no
; then
12279 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12280 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12281 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 ac_check_lib_save_LIBS
=$LIBS
12286 cat >conftest.
$ac_ext <<_ACEOF
12289 cat confdefs.h
>>conftest.
$ac_ext
12290 cat >>conftest.
$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12293 /* Override any gcc2 internal prototype to avoid an error. */
12297 /* We use char because int might match the return type of a gcc2
12298 builtin and then its argument prototype would still apply. */
12308 rm -f conftest.
$ac_objext conftest
$ac_exeext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310 (eval $ac_link) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
12314 { ac_try
='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_lib_kvm_kvm_open
=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.
$ac_ext >&5
12325 ac_cv_lib_kvm_kvm_open
=no
12327 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12328 LIBS
=$ac_check_lib_save_LIBS
12330 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12331 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12332 if test $ac_cv_lib_kvm_kvm_open = yes; then
12336 # Check for the 4.4BSD definition of getloadavg.
12337 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12338 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12339 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 ac_check_lib_save_LIBS
=$LIBS
12343 LIBS
="-lutil $LIBS"
12344 cat >conftest.
$ac_ext <<_ACEOF
12347 cat confdefs.h
>>conftest.
$ac_ext
12348 cat >>conftest.
$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12351 /* Override any gcc2 internal prototype to avoid an error. */
12355 /* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12357 char getloadavg ();
12366 rm -f conftest.
$ac_objext conftest
$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try
='test -s conftest$ac_exeext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_lib_util_getloadavg
=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.
$ac_ext >&5
12383 ac_cv_lib_util_getloadavg
=no
12385 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12386 LIBS
=$ac_check_lib_save_LIBS
12388 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12389 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12390 if test $ac_cv_lib_util_getloadavg = yes; then
12391 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12396 if test $ac_have_func = no
; then
12397 # There is a commonly available library for RS/6000 AIX.
12398 # Since it is not a standard part of AIX, it might be installed locally.
12399 ac_getloadavg_LIBS
=$LIBS
12400 LIBS
="-L/usr/local/lib $LIBS"
12401 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12402 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12403 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 ac_check_lib_save_LIBS
=$LIBS
12407 LIBS
="-lgetloadavg $LIBS"
12408 cat >conftest.
$ac_ext <<_ACEOF
12411 cat confdefs.h
>>conftest.
$ac_ext
12412 cat >>conftest.
$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any gcc2 internal prototype to avoid an error. */
12419 /* We use char because int might match the return type of a gcc2
12420 builtin and then its argument prototype would still apply. */
12421 char getloadavg ();
12430 rm -f conftest.
$ac_objext conftest
$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try
='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_lib_getloadavg_getloadavg
=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.
$ac_ext >&5
12447 ac_cv_lib_getloadavg_getloadavg
=no
12449 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12450 LIBS
=$ac_check_lib_save_LIBS
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12453 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12454 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12455 LIBS
="-lgetloadavg $LIBS"
12457 LIBS
=$ac_getloadavg_LIBS
12462 # Make sure it is really in the library, if we think we found it,
12463 # otherwise set up the replacement function.
12465 for ac_func
in getloadavg
12467 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12468 echo "$as_me:$LINENO: checking for $ac_func" >&5
12469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_var+set}\" = set"; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 cat >conftest.
$ac_ext <<_ACEOF
12476 cat confdefs.h
>>conftest.
$ac_ext
12477 cat >>conftest.
$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481 #define $ac_func innocuous_$ac_func
12483 /* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char $ac_func (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12489 # include <limits.h>
12491 # include <assert.h>
12496 /* Override any gcc2 internal prototype to avoid an error. */
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12504 /* The GNU C library defines this for functions which it implements
12505 to always fail with ENOSYS. Some functions are actually named
12506 something starting with __ and the normal name is an alias. */
12507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12510 char (*f) () = $ac_func;
12519 return f != $ac_func;
12524 rm -f conftest.
$ac_objext conftest
$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try
='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 eval "$as_ac_var=yes"
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.
$ac_ext >&5
12541 eval "$as_ac_var=no"
12543 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12547 if test `eval echo '${'$as_ac_var'}'` = yes; then
12548 cat >>confdefs.h
<<_ACEOF
12549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12555 cat >>confdefs.h
<<\_ACEOF
12556 #define C_GETLOADAVG 1
12559 # Figure out what our getloadavg.c needs.
12561 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12562 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12563 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12564 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12568 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12570 # Is the header compilable?
12571 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12572 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12573 cat >conftest.
$ac_ext <<_ACEOF
12576 cat confdefs.h
>>conftest.
$ac_ext
12577 cat >>conftest.
$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 $ac_includes_default
12580 #include <sys/dg_sys_info.h>
12582 rm -f conftest.
$ac_objext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584 (eval $ac_compile) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try
='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_header_compiler
=yes
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.
$ac_ext >&5
12599 ac_header_compiler
=no
12601 rm -f conftest.
$ac_objext conftest.
$ac_ext
12602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12603 echo "${ECHO_T}$ac_header_compiler" >&6
12605 # Is the header present?
12606 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12607 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12608 cat >conftest.
$ac_ext <<_ACEOF
12611 cat confdefs.h
>>conftest.
$ac_ext
12612 cat >>conftest.
$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 #include <sys/dg_sys_info.h>
12616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12619 grep -v '^ *+' conftest.er1
>conftest.err
12621 cat conftest.err
>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } >/dev
/null
; then
12624 if test -s conftest.err
; then
12625 ac_cpp_err
=$ac_c_preproc_warn_flag
12632 if test -z "$ac_cpp_err"; then
12633 ac_header_preproc
=yes
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.
$ac_ext >&5
12638 ac_header_preproc
=no
12640 rm -f conftest.err conftest.
$ac_ext
12641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12642 echo "${ECHO_T}$ac_header_preproc" >&6
12644 # So? What about this header?
12645 case $ac_header_compiler:$ac_header_preproc in
12647 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12648 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
12650 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
12651 ac_header_preproc
=yes
12654 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12655 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12657 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
12659 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
12661 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12663 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
12665 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
12668 ## ------------------------------------------ ##
12669 ## Report this to the AC_PACKAGE_NAME lists. ##
12670 ## ------------------------------------------ ##
12673 sed "s/^/$as_me: WARNING: /" >&2
12676 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12677 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12678 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12684 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12687 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12690 cat >>confdefs.h
<<\_ACEOF
12695 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12696 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12697 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 ac_check_lib_save_LIBS
=$LIBS
12702 cat >conftest.
$ac_ext <<_ACEOF
12705 cat confdefs.h
>>conftest.
$ac_ext
12706 cat >>conftest.
$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12709 /* Override any gcc2 internal prototype to avoid an error. */
12713 /* We use char because int might match the return type of a gcc2
12714 builtin and then its argument prototype would still apply. */
12715 char dg_sys_info ();
12724 rm -f conftest.
$ac_objext conftest
$ac_exeext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12726 (eval $ac_link) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try
='test -s conftest$ac_exeext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 ac_cv_lib_dgc_dg_sys_info
=yes
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.
$ac_ext >&5
12741 ac_cv_lib_dgc_dg_sys_info
=no
12743 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12744 LIBS
=$ac_check_lib_save_LIBS
12746 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12747 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12748 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12749 cat >>confdefs.h
<<_ACEOF
12750 #define HAVE_LIBDGC 1
12761 if test "${ac_cv_header_locale_h+set}" = set; then
12762 echo "$as_me:$LINENO: checking for locale.h" >&5
12763 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12764 if test "${ac_cv_header_locale_h+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12768 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12770 # Is the header compilable?
12771 echo "$as_me:$LINENO: checking locale.h usability" >&5
12772 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12773 cat >conftest.
$ac_ext <<_ACEOF
12776 cat confdefs.h
>>conftest.
$ac_ext
12777 cat >>conftest.
$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 $ac_includes_default
12780 #include <locale.h>
12782 rm -f conftest.
$ac_objext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12784 (eval $ac_compile) 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try
='test -s conftest.$ac_objext'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 ac_header_compiler
=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.
$ac_ext >&5
12799 ac_header_compiler
=no
12801 rm -f conftest.
$ac_objext conftest.
$ac_ext
12802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12803 echo "${ECHO_T}$ac_header_compiler" >&6
12805 # Is the header present?
12806 echo "$as_me:$LINENO: checking locale.h presence" >&5
12807 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12808 cat >conftest.
$ac_ext <<_ACEOF
12811 cat confdefs.h
>>conftest.
$ac_ext
12812 cat >>conftest.
$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #include <locale.h>
12816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12817 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12819 grep -v '^ *+' conftest.er1
>conftest.err
12821 cat conftest.err
>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } >/dev
/null
; then
12824 if test -s conftest.err
; then
12825 ac_cpp_err
=$ac_c_preproc_warn_flag
12832 if test -z "$ac_cpp_err"; then
12833 ac_header_preproc
=yes
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.
$ac_ext >&5
12838 ac_header_preproc
=no
12840 rm -f conftest.err conftest.
$ac_ext
12841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842 echo "${ECHO_T}$ac_header_preproc" >&6
12844 # So? What about this header?
12845 case $ac_header_compiler:$ac_header_preproc in
12847 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12848 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
12850 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc
=yes
12854 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12855 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12857 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
12859 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
12861 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12863 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
12865 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
12868 ## ------------------------------------------ ##
12869 ## Report this to the AC_PACKAGE_NAME lists. ##
12870 ## ------------------------------------------ ##
12873 sed "s/^/$as_me: WARNING: /" >&2
12876 echo "$as_me:$LINENO: checking for locale.h" >&5
12877 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12878 if test "${ac_cv_header_locale_h+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 ac_cv_header_locale_h
=$ac_header_preproc
12883 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12884 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12890 for ac_func
in setlocale
12892 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12895 if eval "test \"\${$as_ac_var+set}\" = set"; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 cat >conftest.
$ac_ext <<_ACEOF
12901 cat confdefs.h
>>conftest.
$ac_ext
12902 cat >>conftest.
$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906 #define $ac_func innocuous_$ac_func
12908 /* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12914 # include <limits.h>
12916 # include <assert.h>
12921 /* Override any gcc2 internal prototype to avoid an error. */
12926 /* We use char because int might match the return type of a gcc2
12927 builtin and then its argument prototype would still apply. */
12929 /* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12935 char (*f) () = $ac_func;
12944 return f != $ac_func;
12949 rm -f conftest.
$ac_objext conftest
$ac_exeext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try
='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 eval "$as_ac_var=yes"
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.
$ac_ext >&5
12966 eval "$as_ac_var=no"
12968 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12972 if test `eval echo '${'$as_ac_var'}'` = yes; then
12973 cat >>confdefs.h
<<_ACEOF
12974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12981 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12982 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12983 # Irix 4.0.5F has the header but not the library.
12984 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12987 cat >>confdefs.h
<<\_ACEOF
12993 if test $ac_have_func = no
; then
12994 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12995 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12996 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12997 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13001 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13003 # Is the header compilable?
13004 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13005 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13006 cat >conftest.
$ac_ext <<_ACEOF
13009 cat confdefs.h
>>conftest.
$ac_ext
13010 cat >>conftest.
$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13013 #include <inq_stats/cpustats.h>
13015 rm -f conftest.
$ac_objext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try
='test -s conftest.$ac_objext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_header_compiler
=yes
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.
$ac_ext >&5
13032 ac_header_compiler
=no
13034 rm -f conftest.
$ac_objext conftest.
$ac_ext
13035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13036 echo "${ECHO_T}$ac_header_compiler" >&6
13038 # Is the header present?
13039 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13040 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13041 cat >conftest.
$ac_ext <<_ACEOF
13044 cat confdefs.h
>>conftest.
$ac_ext
13045 cat >>conftest.
$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 #include <inq_stats/cpustats.h>
13049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13050 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13052 grep -v '^ *+' conftest.er1
>conftest.err
13054 cat conftest.err
>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } >/dev
/null
; then
13057 if test -s conftest.err
; then
13058 ac_cpp_err
=$ac_c_preproc_warn_flag
13065 if test -z "$ac_cpp_err"; then
13066 ac_header_preproc
=yes
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.
$ac_ext >&5
13071 ac_header_preproc
=no
13073 rm -f conftest.err conftest.
$ac_ext
13074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13075 echo "${ECHO_T}$ac_header_preproc" >&6
13077 # So? What about this header?
13078 case $ac_header_compiler:$ac_header_preproc in
13080 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13081 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13082 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
13083 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
13084 ac_header_preproc
=yes
13087 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13088 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13090 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
13092 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
13093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13094 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13096 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
13098 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
13101 ## ------------------------------------------ ##
13102 ## Report this to the AC_PACKAGE_NAME lists. ##
13103 ## ------------------------------------------ ##
13106 sed "s/^/$as_me: WARNING: /" >&2
13109 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13110 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13116 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13117 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13120 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13123 cat >>confdefs.h
<<\_ACEOF
13128 cat >>confdefs.h
<<\_ACEOF
13137 if test $ac_have_func = no
; then
13138 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13139 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13140 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13141 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13145 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13147 # Is the header compilable?
13148 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13149 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13150 cat >conftest.
$ac_ext <<_ACEOF
13153 cat confdefs.h
>>conftest.
$ac_ext
13154 cat >>conftest.
$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 #include <sys/cpustats.h>
13159 rm -f conftest.
$ac_objext
13160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161 (eval $ac_compile) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try
='test -s conftest.$ac_objext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 ac_header_compiler
=yes
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.
$ac_ext >&5
13176 ac_header_compiler
=no
13178 rm -f conftest.
$ac_objext conftest.
$ac_ext
13179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13180 echo "${ECHO_T}$ac_header_compiler" >&6
13182 # Is the header present?
13183 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13184 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13185 cat >conftest.
$ac_ext <<_ACEOF
13188 cat confdefs.h
>>conftest.
$ac_ext
13189 cat >>conftest.
$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <sys/cpustats.h>
13193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13194 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13196 grep -v '^ *+' conftest.er1
>conftest.err
13198 cat conftest.err
>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } >/dev
/null
; then
13201 if test -s conftest.err
; then
13202 ac_cpp_err
=$ac_c_preproc_warn_flag
13209 if test -z "$ac_cpp_err"; then
13210 ac_header_preproc
=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.
$ac_ext >&5
13215 ac_header_preproc
=no
13217 rm -f conftest.err conftest.
$ac_ext
13218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 echo "${ECHO_T}$ac_header_preproc" >&6
13221 # So? What about this header?
13222 case $ac_header_compiler:$ac_header_preproc in
13224 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13225 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
13227 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
13228 ac_header_preproc
=yes
13231 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13232 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13234 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
13236 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13238 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13240 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
13242 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
13245 ## ------------------------------------------ ##
13246 ## Report this to the AC_PACKAGE_NAME lists. ##
13247 ## ------------------------------------------ ##
13250 sed "s/^/$as_me: WARNING: /" >&2
13253 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13254 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13255 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13261 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13264 if test $ac_cv_header_sys_cpustats_h = yes; then
13265 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13274 if test $ac_have_func = no
; then
13276 for ac_header
in mach
/mach.h
13278 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13280 echo "$as_me:$LINENO: checking for $ac_header" >&5
13281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13288 # Is the header compilable?
13289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13291 cat >conftest.
$ac_ext <<_ACEOF
13294 cat confdefs.h
>>conftest.
$ac_ext
13295 cat >>conftest.
$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 $ac_includes_default
13298 #include <$ac_header>
13300 rm -f conftest.
$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try
='test -s conftest.$ac_objext'
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_header_compiler
=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.
$ac_ext >&5
13317 ac_header_compiler
=no
13319 rm -f conftest.
$ac_objext conftest.
$ac_ext
13320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13321 echo "${ECHO_T}$ac_header_compiler" >&6
13323 # Is the header present?
13324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13326 cat >conftest.
$ac_ext <<_ACEOF
13329 cat confdefs.h
>>conftest.
$ac_ext
13330 cat >>conftest.
$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 #include <$ac_header>
13334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13335 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13337 grep -v '^ *+' conftest.er1
>conftest.err
13339 cat conftest.err
>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } >/dev
/null
; then
13342 if test -s conftest.err
; then
13343 ac_cpp_err
=$ac_c_preproc_warn_flag
13350 if test -z "$ac_cpp_err"; then
13351 ac_header_preproc
=yes
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.
$ac_ext >&5
13356 ac_header_preproc
=no
13358 rm -f conftest.err conftest.
$ac_ext
13359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13360 echo "${ECHO_T}$ac_header_preproc" >&6
13362 # So? What about this header?
13363 case $ac_header_compiler:$ac_header_preproc in
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13369 ac_header_preproc
=yes
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13386 ## ------------------------------------------ ##
13387 ## Report this to the AC_PACKAGE_NAME lists. ##
13388 ## ------------------------------------------ ##
13391 sed "s/^/$as_me: WARNING: /" >&2
13394 echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 eval "$as_ac_Header=\$ac_header_preproc"
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13406 cat >>confdefs.h
<<_ACEOF
13407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13417 for ac_header
in nlist.h
13419 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13421 echo "$as_me:$LINENO: checking for $ac_header" >&5
13422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13429 # Is the header compilable?
13430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13432 cat >conftest.
$ac_ext <<_ACEOF
13435 cat confdefs.h
>>conftest.
$ac_ext
13436 cat >>conftest.
$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 #include <$ac_header>
13441 rm -f conftest.
$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try
='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 ac_header_compiler
=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.
$ac_ext >&5
13458 ac_header_compiler
=no
13460 rm -f conftest.
$ac_objext conftest.
$ac_ext
13461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13462 echo "${ECHO_T}$ac_header_compiler" >&6
13464 # Is the header present?
13465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13467 cat >conftest.
$ac_ext <<_ACEOF
13470 cat confdefs.h
>>conftest.
$ac_ext
13471 cat >>conftest.
$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <$ac_header>
13475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13476 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13478 grep -v '^ *+' conftest.er1
>conftest.err
13480 cat conftest.err
>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } >/dev
/null
; then
13483 if test -s conftest.err
; then
13484 ac_cpp_err
=$ac_c_preproc_warn_flag
13491 if test -z "$ac_cpp_err"; then
13492 ac_header_preproc
=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.
$ac_ext >&5
13497 ac_header_preproc
=no
13499 rm -f conftest.err conftest.
$ac_ext
13500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501 echo "${ECHO_T}$ac_header_preproc" >&6
13503 # So? What about this header?
13504 case $ac_header_compiler:$ac_header_preproc in
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13510 ac_header_preproc
=yes
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13527 ## ------------------------------------------ ##
13528 ## Report this to the AC_PACKAGE_NAME lists. ##
13529 ## ------------------------------------------ ##
13532 sed "s/^/$as_me: WARNING: /" >&2
13535 echo "$as_me:$LINENO: checking for $ac_header" >&5
13536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 eval "$as_ac_Header=\$ac_header_preproc"
13542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13547 cat >>confdefs.h
<<_ACEOF
13548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13550 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13551 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13552 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 cat >conftest.
$ac_ext <<_ACEOF
13558 cat confdefs.h
>>conftest.
$ac_ext
13559 cat >>conftest.
$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13566 static struct nlist ac_aggr;
13567 if (ac_aggr.n_un.n_name)
13573 rm -f conftest.
$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575 (eval $ac_compile) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try
='test -s conftest.$ac_objext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_member_struct_nlist_n_un_n_name
=yes
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.
$ac_ext >&5
13590 cat >conftest.
$ac_ext <<_ACEOF
13593 cat confdefs.h
>>conftest.
$ac_ext
13594 cat >>conftest.
$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13601 static struct nlist ac_aggr;
13602 if (sizeof ac_aggr.n_un.n_name)
13608 rm -f conftest.
$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try
='test -s conftest.$ac_objext'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 ac_cv_member_struct_nlist_n_un_n_name
=yes
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.
$ac_ext >&5
13625 ac_cv_member_struct_nlist_n_un_n_name
=no
13627 rm -f conftest.
$ac_objext conftest.
$ac_ext
13629 rm -f conftest.
$ac_objext conftest.
$ac_ext
13631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13632 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13633 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13635 cat >>confdefs.h
<<_ACEOF
13636 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13640 cat >>confdefs.h
<<\_ACEOF
13641 #define NLIST_NAME_UNION 1
13655 # Some definitions of getloadavg require that the program be installed setgid.
13656 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13657 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13658 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 cat >conftest.
$ac_ext <<_ACEOF
13664 cat confdefs.h
>>conftest.
$ac_ext
13665 cat >>conftest.
$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13668 #ifdef LDAV_PRIVILEGED
13669 Yowza Am I SETGID yet
13672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13673 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13674 ac_cv_func_getloadavg_setgid
=yes
13676 ac_cv_func_getloadavg_setgid
=no
13681 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13682 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13683 if test $ac_cv_func_getloadavg_setgid = yes; then
13686 cat >>confdefs.h
<<\_ACEOF
13687 #define GETLOADAVG_PRIVILEGED 1
13694 if test $ac_cv_func_getloadavg_setgid = yes; then
13695 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13696 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13697 if test "${ac_cv_group_kmem+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13701 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13702 # If we got an error (system does not support symlinks), try without -L.
13703 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13704 ac_cv_group_kmem
=`echo $ac_ls_output \
13705 | sed -ne 's/[ ][ ]*/ /g;
13706 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13710 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13711 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13712 KMEM_GROUP
=$ac_cv_group_kmem
13714 if test "x$ac_save_LIBS" = x
; then
13715 GETLOADAVG_LIBS
=$LIBS
13717 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13723 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13724 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13725 if test "${ac_cv_sys_largefile_source+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 ac_cv_sys_largefile_source
=no
13730 cat >conftest.
$ac_ext <<_ACEOF
13733 cat confdefs.h
>>conftest.
$ac_ext
13734 cat >>conftest.
$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13745 rm -f conftest.
$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try
='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.
$ac_ext >&5
13763 rm -f conftest.
$ac_objext conftest.
$ac_ext
13764 cat >conftest.
$ac_ext <<_ACEOF
13767 cat confdefs.h
>>conftest.
$ac_ext
13768 cat >>conftest.
$ac_ext <<_ACEOF
13769 /* end confdefs.h. */
13770 #define _LARGEFILE_SOURCE 1
13780 rm -f conftest.
$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try
='test -s conftest.$ac_objext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_sys_largefile_source
=1; break
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.
$ac_ext >&5
13798 rm -f conftest.
$ac_objext conftest.
$ac_ext
13802 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13803 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13804 if test "$ac_cv_sys_largefile_source" != no
; then
13806 cat >>confdefs.h
<<_ACEOF
13807 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13813 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13814 # in glibc 2.1.3, but that breaks too many other things.
13815 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13816 echo "$as_me:$LINENO: checking for fseeko" >&5
13817 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13818 if test "${ac_cv_func_fseeko+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.
$ac_ext <<_ACEOF
13824 cat confdefs.h
>>conftest.
$ac_ext
13825 cat >>conftest.
$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13831 return fseeko && fseeko (stdin, 0, 0);
13836 rm -f conftest.
$ac_objext conftest
$ac_exeext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try
='test -s conftest$ac_exeext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_cv_func_fseeko
=yes
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.
$ac_ext >&5
13853 ac_cv_func_fseeko
=no
13855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13857 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13858 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13859 if test $ac_cv_func_fseeko = yes; then
13861 cat >>confdefs.h
<<\_ACEOF
13862 #define HAVE_FSEEKO 1
13868 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13869 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13870 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 # Use it with a single arg.
13874 cat >conftest.
$ac_ext <<_ACEOF
13877 cat confdefs.h
>>conftest.
$ac_ext
13878 cat >>conftest.
$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 $ac_includes_default
13889 rm -f conftest.
$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891 (eval $ac_compile) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try
='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_func_getpgrp_void
=no
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.
$ac_ext >&5
13906 ac_cv_func_getpgrp_void
=yes
13908 rm -f conftest.
$ac_objext conftest.
$ac_ext
13911 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13912 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13913 if test $ac_cv_func_getpgrp_void = yes; then
13915 cat >>confdefs.h
<<\_ACEOF
13916 #define GETPGRP_VOID 1
13923 for ac_func
in strftime
13925 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13926 echo "$as_me:$LINENO: checking for $ac_func" >&5
13927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13928 if eval "test \"\${$as_ac_var+set}\" = set"; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 cat >conftest.
$ac_ext <<_ACEOF
13934 cat confdefs.h
>>conftest.
$ac_ext
13935 cat >>conftest.
$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13939 #define $ac_func innocuous_$ac_func
13941 /* System header to define __stub macros and hopefully few prototypes,
13942 which can conflict with char $ac_func (); below.
13943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13944 <limits.h> exists even on freestanding compilers. */
13947 # include <limits.h>
13949 # include <assert.h>
13954 /* Override any gcc2 internal prototype to avoid an error. */
13959 /* We use char because int might match the return type of a gcc2
13960 builtin and then its argument prototype would still apply. */
13962 /* The GNU C library defines this for functions which it implements
13963 to always fail with ENOSYS. Some functions are actually named
13964 something starting with __ and the normal name is an alias. */
13965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13968 char (*f) () = $ac_func;
13977 return f != $ac_func;
13982 rm -f conftest.
$ac_objext conftest
$ac_exeext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984 (eval $ac_link) 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try
='test -s conftest$ac_exeext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 eval "$as_ac_var=yes"
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.
$ac_ext >&5
13999 eval "$as_ac_var=no"
14001 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14005 if test `eval echo '${'$as_ac_var'}'` = yes; then
14006 cat >>confdefs.h
<<_ACEOF
14007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14011 # strftime is in -lintl on SCO UNIX.
14012 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14013 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14014 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 ac_check_lib_save_LIBS
=$LIBS
14018 LIBS
="-lintl $LIBS"
14019 cat >conftest.
$ac_ext <<_ACEOF
14022 cat confdefs.h
>>conftest.
$ac_ext
14023 cat >>conftest.
$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14026 /* Override any gcc2 internal prototype to avoid an error. */
14030 /* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14041 rm -f conftest.
$ac_objext conftest
$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try
='test -s conftest$ac_exeext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_lib_intl_strftime
=yes
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.
$ac_ext >&5
14058 ac_cv_lib_intl_strftime
=no
14060 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14061 LIBS
=$ac_check_lib_save_LIBS
14063 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14064 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14065 if test $ac_cv_lib_intl_strftime = yes; then
14066 cat >>confdefs.h
<<\_ACEOF
14067 #define HAVE_STRFTIME 1
14070 LIBS
="-lintl $LIBS"
14079 for ac_func
in grantpt
14081 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 echo "$as_me:$LINENO: checking for $ac_func" >&5
14083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14084 if eval "test \"\${$as_ac_var+set}\" = set"; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 cat >conftest.
$ac_ext <<_ACEOF
14090 cat confdefs.h
>>conftest.
$ac_ext
14091 cat >>conftest.
$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14095 #define $ac_func innocuous_$ac_func
14097 /* System header to define __stub macros and hopefully few prototypes,
14098 which can conflict with char $ac_func (); below.
14099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14100 <limits.h> exists even on freestanding compilers. */
14103 # include <limits.h>
14105 # include <assert.h>
14110 /* Override any gcc2 internal prototype to avoid an error. */
14115 /* We use char because int might match the return type of a gcc2
14116 builtin and then its argument prototype would still apply. */
14118 /* The GNU C library defines this for functions which it implements
14119 to always fail with ENOSYS. Some functions are actually named
14120 something starting with __ and the normal name is an alias. */
14121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14124 char (*f) () = $ac_func;
14133 return f != $ac_func;
14138 rm -f conftest.
$ac_objext conftest
$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try
='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 eval "$as_ac_var=yes"
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.
$ac_ext >&5
14155 eval "$as_ac_var=no"
14157 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14161 if test `eval echo '${'$as_ac_var'}'` = yes; then
14162 cat >>confdefs.h
<<_ACEOF
14163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14170 # PTY-related GNU extensions.
14172 for ac_func
in getpt
14174 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14175 echo "$as_me:$LINENO: checking for $ac_func" >&5
14176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14177 if eval "test \"\${$as_ac_var+set}\" = set"; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 cat >conftest.
$ac_ext <<_ACEOF
14183 cat confdefs.h
>>conftest.
$ac_ext
14184 cat >>conftest.
$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14188 #define $ac_func innocuous_$ac_func
14190 /* System header to define __stub macros and hopefully few prototypes,
14191 which can conflict with char $ac_func (); below.
14192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14193 <limits.h> exists even on freestanding compilers. */
14196 # include <limits.h>
14198 # include <assert.h>
14203 /* Override any gcc2 internal prototype to avoid an error. */
14208 /* We use char because int might match the return type of a gcc2
14209 builtin and then its argument prototype would still apply. */
14211 /* The GNU C library defines this for functions which it implements
14212 to always fail with ENOSYS. Some functions are actually named
14213 something starting with __ and the normal name is an alias. */
14214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14217 char (*f) () = $ac_func;
14226 return f != $ac_func;
14231 rm -f conftest.
$ac_objext conftest
$ac_exeext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14233 (eval $ac_link) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try
='test -s conftest$ac_exeext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 eval "$as_ac_var=yes"
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.
$ac_ext >&5
14248 eval "$as_ac_var=no"
14250 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14254 if test `eval echo '${'$as_ac_var'}'` = yes; then
14255 cat >>confdefs.h
<<_ACEOF
14256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14263 # Check this now, so that we will NOT find the above functions in ncurses.
14264 # That is because we have not set up to link ncurses in lib-src.
14265 # It's better to believe a function is not available
14266 # than to expect to find it in ncurses.
14268 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14269 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14270 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 ac_check_lib_save_LIBS
=$LIBS
14274 LIBS
="-lncurses $LIBS"
14275 cat >conftest.
$ac_ext <<_ACEOF
14278 cat confdefs.h
>>conftest.
$ac_ext
14279 cat >>conftest.
$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 /* Override any gcc2 internal prototype to avoid an error. */
14286 /* We use char because int might match the return type of a gcc2
14287 builtin and then its argument prototype would still apply. */
14297 rm -f conftest.
$ac_objext conftest
$ac_exeext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14299 (eval $ac_link) 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 ac_cv_lib_ncurses_tparm
=yes
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14314 ac_cv_lib_ncurses_tparm
=no
14316 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14317 LIBS
=$ac_check_lib_save_LIBS
14319 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14320 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14321 if test $ac_cv_lib_ncurses_tparm = yes; then
14322 cat >>confdefs.h
<<_ACEOF
14323 #define HAVE_LIBNCURSES 1
14326 LIBS
="-lncurses $LIBS"
14331 # Do we need the Hesiod library to provide the support routines?
14332 if test "$with_hesiod" = yes ; then
14333 # Don't set $LIBS here -- see comments above.
14335 echo "$as_me:$LINENO: checking for res_send" >&5
14336 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14337 if test "${ac_cv_func_res_send+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 cat >conftest.
$ac_ext <<_ACEOF
14343 cat confdefs.h
>>conftest.
$ac_ext
14344 cat >>conftest.
$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14346 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
14347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14348 #define res_send innocuous_res_send
14350 /* System header to define __stub macros and hopefully few prototypes,
14351 which can conflict with char res_send (); below.
14352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14353 <limits.h> exists even on freestanding compilers. */
14356 # include <limits.h>
14358 # include <assert.h>
14363 /* Override any gcc2 internal prototype to avoid an error. */
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14371 /* The GNU C library defines this for functions which it implements
14372 to always fail with ENOSYS. Some functions are actually named
14373 something starting with __ and the normal name is an alias. */
14374 #if defined (__stub_res_send) || defined (__stub___res_send)
14377 char (*f) () = res_send;
14386 return f != res_send;
14391 rm -f conftest.
$ac_objext conftest
$ac_exeext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14393 (eval $ac_link) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try
='test -s conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_func_res_send
=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.
$ac_ext >&5
14408 ac_cv_func_res_send
=no
14410 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14413 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14414 if test $ac_cv_func_res_send = yes; then
14417 echo "$as_me:$LINENO: checking for __res_send" >&5
14418 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14419 if test "${ac_cv_func___res_send+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 cat >conftest.
$ac_ext <<_ACEOF
14425 cat confdefs.h
>>conftest.
$ac_ext
14426 cat >>conftest.
$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
14429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14430 #define __res_send innocuous___res_send
14432 /* System header to define __stub macros and hopefully few prototypes,
14433 which can conflict with char __res_send (); below.
14434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14435 <limits.h> exists even on freestanding compilers. */
14438 # include <limits.h>
14440 # include <assert.h>
14445 /* Override any gcc2 internal prototype to avoid an error. */
14450 /* We use char because int might match the return type of a gcc2
14451 builtin and then its argument prototype would still apply. */
14452 char __res_send ();
14453 /* The GNU C library defines this for functions which it implements
14454 to always fail with ENOSYS. Some functions are actually named
14455 something starting with __ and the normal name is an alias. */
14456 #if defined (__stub___res_send) || defined (__stub_____res_send)
14459 char (*f) () = __res_send;
14468 return f != __res_send;
14473 rm -f conftest.
$ac_objext conftest
$ac_exeext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14475 (eval $ac_link) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try
='test -s conftest$ac_exeext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_cv_func___res_send
=yes
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.
$ac_ext >&5
14490 ac_cv_func___res_send
=no
14492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14494 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14495 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14496 if test $ac_cv_func___res_send = yes; then
14499 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14500 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14501 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 ac_check_lib_save_LIBS
=$LIBS
14505 LIBS
="-lresolv $LIBS"
14506 cat >conftest.
$ac_ext <<_ACEOF
14509 cat confdefs.h
>>conftest.
$ac_ext
14510 cat >>conftest.
$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14513 /* Override any gcc2 internal prototype to avoid an error. */
14517 /* We use char because int might match the return type of a gcc2
14518 builtin and then its argument prototype would still apply. */
14528 rm -f conftest.
$ac_objext conftest
$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530 (eval $ac_link) 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try
='test -s conftest$ac_exeext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_lib_resolv_res_send
=yes
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.
$ac_ext >&5
14545 ac_cv_lib_resolv_res_send
=no
14547 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14548 LIBS
=$ac_check_lib_save_LIBS
14550 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14551 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14552 if test $ac_cv_lib_resolv_res_send = yes; then
14555 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14556 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14557 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 ac_check_lib_save_LIBS
=$LIBS
14561 LIBS
="-lresolv $LIBS"
14562 cat >conftest.
$ac_ext <<_ACEOF
14565 cat confdefs.h
>>conftest.
$ac_ext
14566 cat >>conftest.
$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14569 /* Override any gcc2 internal prototype to avoid an error. */
14573 /* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14575 char __res_send ();
14584 rm -f conftest.
$ac_objext conftest
$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try
='test -s conftest$ac_exeext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_cv_lib_resolv___res_send
=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.
$ac_ext >&5
14601 ac_cv_lib_resolv___res_send
=no
14603 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14604 LIBS
=$ac_check_lib_save_LIBS
14606 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14607 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14608 if test $ac_cv_lib_resolv___res_send = yes; then
14618 if test "$resolv" = yes ; then
14621 cat >>confdefs.h
<<\_ACEOF
14622 #define HAVE_LIBRESOLV 1
14628 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14629 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14630 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 cat >conftest.
$ac_ext <<_ACEOF
14636 cat confdefs.h
>>conftest.
$ac_ext
14637 cat >>conftest.
$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
14640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14641 #define hes_getmailhost innocuous_hes_getmailhost
14643 /* System header to define __stub macros and hopefully few prototypes,
14644 which can conflict with char hes_getmailhost (); below.
14645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14646 <limits.h> exists even on freestanding compilers. */
14649 # include <limits.h>
14651 # include <assert.h>
14654 #undef hes_getmailhost
14656 /* Override any gcc2 internal prototype to avoid an error. */
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663 char hes_getmailhost ();
14664 /* The GNU C library defines this for functions which it implements
14665 to always fail with ENOSYS. Some functions are actually named
14666 something starting with __ and the normal name is an alias. */
14667 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14670 char (*f) () = hes_getmailhost;
14679 return f != hes_getmailhost;
14684 rm -f conftest.
$ac_objext conftest
$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try
='test -s conftest$ac_exeext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_func_hes_getmailhost
=yes
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.
$ac_ext >&5
14701 ac_cv_func_hes_getmailhost
=no
14703 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14706 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14707 if test $ac_cv_func_hes_getmailhost = yes; then
14710 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14711 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14712 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 ac_check_lib_save_LIBS
=$LIBS
14716 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14717 cat >conftest.
$ac_ext <<_ACEOF
14720 cat confdefs.h
>>conftest.
$ac_ext
14721 cat >>conftest.
$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14724 /* Override any gcc2 internal prototype to avoid an error. */
14728 /* We use char because int might match the return type of a gcc2
14729 builtin and then its argument prototype would still apply. */
14730 char hes_getmailhost ();
14734 hes_getmailhost ();
14739 rm -f conftest.
$ac_objext conftest
$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741 (eval $ac_link) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try
='test -s conftest$ac_exeext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_lib_hesiod_hes_getmailhost
=yes
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.
$ac_ext >&5
14756 ac_cv_lib_hesiod_hes_getmailhost
=no
14758 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14759 LIBS
=$ac_check_lib_save_LIBS
14761 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14762 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14763 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14765 cat >>confdefs.h
<<\_ACEOF
14766 #define HAVE_LIBHESIOD 1
14777 # These tell us which Kerberos-related libraries to use.
14778 if test "${with_kerberos+set}" = set; then
14780 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14781 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14782 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 ac_check_lib_save_LIBS
=$LIBS
14786 LIBS
="-lcom_err $LIBS"
14787 cat >conftest.
$ac_ext <<_ACEOF
14790 cat confdefs.h
>>conftest.
$ac_ext
14791 cat >>conftest.
$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any gcc2 internal prototype to avoid an error. */
14798 /* We use char because int might match the return type of a gcc2
14799 builtin and then its argument prototype would still apply. */
14809 rm -f conftest.
$ac_objext conftest
$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try
='test -s conftest$ac_exeext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_lib_com_err_com_err
=yes
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.
$ac_ext >&5
14826 ac_cv_lib_com_err_com_err
=no
14828 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14829 LIBS
=$ac_check_lib_save_LIBS
14831 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14832 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14833 if test $ac_cv_lib_com_err_com_err = yes; then
14834 cat >>confdefs.h
<<_ACEOF
14835 #define HAVE_LIBCOM_ERR 1
14838 LIBS
="-lcom_err $LIBS"
14843 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14844 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14845 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 ac_check_lib_save_LIBS
=$LIBS
14849 LIBS
="-lk5crypto $LIBS"
14850 cat >conftest.
$ac_ext <<_ACEOF
14853 cat confdefs.h
>>conftest.
$ac_ext
14854 cat >>conftest.
$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14857 /* Override any gcc2 internal prototype to avoid an error. */
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14863 char mit_des_cbc_encrypt ();
14867 mit_des_cbc_encrypt ();
14872 rm -f conftest.
$ac_objext conftest
$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try
='test -s conftest$ac_exeext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.
$ac_ext >&5
14889 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14891 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14892 LIBS
=$ac_check_lib_save_LIBS
14894 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14895 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14896 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14897 cat >>confdefs.h
<<_ACEOF
14898 #define HAVE_LIBK5CRYPTO 1
14901 LIBS
="-lk5crypto $LIBS"
14906 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14907 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14908 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 ac_check_lib_save_LIBS
=$LIBS
14912 LIBS
="-lcrypto $LIBS"
14913 cat >conftest.
$ac_ext <<_ACEOF
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 /* Override any gcc2 internal prototype to avoid an error. */
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14926 char mit_des_cbc_encrypt ();
14930 mit_des_cbc_encrypt ();
14935 rm -f conftest.
$ac_objext conftest
$ac_exeext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937 (eval $ac_link) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try
='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.
$ac_ext >&5
14952 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14954 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14955 LIBS
=$ac_check_lib_save_LIBS
14957 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14958 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14959 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14960 cat >>confdefs.h
<<_ACEOF
14961 #define HAVE_LIBCRYPTO 1
14964 LIBS
="-lcrypto $LIBS"
14969 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14970 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14971 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 ac_check_lib_save_LIBS
=$LIBS
14975 LIBS
="-lkrb5 $LIBS"
14976 cat >conftest.
$ac_ext <<_ACEOF
14979 cat confdefs.h
>>conftest.
$ac_ext
14980 cat >>conftest.
$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14983 /* Override any gcc2 internal prototype to avoid an error. */
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14989 char krb5_init_context ();
14993 krb5_init_context ();
14998 rm -f conftest.
$ac_objext conftest
$ac_exeext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15000 (eval $ac_link) 2>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try
='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_cv_lib_krb5_krb5_init_context
=yes
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.
$ac_ext >&5
15015 ac_cv_lib_krb5_krb5_init_context
=no
15017 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15018 LIBS
=$ac_check_lib_save_LIBS
15020 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15021 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15022 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15023 cat >>confdefs.h
<<_ACEOF
15024 #define HAVE_LIBKRB5 1
15027 LIBS
="-lkrb5 $LIBS"
15031 if test "${with_kerberos5+set}" != set; then
15033 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15034 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15035 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_check_lib_save_LIBS
=$LIBS
15039 LIBS
="-ldes425 $LIBS"
15040 cat >conftest.
$ac_ext <<_ACEOF
15043 cat confdefs.h
>>conftest.
$ac_ext
15044 cat >>conftest.
$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15047 /* Override any gcc2 internal prototype to avoid an error. */
15051 /* We use char because int might match the return type of a gcc2
15052 builtin and then its argument prototype would still apply. */
15053 char des_cbc_encrypt ();
15057 des_cbc_encrypt ();
15062 rm -f conftest.
$ac_objext conftest
$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064 (eval $ac_link) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try
='test -s conftest$ac_exeext'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 ac_cv_lib_des425_des_cbc_encrypt
=yes
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.
$ac_ext >&5
15079 ac_cv_lib_des425_des_cbc_encrypt
=no
15081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15082 LIBS
=$ac_check_lib_save_LIBS
15084 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15085 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15086 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15087 cat >>confdefs.h
<<_ACEOF
15088 #define HAVE_LIBDES425 1
15091 LIBS
="-ldes425 $LIBS"
15095 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15096 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15097 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 ac_check_lib_save_LIBS
=$LIBS
15102 cat >conftest.
$ac_ext <<_ACEOF
15105 cat confdefs.h
>>conftest.
$ac_ext
15106 cat >>conftest.
$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 /* Override any gcc2 internal prototype to avoid an error. */
15113 /* We use char because int might match the return type of a gcc2
15114 builtin and then its argument prototype would still apply. */
15115 char des_cbc_encrypt ();
15119 des_cbc_encrypt ();
15124 rm -f conftest.
$ac_objext conftest
$ac_exeext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15126 (eval $ac_link) 2>&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try
='test -s conftest$ac_exeext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_cv_lib_des_des_cbc_encrypt
=yes
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.
$ac_ext >&5
15141 ac_cv_lib_des_des_cbc_encrypt
=no
15143 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15144 LIBS
=$ac_check_lib_save_LIBS
15146 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15147 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15148 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15149 cat >>confdefs.h
<<_ACEOF
15150 #define HAVE_LIBDES 1
15160 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15161 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15162 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 ac_check_lib_save_LIBS
=$LIBS
15166 LIBS
="-lkrb4 $LIBS"
15167 cat >conftest.
$ac_ext <<_ACEOF
15170 cat confdefs.h
>>conftest.
$ac_ext
15171 cat >>conftest.
$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15174 /* Override any gcc2 internal prototype to avoid an error. */
15178 /* We use char because int might match the return type of a gcc2
15179 builtin and then its argument prototype would still apply. */
15180 char krb_get_cred ();
15189 rm -f conftest.
$ac_objext conftest
$ac_exeext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15191 (eval $ac_link) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try
='test -s conftest$ac_exeext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_cv_lib_krb4_krb_get_cred
=yes
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.
$ac_ext >&5
15206 ac_cv_lib_krb4_krb_get_cred
=no
15208 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15209 LIBS
=$ac_check_lib_save_LIBS
15211 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15212 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15213 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15214 cat >>confdefs.h
<<_ACEOF
15215 #define HAVE_LIBKRB4 1
15218 LIBS
="-lkrb4 $LIBS"
15222 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15223 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15224 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 ac_check_lib_save_LIBS
=$LIBS
15229 cat >conftest.
$ac_ext <<_ACEOF
15232 cat confdefs.h
>>conftest.
$ac_ext
15233 cat >>conftest.
$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15236 /* Override any gcc2 internal prototype to avoid an error. */
15240 /* We use char because int might match the return type of a gcc2
15241 builtin and then its argument prototype would still apply. */
15242 char krb_get_cred ();
15251 rm -f conftest.
$ac_objext conftest
$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try
='test -s conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_lib_krb_krb_get_cred
=yes
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.
$ac_ext >&5
15268 ac_cv_lib_krb_krb_get_cred
=no
15270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15271 LIBS
=$ac_check_lib_save_LIBS
15273 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15274 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15275 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15276 cat >>confdefs.h
<<_ACEOF
15277 #define HAVE_LIBKRB 1
15288 if test "${with_kerberos5+set}" = set; then
15290 for ac_header
in krb5.h
15292 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15294 echo "$as_me:$LINENO: checking for $ac_header" >&5
15295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15302 # Is the header compilable?
15303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15305 cat >conftest.
$ac_ext <<_ACEOF
15308 cat confdefs.h
>>conftest.
$ac_ext
15309 cat >>conftest.
$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15312 #include <$ac_header>
15314 rm -f conftest.
$ac_objext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15316 (eval $ac_compile) 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try
='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_header_compiler
=yes
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.
$ac_ext >&5
15331 ac_header_compiler
=no
15333 rm -f conftest.
$ac_objext conftest.
$ac_ext
15334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15335 echo "${ECHO_T}$ac_header_compiler" >&6
15337 # Is the header present?
15338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15340 cat >conftest.
$ac_ext <<_ACEOF
15343 cat confdefs.h
>>conftest.
$ac_ext
15344 cat >>conftest.
$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 #include <$ac_header>
15348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15349 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15351 grep -v '^ *+' conftest.er1
>conftest.err
15353 cat conftest.err
>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } >/dev
/null
; then
15356 if test -s conftest.err
; then
15357 ac_cpp_err
=$ac_c_preproc_warn_flag
15364 if test -z "$ac_cpp_err"; then
15365 ac_header_preproc
=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.
$ac_ext >&5
15370 ac_header_preproc
=no
15372 rm -f conftest.err conftest.
$ac_ext
15373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15374 echo "${ECHO_T}$ac_header_preproc" >&6
15376 # So? What about this header?
15377 case $ac_header_compiler:$ac_header_preproc in
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15383 ac_header_preproc
=yes
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15400 ## ------------------------------------------ ##
15401 ## Report this to the AC_PACKAGE_NAME lists. ##
15402 ## ------------------------------------------ ##
15405 sed "s/^/$as_me: WARNING: /" >&2
15408 echo "$as_me:$LINENO: checking for $ac_header" >&5
15409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 eval "$as_ac_Header=\$ac_header_preproc"
15415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15420 cat >>confdefs.h
<<_ACEOF
15421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15430 for ac_header
in des.h
15432 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15434 echo "$as_me:$LINENO: checking for $ac_header" >&5
15435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15442 # Is the header compilable?
15443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15445 cat >conftest.
$ac_ext <<_ACEOF
15448 cat confdefs.h
>>conftest.
$ac_ext
15449 cat >>conftest.
$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 $ac_includes_default
15452 #include <$ac_header>
15454 rm -f conftest.
$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456 (eval $ac_compile) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try
='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_header_compiler
=yes
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.
$ac_ext >&5
15471 ac_header_compiler
=no
15473 rm -f conftest.
$ac_objext conftest.
$ac_ext
15474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15475 echo "${ECHO_T}$ac_header_compiler" >&6
15477 # Is the header present?
15478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15480 cat >conftest.
$ac_ext <<_ACEOF
15483 cat confdefs.h
>>conftest.
$ac_ext
15484 cat >>conftest.
$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <$ac_header>
15488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15489 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1
>conftest.err
15493 cat conftest.err
>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev
/null
; then
15496 if test -s conftest.err
; then
15497 ac_cpp_err
=$ac_c_preproc_warn_flag
15504 if test -z "$ac_cpp_err"; then
15505 ac_header_preproc
=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.
$ac_ext >&5
15510 ac_header_preproc
=no
15512 rm -f conftest.err conftest.
$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15514 echo "${ECHO_T}$ac_header_preproc" >&6
15516 # So? What about this header?
15517 case $ac_header_compiler:$ac_header_preproc in
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15523 ac_header_preproc
=yes
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15540 ## ------------------------------------------ ##
15541 ## Report this to the AC_PACKAGE_NAME lists. ##
15542 ## ------------------------------------------ ##
15545 sed "s/^/$as_me: WARNING: /" >&2
15548 echo "$as_me:$LINENO: checking for $ac_header" >&5
15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 eval "$as_ac_Header=\$ac_header_preproc"
15555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15560 cat >>confdefs.h
<<_ACEOF
15561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15566 for ac_header
in kerberosIV
/des.h
15568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15570 echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15578 # Is the header compilable?
15579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15581 cat >conftest.
$ac_ext <<_ACEOF
15584 cat confdefs.h
>>conftest.
$ac_ext
15585 cat >>conftest.
$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 #include <$ac_header>
15590 rm -f conftest.
$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try
='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_header_compiler
=yes
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.
$ac_ext >&5
15607 ac_header_compiler
=no
15609 rm -f conftest.
$ac_objext conftest.
$ac_ext
15610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15611 echo "${ECHO_T}$ac_header_compiler" >&6
15613 # Is the header present?
15614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15616 cat >conftest.
$ac_ext <<_ACEOF
15619 cat confdefs.h
>>conftest.
$ac_ext
15620 cat >>conftest.
$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 #include <$ac_header>
15624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15625 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15627 grep -v '^ *+' conftest.er1
>conftest.err
15629 cat conftest.err
>&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } >/dev
/null
; then
15632 if test -s conftest.err
; then
15633 ac_cpp_err
=$ac_c_preproc_warn_flag
15640 if test -z "$ac_cpp_err"; then
15641 ac_header_preproc
=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.
$ac_ext >&5
15646 ac_header_preproc
=no
15648 rm -f conftest.err conftest.
$ac_ext
15649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15650 echo "${ECHO_T}$ac_header_preproc" >&6
15652 # So? What about this header?
15653 case $ac_header_compiler:$ac_header_preproc in
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15659 ac_header_preproc
=yes
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15676 ## ------------------------------------------ ##
15677 ## Report this to the AC_PACKAGE_NAME lists. ##
15678 ## ------------------------------------------ ##
15681 sed "s/^/$as_me: WARNING: /" >&2
15684 echo "$as_me:$LINENO: checking for $ac_header" >&5
15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 eval "$as_ac_Header=\$ac_header_preproc"
15691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696 cat >>confdefs.h
<<_ACEOF
15697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15702 for ac_header
in kerberos
/des.h
15704 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15706 echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15714 # Is the header compilable?
15715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15717 cat >conftest.
$ac_ext <<_ACEOF
15720 cat confdefs.h
>>conftest.
$ac_ext
15721 cat >>conftest.
$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 $ac_includes_default
15724 #include <$ac_header>
15726 rm -f conftest.
$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try
='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_header_compiler
=yes
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.
$ac_ext >&5
15743 ac_header_compiler
=no
15745 rm -f conftest.
$ac_objext conftest.
$ac_ext
15746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15747 echo "${ECHO_T}$ac_header_compiler" >&6
15749 # Is the header present?
15750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15752 cat >conftest.
$ac_ext <<_ACEOF
15755 cat confdefs.h
>>conftest.
$ac_ext
15756 cat >>conftest.
$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 #include <$ac_header>
15760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15761 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15763 grep -v '^ *+' conftest.er1
>conftest.err
15765 cat conftest.err
>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } >/dev
/null
; then
15768 if test -s conftest.err
; then
15769 ac_cpp_err
=$ac_c_preproc_warn_flag
15776 if test -z "$ac_cpp_err"; then
15777 ac_header_preproc
=yes
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.
$ac_ext >&5
15782 ac_header_preproc
=no
15784 rm -f conftest.err conftest.
$ac_ext
15785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15786 echo "${ECHO_T}$ac_header_preproc" >&6
15788 # So? What about this header?
15789 case $ac_header_compiler:$ac_header_preproc in
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15795 ac_header_preproc
=yes
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15812 ## ------------------------------------------ ##
15813 ## Report this to the AC_PACKAGE_NAME lists. ##
15814 ## ------------------------------------------ ##
15817 sed "s/^/$as_me: WARNING: /" >&2
15820 echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 eval "$as_ac_Header=\$ac_header_preproc"
15827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15832 cat >>confdefs.h
<<_ACEOF
15833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15849 for ac_header
in krb.h
15851 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15853 echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15861 # Is the header compilable?
15862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15864 cat >conftest.
$ac_ext <<_ACEOF
15867 cat confdefs.h
>>conftest.
$ac_ext
15868 cat >>conftest.
$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 $ac_includes_default
15871 #include <$ac_header>
15873 rm -f conftest.
$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try
='test -s conftest.$ac_objext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 ac_header_compiler
=yes
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.
$ac_ext >&5
15890 ac_header_compiler
=no
15892 rm -f conftest.
$ac_objext conftest.
$ac_ext
15893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15894 echo "${ECHO_T}$ac_header_compiler" >&6
15896 # Is the header present?
15897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15899 cat >conftest.
$ac_ext <<_ACEOF
15902 cat confdefs.h
>>conftest.
$ac_ext
15903 cat >>conftest.
$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 #include <$ac_header>
15907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15908 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15910 grep -v '^ *+' conftest.er1
>conftest.err
15912 cat conftest.err
>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } >/dev
/null
; then
15915 if test -s conftest.err
; then
15916 ac_cpp_err
=$ac_c_preproc_warn_flag
15923 if test -z "$ac_cpp_err"; then
15924 ac_header_preproc
=yes
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.
$ac_ext >&5
15929 ac_header_preproc
=no
15931 rm -f conftest.err conftest.
$ac_ext
15932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15933 echo "${ECHO_T}$ac_header_preproc" >&6
15935 # So? What about this header?
15936 case $ac_header_compiler:$ac_header_preproc in
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15942 ac_header_preproc
=yes
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15959 ## ------------------------------------------ ##
15960 ## Report this to the AC_PACKAGE_NAME lists. ##
15961 ## ------------------------------------------ ##
15964 sed "s/^/$as_me: WARNING: /" >&2
15967 echo "$as_me:$LINENO: checking for $ac_header" >&5
15968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 eval "$as_ac_Header=\$ac_header_preproc"
15974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15979 cat >>confdefs.h
<<_ACEOF
15980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15985 for ac_header
in kerberosIV
/krb.h
15987 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15989 echo "$as_me:$LINENO: checking for $ac_header" >&5
15990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15997 # Is the header compilable?
15998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16000 cat >conftest.
$ac_ext <<_ACEOF
16003 cat confdefs.h
>>conftest.
$ac_ext
16004 cat >>conftest.
$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 #include <$ac_header>
16009 rm -f conftest.
$ac_objext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011 (eval $ac_compile) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try
='test -s conftest.$ac_objext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_header_compiler
=yes
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.
$ac_ext >&5
16026 ac_header_compiler
=no
16028 rm -f conftest.
$ac_objext conftest.
$ac_ext
16029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16030 echo "${ECHO_T}$ac_header_compiler" >&6
16032 # Is the header present?
16033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16035 cat >conftest.
$ac_ext <<_ACEOF
16038 cat confdefs.h
>>conftest.
$ac_ext
16039 cat >>conftest.
$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 #include <$ac_header>
16043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16046 grep -v '^ *+' conftest.er1
>conftest.err
16048 cat conftest.err
>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } >/dev
/null
; then
16051 if test -s conftest.err
; then
16052 ac_cpp_err
=$ac_c_preproc_warn_flag
16059 if test -z "$ac_cpp_err"; then
16060 ac_header_preproc
=yes
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.
$ac_ext >&5
16065 ac_header_preproc
=no
16067 rm -f conftest.err conftest.
$ac_ext
16068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16069 echo "${ECHO_T}$ac_header_preproc" >&6
16071 # So? What about this header?
16072 case $ac_header_compiler:$ac_header_preproc in
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16078 ac_header_preproc
=yes
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16095 ## ------------------------------------------ ##
16096 ## Report this to the AC_PACKAGE_NAME lists. ##
16097 ## ------------------------------------------ ##
16100 sed "s/^/$as_me: WARNING: /" >&2
16103 echo "$as_me:$LINENO: checking for $ac_header" >&5
16104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 eval "$as_ac_Header=\$ac_header_preproc"
16110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16115 cat >>confdefs.h
<<_ACEOF
16116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16121 for ac_header
in kerberos
/krb.h
16123 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16125 echo "$as_me:$LINENO: checking for $ac_header" >&5
16126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16133 # Is the header compilable?
16134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16136 cat >conftest.
$ac_ext <<_ACEOF
16139 cat confdefs.h
>>conftest.
$ac_ext
16140 cat >>conftest.
$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 $ac_includes_default
16143 #include <$ac_header>
16145 rm -f conftest.
$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try
='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_header_compiler
=yes
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.
$ac_ext >&5
16162 ac_header_compiler
=no
16164 rm -f conftest.
$ac_objext conftest.
$ac_ext
16165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16166 echo "${ECHO_T}$ac_header_compiler" >&6
16168 # Is the header present?
16169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16171 cat >conftest.
$ac_ext <<_ACEOF
16174 cat confdefs.h
>>conftest.
$ac_ext
16175 cat >>conftest.
$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 #include <$ac_header>
16179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16182 grep -v '^ *+' conftest.er1
>conftest.err
16184 cat conftest.err
>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } >/dev
/null
; then
16187 if test -s conftest.err
; then
16188 ac_cpp_err
=$ac_c_preproc_warn_flag
16195 if test -z "$ac_cpp_err"; then
16196 ac_header_preproc
=yes
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.
$ac_ext >&5
16201 ac_header_preproc
=no
16203 rm -f conftest.err conftest.
$ac_ext
16204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16205 echo "${ECHO_T}$ac_header_preproc" >&6
16207 # So? What about this header?
16208 case $ac_header_compiler:$ac_header_preproc in
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16214 ac_header_preproc
=yes
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16231 ## ------------------------------------------ ##
16232 ## Report this to the AC_PACKAGE_NAME lists. ##
16233 ## ------------------------------------------ ##
16236 sed "s/^/$as_me: WARNING: /" >&2
16239 echo "$as_me:$LINENO: checking for $ac_header" >&5
16240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 eval "$as_ac_Header=\$ac_header_preproc"
16246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16251 cat >>confdefs.h
<<_ACEOF
16252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16269 for ac_header
in com_err.h
16271 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16273 echo "$as_me:$LINENO: checking for $ac_header" >&5
16274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16281 # Is the header compilable?
16282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16284 cat >conftest.
$ac_ext <<_ACEOF
16287 cat confdefs.h
>>conftest.
$ac_ext
16288 cat >>conftest.
$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16291 #include <$ac_header>
16293 rm -f conftest.
$ac_objext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295 (eval $ac_compile) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try
='test -s conftest.$ac_objext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_header_compiler
=yes
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.
$ac_ext >&5
16310 ac_header_compiler
=no
16312 rm -f conftest.
$ac_objext conftest.
$ac_ext
16313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16314 echo "${ECHO_T}$ac_header_compiler" >&6
16316 # Is the header present?
16317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16319 cat >conftest.
$ac_ext <<_ACEOF
16322 cat confdefs.h
>>conftest.
$ac_ext
16323 cat >>conftest.
$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <$ac_header>
16327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16328 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16330 grep -v '^ *+' conftest.er1
>conftest.err
16332 cat conftest.err
>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } >/dev
/null
; then
16335 if test -s conftest.err
; then
16336 ac_cpp_err
=$ac_c_preproc_warn_flag
16343 if test -z "$ac_cpp_err"; then
16344 ac_header_preproc
=yes
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.
$ac_ext >&5
16349 ac_header_preproc
=no
16351 rm -f conftest.err conftest.
$ac_ext
16352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16353 echo "${ECHO_T}$ac_header_preproc" >&6
16355 # So? What about this header?
16356 case $ac_header_compiler:$ac_header_preproc in
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16362 ac_header_preproc
=yes
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16379 ## ------------------------------------------ ##
16380 ## Report this to the AC_PACKAGE_NAME lists. ##
16381 ## ------------------------------------------ ##
16384 sed "s/^/$as_me: WARNING: /" >&2
16387 echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 eval "$as_ac_Header=\$ac_header_preproc"
16394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16399 cat >>confdefs.h
<<_ACEOF
16400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16409 # Solaris requires -lintl if you want strerror (which calls dgettext)
16410 # to return localized messages.
16412 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16413 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16414 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 ac_check_lib_save_LIBS
=$LIBS
16418 LIBS
="-lintl $LIBS"
16419 cat >conftest.
$ac_ext <<_ACEOF
16422 cat confdefs.h
>>conftest.
$ac_ext
16423 cat >>conftest.
$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16426 /* Override any gcc2 internal prototype to avoid an error. */
16430 /* We use char because int might match the return type of a gcc2
16431 builtin and then its argument prototype would still apply. */
16441 rm -f conftest.
$ac_objext conftest
$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try
='test -s conftest$ac_exeext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_cv_lib_intl_dgettext
=yes
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.
$ac_ext >&5
16458 ac_cv_lib_intl_dgettext
=no
16460 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16461 LIBS
=$ac_check_lib_save_LIBS
16463 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16464 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16465 if test $ac_cv_lib_intl_dgettext = yes; then
16466 cat >>confdefs.h
<<_ACEOF
16467 #define HAVE_LIBINTL 1
16470 LIBS
="-lintl $LIBS"
16475 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16476 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16477 if test "${emacs_cv_localtime_cache+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 if test x
$ac_cv_func_tzset = xyes
; then
16481 if test "$cross_compiling" = yes; then
16482 # If we have tzset, assume the worst when cross-compiling.
16483 emacs_cv_localtime_cache
=yes
16485 cat >conftest.
$ac_ext <<_ACEOF
16488 cat confdefs.h
>>conftest.
$ac_ext
16489 cat >>conftest.
$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16492 extern char **environ;
16496 for (to = from = environ; (*to = *from); from++)
16497 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16500 char TZ_GMT0[] = "TZ=GMT0";
16501 char TZ_PST8[] = "TZ=PST8";
16504 time_t now = time ((time_t *) 0);
16505 int hour_GMT0, hour_unset;
16506 if (putenv (TZ_GMT0) != 0)
16508 hour_GMT0 = localtime (&now)->tm_hour;
16510 hour_unset = localtime (&now)->tm_hour;
16511 if (putenv (TZ_PST8) != 0)
16513 if (localtime (&now)->tm_hour == hour_GMT0)
16516 if (localtime (&now)->tm_hour != hour_unset)
16521 rm -f conftest
$ac_exeext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523 (eval $ac_link) 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 emacs_cv_localtime_cache
=no
16534 echo "$as_me: program exited with status $ac_status" >&5
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.
$ac_ext >&5
16538 ( exit $ac_status )
16539 emacs_cv_localtime_cache
=yes
16541 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16544 # If we lack tzset, report that localtime does not cache TZ,
16545 # since we can't invalidate the cache if we don't have tzset.
16546 emacs_cv_localtime_cache
=no
16549 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16550 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16551 if test $emacs_cv_localtime_cache = yes; then
16553 cat >>confdefs.h
<<\_ACEOF
16554 #define LOCALTIME_CACHE 1
16559 if test "x$HAVE_TIMEVAL" = xyes
; then
16561 for ac_func
in gettimeofday
16563 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16564 echo "$as_me:$LINENO: checking for $ac_func" >&5
16565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16566 if eval "test \"\${$as_ac_var+set}\" = set"; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 cat >conftest.
$ac_ext <<_ACEOF
16572 cat confdefs.h
>>conftest.
$ac_ext
16573 cat >>conftest.
$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16577 #define $ac_func innocuous_$ac_func
16579 /* System header to define __stub macros and hopefully few prototypes,
16580 which can conflict with char $ac_func (); below.
16581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 <limits.h> exists even on freestanding compilers. */
16585 # include <limits.h>
16587 # include <assert.h>
16592 /* Override any gcc2 internal prototype to avoid an error. */
16597 /* We use char because int might match the return type of a gcc2
16598 builtin and then its argument prototype would still apply. */
16600 /* The GNU C library defines this for functions which it implements
16601 to always fail with ENOSYS. Some functions are actually named
16602 something starting with __ and the normal name is an alias. */
16603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16606 char (*f) () = $ac_func;
16615 return f != $ac_func;
16620 rm -f conftest.
$ac_objext conftest
$ac_exeext
16621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16622 (eval $ac_link) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try
='test -s conftest$ac_exeext'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 eval "$as_ac_var=yes"
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.
$ac_ext >&5
16637 eval "$as_ac_var=no"
16639 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16643 if test `eval echo '${'$as_ac_var'}'` = yes; then
16644 cat >>confdefs.h
<<_ACEOF
16645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16651 if test $ac_cv_func_gettimeofday = yes; then
16652 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16653 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16654 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 cat >conftest.
$ac_ext <<_ACEOF
16660 cat confdefs.h
>>conftest.
$ac_ext
16661 cat >>conftest.
$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16664 #ifdef TIME_WITH_SYS_TIME
16665 #include <sys/time.h>
16668 #ifdef HAVE_SYS_TIME_H
16669 #include <sys/time.h>
16677 struct timeval time;
16678 gettimeofday (&time, 0);
16683 rm -f conftest.
$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try
='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 emacs_cv_gettimeofday_two_arguments
=yes
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.
$ac_ext >&5
16700 emacs_cv_gettimeofday_two_arguments
=no
16702 rm -f conftest.
$ac_objext conftest.
$ac_ext
16704 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16705 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16706 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16708 cat >>confdefs.h
<<\_ACEOF
16709 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16716 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16717 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16718 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16719 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 cat >conftest.
$ac_ext <<_ACEOF
16725 cat confdefs.h
>>conftest.
$ac_ext
16726 cat >>conftest.
$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <sys/types.h>
16729 #include <$ac_cv_struct_tm>
16735 static struct tm ac_aggr;
16736 if (ac_aggr.tm_zone)
16742 rm -f conftest.
$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try
='test -s conftest.$ac_objext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_member_struct_tm_tm_zone
=yes
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.
$ac_ext >&5
16759 cat >conftest.
$ac_ext <<_ACEOF
16762 cat confdefs.h
>>conftest.
$ac_ext
16763 cat >>conftest.
$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <sys/types.h>
16766 #include <$ac_cv_struct_tm>
16772 static struct tm ac_aggr;
16773 if (sizeof ac_aggr.tm_zone)
16779 rm -f conftest.
$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
16791 ac_cv_member_struct_tm_tm_zone
=yes
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.
$ac_ext >&5
16796 ac_cv_member_struct_tm_tm_zone
=no
16798 rm -f conftest.
$ac_objext conftest.
$ac_ext
16800 rm -f conftest.
$ac_objext conftest.
$ac_ext
16802 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16803 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16804 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16806 cat >>confdefs.h
<<_ACEOF
16807 #define HAVE_STRUCT_TM_TM_ZONE 1
16813 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16815 cat >>confdefs.h
<<\_ACEOF
16816 #define HAVE_TM_ZONE 1
16820 echo "$as_me:$LINENO: checking for tzname" >&5
16821 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16822 if test "${ac_cv_var_tzname+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 cat >conftest.
$ac_ext <<_ACEOF
16828 cat confdefs.h
>>conftest.
$ac_ext
16829 cat >>conftest.
$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16832 #ifndef tzname /* For SGI. */
16833 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16844 rm -f conftest.
$ac_objext conftest
$ac_exeext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846 (eval $ac_link) 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try
='test -s conftest$ac_exeext'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_var_tzname
=yes
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.
$ac_ext >&5
16861 ac_cv_var_tzname
=no
16863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16865 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16866 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16867 if test $ac_cv_var_tzname = yes; then
16869 cat >>confdefs.h
<<\_ACEOF
16870 #define HAVE_TZNAME 1
16877 if test "$ac_cv_func_gettimeofday" = yes; then
16878 echo "$as_me:$LINENO: checking for struct timezone" >&5
16879 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16880 if test "${emacs_cv_struct_timezone+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 cat >conftest.
$ac_ext <<_ACEOF
16886 cat confdefs.h
>>conftest.
$ac_ext
16887 cat >>conftest.
$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 #include <sys/time.h>
16893 struct timezone tz;
16898 rm -f conftest.
$ac_objext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16900 (eval $ac_compile) 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try
='test -s conftest.$ac_objext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 if test "$cross_compiling" = yes; then
16911 emacs_cv_struct_timezone
=yes
16913 cat >conftest.
$ac_ext <<_ACEOF
16916 cat confdefs.h
>>conftest.
$ac_ext
16917 cat >>conftest.
$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16920 #ifdef TIME_WITH_SYS_TIME
16921 #include <sys/time.h>
16924 #ifdef HAVE_SYS_TIME_H
16925 #include <sys/time.h>
16931 struct timeval time;
16932 struct timezone dummy;
16933 exit (gettimeofday (&time, &dummy));
16936 rm -f conftest
$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 emacs_cv_struct_timezone
=yes
16949 echo "$as_me: program exited with status $ac_status" >&5
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.
$ac_ext >&5
16953 ( exit $ac_status )
16954 emacs_cv_struct_timezone
=no
16956 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.
$ac_ext >&5
16962 emacs_cv_struct_timezone
=no
16964 rm -f conftest.
$ac_objext conftest.
$ac_ext
16966 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16967 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16971 echo "$as_me:$LINENO: checking for socket" >&5
16972 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16973 if test "${ac_cv_func_socket+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 cat >conftest.
$ac_ext <<_ACEOF
16979 cat confdefs.h
>>conftest.
$ac_ext
16980 cat >>conftest.
$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
16983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16984 #define socket innocuous_socket
16986 /* System header to define __stub macros and hopefully few prototypes,
16987 which can conflict with char socket (); below.
16988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16989 <limits.h> exists even on freestanding compilers. */
16992 # include <limits.h>
16994 # include <assert.h>
16999 /* Override any gcc2 internal prototype to avoid an error. */
17004 /* We use char because int might match the return type of a gcc2
17005 builtin and then its argument prototype would still apply. */
17007 /* The GNU C library defines this for functions which it implements
17008 to always fail with ENOSYS. Some functions are actually named
17009 something starting with __ and the normal name is an alias. */
17010 #if defined (__stub_socket) || defined (__stub___socket)
17013 char (*f) () = socket;
17022 return f != socket;
17027 rm -f conftest.
$ac_objext conftest
$ac_exeext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17029 (eval $ac_link) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try
='test -s conftest$ac_exeext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_func_socket
=yes
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.
$ac_ext >&5
17044 ac_cv_func_socket
=no
17046 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17048 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17049 echo "${ECHO_T}$ac_cv_func_socket" >&6
17050 if test $ac_cv_func_socket = yes; then
17056 if test $ok_so_far = yes; then
17057 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17058 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17059 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17060 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17064 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17066 # Is the header compilable?
17067 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17068 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17069 cat >conftest.
$ac_ext <<_ACEOF
17072 cat confdefs.h
>>conftest.
$ac_ext
17073 cat >>conftest.
$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 $ac_includes_default
17076 #include <netinet/in.h>
17078 rm -f conftest.
$ac_objext
17079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17080 (eval $ac_compile) 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try
='test -s conftest.$ac_objext'
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_header_compiler
=yes
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.
$ac_ext >&5
17095 ac_header_compiler
=no
17097 rm -f conftest.
$ac_objext conftest.
$ac_ext
17098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17099 echo "${ECHO_T}$ac_header_compiler" >&6
17101 # Is the header present?
17102 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17103 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17104 cat >conftest.
$ac_ext <<_ACEOF
17107 cat confdefs.h
>>conftest.
$ac_ext
17108 cat >>conftest.
$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 #include <netinet/in.h>
17112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17113 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17115 grep -v '^ *+' conftest.er1
>conftest.err
17117 cat conftest.err
>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } >/dev
/null
; then
17120 if test -s conftest.err
; then
17121 ac_cpp_err
=$ac_c_preproc_warn_flag
17128 if test -z "$ac_cpp_err"; then
17129 ac_header_preproc
=yes
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.
$ac_ext >&5
17134 ac_header_preproc
=no
17136 rm -f conftest.err conftest.
$ac_ext
17137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17138 echo "${ECHO_T}$ac_header_preproc" >&6
17140 # So? What about this header?
17141 case $ac_header_compiler:$ac_header_preproc in
17143 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17144 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17145 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
17146 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
17147 ac_header_preproc
=yes
17150 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17151 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17152 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17153 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17154 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
17155 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
17157 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17159 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
17161 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
17164 ## ------------------------------------------ ##
17165 ## Report this to the AC_PACKAGE_NAME lists. ##
17166 ## ------------------------------------------ ##
17169 sed "s/^/$as_me: WARNING: /" >&2
17172 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17173 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17174 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 ac_cv_header_netinet_in_h
=$ac_header_preproc
17179 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17180 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17183 if test $ac_cv_header_netinet_in_h = yes; then
17191 if test $ok_so_far = yes; then
17192 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17193 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17194 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17195 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17199 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17201 # Is the header compilable?
17202 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17203 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17204 cat >conftest.
$ac_ext <<_ACEOF
17207 cat confdefs.h
>>conftest.
$ac_ext
17208 cat >>conftest.
$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 $ac_includes_default
17211 #include <arpa/inet.h>
17213 rm -f conftest.
$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } &&
17219 { ac_try
='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_header_compiler
=yes
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.
$ac_ext >&5
17230 ac_header_compiler
=no
17232 rm -f conftest.
$ac_objext conftest.
$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17234 echo "${ECHO_T}$ac_header_compiler" >&6
17236 # Is the header present?
17237 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17238 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17239 cat >conftest.
$ac_ext <<_ACEOF
17242 cat confdefs.h
>>conftest.
$ac_ext
17243 cat >>conftest.
$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 #include <arpa/inet.h>
17247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17250 grep -v '^ *+' conftest.er1
>conftest.err
17252 cat conftest.err
>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } >/dev
/null
; then
17255 if test -s conftest.err
; then
17256 ac_cpp_err
=$ac_c_preproc_warn_flag
17263 if test -z "$ac_cpp_err"; then
17264 ac_header_preproc
=yes
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.
$ac_ext >&5
17269 ac_header_preproc
=no
17271 rm -f conftest.err conftest.
$ac_ext
17272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17273 echo "${ECHO_T}$ac_header_preproc" >&6
17275 # So? What about this header?
17276 case $ac_header_compiler:$ac_header_preproc in
17278 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17279 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
17281 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
17282 ac_header_preproc
=yes
17285 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17286 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17287 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17288 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17289 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
17290 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
17291 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
17292 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
17293 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17294 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17295 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
17296 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
17299 ## ------------------------------------------ ##
17300 ## Report this to the AC_PACKAGE_NAME lists. ##
17301 ## ------------------------------------------ ##
17304 sed "s/^/$as_me: WARNING: /" >&2
17307 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17308 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17309 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17314 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17315 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17318 if test $ac_cv_header_arpa_inet_h = yes; then
17326 if test $ok_so_far = yes; then
17328 cat >>confdefs.h
<<\_ACEOF
17329 #define HAVE_INET_SOCKETS 1
17334 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17336 cat >>confdefs.h
<<\_ACEOF
17337 #define HAVE_AIX_SMT_EXP 1
17342 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17343 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17344 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17345 echo "$as_me:$LINENO: result: yes" >&5
17346 echo "${ECHO_T}yes" >&6
17348 cat >>confdefs.h
<<\_ACEOF
17349 #define HAVE_DEV_PTMX 1
17353 echo "$as_me:$LINENO: result: no" >&5
17354 echo "${ECHO_T}no" >&6
17357 echo "$as_me:$LINENO: checking for pid_t" >&5
17358 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17359 if test "${ac_cv_type_pid_t+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 cat >conftest.
$ac_ext <<_ACEOF
17365 cat confdefs.h
>>conftest.
$ac_ext
17366 cat >>conftest.
$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 $ac_includes_default
17374 if (sizeof (pid_t))
17380 rm -f conftest.
$ac_objext
17381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17382 (eval $ac_compile) 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try
='test -s conftest.$ac_objext'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 ac_cv_type_pid_t
=yes
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.
$ac_ext >&5
17397 ac_cv_type_pid_t
=no
17399 rm -f conftest.
$ac_objext conftest.
$ac_ext
17401 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17402 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17403 if test $ac_cv_type_pid_t = yes; then
17407 cat >>confdefs.h
<<_ACEOF
17415 for ac_header
in unistd.h vfork.h
17417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17419 echo "$as_me:$LINENO: checking for $ac_header" >&5
17420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17427 # Is the header compilable?
17428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17430 cat >conftest.
$ac_ext <<_ACEOF
17433 cat confdefs.h
>>conftest.
$ac_ext
17434 cat >>conftest.
$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 $ac_includes_default
17437 #include <$ac_header>
17439 rm -f conftest.
$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441 (eval $ac_compile) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try
='test -s conftest.$ac_objext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_header_compiler
=yes
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.
$ac_ext >&5
17456 ac_header_compiler
=no
17458 rm -f conftest.
$ac_objext conftest.
$ac_ext
17459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17460 echo "${ECHO_T}$ac_header_compiler" >&6
17462 # Is the header present?
17463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17465 cat >conftest.
$ac_ext <<_ACEOF
17468 cat confdefs.h
>>conftest.
$ac_ext
17469 cat >>conftest.
$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 #include <$ac_header>
17473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17474 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17476 grep -v '^ *+' conftest.er1
>conftest.err
17478 cat conftest.err
>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } >/dev
/null
; then
17481 if test -s conftest.err
; then
17482 ac_cpp_err
=$ac_c_preproc_warn_flag
17489 if test -z "$ac_cpp_err"; then
17490 ac_header_preproc
=yes
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.
$ac_ext >&5
17495 ac_header_preproc
=no
17497 rm -f conftest.err conftest.
$ac_ext
17498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17499 echo "${ECHO_T}$ac_header_preproc" >&6
17501 # So? What about this header?
17502 case $ac_header_compiler:$ac_header_preproc in
17504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17508 ac_header_preproc
=yes
17511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17525 ## ------------------------------------------ ##
17526 ## Report this to the AC_PACKAGE_NAME lists. ##
17527 ## ------------------------------------------ ##
17530 sed "s/^/$as_me: WARNING: /" >&2
17533 echo "$as_me:$LINENO: checking for $ac_header" >&5
17534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 eval "$as_ac_Header=\$ac_header_preproc"
17540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17545 cat >>confdefs.h
<<_ACEOF
17546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17555 for ac_func
in fork vfork
17557 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17558 echo "$as_me:$LINENO: checking for $ac_func" >&5
17559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17560 if eval "test \"\${$as_ac_var+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 cat >conftest.
$ac_ext <<_ACEOF
17566 cat confdefs.h
>>conftest.
$ac_ext
17567 cat >>conftest.
$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17571 #define $ac_func innocuous_$ac_func
17573 /* System header to define __stub macros and hopefully few prototypes,
17574 which can conflict with char $ac_func (); below.
17575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17576 <limits.h> exists even on freestanding compilers. */
17579 # include <limits.h>
17581 # include <assert.h>
17586 /* Override any gcc2 internal prototype to avoid an error. */
17591 /* We use char because int might match the return type of a gcc2
17592 builtin and then its argument prototype would still apply. */
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17600 char (*f) () = $ac_func;
17609 return f != $ac_func;
17614 rm -f conftest.
$ac_objext conftest
$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try
='test -s conftest$ac_exeext'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 eval "$as_ac_var=yes"
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.
$ac_ext >&5
17631 eval "$as_ac_var=no"
17633 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h
<<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17645 if test "x$ac_cv_func_fork" = xyes
; then
17646 echo "$as_me:$LINENO: checking for working fork" >&5
17647 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17648 if test "${ac_cv_func_fork_works+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 if test "$cross_compiling" = yes; then
17652 ac_cv_func_fork_works
=cross
17654 cat >conftest.
$ac_ext <<_ACEOF
17655 /* By Ruediger Kuhlmann. */
17656 #include <sys/types.h>
17658 # include <unistd.h>
17660 /* Some systems only have a dummy stub for fork() */
17668 rm -f conftest
$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_func_fork_works
=yes
17681 echo "$as_me: program exited with status $ac_status" >&5
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.
$ac_ext >&5
17685 ( exit $ac_status )
17686 ac_cv_func_fork_works
=no
17688 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17691 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17692 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17695 ac_cv_func_fork_works
=$ac_cv_func_fork
17697 if test "x$ac_cv_func_fork_works" = xcross
; then
17699 *-*-amigaos* |
*-*-msdosdjgpp*)
17700 # Override, as these systems have only a dummy fork() stub
17701 ac_cv_func_fork_works
=no
17704 ac_cv_func_fork_works
=yes
17707 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17708 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17710 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17711 if test "x$ac_cv_func_vfork" = xyes
; then
17712 echo "$as_me:$LINENO: checking for working vfork" >&5
17713 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17714 if test "${ac_cv_func_vfork_works+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 if test "$cross_compiling" = yes; then
17718 ac_cv_func_vfork_works
=cross
17720 cat >conftest.
$ac_ext <<_ACEOF
17723 cat confdefs.h
>>conftest.
$ac_ext
17724 cat >>conftest.
$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 /* Thanks to Paul Eggert for this test. */
17728 #include <stdlib.h>
17729 #include <sys/types.h>
17730 #include <sys/stat.h>
17731 #include <sys/wait.h>
17733 # include <unistd.h>
17736 # include <vfork.h>
17738 /* On some sparc systems, changes by the child to local and incoming
17739 argument registers are propagated back to the parent. The compiler
17740 is told about this with #include <vfork.h>, but some compilers
17741 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17742 static variable whose address is put into a register that is
17743 clobbered by the vfork. */
17746 sparc_address_test (int arg)
17748 sparc_address_test (arg) int arg;
17751 static pid_t child;
17769 pid_t parent = getpid ();
17772 sparc_address_test (0);
17777 /* Here is another test for sparc vfork register problems. This
17778 test uses lots of local variables, at least as many local
17779 variables as main has allocated so far including compiler
17780 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17781 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17782 reuse the register of parent for one of the local variables,
17783 since it will think that parent can't possibly be used any more
17784 in this routine. Assigning to the local variable will thus
17785 munge parent in the parent process. */
17787 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17788 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17789 /* Convince the compiler that p..p7 are live; otherwise, it might
17790 use the same hardware register for all 8 local variables. */
17791 if (p != p1 || p != p2 || p != p3 || p != p4
17792 || p != p5 || p != p6 || p != p7)
17795 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17796 from child file descriptors. If the child closes a descriptor
17797 before it execs or exits, this munges the parent's descriptor
17798 as well. Test for this by closing stdout in the child. */
17799 _exit(close(fileno(stdout)) != 0);
17804 while (wait(&status) != child)
17807 /* Was there some problem with vforking? */
17810 /* Did the child fail? (This shouldn't happen.) */
17813 /* Did the vfork/compiler bug occur? */
17814 || parent != getpid()
17816 /* Did the file descriptor bug occur? */
17817 || fstat(fileno(stdout), &st) != 0
17822 rm -f conftest
$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824 (eval $ac_link) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_func_vfork_works
=yes
17835 echo "$as_me: program exited with status $ac_status" >&5
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.
$ac_ext >&5
17839 ( exit $ac_status )
17840 ac_cv_func_vfork_works
=no
17842 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17845 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17846 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17849 if test "x$ac_cv_func_fork_works" = xcross
; then
17850 ac_cv_func_vfork_works
=ac_cv_func_vfork
17851 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17852 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17855 if test "x$ac_cv_func_vfork_works" = xyes
; then
17857 cat >>confdefs.h
<<\_ACEOF
17858 #define HAVE_WORKING_VFORK 1
17863 cat >>confdefs.h
<<\_ACEOF
17868 if test "x$ac_cv_func_fork_works" = xyes
; then
17870 cat >>confdefs.h
<<\_ACEOF
17871 #define HAVE_WORKING_FORK 1
17877 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17878 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17879 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 cat >conftest.
$ac_ext <<_ACEOF
17885 cat confdefs.h
>>conftest.
$ac_ext
17886 cat >>conftest.
$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 #include <langinfo.h>
17892 char* cs = nl_langinfo(CODESET);
17897 rm -f conftest.
$ac_objext conftest
$ac_exeext
17898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899 (eval $ac_link) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
17903 { ac_try
='test -s conftest$ac_exeext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 emacs_cv_langinfo_codeset
=yes
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.
$ac_ext >&5
17914 emacs_cv_langinfo_codeset
=no
17916 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17919 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17920 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17921 if test $emacs_cv_langinfo_codeset = yes; then
17923 cat >>confdefs.h
<<\_ACEOF
17924 #define HAVE_LANGINFO_CODESET 1
17929 echo "$as_me:$LINENO: checking for size_t" >&5
17930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17931 if test "${ac_cv_type_size_t+set}" = set; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 cat >conftest.
$ac_ext <<_ACEOF
17937 cat confdefs.h
>>conftest.
$ac_ext
17938 cat >>conftest.
$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 $ac_includes_default
17946 if (sizeof (size_t))
17952 rm -f conftest.
$ac_objext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17954 (eval $ac_compile) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try
='test -s conftest.$ac_objext'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
17964 ac_cv_type_size_t
=yes
17966 echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.
$ac_ext >&5
17969 ac_cv_type_size_t
=no
17971 rm -f conftest.
$ac_objext conftest.
$ac_ext
17973 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17974 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17975 if test $ac_cv_type_size_t = yes; then
17977 cat >>confdefs.h
<<_ACEOF
17978 #define HAVE_SIZE_T 1
17985 echo "$as_me:$LINENO: checking for mbstate_t" >&5
17986 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17987 if test "${ac_cv_type_mbstate_t+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 cat >conftest.
$ac_ext <<_ACEOF
17993 cat confdefs.h
>>conftest.
$ac_ext
17994 cat >>conftest.
$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
17997 # include <wchar.h>
18001 mbstate_t x; return sizeof x;
18006 rm -f conftest.
$ac_objext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18008 (eval $ac_compile) 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try
='test -s conftest.$ac_objext'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 ac_cv_type_mbstate_t
=yes
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.
$ac_ext >&5
18023 ac_cv_type_mbstate_t
=no
18025 rm -f conftest.
$ac_objext conftest.
$ac_ext
18027 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18028 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18029 if test $ac_cv_type_mbstate_t = yes; then
18031 cat >>confdefs.h
<<\_ACEOF
18032 #define HAVE_MBSTATE_T 1
18037 cat >>confdefs.h
<<\_ACEOF
18038 #define mbstate_t int
18043 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18044 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18045 if test "${emacs_cv_c_restrict+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 cat >conftest.
$ac_ext <<_ACEOF
18051 cat confdefs.h
>>conftest.
$ac_ext
18052 cat >>conftest.
$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 void fred (int *restrict x);
18063 rm -f conftest.
$ac_objext
18064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18065 (eval $ac_compile) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try
='test -s conftest.$ac_objext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 emacs_cv_c_restrict
=yes
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.
$ac_ext >&5
18080 cat >conftest.
$ac_ext <<_ACEOF
18083 cat confdefs.h
>>conftest.
$ac_ext
18084 cat >>conftest.
$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 void fred (int *__restrict x);
18095 rm -f conftest.
$ac_objext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try
='test -s conftest.$ac_objext'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 emacs_cv_c_restrict
=__restrict
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.
$ac_ext >&5
18112 emacs_cv_c_restrict
=no
18114 rm -f conftest.
$ac_objext conftest.
$ac_ext
18116 rm -f conftest.
$ac_objext conftest.
$ac_ext
18118 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18119 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18120 case "$emacs_cv_c_restrict" in
18121 yes) emacs_restrict
=restrict
;;
18122 no
) emacs_restrict
="";;
18123 *) emacs_restrict
="$emacs_cv_c_restrict";;
18125 if test "$emacs_restrict" != __restrict
; then
18127 cat >>confdefs.h
<<_ACEOF
18128 #define __restrict $emacs_restrict
18133 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18134 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18135 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 cat >conftest.
$ac_ext <<_ACEOF
18141 cat confdefs.h
>>conftest.
$ac_ext
18142 cat >>conftest.
$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 void fred (int x[__restrict]);
18153 rm -f conftest.
$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try
='test -s conftest.$ac_objext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 emacs_cv_c_restrict_arr
=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.
$ac_ext >&5
18170 emacs_cv_c_restrict_arr
=no
18172 rm -f conftest.
$ac_objext conftest.
$ac_ext
18174 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18175 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18176 if test "$emacs_cv_c_restrict_arr" = yes; then
18178 cat >>confdefs.h
<<\_ACEOF
18179 #define __restrict_arr __restrict
18186 # Set up the CFLAGS for real compilation, so we can substitute it.
18187 CFLAGS
="$REAL_CFLAGS"
18188 CPPFLAGS
="$REAL_CPPFLAGS"
18190 #### Find out which version of Emacs this is.
18191 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18192 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18193 if test x
"${version}" = x
; then
18194 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18195 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18196 { (exit 1); exit 1; }; }
18199 ### Specify what sort of things we'll be editing into Makefile and config.h.
18200 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18236 cat >>confdefs.h
<<_ACEOF
18237 #define EMACS_CONFIGURATION "${canonical}"
18241 cat >>confdefs.h
<<_ACEOF
18242 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18246 cat >>confdefs.h
<<_ACEOF
18247 #define config_machfile "${machfile}"
18251 cat >>confdefs.h
<<_ACEOF
18252 #define config_opsysfile "${opsysfile}"
18256 cat >>confdefs.h
<<_ACEOF
18257 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18261 cat >>confdefs.h
<<_ACEOF
18262 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18266 cat >>confdefs.h
<<_ACEOF
18267 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18271 cat >>confdefs.h
<<_ACEOF
18272 #define UNEXEC_SRC ${UNEXEC_SRC}
18276 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18278 cat >>confdefs.h
<<\_ACEOF
18279 #define HAVE_X_WINDOWS 1
18283 if test "${USE_X_TOOLKIT}" != "none" ; then
18285 cat >>confdefs.h
<<\_ACEOF
18286 #define USE_X_TOOLKIT 1
18290 if test "${HAVE_X11}" = "yes" ; then
18292 cat >>confdefs.h
<<\_ACEOF
18297 if test "${HAVE_XFREE386}" = "yes" ; then
18299 cat >>confdefs.h
<<\_ACEOF
18300 #define HAVE_XFREE386 1
18304 if test "${HAVE_MENUS}" = "yes" ; then
18306 cat >>confdefs.h
<<\_ACEOF
18307 #define HAVE_MENUS 1
18311 if test "${GNU_MALLOC}" = "yes" ; then
18313 cat >>confdefs.h
<<\_ACEOF
18314 #define GNU_MALLOC 1
18318 if test "${REL_ALLOC}" = "yes" ; then
18320 cat >>confdefs.h
<<\_ACEOF
18321 #define REL_ALLOC 1
18330 #### Report on what we decided to do.
18331 #### Report GTK as a toolkit, even if it doesn't use Xt.
18332 #### It makes printing result more understandable as using GTK sets
18333 #### toolkit_scroll_bars to yes by default.
18334 if test "${HAVE_GTK}" = "yes"; then
18339 Configured for \`${canonical}'.
18341 Where should the build process find the source code? ${srcdir}
18342 What operating system and machine description files should Emacs use?
18343 \`${opsysfile}' and \`${machfile}'
18344 What compiler should emacs be built with? ${CC} ${CFLAGS}
18345 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18346 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18347 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18348 What window system should Emacs use? ${window_system}
18349 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18351 if test -n "${x_includes}"; then
18352 echo " Where do we find X Windows header files? ${x_includes}"
18354 echo " Where do we find X Windows header files? Standard dirs"
18356 if test -n "${x_libraries}"; then
18357 echo " Where do we find X Windows libraries? ${x_libraries}"
18359 echo " Where do we find X Windows libraries? Standard dirs"
18362 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18363 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18364 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18365 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18366 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18367 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18368 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18371 # Remove any trailing slashes in these variables.
18372 test "${prefix}" != NONE
&&
18373 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18374 test "${exec_prefix}" != NONE
&&
18375 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18377 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18378 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18379 ## from Makefile.c can correctly provide the arg `-traditional' to the
18382 cat >conftest.
$ac_ext <<_ACEOF
18385 cat confdefs.h
>>conftest.
$ac_ext
18386 cat >>conftest.
$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18391 $EGREP "yes..yes" >/dev
/null
2>&1; then
18392 CPP_NEED_TRADITIONAL
=no
18394 CPP_NEED_TRADITIONAL
=yes
18399 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"
18400 ac_config_commands
="$ac_config_commands default"
18401 cat >confcache
<<\_ACEOF
18402 # This file is a shell script that caches the results of configure
18403 # tests run on this system so they can be shared between configure
18404 # scripts and configure runs, see configure's option --config-cache.
18405 # It is not useful on other systems. If it contains results you don't
18406 # want to keep, you may remove or edit it.
18408 # config.status only pays attention to the cache file if you give it
18409 # the --recheck option to rerun configure.
18411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18413 # following values.
18417 # The following way of writing the cache mishandles newlines in values,
18418 # but we know of no workaround that is simple, portable, and efficient.
18419 # So, don't put newlines in cache variables' values.
18420 # Ultrix sh set writes to stderr and can't be redirected directly,
18421 # and sets the high bit in the cache file unless we assign to the vars.
18424 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18426 # `set' does not quote correctly, so add quotes (double-quote
18427 # substitution turns \\\\ into \\, and sed turns \\ into \).
18430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18433 # `set' quotes correctly as required by POSIX, so do not add quotes.
18435 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18444 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18446 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18447 if test -w $cache_file; then
18448 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18449 cat confcache
>$cache_file
18451 echo "not updating unwritable cache $cache_file"
18456 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18457 # Let make expand exec_prefix.
18458 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18462 # trailing colons and then remove the whole line if VPATH becomes empty
18463 # (actually we leave an empty line to preserve line numbers).
18464 if test "x$srcdir" = x.
; then
18465 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18466 s/:*\$(srcdir):*/:/;
18467 s/:*\${srcdir}:*/:/;
18469 s/^\([^=]*=[ ]*\):*/\1/;
18475 DEFS
=-DHAVE_CONFIG_H
18479 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18480 # 1. Remove the extension, and $U if already installed.
18481 ac_i
=`echo "$ac_i" |
18482 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18484 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18485 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18487 LIBOBJS
=$ac_libobjs
18489 LTLIBOBJS
=$ac_ltlibobjs
18493 : ${CONFIG_STATUS=./config.status}
18494 ac_clean_files_save
=$ac_clean_files
18495 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18496 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18497 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18498 cat >$CONFIG_STATUS <<_ACEOF
18500 # Generated by $as_me.
18501 # Run this file to recreate the current configuration.
18502 # Compiler output produced by configure, useful for debugging
18503 # configure, is in config.log if it exists.
18506 ac_cs_recheck=false
18508 SHELL=\${CONFIG_SHELL-$SHELL}
18511 cat >>$CONFIG_STATUS <<\_ACEOF
18512 ## --------------------- ##
18513 ## M4sh Initialization. ##
18514 ## --------------------- ##
18516 # Be Bourne compatible
18517 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18520 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18521 # is contrary to our usage. Disable this feature.
18522 alias -g '${1+"$@"}'='"$@"'
18523 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18527 # Support unset when possible.
18528 if (as_foo
=foo
; unset as_foo
) >/dev
/null
2>&1; then
18535 # Work around bugs in pre-3.0 UWIN ksh.
18536 $as_unset ENV MAIL MAILPATH
18543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18545 LC_TELEPHONE LC_TIME
18547 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18548 eval $as_var=C
; export $as_var
18554 # Required to use basename.
18555 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18561 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18562 as_basename
=basename
18568 # Name of the executable.
18569 as_me
=`$as_basename "$0" ||
18570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18571 X"$0" : 'X\(//\)$' \| \
18572 X"$0" : 'X\(/\)$' \| \
18573 . : '\(.\)' 2>/dev/null ||
18575 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18576 /^X\/\(\/\/\)$/{ s//\1/; q; }
18577 /^X\/\(\/\).*/{ s//\1/; q; }
18581 # PATH needs CR, and LINENO needs CR and PATH.
18582 # Avoid depending upon Character Ranges.
18583 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18584 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18585 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18586 as_cr_digits
='0123456789'
18587 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18589 # The user is always right.
18590 if test "${PATH_SEPARATOR+set}" != set; then
18591 echo "#! /bin/sh" >conf$$.sh
18592 echo "exit 0" >>conf$$.sh
18594 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18603 as_lineno_1
=$LINENO
18604 as_lineno_2
=$LINENO
18605 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18606 test "x$as_lineno_1" != "x$as_lineno_2" &&
18607 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18608 # Find who we are. Look in the path if we contain no path at all
18611 *[\\/]* ) as_myself
=$0 ;;
18612 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18613 for as_dir
in $PATH
18616 test -z "$as_dir" && as_dir
=.
18617 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18622 # We did not find ourselves, most probably we were run as `sh COMMAND'
18623 # in which case we are not to be found in the path.
18624 if test "x$as_myself" = x
; then
18627 if test ! -f "$as_myself"; then
18628 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18629 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18630 { (exit 1); exit 1; }; }
18632 case $CONFIG_SHELL in
18634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18635 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18638 test -z "$as_dir" && as_dir
=.
18639 for as_base
in sh bash ksh sh5
; do
18642 if ("$as_dir/$as_base" -c '
18643 as_lineno_1=$LINENO
18644 as_lineno_2=$LINENO
18645 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18646 test "x$as_lineno_1" != "x$as_lineno_2" &&
18647 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18648 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18649 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18650 CONFIG_SHELL
=$as_dir/$as_base
18651 export CONFIG_SHELL
18652 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18660 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18661 # uniformly replaced by the line number. The first 'sed' inserts a
18662 # line-number line before each line; the second 'sed' does the real
18663 # work. The second script uses 'N' to pair each line-number line
18664 # with the numbered line, and appends trailing '-' during
18665 # substitution so that $LINENO is not a special case at line end.
18666 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18667 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18668 sed '=' <$as_myself |
18673 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18676 s,^['$as_cr_digits']*\n,,
18677 ' >$as_me.lineno
&&
18678 chmod +x
$as_me.lineno ||
18679 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18680 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18681 { (exit 1); exit 1; }; }
18683 # Don't try to exec as it changes $[0], causing all sort of problems
18684 # (the dirname of $[0] is not the place where we might find the
18685 # original and so on. Autoconf is especially sensible to this).
18687 # Exit status is that of the last command.
18692 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18693 *c
*,-n*) ECHO_N
= ECHO_C
='
18695 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18696 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18699 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18705 rm -f conf$$ conf$$.exe conf$$.
file
18707 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18708 # We could just check for DJGPP; but this test a) works b) is more generic
18709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18710 if test -f conf$$.exe
; then
18711 # Don't use ln at all; we don't have any links
18716 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18721 rm -f conf$$ conf$$.exe conf$$.
file
18723 if mkdir
-p .
2>/dev
/null
; then
18729 as_executable_p
="test -f"
18731 # Sed expression to map a string onto a valid CPP name.
18732 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18734 # Sed expression to map a string onto a valid variable name.
18735 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18739 # We need space, tab and new line, in precisely that order.
18749 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18750 # report actual input values of CONFIG_FILES etc. instead of their
18751 # values after options handling. Logging --version etc. is OK.
18755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18756 ## Running $as_me. ##
18761 This file was extended by $as_me, which was
18762 generated by GNU Autoconf 2.57a. Invocation command line was
18764 CONFIG_FILES = $CONFIG_FILES
18765 CONFIG_HEADERS = $CONFIG_HEADERS
18766 CONFIG_LINKS = $CONFIG_LINKS
18767 CONFIG_COMMANDS = $CONFIG_COMMANDS
18771 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18775 # Files that config.status was made for.
18776 if test -n "$ac_config_files"; then
18777 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18780 if test -n "$ac_config_headers"; then
18781 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18784 if test -n "$ac_config_links"; then
18785 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18788 if test -n "$ac_config_commands"; then
18789 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18792 cat >>$CONFIG_STATUS <<\_ACEOF
18795 \`$as_me' instantiates files from templates according to the
18796 current configuration.
18798 Usage: $0 [OPTIONS] [FILE]...
18800 -h, --help print this help, then exit
18801 -V, --version print version number, then exit
18802 -q, --quiet do not print progress messages
18803 -d, --debug don't remove temporary files
18804 --recheck update $as_me by reconfiguring in the same conditions
18805 --file=FILE[:TEMPLATE]
18806 instantiate the configuration file FILE
18807 --header=FILE[:TEMPLATE]
18808 instantiate the configuration header FILE
18810 Configuration files:
18813 Configuration headers:
18816 Configuration commands:
18819 Report bugs to <bug-autoconf@gnu.org>."
18822 cat >>$CONFIG_STATUS <<_ACEOF
18825 configured by $0, generated by GNU Autoconf 2.57a,
18826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18828 Copyright (C) 2003 Free Software Foundation, Inc.
18829 This config.status script is free software; the Free Software Foundation
18830 gives unlimited permission to copy, distribute and modify it."
18835 cat >>$CONFIG_STATUS <<\_ACEOF
18836 # If no file are specified by the user, then we need to provide default
18837 # value. By we need to know if files were specified by the user.
18843 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18844 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18852 *) # This is not an option, so the user has probably given explicit
18855 ac_need_defaults
=false
;;
18859 # Handling of the options.
18861 cat >>$CONFIG_STATUS <<\_ACEOF
18862 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18864 --version |
--vers* |
-V )
18865 echo "$ac_cs_version"; exit 0 ;;
18867 # Conflict between --help and --header
18868 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18869 Try \`$0 --help' for more information." >&5
18870 echo "$as_me: error: ambiguous option: $1
18871 Try \`$0 --help' for more information." >&2;}
18872 { (exit 1); exit 1; }; };;
18873 --help |
--hel |
-h )
18874 echo "$ac_cs_usage"; exit 0 ;;
18875 --debug |
--d* |
-d )
18877 --file |
--fil |
--fi |
--f )
18879 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18880 ac_need_defaults
=false
;;
18881 --header |
--heade |
--head |
--hea )
18883 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18884 ac_need_defaults
=false
;;
18885 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18886 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18889 # This is an error.
18890 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18891 Try \`$0 --help' for more information." >&5
18892 echo "$as_me: error: unrecognized option: $1
18893 Try \`$0 --help' for more information." >&2;}
18894 { (exit 1); exit 1; }; } ;;
18896 *) ac_config_targets
="$ac_config_targets $1" ;;
18902 ac_configure_extra_args
=
18904 if $ac_cs_silent; then
18906 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18910 cat >>$CONFIG_STATUS <<_ACEOF
18911 if \$ac_cs_recheck; then
18912 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18913 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18918 cat >>$CONFIG_STATUS <<_ACEOF
18920 # INIT-COMMANDS section.
18923 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18929 cat >>$CONFIG_STATUS <<\_ACEOF
18930 for ac_config_target
in $ac_config_targets
18932 case "$ac_config_target" in
18933 # Handling of arguments.
18934 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18935 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18936 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18937 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18938 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18939 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18940 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18941 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18942 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18943 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18944 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18945 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18946 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18947 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18948 { (exit 1); exit 1; }; };;
18952 # If the user did not use the arguments to specify the items to instantiate,
18953 # then the envvar interface is used. Set only those that are not.
18954 # We use the long form for the default assignment because of an extremely
18955 # bizarre bug on SunOS 4.1.3.
18956 if $ac_need_defaults; then
18957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18962 # Have a temporary directory for convenience. Make it in the build tree
18963 # simply because there is no reason to put it here, and in addition,
18964 # creating and moving files from /tmp can sometimes cause problems.
18965 # Create a temporary directory, and hook for its removal unless debugging.
18968 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18969 trap '{ (exit 1); exit 1; }' 1 2 13 15
18972 # Create a (secure) tmp directory for tmp files.
18975 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18976 test -n "$tmp" && test -d "$tmp"
18979 tmp
=.
/confstat$$
-$RANDOM
18980 (umask 077 && mkdir
$tmp)
18983 echo "$me: cannot create a temporary directory in ." >&2
18984 { (exit 1); exit 1; }
18989 cat >>$CONFIG_STATUS <<_ACEOF
18992 # CONFIG_FILES section.
18995 # No need to generate the scripts if there are no CONFIG_FILES.
18996 # This happens for instance when ./config.status config.h
18997 if test -n "\$CONFIG_FILES"; then
18998 # Protect against being on the right side of a sed subst in config.status.
18999 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19000 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19001 s,@SHELL@,$SHELL,;t t
19002 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19003 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19004 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19005 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19006 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19007 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19008 s,@exec_prefix@,$exec_prefix,;t t
19009 s,@prefix@,$prefix,;t t
19010 s,@program_transform_name@,$program_transform_name,;t t
19011 s,@bindir@,$bindir,;t t
19012 s,@sbindir@,$sbindir,;t t
19013 s,@libexecdir@,$libexecdir,;t t
19014 s,@datadir@,$datadir,;t t
19015 s,@sysconfdir@,$sysconfdir,;t t
19016 s,@sharedstatedir@,$sharedstatedir,;t t
19017 s,@localstatedir@,$localstatedir,;t t
19018 s,@libdir@,$libdir,;t t
19019 s,@includedir@,$includedir,;t t
19020 s,@oldincludedir@,$oldincludedir,;t t
19021 s,@infodir@,$infodir,;t t
19022 s,@mandir@,$mandir,;t t
19023 s,@build_alias@,$build_alias,;t t
19024 s,@host_alias@,$host_alias,;t t
19025 s,@target_alias@,$target_alias,;t t
19026 s,@DEFS@,$DEFS,;t t
19027 s,@ECHO_C@,$ECHO_C,;t t
19028 s,@ECHO_N@,$ECHO_N,;t t
19029 s,@ECHO_T@,$ECHO_T,;t t
19030 s,@LIBS@,$LIBS,;t t
19031 s,@build@,$build,;t t
19032 s,@build_cpu@,$build_cpu,;t t
19033 s,@build_vendor@,$build_vendor,;t t
19034 s,@build_os@,$build_os,;t t
19035 s,@host@,$host,;t t
19036 s,@host_cpu@,$host_cpu,;t t
19037 s,@host_vendor@,$host_vendor,;t t
19038 s,@host_os@,$host_os,;t t
19040 s,@CFLAGS@,$CFLAGS,;t t
19041 s,@LDFLAGS@,$LDFLAGS,;t t
19042 s,@CPPFLAGS@,$CPPFLAGS,;t t
19043 s,@ac_ct_CC@,$ac_ct_CC,;t t
19044 s,@EXEEXT@,$EXEEXT,;t t
19045 s,@OBJEXT@,$OBJEXT,;t t
19046 s,@LN_S@,$LN_S,;t t
19048 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19049 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19050 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19051 s,@RANLIB@,$RANLIB,;t t
19052 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19053 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19054 s,@EGREP@,$EGREP,;t t
19055 s,@LIBSOUND@,$LIBSOUND,;t t
19056 s,@SET_MAKE@,$SET_MAKE,;t t
19057 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19058 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19059 s,@GTK_LIBS@,$GTK_LIBS,;t t
19060 s,@ALLOCA@,$ALLOCA,;t t
19061 s,@liblockfile@,$liblockfile,;t t
19062 s,@LIBOBJS@,$LIBOBJS,;t t
19063 s,@NEED_SETGID@,$NEED_SETGID,;t t
19064 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19065 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19066 s,@version@,$version,;t t
19067 s,@configuration@,$configuration,;t t
19068 s,@canonical@,$canonical,;t t
19069 s,@srcdir@,$srcdir,;t t
19070 s,@lispdir@,$lispdir,;t t
19071 s,@locallisppath@,$locallisppath,;t t
19072 s,@lisppath@,$lisppath,;t t
19073 s,@x_default_search_path@,$x_default_search_path,;t t
19074 s,@etcdir@,$etcdir,;t t
19075 s,@archlibdir@,$archlibdir,;t t
19076 s,@docdir@,$docdir,;t t
19077 s,@bitmapdir@,$bitmapdir,;t t
19078 s,@gamedir@,$gamedir,;t t
19079 s,@gameuser@,$gameuser,;t t
19080 s,@c_switch_system@,$c_switch_system,;t t
19081 s,@c_switch_machine@,$c_switch_machine,;t t
19082 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19083 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19084 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19085 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19086 s,@machfile@,$machfile,;t t
19087 s,@opsysfile@,$opsysfile,;t t
19088 s,@carbon_appdir@,$carbon_appdir,;t t
19089 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19094 cat >>$CONFIG_STATUS <<\_ACEOF
19095 # Split the substitutions into bite-sized pieces for seds with
19096 # small command number limits, like on Digital OSF/1 and HP-UX.
19097 ac_max_sed_lines
=48
19098 ac_sed_frag
=1 # Number of current file.
19099 ac_beg
=1 # First line for current file.
19100 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19103 while $ac_more_lines; do
19104 if test $ac_beg -gt 1; then
19105 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19107 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19109 if test ! -s $tmp/subs.frag
; then
19110 ac_more_lines
=false
19112 # The purpose of the label and of the branching condition is to
19113 # speed up the sed processing (if there are no `@' at all, there
19114 # is no need to browse any of the substitutions).
19115 # These are the two extra sed commands mentioned above.
19117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19118 if test -z "$ac_sed_cmds"; then
19119 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19121 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19123 ac_sed_frag
=`expr $ac_sed_frag + 1`
19125 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19128 if test -z "$ac_sed_cmds"; then
19131 fi # test -n "$CONFIG_FILES"
19134 cat >>$CONFIG_STATUS <<\_ACEOF
19135 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19138 - |
*:- |
*:-:* ) # input from stdin
19140 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19141 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19142 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19143 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19144 * ) ac_file_in
=$ac_file.
in ;;
19147 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19148 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19150 X"$ac_file" : 'X\(//\)[^/]' \| \
19151 X"$ac_file" : 'X\(//\)$' \| \
19152 X"$ac_file" : 'X\(/\)' \| \
19153 . : '\(.\)' 2>/dev/null ||
19155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19157 /^X\(\/\/\)$/{ s//\1/; q; }
19158 /^X\(\/\).*/{ s//\1/; q; }
19160 { if $as_mkdir_p; then
19165 while test ! -d "$as_dir"; do
19166 as_dirs
="$as_dir $as_dirs"
19167 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19169 X"$as_dir" : 'X\(//\)[^/]' \| \
19170 X"$as_dir" : 'X\(//\)$' \| \
19171 X"$as_dir" : 'X\(/\)' \| \
19172 . : '\(.\)' 2>/dev/null ||
19174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19176 /^X\(\/\/\)$/{ s//\1/; q; }
19177 /^X\(\/\).*/{ s//\1/; q; }
19180 test ! -n "$as_dirs" || mkdir
$as_dirs
19181 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19182 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19183 { (exit 1); exit 1; }; }; }
19187 if test "$ac_dir" != .
; then
19188 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19189 # A "../" for each directory in $ac_dir_suffix.
19190 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19192 ac_dir_suffix
= ac_top_builddir
=
19196 .
) # No --srcdir option. We are building in place.
19198 if test -z "$ac_top_builddir"; then
19201 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19203 [\\/]* | ?
:[\\/]* ) # Absolute path.
19204 ac_srcdir
=$srcdir$ac_dir_suffix;
19205 ac_top_srcdir
=$srcdir ;;
19206 *) # Relative path.
19207 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19208 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19210 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19212 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19213 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19214 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19215 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19219 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19220 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
19223 if test x
"$ac_file" != x-
; then
19224 { echo "$as_me:$LINENO: creating $ac_file" >&5
19225 echo "$as_me: creating $ac_file" >&6;}
19228 # Let's still pretend it is `configure' which instantiates (i.e., don't
19229 # use $as_me), people would be surprised to read:
19230 # /* config.h. Generated by config.status. */
19231 if test x
"$ac_file" = x-
; then
19234 configure_input
="$ac_file. "
19236 configure_input
=$configure_input"Generated from `echo $ac_file_in |
19237 sed 's,.*/,,'` by configure."
19239 # First look for the input files in the build tree, otherwise in the
19241 ac_file_inputs
=`IFS=:
19242 for f in $ac_file_in; do
19244 -) echo $tmp/stdin ;;
19246 # Absolute (can't be DOS-style, as IFS=:)
19247 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19248 echo "$as_me: error: cannot find input file: $f" >&2;}
19249 { (exit 1); exit 1; }; }
19252 if test -f "$f"; then
19255 elif test -f "$srcdir/$f"; then
19260 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19261 echo "$as_me: error: cannot find input file: $f" >&2;}
19262 { (exit 1); exit 1; }; }
19265 done` ||
{ (exit 1); exit 1; }
19267 cat >>$CONFIG_STATUS <<_ACEOF
19271 cat >>$CONFIG_STATUS <<\_ACEOF
19273 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19274 s
,@configure_input@
,$configure_input,;t t
19275 s
,@srcdir@
,$ac_srcdir,;t t
19276 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19277 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19278 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19279 s
,@builddir@
,$ac_builddir,;t t
19280 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19281 s
,@top_builddir@
,$ac_top_builddir,;t t
19282 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19283 s
,@INSTALL@
,$ac_INSTALL,;t t
19284 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19286 if test x"$ac_file" != x-; then
19287 mv $tmp/out $ac_file
19295 cat >>$CONFIG_STATUS <<\_ACEOF
19298 # CONFIG_HEADER section.
19301 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19302 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19304 # ac_d sets the value in "#define NAME VALUE" lines.
19305 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19306 ac_dB
='[ ].*$,\1#\2'
19309 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19310 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19311 ac_uB
='$,\1#\2define\3'
19315 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19318 - |
*:- |
*:-:* ) # input from stdin
19320 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19321 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19322 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19323 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19324 * ) ac_file_in
=$ac_file.
in ;;
19327 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19328 echo "$as_me: creating $ac_file" >&6;}
19330 # First look for the input files in the build tree, otherwise in the
19332 ac_file_inputs
=`IFS=:
19333 for f in $ac_file_in; do
19335 -) echo $tmp/stdin ;;
19337 # Absolute (can't be DOS-style, as IFS=:)
19338 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19339 echo "$as_me: error: cannot find input file: $f" >&2;}
19340 { (exit 1); exit 1; }; }
19341 # Do quote $f, to prevent DOS paths from being IFS'd.
19344 if test -f "$f"; then
19347 elif test -f "$srcdir/$f"; then
19352 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19353 echo "$as_me: error: cannot find input file: $f" >&2;}
19354 { (exit 1); exit 1; }; }
19357 done` ||
{ (exit 1); exit 1; }
19358 # Remove the trailing spaces.
19359 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19363 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19364 # `conftest.undefs', that substitutes the proper values into
19365 # config.h.in to produce config.h. The first handles `#define'
19366 # templates, and the second `#undef' templates.
19367 # And first: Protect against being on the right side of a sed subst in
19368 # config.status. Protect against being in an unquoted here document
19369 # in config.status.
19370 rm -f conftest.defines conftest.undefs
19371 # Using a here document instead of a string reduces the quoting nightmare.
19372 # Putting comments in sed scripts is not portable.
19374 # `end' is used to avoid that the second main sed command (meant for
19375 # 0-ary CPP macros) applies to n-ary macro definitions.
19376 # See the Autoconf documentation for `clear'.
19377 cat >confdef2sed.
sed <<\_ACEOF
19382 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19384 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19387 # If some macros were called several times there might be several times
19388 # the same #defines, which is useless. Nevertheless, we may not want to
19389 # sort them, since we want the *last* AC-DEFINE to be honored.
19390 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19391 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19392 rm -f confdef2sed.sed
19394 # This sed command replaces #undef with comments. This is necessary, for
19395 # example, in the case of _POSIX_SOURCE, which is predefined and required
19396 # on some systems where configure will not decide to define it.
19397 cat >>conftest.undefs <<\_ACEOF
19398 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19401 # Break up conftest.defines because some shells have a limit on the size
19402 # of here documents, and old seds have small limits too (100 cmds).
19403 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19404 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19405 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19406 echo ' :' >>$CONFIG_STATUS
19407 rm -f conftest.tail
19408 while grep . conftest.defines >/dev/null
19410 # Write a limited-size here document to $tmp/defines.sed.
19411 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19412 # Speed up: don't consider the non `#define' lines.
19413 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19414 # Work around the forget-to-reset-the-flag bug.
19415 echo 't clr' >>$CONFIG_STATUS
19416 echo ': clr' >>$CONFIG_STATUS
19417 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19419 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19421 mv $tmp/out $tmp/in
19423 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19424 rm -f conftest.defines
19425 mv conftest.
tail conftest.defines
19427 rm -f conftest.defines
19428 echo ' fi # grep' >>$CONFIG_STATUS
19429 echo >>$CONFIG_STATUS
19431 # Break up conftest.undefs because some shells have a limit on the size
19432 # of here documents, and old seds have small limits too (100 cmds).
19433 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19434 rm -f conftest.
tail
19435 while grep . conftest.undefs
>/dev
/null
19437 # Write a limited-size here document to $tmp/undefs.sed.
19438 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19439 # Speed up: don't consider the non
`#undef'
19440 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19441 # Work around the forget-to-reset-the-flag bug.
19442 echo 't clr' >>$CONFIG_STATUS
19443 echo ': clr' >>$CONFIG_STATUS
19444 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19446 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19448 mv $tmp/out $tmp/in
19450 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19451 rm -f conftest.undefs
19452 mv conftest.tail conftest.undefs
19454 rm -f conftest.undefs
19456 cat >>$CONFIG_STATUS <<\_ACEOF
19457 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19458 # use $as_me), people would be surprised to read:
19459 # /* config.h. Generated by config.status. */
19460 if test x
"$ac_file" = x-
; then
19461 echo "/* Generated by configure. */" >$tmp/config.h
19463 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19465 cat $tmp/in >>$tmp/config.h
19467 if test x
"$ac_file" != x-
; then
19468 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19469 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19470 echo "$as_me: $ac_file is unchanged" >&6;}
19472 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19474 X"$ac_file" : 'X\(//\)[^/]' \| \
19475 X"$ac_file" : 'X\(//\)$' \| \
19476 X"$ac_file" : 'X\(/\)' \| \
19477 . : '\(.\)' 2>/dev/null ||
19479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19481 /^X\(\/\/\)$/{ s//\1/; q; }
19482 /^X\(\/\).*/{ s//\1/; q; }
19484 { if $as_mkdir_p; then
19489 while test ! -d "$as_dir"; do
19490 as_dirs
="$as_dir $as_dirs"
19491 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19493 X"$as_dir" : 'X\(//\)[^/]' \| \
19494 X"$as_dir" : 'X\(//\)$' \| \
19495 X"$as_dir" : 'X\(/\)' \| \
19496 . : '\(.\)' 2>/dev/null ||
19498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19500 /^X\(\/\/\)$/{ s//\1/; q; }
19501 /^X\(\/\).*/{ s//\1/; q; }
19504 test ! -n "$as_dirs" || mkdir
$as_dirs
19505 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19506 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19507 { (exit 1); exit 1; }; }; }
19510 mv $tmp/config.h
$ac_file
19514 rm -f $tmp/config.h
19518 cat >>$CONFIG_STATUS <<\_ACEOF
19521 # CONFIG_COMMANDS section.
19523 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19524 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19525 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19526 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19527 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19528 X"$ac_dest" : 'X\(//\)[^/]' \| \
19529 X"$ac_dest" : 'X\(//\)$' \| \
19530 X"$ac_dest" : 'X\(/\)' \| \
19531 . : '\(.\)' 2>/dev/null ||
19533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19535 /^X\(\/\/\)$/{ s//\1/; q; }
19536 /^X\(\/\).*/{ s//\1/; q; }
19540 if test "$ac_dir" != .
; then
19541 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19542 # A "../" for each directory in $ac_dir_suffix.
19543 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19545 ac_dir_suffix
= ac_top_builddir
=
19549 .
) # No --srcdir option. We are building in place.
19551 if test -z "$ac_top_builddir"; then
19554 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19556 [\\/]* | ?
:[\\/]* ) # Absolute path.
19557 ac_srcdir
=$srcdir$ac_dir_suffix;
19558 ac_top_srcdir
=$srcdir ;;
19559 *) # Relative path.
19560 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19561 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19563 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19565 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
19566 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19567 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19568 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19571 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19572 echo "$as_me: executing $ac_dest commands" >&6;}
19576 ### Make the necessary directories, if they don't exist.
19577 for dir
in etc lisp
; do
19578 test -d ${dir} || mkdir
${dir}
19581 # Build src/Makefile from ${srcdir}/src/Makefile.c
19582 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19583 # This must be done after src/config.h is built, since we rely on that file.
19585 # Now get this: Some word that is part of the ${srcdir} directory name
19586 # or the ${configuration} value might, just might, happen to be an
19587 # identifier like `sun4' or `i386' or something, and be predefined by
19588 # the C preprocessor to some helpful value like 1, or maybe the empty
19589 # string. Needless to say consequent macro substitutions are less
19590 # than conducive to the makefile finding the correct directory.
19591 undefs
="`echo $top_srcdir $configuration $canonical |
19592 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19593 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19596 echo creating src
/epaths.h
19597 ${MAKE-make} epaths-force
19599 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19600 # `..' to `. .' unless invoked with -traditional
19602 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19603 CPPFLAGS
="$CPPFLAGS -traditional"
19606 echo creating lib-src
/Makefile
19608 rm -f junk.c junk1.c junk2.c
19609 sed -e '/start of cpp stuff/q' \
19610 < Makefile.c
> junk1.c
19611 sed -e '1,/start of cpp stuff/d'\
19612 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19613 < Makefile.c
> junk.c
19614 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19615 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19616 cat junk1.c junk2.c
> Makefile.new
19617 rm -f junk.c junk1.c junk2.c
19618 chmod 444 Makefile.new
19619 mv -f Makefile.new Makefile
19622 echo creating src
/Makefile
19624 rm -f junk.c junk1.c junk2.c
19625 sed -e '/start of cpp stuff/q' \
19626 < Makefile.c
> junk1.c
19627 sed -e '1,/start of cpp stuff/d'\
19628 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19629 < Makefile.c
> junk.c
19630 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
19631 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19632 cat junk1.c junk2.c
> Makefile.new
19633 rm -f junk.c junk1.c junk2.c
19634 chmod 444 Makefile.new
19635 mv -f Makefile.new Makefile
19638 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
19639 echo creating src
/.gdbinit
19640 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
19643 # This is how we know whether to re-run configure in certain cases.
19644 touch src
/config.stamp
19651 cat >>$CONFIG_STATUS <<\_ACEOF
19653 { (exit 0); exit 0; }
19655 chmod +x
$CONFIG_STATUS
19656 ac_clean_files
=$ac_clean_files_save
19659 # configure is writing to config.log, and then calls config.status.
19660 # config.status does its own redirection, appending to config.log.
19661 # Unfortunately, on DOS this fails, as config.log is still kept open
19662 # by configure, so config.status won't be able to write to it; its
19663 # output is simply discarded. So we exec the FD to /dev/null,
19664 # effectively closing config.log, so it can be properly (re)opened and
19665 # appended to by config.status. When coming back to configure, we
19666 # need to make the FD available again.
19667 if test "$no_create" != yes; then
19669 ac_config_status_args
=
19670 test "$silent" = yes &&
19671 ac_config_status_args
="$ac_config_status_args --quiet"
19673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19676 # would make configure fail if this is the last instruction.
19677 $ac_cs_success ||
{ (exit 1); exit 1; }