2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="src/lisp.h"
274 ac_config_libobj_dir
=src
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
849 if test -n "$ac_init_help"; then
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --enable-carbon-app[=DIR
] [DIR
=/Application
]
857 specify
install directory
for Emacs.app on Mac OS X
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --disable-largefile omit support
for large files
863 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
864 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
865 --without-gcc don
't use GCC to compile Emacs if GCC is found
866 --without-pop don't support POP
mail retrieval with movemail
867 --with-kerberos support Kerberos-authenticated POP
868 --with-kerberos5 support Kerberos version
5 authenticated POP
869 --with-hesiod support Hesiod to get the POP server
host
870 --without-sound don
't compile with sound support
871 --with-x-toolkit=KIT use an X toolkit
872 (KIT = yes/lucid/athena/motif/gtk/no)
873 --with-xpm use -lXpm for displaying XPM images
874 --with-jpeg use -ljpeg for displaying JPEG images
875 --with-tiff use -ltiff for displaying TIFF images
876 --with-gif use -lungif for displaying GIF images
877 --with-png use -lpng for displaying PNG images
878 --with-gtk use GTK (same as --with-x-toolkit=gtk)
879 --with-pkg-config-prog Path to pkg-config to use for finding GTK
880 --without-toolkit-scroll-bars
881 don't use Motif or Xaw3d scroll bars
882 --without-xim don
't use X11 XIM
883 --without-carbon don't use Carbon GUI on Mac OS X
884 --with-x use the X Window System
886 Some influential environment variables
:
887 CC C compiler
command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
890 nonstandard directory
<lib dir
>
891 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
892 headers
in a nonstandard directory
<include dir
>
895 Use these variables to override the choices made by
`configure' or to help
896 it to find libraries and programs with nonstandard names/locations.
901 if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
908 if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
913 ac_dir_suffix= ac_top_builddir=
917 .) # No --srcdir option. We are building in place.
919 if test -z "$ac_top_builddir"; then
922 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
934 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
935 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
936 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.57. Invocation command line was
985 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
986 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
987 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
988 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
989 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
992 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
994 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
996 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
997 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
998 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1000 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_must_keep_next=false
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 -* ) ac_must_keep_next=true ;;
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close
' the trap.
1080 trap 'exit_status
=$?
1081 # Save into config.log some information that might help in debugging.
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1091 # The following way of writing the cache mishandles newlines in values,
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1114 for ac_var
in $ac_subst_vars
1116 eval ac_val
=$
`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1121 if test -n "$ac_subst_files"; then
1128 for ac_var
in $ac_subst_files
1130 eval ac_val
=$
`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -s confdefs.h
; then
1143 sed "/^$/d" confdefs.h |
sort
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1150 rm -f core core.
* *.core
&&
1151 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's
/^
/|
/' "$ac_site_file" >&5
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1226 # Check that the precious variables saved in the cache have kept the same
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1239 ac_cache_corrupted=: ;;
1241 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1248 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1273 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1280 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1304 test "$program_prefix" != NONE &&
1305 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1306 # Use a double $ so make ignores it.
1307 test "$program_suffix" != NONE &&
1308 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1309 # Double any \ or $. echo might interpret backslashes.
1310 # By default was `s,x,x', remove it
if useless.
1311 cat <<\_ACEOF
>conftest.
sed
1312 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1314 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1318 lispdir
='${datadir}/emacs/${version}/lisp'
1319 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1320 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1321 lisppath
='${locallisppath}:${lispdir}'
1322 etcdir
='${datadir}/emacs/${version}/etc'
1323 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1324 docdir
='${datadir}/emacs/${version}/etc'
1325 gamedir
='${localstatedir}/games/emacs'
1330 # Check whether --with-gcc or --without-gcc was given.
1331 if test "${with_gcc+set}" = set; then
1336 # Check whether --with-pop or --without-pop was given.
1337 if test "${with_pop+set}" = set; then
1339 if test "$withval" = yes; then
1340 cat >>confdefs.h
<<\_ACEOF
1341 #define MAIL_USE_POP 1
1347 cat >>confdefs.h
<<\_ACEOF
1348 #define MAIL_USE_POP 1
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval
="$with_kerberos"
1357 cat >>confdefs.h
<<\_ACEOF
1364 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1365 if test "${with_kerberos5+set}" = set; then
1366 withval
="$with_kerberos5"
1367 if test "${with_kerberos5+set}" = set; then
1368 if test "${with_kerberos+set}" != set; then
1370 cat >>confdefs.h
<<\_ACEOF
1377 cat >>confdefs.h
<<\_ACEOF
1383 # Check whether --with-hesiod or --without-hesiod was given.
1384 if test "${with_hesiod+set}" = set; then
1385 withval
="$with_hesiod"
1387 cat >>confdefs.h
<<\_ACEOF
1394 # Check whether --with-sound or --without-sound was given.
1395 if test "${with_sound+set}" = set; then
1396 withval
="$with_sound"
1401 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1402 if test "${with_x_toolkit+set}" = set; then
1403 withval
="$with_x_toolkit"
1404 case "${withval}" in
1405 y | ye |
yes ) val
=athena
;;
1407 l | lu | luc | luci | lucid
) val
=lucid
;;
1408 a |
at | ath | athe | athen | athena
) val
=athena
;;
1409 m | mo | mot | moti | motif
) val
=motif
;;
1410 g | gt | gtk
) val
=gtk
;;
1412 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1413 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1414 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1415 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1416 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1417 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1418 { (exit 1); exit 1; }; }
1425 # Check whether --with-xpm or --without-xpm was given.
1426 if test "${with_xpm+set}" = set; then
1431 # Check whether --with-jpeg or --without-jpeg was given.
1432 if test "${with_jpeg+set}" = set; then
1433 withval
="$with_jpeg"
1437 # Check whether --with-tiff or --without-tiff was given.
1438 if test "${with_tiff+set}" = set; then
1439 withval
="$with_tiff"
1443 # Check whether --with-gif or --without-gif was given.
1444 if test "${with_gif+set}" = set; then
1449 # Check whether --with-png or --without-png was given.
1450 if test "${with_png+set}" = set; then
1455 # Check whether --with-gtk or --without-gtk was given.
1456 if test "${with_gtk+set}" = set; then
1461 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1462 if test "${with_pkg_config_prog+set}" = set; then
1463 withval
="$with_pkg_config_prog"
1467 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1468 if test "${with_toolkit_scroll_bars+set}" = set; then
1469 withval
="$with_toolkit_scroll_bars"
1473 # Check whether --with-xim or --without-xim was given.
1474 if test "${with_xim+set}" = set; then
1479 # Check whether --with-carbon or --without-carbon was given.
1480 if test "${with_carbon+set}" = set; then
1481 withval
="$with_carbon"
1484 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1485 if test "${enable_carbon_app+set}" = set; then
1486 enableval
="$enable_carbon_app"
1487 carbon_appdir_x
=${enableval}
1490 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1491 if test "${enable_maintainer_mode+set}" = set; then
1492 enableval
="$enable_maintainer_mode"
1493 USE_MAINTAINER_MODE
=$enableval
1495 USE_MAINTAINER_MODE
=no
1497 if test $USE_MAINTAINER_MODE = yes; then
1504 #### Make srcdir absolute, if it isn't already. It's important to
1505 #### avoid running the path through pwd unnecessarily, since pwd can
1506 #### give you automounter prefixes, which can go away. We do all this
1507 #### so Emacs can find its files when run uninstalled.
1508 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1513 ## We may be able to use the $PWD environment variable to make this
1514 ## absolute. But sometimes PWD is inaccurate.
1515 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1516 ## but that tested only for a well-formed and valid PWD,
1517 ## it did not object when PWD was well-formed and valid but just wrong.
1518 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1522 srcdir
="`(cd ${srcdir}; pwd)`"
1525 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1528 #### Check if the source directory already has a configured system in it.
1529 if test `pwd` != `(cd ${srcdir} && pwd)` \
1530 && test -f "${srcdir}/src/config.h" ; then
1531 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1532 as a build directory right now; it has been configured in its own
1533 right. To configure in another directory as well, you MUST
1534 use GNU make. If you do not have GNU make, then you must
1535 now do \`make distclean' in ${srcdir},
1536 and then run $0 again." >&5
1537 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1538 as a build directory right now; it has been configured in its own
1539 right. To configure in another directory as well, you MUST
1540 use GNU make. If you do not have GNU make, then you must
1541 now do \`make distclean' in ${srcdir},
1542 and then run $0 again." >&2;}
1544 extrasub
='/^VPATH[ ]*=/c\
1545 vpath %.c $(srcdir)\
1546 vpath %.h $(srcdir)\
1547 vpath %.y $(srcdir)\
1548 vpath %.l $(srcdir)\
1549 vpath %.s $(srcdir)\
1550 vpath %.in $(srcdir)\
1551 vpath %.texi $(srcdir)'
1554 #### Given the configuration name, set machfile and opsysfile to the
1555 #### names of the m/*.h and s/*.h files we should use.
1557 ### Canonicalize the configuration name.
1560 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1561 if test -f $ac_dir/install-sh
; then
1563 ac_install_sh
="$ac_aux_dir/install-sh -c"
1565 elif test -f $ac_dir/install.sh
; then
1567 ac_install_sh
="$ac_aux_dir/install.sh -c"
1569 elif test -f $ac_dir/shtool
; then
1571 ac_install_sh
="$ac_aux_dir/shtool install -c"
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1578 { (exit 1); exit 1; }; }
1580 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584 # Make sure we can run config.sub.
1585 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1586 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1587 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1588 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: checking build system type" >&5
1591 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1592 if test "${ac_cv_build+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 ac_cv_build_alias
=$build_alias
1596 test -z "$ac_cv_build_alias" &&
1597 ac_cv_build_alias
=`$ac_config_guess`
1598 test -z "$ac_cv_build_alias" &&
1599 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1600 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1601 { (exit 1); exit 1; }; }
1602 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1609 echo "${ECHO_T}$ac_cv_build" >&6
1611 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616 echo "$as_me:$LINENO: checking host system type" >&5
1617 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1618 if test "${ac_cv_host+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_host_alias
=$host_alias
1622 test -z "$ac_cv_host_alias" &&
1623 ac_cv_host_alias
=$ac_cv_build_alias
1624 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1631 echo "${ECHO_T}$ac_cv_host" >&6
1633 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639 configuration
=${host_alias-$host}
1643 ### If you add support for a new configuration, add code to this
1644 ### switch statement to recognize your configuration name and select
1645 ### the appropriate operating system and machine description files.
1647 ### You would hope that you could choose an m/*.h file pretty much
1648 ### based on the machine portion of the configuration name, and an s-
1649 ### file based on the operating system portion. However, it turns out
1650 ### that each m/*.h file is pretty manufacturer-specific - for
1651 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1652 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1653 ### machines. So we basically have to have a special case for each
1654 ### configuration name.
1656 ### As far as handling version numbers on operating systems is
1657 ### concerned, make sure things will fail in a fixable way. If
1658 ### /etc/MACHINES doesn't say anything about version numbers, be
1659 ### prepared to handle anything reasonably. If version numbers
1660 ### matter, be sure /etc/MACHINES says something about it.
1662 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1663 ### "System V Release 4"; he writes, "The old convention encouraged
1664 ### confusion between `system' and `release' levels'."
1666 machine
='' opsys
='' unported
=no
1667 case "${canonical}" in
1672 case "${canonical}" in
1673 alpha
*-*-freebsd*) machine
=alpha
;;
1674 i
[3456]86-*-freebsd*) machine
=intel386
;;
1681 if test -f /usr
/lib
/crti.o
; then
1683 cat >>confdefs.h
<<\_ACEOF
1689 case "${canonical}" in
1690 alpha
*-*-netbsd*) machine
=alpha
;;
1691 i
[3456]86-*-netbsd*) machine
=intel386
;;
1693 # This is somewhat bogus.
1694 machine
=hp9000s300
;;
1695 powerpc-apple-netbsd
*) machine
=macppc
;;
1696 mips-
*-netbsd*) machine
=pmax
;;
1697 mipsel-
*-netbsd*) machine
=pmax
;;
1698 mipseb-
*-netbsd*) machine
=pmax
;;
1699 ns32k-
*-netbsd*) machine
=ns32000
;;
1700 powerpc-
*-netbsd*) machine
=macppc
;;
1701 sparc
*-*-netbsd*) machine
=sparc
;;
1702 vax-
*-netbsd*) machine
=vax
;;
1703 arm-
*-netbsd*) machine
=arm
;;
1710 case "${canonical}" in
1711 alpha
*-*-openbsd*) machine
=alpha
;;
1712 i386-
*-openbsd*) machine
=intel386
;;
1713 m68k-
*-openbsd*) machine
=hp9000s300
;;
1714 mipsel-
*-openbsd*) machine
=pmax
;;
1715 ns32k-
*-openbsd*) machine
=ns32000
;;
1716 sparc-
*-openbsd*) machine
=sparc
;;
1717 vax-
*-openbsd*) machine
=vax
;;
1722 arm-acorn-riscix1.1
* )
1723 machine
=acorn opsys
=riscix1-1
1725 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1726 ## This name is riscix12 instead of riscix1.2
1727 ## to avoid a file name conflict on MSDOS.
1728 machine
=acorn opsys
=riscix12
1734 case "${canonical}" in
1735 i
[345]86-*-bsdi*) machine
=intel386
;;
1736 sparc-
*-bsdi*) machine
=sparc
;;
1737 powerpc-
*-bsdi*) machine
=macppc
;;
1739 case "${canonical}" in
1740 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1741 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1742 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1743 *-*-bsdi3* ) opsys
=bsdos3
;;
1744 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1749 ## Strictly speaking, we need the version of the alliant operating
1750 ## system to choose the right machine file, but currently the
1751 ## configuration name doesn't tell us enough to choose the right
1752 ## one; we need to give alliants their own operating system name to
1753 ## do this right. When someone cares, they can help us.
1755 machine
=alliant4 opsys
=bsd4-2
1758 machine
=alliant-2800 opsys
=bsd4-3
1761 ## Alpha (DEC) machines.
1763 machine
=alpha opsys
=osf1
1764 # This is needed to find X11R6.1 libraries for certain tests.
1765 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1766 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1767 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1768 # due to non-traditional preprocessing with the current compiler
1769 # defaults. OSF 4 can also have that compiler version, and there
1770 # seems always to have been a usable /usr/bin/cpp.
1771 NON_GNU_CPP
=/usr
/bin
/cpp
1772 case "${canonical}" in
1773 alpha
*-dec-osf[5-9]*)
1778 alpha
*-*-linux-gnu* )
1779 machine
=alpha opsys
=gnu-linux
1783 machine
=arm opsys
=gnu-linux
1788 machine
=macppc opsys
=gnu-linux
1793 machine
=altos opsys
=usg5-2
1798 machine
=amdahl opsys
=usg5-2-2
1801 ## Apollo, Domain/OS
1803 machine
=apollo opsys
=bsd4-3
1806 ## AT&T 3b2, 3b5, 3b15, 3b20
1808 machine
=att3b opsys
=usg5-2-2
1811 ## AT&T 3b1 - The Mighty Unix PC!
1813 machine
=7300 opsys
=usg5-2-2
1818 machine
=ibmrs6000 opsys
=aix3-2
1823 machine
=dpx2 opsys
=usg5-3
1828 machine
=sps7 opsys
=usg5-2
1831 ## CCI 5/32, 6/32 -- see "Tahoe".
1834 ## I don't know what configuration name to use for this; config.sub
1835 ## doesn't seem to know anything about it. Hey, Celerity users, get
1836 ## in touch with us!
1837 celerity-celerity-bsd
* )
1838 machine
=celerity opsys
=bsd4-2
1842 ## What operating systems does this chip run that Emacs has been
1846 ## We'll use the catch-all code at the bottom to guess the
1847 ## operating system.
1851 mips-compaq-nonstopux
* )
1852 machine
=nonstopux opsys
=nonstopux
1856 *-convex-bsd* |
*-convex-convexos* )
1857 machine
=convex opsys
=bsd4-3
1858 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1859 NON_GNU_CPP
="cc -E -P"
1863 i
[3456]86-cubix-sysv* )
1864 machine
=intel386 opsys
=usg5-3
1868 cydra
*-cydrome-sysv* )
1869 machine
=cydra5 opsys
=usg5-3
1872 ## Data General AViiON Machines
1873 ## DG changed naming conventions with the release of 5.4.4.10, they
1874 ## dropped the initial 5.4 but left the intervening R. Because of the
1875 ## R this shouldn't conflict with older versions of the OS (which I
1876 ## think were named like dgux4.*). In addition, DG new AViiONs series
1877 ## uses either Motorola M88k or Intel Pentium CPUs.
1878 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1879 machine
=aviion opsys
=dgux4
1881 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1882 ## This name is dgux5-4-3 instead of dgux5-4r3
1883 ## to avoid a file name conflict on MSDOS.
1884 machine
=aviion opsys
=dgux5-4-3
1886 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1887 machine
=aviion opsys
=dgux5-4r2
1890 machine
=aviion opsys
=dgux
1893 ## Data General AViiON Intel (x86) Machines
1894 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1895 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1896 i
[345]86-dg-dguxR4* )
1897 machine
=aviion-intel opsys
=dgux4
1901 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1902 machine
=pmax opsys
=bsd4-2
1904 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1905 machine
=pmax opsys
=bsd4-3
1908 machine
=pmax opsys
=ultrix4-3
1911 machine
=pmax opsys
=osf1
1913 mips-dec-mach_bsd4.3
* )
1914 machine
=pmax opsys
=mach-bsd4-3
1917 ## Motorola Delta machines
1918 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1919 machine
=delta opsys
=usg5-3
1920 if test -z "`type gnucc | grep 'not found'`"
1922 if test -s /etc
/167config
1923 then CC
="gnucc -m68040"
1924 else CC
="gnucc -m68881"
1927 if test -z "`type gcc | grep 'not found'`"
1933 m88k-motorola-sysv4
* )
1934 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1935 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1936 # I hope there are not other 4.0 versions for this machine
1937 # which really need usg5-4 instead.
1938 machine
=delta88k opsys
=usg5-4-2
1940 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1941 machine
=delta88k opsys
=usg5-3
1946 machine
=dual opsys
=usg5-2
1948 m68
*-dual-uniplus* )
1949 machine
=dual opsys
=unipl5-2
1954 machine
=elxsi opsys
=usg5-2
1959 machine
=ns16000 opsys
=umax
1962 ## The GEC 63 - apparently, this port isn't really finished yet.
1963 # I'm sure we finished off the last of the machines, though. -- fx
1965 ## Gould Power Node and NP1
1967 machine
=gould opsys
=bsd4-2
1970 machine
=gould opsys
=bsd4-3
1973 machine
=gould-np1 opsys
=bsd4-3
1976 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1977 ## as far as Emacs is concerned).
1979 # Build needs to be different on 7.0 and later releases
1980 case "`uname -r`" in
1981 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1982 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1984 NON_GNU_CPP
="/lib/cpp"
1986 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1988 machine
=nh3000 opsys
=cxux
1990 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1991 powerpc-harris-powerunix
)
1992 machine
=nh6000 opsys
=powerunix
1993 NON_GNU_CPP
="cc -Xo -E -P"
1995 ## SR2001/SR2201 running HI-UX/MPP
1996 hppa1.1
-hitachi-hiuxmpp* )
1997 machine
=sr2k opsys
=hiuxmpp
1999 hppa1.1
-hitachi-hiuxwe2* )
2000 machine
=sr2k opsys
=hiuxwe2
2003 xps
*-honeywell-sysv* )
2004 machine
=xps100 opsys
=usg5-2
2007 ## HP 9000 series 200 or 300
2009 machine
=hp9000s300 opsys
=bsd4-3
2011 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2013 case "`uname -r`" in
2014 ## Someone's system reports A.B8.05 for this.
2015 ## I wonder what other possibilities there are.
2016 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2017 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2018 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2019 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2020 *) machine
=hp9000s300 opsys
=hpux
;;
2024 ## HP 9000 series 700 and 800, running HP/UX
2026 machine
=hp800 opsys
=hpux
2029 machine
=hp800 opsys
=hpux8
2031 hppa
*-hp-hpux9shr* )
2032 machine
=hp800 opsys
=hpux9shr
2035 machine
=hp800 opsys
=hpux9
2037 hppa
*-hp-hpux10.2
* )
2038 machine
=hp800 opsys
=hpux10-20
2041 machine
=hp800 opsys
=hpux10
2043 hppa
*-hp-hpux1[1-9]* )
2044 machine
=hp800 opsys
=hpux11
2047 hppa
*-*-linux-gnu* )
2048 machine
=hp800 opsys
=gnu-linux
2051 ## HP 9000 series 700 and 800, running HP/UX
2053 ## Cross-compilation? Nah!
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2058 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2059 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2060 *) machine
=hp800 opsys
=hpux10
;;
2064 machine
=hp800 opsys
=nextstep
2069 machine
=orion opsys
=bsd4-2
2071 clipper-orion-bsd
* )
2072 machine
=orion105 opsys
=bsd4-2
2076 i
[3456]86-ibm-aix1.1
* )
2077 machine
=ibmps2-aix opsys
=usg5-2-2
2079 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2080 machine
=ibmps2-aix opsys
=usg5-3
2083 machine
=ibm370aix opsys
=usg5-3
2086 machine
=ibms390 opsys
=gnu-linux
2088 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2089 machine
=ibmrs6000 opsys
=aix3-1
2091 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2092 machine
=ibmrs6000 opsys
=aix3-2-5
2094 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2095 machine
=ibmrs6000 opsys
=aix4-1
2097 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2098 machine
=ibmrs6000 opsys
=aix4-2
2100 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2101 machine
=ibmrs6000 opsys
=aix4-2
2103 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2104 machine
=ibmrs6000 opsys
=aix4
2106 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2107 machine
=ibmrs6000 opsys
=aix4-1
2109 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2110 machine
=ibmrs6000 opsys
=aix3-2
2113 machine
=ibmrt opsys
=bsd4-3
2116 machine
=ibmrt opsys
=bsd4-2
2119 machine
=ibmrt opsys
=bsd4-3
2122 machine
=ibmrt opsys
=bsd4-2
2125 machine
=ibmrt opsys
=bsd4-3
2128 machine
=ibmrt opsys
=bsd4-3
2131 machine
=ibmrt-aix opsys
=usg5-2-2
2134 ## Integrated Solutions `Optimum V'
2136 machine
=isi-ov opsys
=bsd4-2
2139 machine
=isi-ov opsys
=bsd4-3
2142 ## Intel 386 machines where we do care about the manufacturer
2143 i
[3456]86-intsys-sysv* )
2144 machine
=is386 opsys
=usg5-2-2
2148 i
[3456]86-prime-sysv* )
2149 machine
=i386 opsys
=usg5-3
2152 ## Sequent Symmetry running Dynix
2153 i
[3456]86-sequent-bsd* )
2154 machine
=symmetry opsys
=bsd4-3
2157 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2158 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2159 machine
=sequent-ptx opsys
=ptx4
2160 NON_GNU_CPP
=/lib
/cpp
2163 ## Sequent Symmetry running DYNIX/ptx
2164 ## Use the old cpp rather than the newer ANSI one.
2165 i
[3456]86-sequent-ptx* )
2166 machine
=sequent-ptx opsys
=ptx
2167 NON_GNU_CPP
="/lib/cpp"
2170 ## ncr machine running svr4.3.
2171 i
[3456]86-ncr-sysv4.3
)
2172 machine
=ncr386 opsys
=usg5-4-3
2175 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2176 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2177 i
[3456]86-ncr-sysv* )
2178 machine
=ncr386 opsys
=usg5-4-2
2181 ## Intel Paragon OSF/1
2183 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2188 machine
=i860 opsys
=usg5-4
2189 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2190 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2193 ## Macintosh PowerPC
2194 powerpc
*-*-linux-gnu* )
2195 machine
=macppc opsys
=gnu-linux
2198 ## Masscomp machines
2199 m68
*-masscomp-rtu* )
2200 machine
=masscomp opsys
=rtu
2203 ## Megatest machines
2204 m68
*-megatest-bsd* )
2205 machine
=mega68 opsys
=bsd4-2
2208 ## Workstations sold by MIPS
2209 ## This is not necessarily all workstations using the MIPS processor -
2210 ## Irises are produced by SGI, and DECstations by DEC.
2212 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2213 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2214 ## it gives for choosing between the alternatives seems to be "Use
2215 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2216 ## the BSD world." I'll assume that these are instructions for
2217 ## handling two odd situations, and that every other situation
2218 ## should use mips.h and usg5-2-2, they being listed first.
2221 ## Fall through to the general code at the bottom to decide on the OS.
2223 mips-mips-riscos4
* )
2224 machine
=mips4 opsys
=bsd4-3
2225 NON_GNU_CC
="cc -systype bsd43"
2226 NON_GNU_CPP
="cc -systype bsd43 -E"
2228 mips-mips-riscos5
* )
2229 machine
=mips4 opsys
=riscos5
2230 NON_GNU_CC
="cc -systype bsd43"
2231 NON_GNU_CPP
="cc -systype bsd43 -E"
2234 machine
=mips opsys
=bsd4-3
2237 machine
=mips opsys
=usg5-2-2
2241 m68
*-next-* | m68k-
*-nextstep* )
2242 machine
=m68k opsys
=nextstep
2245 ## The complete machine from National Semiconductor
2247 machine
=ns32000 opsys
=usg5-2
2251 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2252 machine
=tower32 opsys
=usg5-2-2
2254 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2255 machine
=tower32v3 opsys
=usg5-3
2260 machine
=ews4800 opsys
=ux4800
2263 ## Nixdorf Targon 31
2264 m68
*-nixdorf-sysv* )
2265 machine
=targon31 opsys
=usg5-2-2
2270 machine
=nu opsys
=usg5-2
2275 machine
=plexus opsys
=usg5-2
2279 ## I don't really have any idea what sort of processor the Pyramid has,
2280 ## so I'm assuming it is its own architecture.
2281 pyramid-pyramid-bsd
* )
2282 machine
=pyramid opsys
=bsd4-2
2286 ns32k-sequent-bsd4.2
* )
2287 machine
=sequent opsys
=bsd4-2
2289 ns32k-sequent-bsd4.3
* )
2290 machine
=sequent opsys
=bsd4-3
2294 mips-siemens-sysv
* | mips-sni-sysv
*)
2295 machine
=mips-siemens opsys
=usg5-4
2296 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2297 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2300 ## Silicon Graphics machines
2301 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2303 machine
=irist opsys
=iris3-5
2305 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2306 machine
=irist opsys
=iris3-6
2310 machine
=iris4d opsys
=irix3-3
2313 machine
=iris4d opsys
=irix4-0
2316 machine
=iris4d opsys
=irix6-5
2317 # Without defining _LANGUAGE_C, things get masked out in the headers
2318 # so that, for instance, grepping for `free' in stdlib.h fails and
2319 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2320 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2321 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2324 machine
=iris4d opsys
=irix6-0
2325 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2326 # but presumably it does no harm.
2327 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2328 # -32 probably isn't necessary in later v.6s -- anyone know which?
2329 NON_GCC_TEST_OPTIONS
=-32
2331 mips-sgi-irix5.
[01]* )
2332 machine
=iris4d opsys
=irix5-0
2334 mips-sgi-irix5
* | mips-sgi-irix
* )
2335 machine
=iris4d opsys
=irix5-2
2340 machine
=news opsys
=bsd4-2
2343 machine
=news opsys
=bsd4-3
2345 m68
*-sony-newsos3* | m68
*-sony-news3*)
2346 machine
=news opsys
=bsd4-3
2348 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2349 machine
=news-risc opsys
=bsd4-3
2351 mips-sony-newsos6
* )
2352 machine
=news-r6 opsys
=newsos6
2355 machine
=news-risc opsys
=newsos5
2360 machine
=stride opsys
=usg5-2
2364 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2365 machine
=sparc opsys
=gnu-linux
2368 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2369 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2370 | rs6000-
*-solaris2*)
2371 case "${canonical}" in
2372 m68
*-sunos1* ) machine
=sun1
;;
2373 m68
*-sunos2* ) machine
=sun2
;;
2374 m68
* ) machine
=sun3
;;
2375 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2376 i
[3456]86-*-* ) machine
=intel386
;;
2377 powerpcle
* ) machine
=powerpcle
;;
2378 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2379 sparc
* ) machine
=sparc
;;
2382 case "${canonical}" in
2383 ## The Sun386 didn't get past 4.0.
2384 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2385 *-sunos4.0
* ) opsys
=sunos4-0
;;
2386 *-sunos4.1.
[3-9]*noshare
)
2387 ## This name is sunos413 instead of sunos4-1-3
2388 ## to avoid a file name conflict on MSDOS.
2390 NON_GNU_CPP
=/usr
/lib
/cpp
2391 NON_GCC_TEST_OPTIONS
=-Bstatic
2392 GCC_TEST_OPTIONS
=-static
2394 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2396 NON_GNU_CPP
=/usr
/lib
/cpp
2398 *-sunos4* |
*-sunos )
2400 NON_GCC_TEST_OPTIONS
=-Bstatic
2401 GCC_TEST_OPTIONS
=-static
2403 *-sunos5.3
* |
*-solaris2.3
* )
2405 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2407 *-sunos5.4
* |
*-solaris2.4
* )
2409 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2412 *-sunos5.5
* |
*-solaris2.5
* )
2414 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2417 *-sunos5.6
* |
*-solaris2.6
* )
2419 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2422 *-sunos5* |
*-solaris* )
2424 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2428 ## Watch out for a compiler that we know will not work.
2429 case "${canonical}" in
2430 *-solaris* |
*-sunos5* )
2431 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2432 ## /usr/ucb/cc doesn't work;
2433 ## we should find some other compiler that does work.
2441 machine
=sparc opsys
=nextstep
2445 m68
*-tadpole-sysv* )
2446 machine
=tad68k opsys
=usg5-3
2450 tahoe-tahoe-bsd4.2
* )
2451 machine
=tahoe opsys
=bsd4-2
2453 tahoe-tahoe-bsd4.3
* )
2454 machine
=tahoe opsys
=bsd4-3
2457 ## Tandem Integrity S2
2459 machine
=tandem-s2 opsys
=usg5-3
2463 m88k-tektronix-sysv3
* )
2464 machine
=tekxd88 opsys
=usg5-3
2467 ## Tektronix 16000 box (6130?)
2468 ns16k-tektronix-bsd
* )
2469 machine
=ns16000 opsys
=bsd4-2
2472 ## src/m/tek4300.h hints that this is a m68k machine.
2473 m68
*-tektronix-bsd* )
2474 machine
=tek4300 opsys
=bsd4-3
2478 ## We seem to have lost the machine-description file titan.h!
2480 machine
=titan opsys
=usg5-3
2483 ## Ustation E30 (SS5E)
2484 m68
*-unisys-uniplus* )
2485 machine
=ustation opsystem
=unipl5-2
2491 case "${canonical}" in
2492 *-bsd4.1
* ) opsys
=bsd4-1
;;
2493 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2494 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2495 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2496 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2497 *-vms* ) opsys
=vms
;;
2503 ns16k-whitechapel-
* )
2505 ## We don't know what sort of OS runs on these; we'll let the
2506 ## operating system guessing code below try.
2511 machine
=wicat opsys
=usg5-2
2516 machine
=ia64 opsys
=gnu-linux
2519 ## Intel 386 machines where we don't care about the manufacturer
2522 case "${canonical}" in
2523 *-cygwin ) opsys
=cygwin
;;
2524 *-lynxos* ) opsys
=lynxos
;;
2525 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2526 *-isc2.2
* ) opsys
=isc2-2
;;
2527 *-isc4.0
* ) opsys
=isc4-0
;;
2528 *-isc4.
* ) opsys
=isc4-1
2529 GCC_TEST_OPTIONS
=-posix
2530 NON_GCC_TEST_OPTIONS
=-Xp
2532 *-isc* ) opsys
=isc3-0
;;
2533 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2534 *-esix* ) opsys
=esix
;;
2535 *-xenix* ) opsys
=xenix
;;
2536 *-linux-gnu* ) opsys
=gnu-linux
;;
2537 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2538 *-sco3.2v5
* ) opsys
=sco5
2539 NON_GNU_CPP
=/lib
/cpp
2540 # Prevent -belf from being passed to $CPP.
2541 # /lib/cpp does not accept it.
2542 OVERRIDE_CPPFLAGS
=" "
2544 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2545 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2546 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2547 *-386bsd* ) opsys
=386bsd
;;
2548 *-nextstep* ) opsys
=nextstep
;;
2549 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2553 ## m68k Linux-based GNU system
2555 machine
=m68k opsys
=gnu-linux
2558 ## Mips Linux-based GNU system
2559 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2560 machine
=mips opsys
=gnu-linux
2564 sparc-fujitsu-sysv4
* )
2565 machine
=sparc opsys
=uxpds
2566 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2571 f301-fujitsu-uxpv4.1
)
2572 machine
=f301 opsys
=uxpv
2575 ## Darwin / Mac OS X
2576 powerpc-apple-darwin
* )
2577 machine
=powermac opsys
=darwin
2578 # Define CPP as follows to make autoconf work correctly.
2579 CPP
="gcc -E -no-cpp-precomp"
2582 ## AMD x86-64 Linux-based GNU system
2583 x86_64-
*-linux-gnu* )
2584 machine
=amdx86-64 opsys
=gnu-linux
2592 ### If the code above didn't choose an operating system, just choose
2593 ### an operating system based on the configuration name. You really
2594 ### only want to use this when you have no idea what the right
2595 ### operating system is; if you know what operating systems a machine
2596 ### runs, it's cleaner to make it explicit in the case statement
2598 if test x
"${opsys}" = x
; then
2599 case "${canonical}" in
2600 *-gnu* ) opsys
=gnu
;;
2601 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2602 *-bsd4.2
) opsys
=bsd4-2
;;
2603 *-bsd4.3
) opsys
=bsd4-3
;;
2604 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2605 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2606 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2607 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2608 *-sysv4.2uw
* ) opsys
=unixware
;;
2609 *-sysv5uw* ) opsys
=unixware
;;
2610 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2611 *-sysv4.1
* |
*-sysvr4.1
* )
2612 NON_GNU_CPP
=/usr
/lib
/cpp
2614 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2615 if [ x
$NON_GNU_CPP = x
]; then
2616 if [ -f /usr
/ccs
/lib
/cpp
]; then
2617 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2619 NON_GNU_CPP
=/lib
/cpp
2623 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2632 if test $unported = yes; then
2633 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2634 Check \`etc/MACHINES' for recognized configuration names." >&5
2635 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2636 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2637 { (exit 1); exit 1; }; }
2640 machfile
="m/${machine}.h"
2641 opsysfile
="s/${opsys}.h"
2644 #### Choose a compiler.
2645 test -n "$CC" && cc_specified
=yes
2647 # Save the value of CFLAGS that the user specified.
2648 SPECIFIED_CFLAGS
="$CFLAGS"
2651 "yes" ) CC
="gcc" GCC
=yes ;;
2652 "no" ) : ${CC=cc} ;;
2656 ac_cpp
='$CPP $CPPFLAGS'
2657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2663 echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC
="$CC" # Let the user override the test.
2671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir
=.
2676 for ac_exec_ext
in '' $ac_executable_extensions; do
2677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test -n "$CC"; then
2689 echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2697 if test -z "$ac_cv_prog_CC"; then
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc
; ac_word
=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir
=.
2714 for ac_exec_ext
in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC
="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2742 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2743 echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC
="$CC" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6
2772 echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2777 if test -z "$ac_cv_prog_CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc
; ac_word
=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_ac_ct_CC
="cc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2808 echo "${ECHO_T}$ac_ct_CC" >&6
2810 echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc
; ac_word
=$2
2823 echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC
="$CC" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected
=yes
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy
$ac_cv_prog_CC
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2859 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2865 if test -n "$CC"; then
2866 echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC
="$CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 test -n "$CC" && break
2916 if test -z "$CC"; then
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy
$ac_prog; ac_word
=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir
=.
2935 for ac_exec_ext
in '' $ac_executable_extensions; do
2936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC
="$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2951 echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2955 test -n "$ac_ct_CC" && break
2964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972 "checking for C compiler version" >&5
2973 ac_compiler
=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2990 cat >conftest.
$ac_ext <<_ACEOF
2991 #line $LINENO "configure"
2994 cat confdefs.h
>>conftest.
$ac_ext
2995 cat >>conftest.
$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
3006 ac_clean_files_save
=$ac_clean_files
3007 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3011 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3012 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3013 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # Find the output, starting from the most likely. This scheme is
3020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3023 # Be careful to initialize this variable, since it used to be cached.
3024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3026 # b.out is created by i960 compilers.
3027 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3029 test -f "$ac_file" ||
continue
3031 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3034 # This is the source file.
3037 # We found the default executable, but exeext='' is most
3041 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim.
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&2;}
3059 { (exit 77); exit 77; }; }
3062 ac_exeext
=$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_file" >&5
3064 echo "${ECHO_T}$ac_file" >&6
3066 # Check the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try
='./$ac_file'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3081 if test "$cross_compiling" = maybe
; then
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3094 echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6
3097 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3098 ac_clean_files
=$ac_clean_files_save
3099 # Check the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6
3106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 for ac_file
in conftest.exe conftest conftest.
*; do
3118 test -f "$ac_file" ||
continue
3120 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3121 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3135 rm -f conftest
$ac_cv_exeext
3136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3137 echo "${ECHO_T}$ac_cv_exeext" >&6
3139 rm -f conftest.
$ac_ext
3140 EXEEXT
=$ac_cv_exeext
3142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3144 if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 cat >conftest.
$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3151 cat confdefs.h
>>conftest.
$ac_ext
3152 cat >>conftest.
$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.o conftest.obj
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165 (eval $ac_compile) 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
3169 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3171 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3172 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.
$ac_ext >&5
3180 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3187 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3189 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3190 echo "${ECHO_T}$ac_cv_objext" >&6
3191 OBJEXT
=$ac_cv_objext
3193 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.
$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3202 cat confdefs.h
>>conftest.
$ac_ext
3203 cat >>conftest.
$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3217 rm -f conftest.
$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try
='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.
$ac_ext >&5
3236 rm -f conftest.
$ac_objext conftest.
$ac_ext
3237 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3240 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3241 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3242 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3243 ac_test_CFLAGS
=${CFLAGS+set}
3244 ac_save_CFLAGS
=$CFLAGS
3246 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 cat >conftest.
$ac_ext <<_ACEOF
3252 #line $LINENO "configure"
3255 cat confdefs.h
>>conftest.
$ac_ext
3256 cat >>conftest.
$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.
$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.
$ac_ext >&5
3286 rm -f conftest.
$ac_objext conftest.
$ac_ext
3288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3290 if test "$ac_test_CFLAGS" = set; then
3291 CFLAGS
=$ac_save_CFLAGS
3292 elif test $ac_cv_prog_cc_g = yes; then
3293 if test "$GCC" = yes; then
3299 if test "$GCC" = yes; then
3305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 ac_cv_prog_cc_stdc
=no
3312 cat >conftest.
$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3316 cat confdefs.h
>>conftest.
$ac_ext
3317 cat >>conftest.
$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3337 s = g (p, va_arg (v,int));
3341 int test (int i, double x);
3342 struct s1 {int (*f) (int a);};
3343 struct s2 {int (*f) (double a);};
3344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3355 # Don't try gcc -ansi; that turns off useful extensions and
3356 # breaks some systems' header files.
3357 # AIX -qlanglvl=ansi
3358 # Ultrix and OSF/1 -std1
3359 # HP-UX 10.20 and later -Ae
3360 # HP-UX older versions -Aa -D_HPUX_SOURCE
3361 # SVR4 -Xc -D__EXTENSIONS__
3362 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3364 CC
="$ac_save_CC $ac_arg"
3365 rm -f conftest.
$ac_objext
3366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_prog_cc_stdc
=$ac_arg
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3384 rm -f conftest.
$ac_objext
3386 rm -f conftest.
$ac_ext conftest.
$ac_objext
3391 case "x$ac_cv_prog_cc_stdc" in
3393 echo "$as_me:$LINENO: result: none needed" >&5
3394 echo "${ECHO_T}none needed" >&6 ;;
3396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3398 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3401 # Some people use a C++ compiler to compile C. Since we use `exit',
3402 # in C++ we need to declare it. In case someone uses the same compiler
3403 # for both compiling C and C++ we need to have the C++ compiler decide
3404 # the declaration of exit, since it's the most demanding environment.
3405 cat >conftest.
$ac_ext <<_ACEOF
3410 rm -f conftest.
$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } &&
3416 { ac_try
='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3422 for ac_declaration
in \
3424 '#include <stdlib.h>' \
3425 'extern "C" void std::exit (int) throw (); using std::exit;' \
3426 'extern "C" void std::exit (int); using std::exit;' \
3427 'extern "C" void exit (int) throw ();' \
3428 'extern "C" void exit (int);' \
3431 cat >conftest.
$ac_ext <<_ACEOF
3432 #line $LINENO "configure"
3435 cat confdefs.h
>>conftest.
$ac_ext
3436 cat >>conftest.
$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3448 rm -f conftest.
$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try
='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.
$ac_ext >&5
3467 rm -f conftest.
$ac_objext conftest.
$ac_ext
3468 cat >conftest.
$ac_ext <<_ACEOF
3469 #line $LINENO "configure"
3472 cat confdefs.h
>>conftest.
$ac_ext
3473 cat >>conftest.
$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3484 rm -f conftest.
$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try
='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.
$ac_ext >&5
3502 rm -f conftest.
$ac_objext conftest.
$ac_ext
3505 if test -n "$ac_declaration"; then
3506 echo '#ifdef __cplusplus' >>confdefs.h
3507 echo $ac_declaration >>confdefs.h
3508 echo '#endif' >>confdefs.h
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.
$ac_ext >&5
3516 rm -f conftest.
$ac_objext conftest.
$ac_ext
3518 ac_cpp
='$CPP $CPPFLAGS'
3519 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3529 #### Some systems specify a CPP to use unless we are using GCC.
3530 #### Now that we know whether we are using GCC, we can decide whether
3531 #### to use that one.
3532 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3537 #### Some systems specify a CC to use unless we are using GCC.
3538 #### Now that we know whether we are using GCC, we can decide whether
3539 #### to use that one.
3540 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3541 test x
$cc_specified != xyes
3546 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3548 CC
="$CC $GCC_TEST_OPTIONS"
3551 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3553 CC
="$CC $NON_GCC_TEST_OPTIONS"
3556 #### Some other nice autoconf tests.
3558 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3559 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3561 if test "$LN_S" = "ln -s"; then
3562 echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3566 echo "${ECHO_T}no, using $LN_S" >&6
3570 ac_cpp
='$CPP $CPPFLAGS'
3571 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3574 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3576 # On Suns, sometimes $CPP names a directory.
3577 if test -n "$CPP" && test -d "$CPP"; then
3580 if test -z "$CPP"; then
3581 if test "${ac_cv_prog_CPP+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 # Double quotes because CPP needs to be expanded
3585 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588 for ac_c_preproc_warn_flag
in '' yes
3590 # Use a header file that comes with gcc, so configuring glibc
3591 # with a fresh cross-compiler works.
3592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3593 # <limits.h> exists even on freestanding compilers.
3594 # On the NeXT, cc -E runs the code through the compiler's parser,
3595 # not just through cpp. "Syntax error" is here to catch this case.
3596 cat >conftest.
$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3604 # include <limits.h>
3606 # include <assert.h>
3610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3611 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3613 grep -v '^ *+' conftest.er1
>conftest.err
3615 cat conftest.err
>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev
/null
; then
3618 if test -s conftest.err
; then
3619 ac_cpp_err
=$ac_c_preproc_warn_flag
3626 if test -z "$ac_cpp_err"; then
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.
$ac_ext >&5
3632 # Broken: fails on valid input.
3635 rm -f conftest.err conftest.
$ac_ext
3637 # OK, works on sane cases. Now check whether non-existent headers
3638 # can be detected and how.
3639 cat >conftest.
$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3643 cat confdefs.h
>>conftest.
$ac_ext
3644 cat >>conftest.
$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #include <ac_nonexistent.h>
3648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3649 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3651 grep -v '^ *+' conftest.er1
>conftest.err
3653 cat conftest.err
>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } >/dev
/null
; then
3656 if test -s conftest.err
; then
3657 ac_cpp_err
=$ac_c_preproc_warn_flag
3664 if test -z "$ac_cpp_err"; then
3665 # Broken: success on invalid input.
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.
$ac_ext >&5
3671 # Passes both tests.
3675 rm -f conftest.err conftest.
$ac_ext
3678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679 rm -f conftest.err conftest.
$ac_ext
3680 if $ac_preproc_ok; then
3692 echo "$as_me:$LINENO: result: $CPP" >&5
3693 echo "${ECHO_T}$CPP" >&6
3695 for ac_c_preproc_warn_flag
in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.
$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3707 cat confdefs.h
>>conftest.
$ac_ext
3708 cat >>conftest.
$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3711 # include <limits.h>
3713 # include <assert.h>
3717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3720 grep -v '^ *+' conftest.er1
>conftest.err
3722 cat conftest.err
>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev
/null
; then
3725 if test -s conftest.err
; then
3726 ac_cpp_err
=$ac_c_preproc_warn_flag
3733 if test -z "$ac_cpp_err"; then
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.
$ac_ext >&5
3739 # Broken: fails on valid input.
3742 rm -f conftest.err conftest.
$ac_ext
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.
$ac_ext <<_ACEOF
3747 #line $LINENO "configure"
3750 cat confdefs.h
>>conftest.
$ac_ext
3751 cat >>conftest.
$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3756 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1
>conftest.err
3760 cat conftest.err
>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } >/dev
/null
; then
3763 if test -s conftest.err
; then
3764 ac_cpp_err
=$ac_c_preproc_warn_flag
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.
$ac_ext >&5
3778 # Passes both tests.
3782 rm -f conftest.err conftest.
$ac_ext
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.
$ac_ext
3787 if $ac_preproc_ok; then
3790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." >&5
3792 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3793 See \`config.log' for more details." >&2;}
3794 { (exit 1); exit 1; }; }
3798 ac_cpp
='$CPP $CPPFLAGS'
3799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3803 # Find a good install program. We prefer a C program (faster),
3804 # so one script is as good as another. But avoid the broken or
3805 # incompatible versions:
3806 # SysV /etc/install, /usr/sbin/install
3807 # SunOS /usr/etc/install
3808 # IRIX /sbin/install
3810 # AmigaOS /C/install, which installs bootblocks on floppy discs
3811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3814 # ./install, which can be erroneously created by make from ./install.sh.
3815 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3816 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3817 if test -z "$INSTALL"; then
3818 if test "${ac_cv_path_install+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir
=.
3826 # Account for people who put trailing slashes in PATH elements.
3828 .
/ | .
// |
/cC
/* | \
3829 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3832 # OSF1 and SCO ODT 3.0 have their own names for install.
3833 # Don't use installbsd from OSF since it installs stuff as root
3835 for ac_prog
in ginstall scoinst
install; do
3836 for ac_exec_ext
in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3838 if test $ac_prog = install &&
3839 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3840 # AIX install. It has an incompatible calling convention.
3842 elif test $ac_prog = install &&
3843 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3844 # program-specific install script used by HP pwplus--don't use.
3847 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3859 if test "${ac_cv_path_install+set}" = set; then
3860 INSTALL
=$ac_cv_path_install
3862 # As a last resort, use the slow shell script. We don't cache a
3863 # path for INSTALL within a source directory, because that will
3864 # break other packages using the cache if that directory is
3865 # removed, or if the path is relative.
3866 INSTALL
=$ac_install_sh
3869 echo "$as_me:$LINENO: result: $INSTALL" >&5
3870 echo "${ECHO_T}$INSTALL" >&6
3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873 # It thinks the first close brace ends the variable substitution.
3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3878 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3880 if test "x$RANLIB" = x
; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3883 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$RANLIB"; then
3890 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir
=.
3897 for ac_exec_ext
in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 RANLIB
=$ac_cv_prog_RANLIB
3909 if test -n "$RANLIB"; then
3910 echo "$as_me:$LINENO: result: $RANLIB" >&5
3911 echo "${ECHO_T}$RANLIB" >&6
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3918 if test -z "$ac_cv_prog_RANLIB"; then
3919 ac_ct_RANLIB
=$RANLIB
3920 # Extract the first word of "ranlib", so it can be a program name with args.
3921 set dummy ranlib
; ac_word
=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$ac_ct_RANLIB"; then
3928 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3947 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3948 if test -n "$ac_ct_RANLIB"; then
3949 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3950 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3956 RANLIB
=$ac_ct_RANLIB
3958 RANLIB
="$ac_cv_prog_RANLIB"
3962 # Extract the first word of "install-info", so it can be a program name with args.
3963 set dummy install-info
; ac_word
=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 case $INSTALL_INFO in
3971 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir
=.
3979 for ac_exec_ext
in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3993 if test -n "$INSTALL_INFO"; then
3994 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3995 echo "${ECHO_T}$INSTALL_INFO" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 # Extract the first word of "install-info", so it can be a program name with args.
4002 set dummy install-info
; ac_word
=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 case $INSTALL_INFO in
4010 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4014 for as_dir
in /usr
/sbin
4017 test -z "$as_dir" && as_dir
=.
4018 for ac_exec_ext
in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4032 if test -n "$INSTALL_INFO"; then
4033 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4034 echo "${ECHO_T}$INSTALL_INFO" >&6
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4040 # Extract the first word of "install-info", so it can be a program name with args.
4041 set dummy install-info
; ac_word
=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 case $INSTALL_INFO in
4049 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4070 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4072 if test -n "$INSTALL_INFO"; then
4073 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4074 echo "${ECHO_T}$INSTALL_INFO" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4082 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4084 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4087 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4089 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4094 echo "$as_me:$LINENO: checking for egrep" >&5
4095 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4096 if test "${ac_cv_prog_egrep+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4100 then ac_cv_prog_egrep
='grep -E'
4101 else ac_cv_prog_egrep
='egrep'
4104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4105 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4106 EGREP
=$ac_cv_prog_egrep
4110 echo "$as_me:$LINENO: checking for AIX" >&5
4111 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4112 cat >conftest.
$ac_ext <<_ACEOF
4113 #line $LINENO "configure"
4116 cat confdefs.h
>>conftest.
$ac_ext
4117 cat >>conftest.
$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "yes" >/dev
/null
2>&1; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6
4128 cat >>confdefs.h
<<\_ACEOF
4129 #define _ALL_SOURCE 1
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4140 #### Extract some information from the operating system and machine files.
4142 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4143 - which libraries the lib-src programs will want, and
4144 - whether the GNU malloc routines are usable..." >&5
4145 echo "$as_me: checking the machine- and system-dependent files to find out
4146 - which libraries the lib-src programs will want, and
4147 - whether the GNU malloc routines are usable..." >&6;}
4149 ### First figure out CFLAGS (which we use for running the compiler here)
4150 ### and REAL_CFLAGS (which we use for real compilation).
4151 ### The two are the same except on a few systems, where they are made
4152 ### different to work around various lossages. For example,
4153 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4154 ### as implying static linking.
4156 ### If the CFLAGS env var is specified, we use that value
4157 ### instead of the default.
4159 ### It's not important that this name contain the PID; you can't run
4160 ### two configures in the same directory and have anything work
4162 tempcname
="conftest.c"
4165 #include "'${srcdir}'/src/'${opsysfile}'"
4166 #include "'${srcdir}'/src/'${machfile}'"
4167 #ifndef LIBS_MACHINE
4168 #define LIBS_MACHINE
4173 #ifndef C_SWITCH_SYSTEM
4174 #define C_SWITCH_SYSTEM
4176 #ifndef C_SWITCH_MACHINE
4177 #define C_SWITCH_MACHINE
4179 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4180 configure___ c_switch_system=C_SWITCH_SYSTEM
4181 configure___ c_switch_machine=C_SWITCH_MACHINE
4184 #define LIB_X11_LIB -lX11
4187 #ifndef LIBX11_MACHINE
4188 #define LIBX11_MACHINE
4191 #ifndef LIBX11_SYSTEM
4192 #define LIBX11_SYSTEM
4194 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4197 configure___ unexec=UNEXEC
4199 configure___ unexec=unexec.o
4202 #ifdef SYSTEM_MALLOC
4203 configure___ system_malloc=yes
4205 configure___ system_malloc=no
4208 #ifdef USE_MMAP_FOR_BUFFERS
4209 configure___ use_mmap_for_buffers=yes
4211 configure___ use_mmap_for_buffers=no
4214 #ifndef C_DEBUG_SWITCH
4215 #define C_DEBUG_SWITCH -g
4218 #ifndef C_OPTIMIZE_SWITCH
4220 #define C_OPTIMIZE_SWITCH -O2
4222 #define C_OPTIMIZE_SWITCH -O
4226 #ifndef LD_SWITCH_MACHINE
4227 #define LD_SWITCH_MACHINE
4230 #ifndef LD_SWITCH_SYSTEM
4231 #define LD_SWITCH_SYSTEM
4234 #ifndef LD_SWITCH_X_SITE_AUX
4235 #define LD_SWITCH_X_SITE_AUX
4238 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4239 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4241 #ifdef THIS_IS_CONFIGURE
4243 /* Get the CFLAGS for tests in configure. */
4245 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4247 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4250 #else /* not THIS_IS_CONFIGURE */
4252 /* Get the CFLAGS for real compilation. */
4254 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4256 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4259 #endif /* not THIS_IS_CONFIGURE */
4262 # The value of CPP is a quoted variable reference, so we need to do this
4263 # to get its actual value...
4264 CPP
=`eval "echo $CPP"`
4265 eval `${CPP} -Isrc ${tempcname} \
4266 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4267 if test "x$SPECIFIED_CFLAGS" = x
; then
4268 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4269 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4271 REAL_CFLAGS
="$CFLAGS"
4275 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4277 ### Make sure subsequent tests use flags consistent with the build flags.
4279 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4280 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4282 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4288 cat >>confdefs.h
<<\_ACEOF
4289 #define _GNU_SOURCE 1
4294 # Check whether --enable-largefile or --disable-largefile was given.
4295 if test "${enable_largefile+set}" = set; then
4296 enableval
="$enable_largefile"
4299 if test "$enable_largefile" != no
; then
4301 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4302 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4303 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 ac_cv_sys_largefile_CC
=no
4307 if test "$GCC" != yes; then
4310 # IRIX 6.2 and later do not support large files by default,
4311 # so use the C compiler's -n32 option if that helps.
4312 cat >conftest.
$ac_ext <<_ACEOF
4313 #line $LINENO "configure"
4316 cat confdefs.h
>>conftest.
$ac_ext
4317 cat >>conftest.
$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <sys/types.h>
4320 /* Check that off_t can represent 2**63 - 1 correctly.
4321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4322 since some C++ compilers masquerading as C compilers
4323 incorrectly reject 9223372036854775807. */
4324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4326 && LARGE_OFF_T % 2147483647 == 1)
4336 rm -f conftest.
$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try
='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4354 rm -f conftest.
$ac_objext
4356 rm -f conftest.
$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try
='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 ac_cv_sys_largefile_CC
=' -n32'; break
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.
$ac_ext >&5
4374 rm -f conftest.
$ac_objext
4378 rm -f conftest.
$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4382 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4383 if test "$ac_cv_sys_largefile_CC" != no
; then
4384 CC
=$CC$ac_cv_sys_largefile_CC
4387 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4388 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4389 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 ac_cv_sys_file_offset_bits
=no
4394 cat >conftest.
$ac_ext <<_ACEOF
4395 #line $LINENO "configure"
4398 cat confdefs.h
>>conftest.
$ac_ext
4399 cat >>conftest.
$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 #include <sys/types.h>
4402 /* Check that off_t can represent 2**63 - 1 correctly.
4403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4404 since some C++ compilers masquerading as C compilers
4405 incorrectly reject 9223372036854775807. */
4406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4408 && LARGE_OFF_T % 2147483647 == 1)
4418 rm -f conftest.
$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try
='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.
$ac_ext >&5
4436 rm -f conftest.
$ac_objext conftest.
$ac_ext
4437 cat >conftest.
$ac_ext <<_ACEOF
4438 #line $LINENO "configure"
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #define _FILE_OFFSET_BITS 64
4445 #include <sys/types.h>
4446 /* Check that off_t can represent 2**63 - 1 correctly.
4447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4448 since some C++ compilers masquerading as C compilers
4449 incorrectly reject 9223372036854775807. */
4450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4452 && LARGE_OFF_T % 2147483647 == 1)
4462 rm -f conftest.
$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try
='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_sys_file_offset_bits
=64; break
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.
$ac_ext >&5
4480 rm -f conftest.
$ac_objext conftest.
$ac_ext
4484 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4485 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4486 if test "$ac_cv_sys_file_offset_bits" != no
; then
4488 cat >>confdefs.h
<<_ACEOF
4489 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4494 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4495 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4496 if test "${ac_cv_sys_large_files+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_cv_sys_large_files
=no
4501 cat >conftest.
$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4505 cat confdefs.h
>>conftest.
$ac_ext
4506 cat >>conftest.
$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4525 rm -f conftest.
$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try
='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4543 rm -f conftest.
$ac_objext conftest.
$ac_ext
4544 cat >conftest.
$ac_ext <<_ACEOF
4545 #line $LINENO "configure"
4548 cat confdefs.h
>>conftest.
$ac_ext
4549 cat >>conftest.
$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #define _LARGE_FILES 1
4552 #include <sys/types.h>
4553 /* Check that off_t can represent 2**63 - 1 correctly.
4554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4555 since some C++ compilers masquerading as C compilers
4556 incorrectly reject 9223372036854775807. */
4557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4559 && LARGE_OFF_T % 2147483647 == 1)
4569 rm -f conftest.
$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try
='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_sys_large_files
=1; break
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.
$ac_ext >&5
4587 rm -f conftest.
$ac_objext conftest.
$ac_ext
4591 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4592 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4593 if test "$ac_cv_sys_large_files" != no
; then
4595 cat >>confdefs.h
<<_ACEOF
4596 #define _LARGE_FILES $ac_cv_sys_large_files
4604 if test "${with_sound}" != "no"; then
4605 # Sound support for GNU/Linux and the free BSDs.
4606 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4607 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4608 if test "${ac_cv_header_stdc+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat >conftest.
$ac_ext <<_ACEOF
4612 #line $LINENO "configure"
4615 cat confdefs.h
>>conftest.
$ac_ext
4616 cat >>conftest.
$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4631 rm -f conftest.
$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try
='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_cv_header_stdc
=yes
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.
$ac_ext >&5
4648 ac_cv_header_stdc
=no
4650 rm -f conftest.
$ac_objext conftest.
$ac_ext
4652 if test $ac_cv_header_stdc = yes; then
4653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654 cat >conftest.
$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4658 cat confdefs.h
>>conftest.
$ac_ext
4659 cat >>conftest.
$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "memchr" >/dev
/null
2>&1; then
4668 ac_cv_header_stdc
=no
4674 if test $ac_cv_header_stdc = yes; then
4675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4676 cat >conftest.
$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4680 cat confdefs.h
>>conftest.
$ac_ext
4681 cat >>conftest.
$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 $EGREP "free" >/dev
/null
2>&1; then
4690 ac_cv_header_stdc
=no
4696 if test $ac_cv_header_stdc = yes; then
4697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698 if test "$cross_compiling" = yes; then
4701 cat >conftest.
$ac_ext <<_ACEOF
4702 #line $LINENO "configure"
4705 cat confdefs.h
>>conftest.
$ac_ext
4706 cat >>conftest.
$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4713 # define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4725 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i))
4732 rm -f conftest
$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.
$ac_ext >&5
4750 ac_cv_header_stdc
=no
4752 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4756 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4757 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4758 if test $ac_cv_header_stdc = yes; then
4760 cat >>confdefs.h
<<\_ACEOF
4761 #define STDC_HEADERS 1
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4776 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4777 inttypes.h stdint.h unistd.h
4779 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 cat >conftest.
$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4794 #include <$ac_header>
4796 rm -f conftest.
$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try
='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 eval "$as_ac_Header=yes"
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.
$ac_ext >&5
4813 eval "$as_ac_Header=no"
4815 rm -f conftest.
$ac_objext conftest.
$ac_ext
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820 cat >>confdefs.h
<<_ACEOF
4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4832 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4844 # Is the header compilable?
4845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847 cat >conftest.
$ac_ext <<_ACEOF
4848 #line $LINENO "configure"
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 $ac_includes_default
4855 #include <$ac_header>
4857 rm -f conftest.
$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try
='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler
=yes
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.
$ac_ext >&5
4874 ac_header_compiler
=no
4876 rm -f conftest.
$ac_objext conftest.
$ac_ext
4877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 echo "${ECHO_T}$ac_header_compiler" >&6
4880 # Is the header present?
4881 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4883 cat >conftest.
$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <$ac_header>
4892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4893 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4895 grep -v '^ *+' conftest.er1
>conftest.err
4897 cat conftest.err
>&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev
/null
; then
4900 if test -s conftest.err
; then
4901 ac_cpp_err
=$ac_c_preproc_warn_flag
4908 if test -z "$ac_cpp_err"; then
4909 ac_header_preproc
=yes
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.
$ac_ext >&5
4914 ac_header_preproc
=no
4916 rm -f conftest.err conftest.
$ac_ext
4917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918 echo "${ECHO_T}$ac_header_preproc" >&6
4920 # So? What about this header?
4921 case $ac_header_compiler:$ac_header_preproc in
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4929 ## ------------------------------------ ##
4930 ## Report this to bug-autoconf@gnu.org. ##
4931 ## ------------------------------------ ##
4934 sed "s/^/$as_me: WARNING: /" >&2
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4945 ## ------------------------------------ ##
4946 ## Report this to bug-autoconf@gnu.org. ##
4947 ## ------------------------------------ ##
4950 sed "s/^/$as_me: WARNING: /" >&2
4953 echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 eval "$as_ac_Header=$ac_header_preproc"
4960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4965 cat >>confdefs.h
<<_ACEOF
4966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973 # Emulation library used on NetBSD.
4974 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4975 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4976 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 ac_check_lib_save_LIBS
=$LIBS
4980 LIBS
="-lossaudio $LIBS"
4981 cat >conftest.
$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4985 cat confdefs.h
>>conftest.
$ac_ext
4986 cat >>conftest.
$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
5004 rm -f conftest.
$ac_objext conftest
$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try
='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_ossaudio__oss_ioctl
=yes
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.
$ac_ext >&5
5021 ac_cv_lib_ossaudio__oss_ioctl
=no
5023 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5024 LIBS
=$ac_check_lib_save_LIBS
5026 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5027 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5028 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5060 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5061 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5062 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5063 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5065 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067 echo "$as_me:$LINENO: checking for $ac_header" >&5
5068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5075 # Is the header compilable?
5076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5078 cat >conftest.
$ac_ext <<_ACEOF
5079 #line $LINENO "configure"
5082 cat confdefs.h
>>conftest.
$ac_ext
5083 cat >>conftest.
$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 $ac_includes_default
5086 #include <$ac_header>
5088 rm -f conftest.
$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try
='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_header_compiler
=yes
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.
$ac_ext >&5
5105 ac_header_compiler
=no
5107 rm -f conftest.
$ac_objext conftest.
$ac_ext
5108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5109 echo "${ECHO_T}$ac_header_compiler" >&6
5111 # Is the header present?
5112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5114 cat >conftest.
$ac_ext <<_ACEOF
5115 #line $LINENO "configure"
5118 cat confdefs.h
>>conftest.
$ac_ext
5119 cat >>conftest.
$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 #include <$ac_header>
5123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5126 grep -v '^ *+' conftest.er1
>conftest.err
5128 cat conftest.err
>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev
/null
; then
5131 if test -s conftest.err
; then
5132 ac_cpp_err
=$ac_c_preproc_warn_flag
5139 if test -z "$ac_cpp_err"; then
5140 ac_header_preproc
=yes
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.
$ac_ext >&5
5145 ac_header_preproc
=no
5147 rm -f conftest.err conftest.
$ac_ext
5148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5149 echo "${ECHO_T}$ac_header_preproc" >&6
5151 # So? What about this header?
5152 case $ac_header_compiler:$ac_header_preproc in
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5160 ## ------------------------------------ ##
5161 ## Report this to bug-autoconf@gnu.org. ##
5162 ## ------------------------------------ ##
5165 sed "s/^/$as_me: WARNING: /" >&2
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5176 ## ------------------------------------ ##
5177 ## Report this to bug-autoconf@gnu.org. ##
5178 ## ------------------------------------ ##
5181 sed "s/^/$as_me: WARNING: /" >&2
5184 echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 eval "$as_ac_Header=$ac_header_preproc"
5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5196 cat >>confdefs.h
<<_ACEOF
5197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205 for ac_header
in term.h
5207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 cat >conftest.
$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5217 cat confdefs.h
>>conftest.
$ac_ext
5218 cat >>conftest.
$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 #include <$ac_header>
5222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5225 grep -v '^ *+' conftest.er1
>conftest.err
5227 cat conftest.err
>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev
/null
; then
5230 if test -s conftest.err
; then
5231 ac_cpp_err
=$ac_c_preproc_warn_flag
5238 if test -z "$ac_cpp_err"; then
5239 eval "$as_ac_Header=yes"
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.
$ac_ext >&5
5244 eval "$as_ac_Header=no"
5246 rm -f conftest.err conftest.
$ac_ext
5248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h
<<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5261 if test "${ac_cv_header_stdc+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 cat >conftest.
$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5268 cat confdefs.h
>>conftest.
$ac_ext
5269 cat >>conftest.
$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5284 rm -f conftest.
$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try
='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_header_stdc
=yes
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.
$ac_ext >&5
5301 ac_cv_header_stdc
=no
5303 rm -f conftest.
$ac_objext conftest.
$ac_ext
5305 if test $ac_cv_header_stdc = yes; then
5306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5307 cat >conftest.
$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5311 cat confdefs.h
>>conftest.
$ac_ext
5312 cat >>conftest.
$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "memchr" >/dev
/null
2>&1; then
5321 ac_cv_header_stdc
=no
5327 if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat >conftest.
$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5333 cat confdefs.h
>>conftest.
$ac_ext
5334 cat >>conftest.
$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 $EGREP "free" >/dev
/null
2>&1; then
5343 ac_cv_header_stdc
=no
5349 if test $ac_cv_header_stdc = yes; then
5350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5351 if test "$cross_compiling" = yes; then
5354 cat >conftest.
$ac_ext <<_ACEOF
5355 #line $LINENO "configure"
5358 cat confdefs.h
>>conftest.
$ac_ext
5359 cat >>conftest.
$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5362 #if ((' ' & 0x0FF) == 0x020)
5363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5366 # define ISLOWER(c) \
5367 (('a' <= (c) && (c) <= 'i') \
5368 || ('j' <= (c) && (c) <= 'r') \
5369 || ('s' <= (c) && (c) <= 'z'))
5370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5378 for (i = 0; i < 256; i++)
5379 if (XOR (islower (i), ISLOWER (i))
5380 || toupper (i) != TOUPPER (i))
5385 rm -f conftest
$ac_exeext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387 (eval $ac_link) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5398 echo "$as_me: program exited with status $ac_status" >&5
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.
$ac_ext >&5
5403 ac_cv_header_stdc
=no
5405 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5410 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5411 if test $ac_cv_header_stdc = yes; then
5413 cat >>confdefs.h
<<\_ACEOF
5414 #define STDC_HEADERS 1
5419 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5420 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5421 if test "${ac_cv_header_time+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 cat >conftest.
$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5428 cat confdefs.h
>>conftest.
$ac_ext
5429 cat >>conftest.
$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 #include <sys/time.h>
5438 if ((struct tm *) 0)
5444 rm -f conftest.
$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try
='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_header_time
=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.
$ac_ext >&5
5461 ac_cv_header_time
=no
5463 rm -f conftest.
$ac_objext conftest.
$ac_ext
5465 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5466 echo "${ECHO_T}$ac_cv_header_time" >&6
5467 if test $ac_cv_header_time = yes; then
5469 cat >>confdefs.h
<<\_ACEOF
5470 #define TIME_WITH_SYS_TIME 1
5475 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5476 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5477 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 cat >conftest.
$ac_ext <<_ACEOF
5481 #line $LINENO "configure"
5484 cat confdefs.h
>>conftest.
$ac_ext
5485 cat >>conftest.
$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5492 char *p = (char *) sys_siglist;
5499 rm -f conftest.
$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try
='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_have_decl_sys_siglist
=yes
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.
$ac_ext >&5
5516 ac_cv_have_decl_sys_siglist
=no
5518 rm -f conftest.
$ac_objext conftest.
$ac_ext
5520 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5521 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5522 if test $ac_cv_have_decl_sys_siglist = yes; then
5524 cat >>confdefs.h
<<_ACEOF
5525 #define HAVE_DECL_SYS_SIGLIST 1
5530 cat >>confdefs.h
<<_ACEOF
5531 #define HAVE_DECL_SYS_SIGLIST 0
5538 if test $ac_cv_have_decl_sys_siglist != yes; then
5539 # For Tru64, at least:
5540 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5541 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5542 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 cat >conftest.
$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5549 cat confdefs.h
>>conftest.
$ac_ext
5550 cat >>conftest.
$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5556 #ifndef __sys_siglist
5557 char *p = (char *) __sys_siglist;
5564 rm -f conftest.
$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try
='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_have_decl___sys_siglist
=yes
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.
$ac_ext >&5
5581 ac_cv_have_decl___sys_siglist
=no
5583 rm -f conftest.
$ac_objext conftest.
$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5586 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5587 if test $ac_cv_have_decl___sys_siglist = yes; then
5589 cat >>confdefs.h
<<_ACEOF
5590 #define HAVE_DECL___SYS_SIGLIST 1
5595 cat >>confdefs.h
<<_ACEOF
5596 #define HAVE_DECL___SYS_SIGLIST 0
5603 if test $ac_cv_have_decl___sys_siglist = yes; then
5605 cat >>confdefs.h
<<\_ACEOF
5606 #define sys_siglist __sys_siglist
5611 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5612 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.
$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5620 cat confdefs.h
>>conftest.
$ac_ext
5621 cat >>conftest.
$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 #include <sys/wait.h>
5626 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5642 rm -f conftest.
$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try
='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_header_sys_wait_h
=yes
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.
$ac_ext >&5
5659 ac_cv_header_sys_wait_h
=no
5661 rm -f conftest.
$ac_objext conftest.
$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5664 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5665 if test $ac_cv_header_sys_wait_h = yes; then
5667 cat >>confdefs.h
<<\_ACEOF
5668 #define HAVE_SYS_WAIT_H 1
5674 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5675 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 cat >conftest.
$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #ifdef TIME_WITH_SYS_TIME
5687 #include <sys/time.h>
5690 #ifdef HAVE_SYS_TIME_H
5691 #include <sys/time.h>
5702 static struct utimbuf x; x.actime = x.modtime;
5707 rm -f conftest.
$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try
='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 emacs_cv_struct_utimbuf
=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.
$ac_ext >&5
5724 emacs_cv_struct_utimbuf
=no
5726 rm -f conftest.
$ac_objext conftest.
$ac_ext
5728 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5729 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5730 if test $emacs_cv_struct_utimbuf = yes; then
5732 cat >>confdefs.h
<<\_ACEOF
5733 #define HAVE_STRUCT_UTIMBUF 1
5738 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5739 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5740 if test "${ac_cv_type_signal+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.
$ac_ext <<_ACEOF
5744 #line $LINENO "configure"
5747 cat confdefs.h
>>conftest.
$ac_ext
5748 cat >>conftest.
$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5756 extern "C" void (*signal (int, void (*)(int)))(int);
5758 void (*signal ()) ();
5769 rm -f conftest.
$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try
='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_type_signal
=void
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5786 ac_cv_type_signal
=int
5788 rm -f conftest.
$ac_objext conftest.
$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5791 echo "${ECHO_T}$ac_cv_type_signal" >&6
5793 cat >>confdefs.h
<<_ACEOF
5794 #define RETSIGTYPE $ac_cv_type_signal
5799 echo "$as_me:$LINENO: checking for speed_t" >&5
5800 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5801 if test "${emacs_cv_speed_t+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.
$ac_ext <<_ACEOF
5805 #line $LINENO "configure"
5808 cat confdefs.h
>>conftest.
$ac_ext
5809 cat >>conftest.
$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <termios.h>
5820 rm -f conftest.
$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try
='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 emacs_cv_speed_t
=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.
$ac_ext >&5
5839 rm -f conftest.
$ac_objext conftest.
$ac_ext
5841 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5842 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5843 if test $emacs_cv_speed_t = yes; then
5845 cat >>confdefs.h
<<\_ACEOF
5846 #define HAVE_SPEED_T 1
5851 echo "$as_me:$LINENO: checking for struct timeval" >&5
5852 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5853 if test "${emacs_cv_struct_timeval+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #ifdef TIME_WITH_SYS_TIME
5864 #include <sys/time.h>
5867 #ifdef HAVE_SYS_TIME_H
5868 #include <sys/time.h>
5876 static struct timeval x; x.tv_sec = x.tv_usec;
5881 rm -f conftest.
$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try
='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5893 emacs_cv_struct_timeval
=yes
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.
$ac_ext >&5
5898 emacs_cv_struct_timeval
=no
5900 rm -f conftest.
$ac_objext conftest.
$ac_ext
5902 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5903 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5904 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5905 if test $emacs_cv_struct_timeval = yes; then
5907 cat >>confdefs.h
<<\_ACEOF
5908 #define HAVE_TIMEVAL 1
5913 echo "$as_me:$LINENO: checking for struct exception" >&5
5914 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5915 if test "${emacs_cv_struct_exception+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 cat >conftest.
$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5922 cat confdefs.h
>>conftest.
$ac_ext
5923 cat >>conftest.
$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5929 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5934 rm -f conftest.
$ac_objext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try
='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 emacs_cv_struct_exception
=yes
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.
$ac_ext >&5
5951 emacs_cv_struct_exception
=no
5953 rm -f conftest.
$ac_objext conftest.
$ac_ext
5955 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5956 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5957 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5958 if test $emacs_cv_struct_exception != yes; then
5960 cat >>confdefs.h
<<\_ACEOF
5961 #define NO_MATHERR 1
5966 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5968 if test "${ac_cv_struct_tm+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 cat >conftest.
$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5975 cat confdefs.h
>>conftest.
$ac_ext
5976 cat >>conftest.
$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5984 struct tm *tp; tp->tm_sec;
5989 rm -f conftest.
$ac_objext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try
='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 ac_cv_struct_tm
=time.h
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.
$ac_ext >&5
6006 ac_cv_struct_tm
=sys
/time.h
6008 rm -f conftest.
$ac_objext conftest.
$ac_ext
6010 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6011 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6012 if test $ac_cv_struct_tm = sys
/time.h
; then
6014 cat >>confdefs.h
<<\_ACEOF
6015 #define TM_IN_SYS_TIME 1
6020 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6021 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6022 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 cat >conftest.
$ac_ext <<_ACEOF
6026 #line $LINENO "configure"
6029 cat confdefs.h
>>conftest.
$ac_ext
6030 cat >>conftest.
$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 #include <$ac_cv_struct_tm>
6039 static struct tm ac_aggr;
6040 if (ac_aggr.tm_zone)
6046 rm -f conftest.
$ac_objext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try
='test -s conftest.$ac_objext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 ac_cv_member_struct_tm_tm_zone
=yes
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.
$ac_ext >&5
6063 cat >conftest.
$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 #include <$ac_cv_struct_tm>
6077 static struct tm ac_aggr;
6078 if (sizeof ac_aggr.tm_zone)
6084 rm -f conftest.
$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try
='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_member_struct_tm_tm_zone
=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.
$ac_ext >&5
6101 ac_cv_member_struct_tm_tm_zone
=no
6103 rm -f conftest.
$ac_objext conftest.
$ac_ext
6105 rm -f conftest.
$ac_objext conftest.
$ac_ext
6107 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6108 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6109 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6111 cat >>confdefs.h
<<_ACEOF
6112 #define HAVE_STRUCT_TM_TM_ZONE 1
6118 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6120 cat >>confdefs.h
<<\_ACEOF
6121 #define HAVE_TM_ZONE 1
6125 echo "$as_me:$LINENO: checking for tzname" >&5
6126 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6127 if test "${ac_cv_var_tzname+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 cat >conftest.
$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6134 cat confdefs.h
>>conftest.
$ac_ext
6135 cat >>conftest.
$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6138 #ifndef tzname /* For SGI. */
6139 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6150 rm -f conftest.
$ac_objext conftest
$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try
='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_var_tzname
=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6169 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6171 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6172 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6173 if test $ac_cv_var_tzname = yes; then
6175 cat >>confdefs.h
<<\_ACEOF
6176 #define HAVE_TZNAME 1
6182 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6183 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6184 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 cat >conftest.
$ac_ext <<_ACEOF
6188 #line $LINENO "configure"
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6199 static struct tm ac_aggr;
6200 if (ac_aggr.tm_gmtoff)
6206 rm -f conftest.
$ac_objext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_member_struct_tm_tm_gmtoff
=yes
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.
$ac_ext >&5
6223 cat >conftest.
$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6227 cat confdefs.h
>>conftest.
$ac_ext
6228 cat >>conftest.
$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6235 static struct tm ac_aggr;
6236 if (sizeof ac_aggr.tm_gmtoff)
6242 rm -f conftest.
$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try
='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_member_struct_tm_tm_gmtoff
=yes
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.
$ac_ext >&5
6259 ac_cv_member_struct_tm_tm_gmtoff
=no
6261 rm -f conftest.
$ac_objext conftest.
$ac_ext
6263 rm -f conftest.
$ac_objext conftest.
$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6266 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6267 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6269 cat >>confdefs.h
<<\_ACEOF
6270 #define HAVE_TM_GMTOFF 1
6275 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6276 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6277 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 cat >conftest.
$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6284 cat confdefs.h
>>conftest.
$ac_ext
6285 cat >>conftest.
$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6292 static struct ifreq ac_aggr;
6293 if (ac_aggr.ifr_flags)
6299 rm -f conftest.
$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
6305 { ac_try
='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 ac_cv_member_struct_ifreq_ifr_flags
=yes
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.
$ac_ext >&5
6316 cat >conftest.
$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6328 static struct ifreq ac_aggr;
6329 if (sizeof ac_aggr.ifr_flags)
6335 rm -f conftest.
$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try
='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_member_struct_ifreq_ifr_flags
=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.
$ac_ext >&5
6352 ac_cv_member_struct_ifreq_ifr_flags
=no
6354 rm -f conftest.
$ac_objext conftest.
$ac_ext
6356 rm -f conftest.
$ac_objext conftest.
$ac_ext
6358 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6359 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6360 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6362 cat >>confdefs.h
<<_ACEOF
6363 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6368 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6369 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6370 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 cat >conftest.
$ac_ext <<_ACEOF
6374 #line $LINENO "configure"
6377 cat confdefs.h
>>conftest.
$ac_ext
6378 cat >>conftest.
$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6385 static struct ifreq ac_aggr;
6386 if (ac_aggr.ifr_hwaddr)
6392 rm -f conftest.
$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try
='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.
$ac_ext >&5
6409 cat >conftest.
$ac_ext <<_ACEOF
6410 #line $LINENO "configure"
6413 cat confdefs.h
>>conftest.
$ac_ext
6414 cat >>conftest.
$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6421 static struct ifreq ac_aggr;
6422 if (sizeof ac_aggr.ifr_hwaddr)
6428 rm -f conftest.
$ac_objext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try
='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.
$ac_ext >&5
6445 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
6447 rm -f conftest.
$ac_objext conftest.
$ac_ext
6449 rm -f conftest.
$ac_objext conftest.
$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6452 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6453 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6455 cat >>confdefs.h
<<_ACEOF
6456 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6461 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6462 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6463 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 cat >conftest.
$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6470 cat confdefs.h
>>conftest.
$ac_ext
6471 cat >>conftest.
$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6478 static struct ifreq ac_aggr;
6479 if (ac_aggr.ifr_netmask)
6485 rm -f conftest.
$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try
='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.
$ac_ext >&5
6502 cat >conftest.
$ac_ext <<_ACEOF
6503 #line $LINENO "configure"
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6514 static struct ifreq ac_aggr;
6515 if (sizeof ac_aggr.ifr_netmask)
6521 rm -f conftest.
$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try
='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6538 ac_cv_member_struct_ifreq_ifr_netmask
=no
6540 rm -f conftest.
$ac_objext conftest.
$ac_ext
6542 rm -f conftest.
$ac_objext conftest.
$ac_ext
6544 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6545 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6546 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6548 cat >>confdefs.h
<<_ACEOF
6549 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6554 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6555 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6556 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 cat >conftest.
$ac_ext <<_ACEOF
6560 #line $LINENO "configure"
6563 cat confdefs.h
>>conftest.
$ac_ext
6564 cat >>conftest.
$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6571 static struct ifreq ac_aggr;
6572 if (ac_aggr.ifr_broadaddr)
6578 rm -f conftest.
$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try
='test -s conftest.$ac_objext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.
$ac_ext >&5
6595 cat >conftest.
$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6599 cat confdefs.h
>>conftest.
$ac_ext
6600 cat >>conftest.
$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6607 static struct ifreq ac_aggr;
6608 if (sizeof ac_aggr.ifr_broadaddr)
6614 rm -f conftest.
$ac_objext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try
='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.
$ac_ext >&5
6631 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
6633 rm -f conftest.
$ac_objext conftest.
$ac_ext
6635 rm -f conftest.
$ac_objext conftest.
$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6638 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6639 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6641 cat >>confdefs.h
<<_ACEOF
6642 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6647 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6648 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
6649 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 cat >conftest.
$ac_ext <<_ACEOF
6653 #line $LINENO "configure"
6656 cat confdefs.h
>>conftest.
$ac_ext
6657 cat >>conftest.
$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6664 static struct ifreq ac_aggr;
6665 if (ac_aggr.ifr_addr)
6671 rm -f conftest.
$ac_objext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try
='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 ac_cv_member_struct_ifreq_ifr_addr
=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6688 cat >conftest.
$ac_ext <<_ACEOF
6689 #line $LINENO "configure"
6692 cat confdefs.h
>>conftest.
$ac_ext
6693 cat >>conftest.
$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6700 static struct ifreq ac_aggr;
6701 if (sizeof ac_aggr.ifr_addr)
6707 rm -f conftest.
$ac_objext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try
='test -s conftest.$ac_objext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_member_struct_ifreq_ifr_addr
=yes
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.
$ac_ext >&5
6724 ac_cv_member_struct_ifreq_ifr_addr
=no
6726 rm -f conftest.
$ac_objext conftest.
$ac_ext
6728 rm -f conftest.
$ac_objext conftest.
$ac_ext
6730 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
6731 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
6732 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6734 cat >>confdefs.h
<<_ACEOF
6735 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6743 echo "$as_me:$LINENO: checking for function prototypes" >&5
6744 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6745 if test "$ac_cv_prog_cc_stdc" != no
; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747 echo "${ECHO_T}yes" >&6
6749 cat >>confdefs.h
<<\_ACEOF
6750 #define PROTOTYPES 1
6754 cat >>confdefs.h
<<\_ACEOF
6755 #define __PROTOTYPES 1
6759 echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6
6763 echo "$as_me:$LINENO: checking for working volatile" >&5
6764 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6765 if test "${ac_cv_c_volatile+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.
$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6772 cat confdefs.h
>>conftest.
$ac_ext
6773 cat >>conftest.
$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6786 rm -f conftest.
$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
6792 { ac_try
='test -s conftest.$ac_objext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_c_volatile
=yes
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.
$ac_ext >&5
6805 rm -f conftest.
$ac_objext conftest.
$ac_ext
6807 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6808 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6809 if test $ac_cv_c_volatile = no
; then
6811 cat >>confdefs.h
<<\_ACEOF
6817 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6819 if test "${ac_cv_c_const+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 cat >conftest.
$ac_ext <<_ACEOF
6823 #line $LINENO "configure"
6826 cat confdefs.h
>>conftest.
$ac_ext
6827 cat >>conftest.
$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6833 /* FIXME: Include the comments suggested by Paul. */
6835 /* Ultrix mips cc rejects this. */
6836 typedef int charset[2];
6838 /* SunOS 4.1.1 cc rejects this. */
6839 char const *const *ccp;
6841 /* NEC SVR4.0.2 mips cc rejects this. */
6842 struct point {int x, y;};
6843 static struct point const zero = {0,0};
6844 /* AIX XL C 1.02.0.0 rejects this.
6845 It does not let you subtract one const X* pointer from another in
6846 an arm of an if-expression whose if-part is not a constant
6848 const char *g = "string";
6849 ccp = &g + (g ? g-g : 0);
6850 /* HPUX 7.0 cc rejects these. */
6853 ccp = (char const *const *) p;
6854 { /* SCO 3.2v4 cc rejects this. */
6856 char const *s = 0 ? (char *) 0 : (char const *) 0;
6860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6862 const int *foo = &x[0];
6865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6866 typedef const int *iptr;
6870 { /* AIX XL C 1.02.0.0 rejects this saying
6871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6872 struct s { int j; const int *ap[3]; };
6873 struct s *b; b->j = 5;
6875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6884 rm -f conftest.
$ac_objext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886 (eval $ac_compile) 2>&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try
='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.
$ac_ext >&5
6903 rm -f conftest.
$ac_objext conftest.
$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6906 echo "${ECHO_T}$ac_cv_c_const" >&6
6907 if test $ac_cv_c_const = no
; then
6909 cat >>confdefs.h
<<\_ACEOF
6915 echo "$as_me:$LINENO: checking for void * support" >&5
6916 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6917 if test "${emacs_cv_void_star+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.
$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6924 cat confdefs.h
>>conftest.
$ac_ext
6925 cat >>conftest.
$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6936 rm -f conftest.
$ac_objext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try
='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 emacs_cv_void_star
=yes
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.
$ac_ext >&5
6953 emacs_cv_void_star
=no
6955 rm -f conftest.
$ac_objext conftest.
$ac_ext
6957 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6958 echo "${ECHO_T}$emacs_cv_void_star" >&6
6959 if test $emacs_cv_void_star = yes; then
6960 cat >>confdefs.h
<<\_ACEOF
6961 #define POINTER_TYPE void
6965 cat >>confdefs.h
<<\_ACEOF
6966 #define POINTER_TYPE char
6973 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6975 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6976 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 cat >conftest.
make <<\_ACEOF
6981 @
echo 'ac_maketemp="$(MAKE)"'
6983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6984 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6985 if test -n "$ac_maketemp"; then
6986 eval ac_cv_prog_make_
${ac_make}_set
=yes
6988 eval ac_cv_prog_make_
${ac_make}_set
=no
6992 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994 echo "${ECHO_T}yes" >&6
6997 echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6
6999 SET_MAKE
="MAKE=${MAKE-make}"
7003 echo "$as_me:$LINENO: checking for long file names" >&5
7004 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7005 if test "${ac_cv_sys_long_file_names+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 ac_cv_sys_long_file_names
=yes
7009 # Test for long file names in all the places we know might matter:
7010 # . the current directory, where building will happen
7011 # $prefix/lib where we will be installing things
7012 # $exec_prefix/lib likewise
7013 # eval it to expand exec_prefix.
7014 # $TMPDIR if set, where it might want to write temporary files
7015 # if $TMPDIR is not set:
7016 # /tmp where it might want to write temporary files
7019 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7022 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7024 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7025 test -d $ac_dir ||
continue
7026 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7027 ac_xdir
=$ac_dir/cf$$
7028 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7029 ac_tf1
=$ac_xdir/conftest9012345
7030 ac_tf2
=$ac_xdir/conftest9012346
7031 (echo 1 >$ac_tf1) 2>/dev
/null
7032 (echo 2 >$ac_tf2) 2>/dev
/null
7033 ac_val
=`cat $ac_tf1 2>/dev/null`
7034 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7035 ac_cv_sys_long_file_names
=no
7036 rm -rf $ac_xdir 2>/dev
/null
7039 rm -rf $ac_xdir 2>/dev
/null
7042 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7043 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7044 if test $ac_cv_sys_long_file_names = yes; then
7046 cat >>confdefs.h
<<\_ACEOF
7047 #define HAVE_LONG_FILE_NAMES 1
7053 #### Choose a window system.
7055 echo "$as_me:$LINENO: checking for X" >&5
7056 echo $ECHO_N "checking for X... $ECHO_C" >&6
7059 # Check whether --with-x or --without-x was given.
7060 if test "${with_x+set}" = set; then
7064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7065 if test "x$with_x" = xno
; then
7066 # The user explicitly disabled X.
7069 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7070 # Both variables are already set.
7073 if test "${ac_cv_have_x+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 # One or both of the vars are not set, and there is no cached value.
7077 ac_x_includes
=no ac_x_libraries
=no
7079 if mkdir conftest.dir
; then
7081 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7082 cat >Imakefile
<<'_ACEOF'
7084 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7086 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7088 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7089 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7090 for ac_extension
in a so sl
; do
7091 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7092 test -f $ac_im_libdir/libX11.
$ac_extension; then
7093 ac_im_usrlibdir
=$ac_im_libdir; break
7096 # Screen out bogus values from the imake configuration. They are
7097 # bogus both because they are the default anyway, and because
7098 # using them would break gcc on systems where it needs fixed includes.
7099 case $ac_im_incroot in
7101 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7103 case $ac_im_usrlibdir in
7105 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7112 # Standard set of common directories for X headers.
7113 # Check X11 before X11Rn because it is often a symlink to the current release.
7125 /usr/local/X11/include
7126 /usr/local/X11R6/include
7127 /usr/local/X11R5/include
7128 /usr/local/X11R4/include
7130 /usr/local/include/X11
7131 /usr/local/include/X11R6
7132 /usr/local/include/X11R5
7133 /usr/local/include/X11R4
7137 /usr/XFree86/include/X11
7141 /usr/unsupported/include
7143 /usr/local/x11r5/include
7144 /usr/lpp/Xamples/include
7146 /usr/openwin/include
7147 /usr/openwin/share/include'
7149 if test "$ac_x_includes" = no
; then
7150 # Guess where to find include files, by looking for Intrinsic.h.
7151 # First, try using that file with no special directory specified.
7152 cat >conftest.
$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <X11/Intrinsic.h>
7161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7164 grep -v '^ *+' conftest.er1
>conftest.err
7166 cat conftest.err
>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev
/null
; then
7169 if test -s conftest.err
; then
7170 ac_cpp_err
=$ac_c_preproc_warn_flag
7177 if test -z "$ac_cpp_err"; then
7178 # We can compile using X headers with no special include directory.
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.
$ac_ext >&5
7184 for ac_dir
in $ac_x_header_dirs; do
7185 if test -r "$ac_dir/X11/Intrinsic.h"; then
7186 ac_x_includes
=$ac_dir
7191 rm -f conftest.err conftest.
$ac_ext
7192 fi # $ac_x_includes = no
7194 if test "$ac_x_libraries" = no
; then
7195 # Check for the libraries.
7196 # See if we find them without any special options.
7197 # Don't add to $LIBS permanently.
7200 cat >conftest.
$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7204 cat confdefs.h
>>conftest.
$ac_ext
7205 cat >>conftest.
$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #include <X11/Intrinsic.h>
7216 rm -f conftest.
$ac_objext conftest
$ac_exeext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try
='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; }; then
7229 # We can link X programs with no special library path.
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.
$ac_ext >&5
7236 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7238 # Don't even attempt the hair of trying to link an X program!
7239 for ac_extension
in a so sl
; do
7240 if test -r $ac_dir/libXt.
$ac_extension; then
7241 ac_x_libraries
=$ac_dir
7247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7248 fi # $ac_x_libraries = no
7250 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7251 # Didn't find X anywhere. Cache the known absence of X.
7252 ac_cv_have_x
="have_x=no"
7254 # Record where we found X for the cache.
7255 ac_cv_have_x
="have_x=yes \
7256 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7261 eval "$ac_cv_have_x"
7264 if test "$have_x" != yes; then
7265 echo "$as_me:$LINENO: result: $have_x" >&5
7266 echo "${ECHO_T}$have_x" >&6
7269 # If each of the values was on the command line, it overrides each guess.
7270 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7271 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7272 # Update the cache value to reflect the command line values.
7273 ac_cv_have_x
="have_x=yes \
7274 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7275 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7276 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7279 if test "$no_x" = yes; then
7285 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7286 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7287 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7288 x_default_search_path
=""
7289 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7291 ${x_library}/X11/%L/%T/%N%C%S:\
7292 ${x_library}/X11/%l/%T/%N%C%S:\
7293 ${x_library}/X11/%T/%N%C%S:\
7294 ${x_library}/X11/%L/%T/%N%S:\
7295 ${x_library}/X11/%l/%T/%N%S:\
7296 ${x_library}/X11/%T/%N%S"
7297 if test x
"${x_default_search_path}" = x
; then
7298 x_default_search_path
=${x_search_path}
7300 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7304 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7305 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7308 if test x
"${x_includes}" = x
; then
7309 bitmapdir
=/usr
/include
/X11
/bitmaps
7311 # accumulate include directories that have X11 bitmap subdirectories
7313 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7314 if test -d "${bmd}/X11/bitmaps"; then
7315 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7317 if test -d "${bmd}/bitmaps"; then
7318 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7321 if test ${bmd_acc} != "dummyval"; then
7322 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7326 case "${window_system}" in
7330 case "${with_x_toolkit}" in
7331 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7332 motif
) USE_X_TOOLKIT
=MOTIF
;;
7334 USE_X_TOOLKIT
=none
;;
7335 no
) USE_X_TOOLKIT
=none
;;
7336 * ) USE_X_TOOLKIT
=maybe
;;
7346 ### If we're using X11, we should use the X menu package.
7349 yes ) HAVE_MENUS
=yes ;;
7352 if test "${opsys}" = "hpux9"; then
7353 case "${x_libraries}" in
7355 opsysfile
="s/hpux9-x11r4.h"
7360 if test "${opsys}" = "hpux9shr"; then
7361 case "${x_libraries}" in
7363 opsysfile
="s/hpux9shxr4.h"
7368 ### Compute the unexec source name from the object name.
7369 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
7371 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7372 # Assume not, until told otherwise.
7375 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7376 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7377 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.
$ac_ext <<_ACEOF
7381 #line $LINENO "configure"
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char malloc_get_state (); below.
7389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 <limits.h> exists even on freestanding compilers. */
7392 # include <limits.h>
7394 # include <assert.h>
7396 /* Override any gcc2 internal prototype to avoid an error. */
7401 /* We use char because int might match the return type of a gcc2
7402 builtin and then its argument prototype would still apply. */
7403 char malloc_get_state ();
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7410 char (*f) () = malloc_get_state;
7419 return f != malloc_get_state;
7424 rm -f conftest.
$ac_objext conftest
$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try
='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_func_malloc_get_state
=yes
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7441 ac_cv_func_malloc_get_state
=no
7443 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7445 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7446 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7447 if test $ac_cv_func_malloc_get_state = yes; then
7453 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7454 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7455 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 cat >conftest.
$ac_ext <<_ACEOF
7459 #line $LINENO "configure"
7462 cat confdefs.h
>>conftest.
$ac_ext
7463 cat >>conftest.
$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 /* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char malloc_set_state (); below.
7467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7468 <limits.h> exists even on freestanding compilers. */
7470 # include <limits.h>
7472 # include <assert.h>
7474 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7481 char malloc_set_state ();
7482 /* The GNU C library defines this for functions which it implements
7483 to always fail with ENOSYS. Some functions are actually named
7484 something starting with __ and the normal name is an alias. */
7485 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7488 char (*f) () = malloc_set_state;
7497 return f != malloc_set_state;
7502 rm -f conftest.
$ac_objext conftest
$ac_exeext
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try
='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_func_malloc_set_state
=yes
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.
$ac_ext >&5
7519 ac_cv_func_malloc_set_state
=no
7521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7523 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7524 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7525 if test $ac_cv_func_malloc_set_state = yes; then
7531 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7532 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7533 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.
$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7540 cat confdefs.h
>>conftest.
$ac_ext
7541 cat >>conftest.
$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 extern void (* __after_morecore_hook)();
7547 __after_morecore_hook = 0
7552 rm -f conftest.
$ac_objext conftest
$ac_exeext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try
='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; }; then
7564 emacs_cv_var___after_morecore_hook
=yes
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.
$ac_ext >&5
7569 emacs_cv_var___after_morecore_hook
=no
7571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7573 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7574 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7575 if test $emacs_cv_var___after_morecore_hook = no
; then
7578 if test "${system_malloc}" = "yes"; then
7581 (The GNU allocators don't work with this system configuration.)"
7583 if test "$doug_lea_malloc" = "yes" ; then
7584 if test "$GNU_MALLOC" = yes ; then
7586 (Using Doug Lea's new malloc from the GNU C Library.)"
7589 cat >>confdefs.h
<<\_ACEOF
7590 #define DOUG_LEA_MALLOC 1
7595 if test x
"${REL_ALLOC}" = x
; then
7596 REL_ALLOC
=${GNU_MALLOC}
7602 for ac_header
in stdlib.h unistd.h
7604 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo "$as_me:$LINENO: checking for $ac_header" >&5
7607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7614 # Is the header compilable?
7615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7617 cat >conftest.
$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7621 cat confdefs.h
>>conftest.
$ac_ext
7622 cat >>conftest.
$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 $ac_includes_default
7625 #include <$ac_header>
7627 rm -f conftest.
$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try
='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_header_compiler
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_header_compiler
=no
7646 rm -f conftest.
$ac_objext conftest.
$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648 echo "${ECHO_T}$ac_header_compiler" >&6
7650 # Is the header present?
7651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653 cat >conftest.
$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7657 cat confdefs.h
>>conftest.
$ac_ext
7658 cat >>conftest.
$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <$ac_header>
7662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7665 grep -v '^ *+' conftest.er1
>conftest.err
7667 cat conftest.err
>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } >/dev
/null
; then
7670 if test -s conftest.err
; then
7671 ac_cpp_err
=$ac_c_preproc_warn_flag
7678 if test -z "$ac_cpp_err"; then
7679 ac_header_preproc
=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7684 ac_header_preproc
=no
7686 rm -f conftest.err conftest.
$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688 echo "${ECHO_T}$ac_header_preproc" >&6
7690 # So? What about this header?
7691 case $ac_header_compiler:$ac_header_preproc in
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7699 ## ------------------------------------ ##
7700 ## Report this to bug-autoconf@gnu.org. ##
7701 ## ------------------------------------ ##
7704 sed "s/^/$as_me: WARNING: /" >&2
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7715 ## ------------------------------------ ##
7716 ## Report this to bug-autoconf@gnu.org. ##
7717 ## ------------------------------------ ##
7720 sed "s/^/$as_me: WARNING: /" >&2
7723 echo "$as_me:$LINENO: checking for $ac_header" >&5
7724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 eval "$as_ac_Header=$ac_header_preproc"
7730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7735 cat >>confdefs.h
<<_ACEOF
7736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7744 for ac_func
in getpagesize
7746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7747 echo "$as_me:$LINENO: checking for $ac_func" >&5
7748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_var+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 cat >conftest.
$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7756 cat confdefs.h
>>conftest.
$ac_ext
7757 cat >>conftest.
$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 /* System header to define __stub macros and hopefully few prototypes,
7760 which can conflict with char $ac_func (); below.
7761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7762 <limits.h> exists even on freestanding compilers. */
7764 # include <limits.h>
7766 # include <assert.h>
7768 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7776 /* The GNU C library defines this for functions which it implements
7777 to always fail with ENOSYS. Some functions are actually named
7778 something starting with __ and the normal name is an alias. */
7779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7782 char (*f) () = $ac_func;
7791 return f != $ac_func;
7796 rm -f conftest.
$ac_objext conftest
$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try
='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 eval "$as_ac_var=yes"
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.
$ac_ext >&5
7813 eval "$as_ac_var=no"
7815 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7819 if test `eval echo '${'$as_ac_var'}'` = yes; then
7820 cat >>confdefs.h
<<_ACEOF
7821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7827 echo "$as_me:$LINENO: checking for working mmap" >&5
7828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 if test "$cross_compiling" = yes; then
7833 ac_cv_func_mmap_fixed_mapped
=no
7835 cat >conftest.
$ac_ext <<_ACEOF
7836 #line $LINENO "configure"
7839 cat confdefs.h
>>conftest.
$ac_ext
7840 cat >>conftest.
$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 $ac_includes_default
7843 /* malloc might have been renamed as rpl_malloc. */
7846 /* Thanks to Mike Haertel and Jim Avera for this test.
7847 Here is a matrix of mmap possibilities:
7848 mmap private not fixed
7849 mmap private fixed at somewhere currently unmapped
7850 mmap private fixed at somewhere already mapped
7851 mmap shared not fixed
7852 mmap shared fixed at somewhere currently unmapped
7853 mmap shared fixed at somewhere already mapped
7854 For private mappings, we should verify that changes cannot be read()
7855 back from the file, nor mmap's back from the file at a different
7856 address. (There have been systems where private was not correctly
7857 implemented like the infamous i386 svr4.0, and systems where the
7858 VM page cache was not coherent with the file system buffer cache
7859 like early versions of FreeBSD and possibly contemporary NetBSD.)
7860 For shared mappings, we should conversely verify that changes get
7861 propagated back to all the places they're supposed to be.
7863 Grep wants private fixed already mapped.
7864 The main things grep needs to know about mmap are:
7865 * does it exist and is it safe to write into the mmap'd area
7866 * how to use it (BSD variants) */
7869 #include <sys/mman.h>
7871 #if !STDC_HEADERS && !HAVE_STDLIB_H
7875 /* This mess was copied from the GNU getpagesize.h. */
7876 #if !HAVE_GETPAGESIZE
7877 /* Assume that all systems that can run configure have sys/param.h. */
7878 # if !HAVE_SYS_PARAM_H
7879 # define HAVE_SYS_PARAM_H 1
7882 # ifdef _SC_PAGESIZE
7883 # define getpagesize() sysconf(_SC_PAGESIZE)
7884 # else /* no _SC_PAGESIZE */
7885 # if HAVE_SYS_PARAM_H
7886 # include <sys/param.h>
7887 # ifdef EXEC_PAGESIZE
7888 # define getpagesize() EXEC_PAGESIZE
7889 # else /* no EXEC_PAGESIZE */
7891 # define getpagesize() NBPG * CLSIZE
7894 # endif /* no CLSIZE */
7895 # else /* no NBPG */
7897 # define getpagesize() NBPC
7898 # else /* no NBPC */
7900 # define getpagesize() PAGESIZE
7901 # endif /* PAGESIZE */
7902 # endif /* no NBPC */
7903 # endif /* no NBPG */
7904 # endif /* no EXEC_PAGESIZE */
7905 # else /* no HAVE_SYS_PARAM_H */
7906 # define getpagesize() 8192 /* punt totally */
7907 # endif /* no HAVE_SYS_PARAM_H */
7908 # endif /* no _SC_PAGESIZE */
7910 #endif /* no HAVE_GETPAGESIZE */
7915 char *data, *data2, *data3;
7919 pagesize = getpagesize ();
7921 /* First, make a file with some known garbage in it. */
7922 data = (char *) malloc (pagesize);
7925 for (i = 0; i < pagesize; ++i)
7926 *(data + i) = rand ();
7928 fd = creat ("conftest.mmap", 0600);
7931 if (write (fd, data, pagesize) != pagesize)
7935 /* Next, try to mmap the file at a fixed address which already has
7936 something else allocated at it. If we can, also make sure that
7937 we see the same garbage. */
7938 fd = open ("conftest.mmap", O_RDWR);
7941 data2 = (char *) malloc (2 * pagesize);
7944 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7945 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7946 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7948 for (i = 0; i < pagesize; ++i)
7949 if (*(data + i) != *(data2 + i))
7952 /* Finally, make sure that changes to the mapped area do not
7953 percolate back to the file as seen by read(). (This is a bug on
7954 some variants of i386 svr4.0.) */
7955 for (i = 0; i < pagesize; ++i)
7956 *(data2 + i) = *(data2 + i) + 1;
7957 data3 = (char *) malloc (pagesize);
7960 if (read (fd, data3, pagesize) != pagesize)
7962 for (i = 0; i < pagesize; ++i)
7963 if (*(data + i) != *(data3 + i))
7969 rm -f conftest
$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_func_mmap_fixed_mapped
=yes
7982 echo "$as_me: program exited with status $ac_status" >&5
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.
$ac_ext >&5
7987 ac_cv_func_mmap_fixed_mapped
=no
7989 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7992 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7993 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7994 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7996 cat >>confdefs.h
<<\_ACEOF
8003 if test $use_mmap_for_buffers = yes; then
8007 LIBS
="$libsrc_libs $LIBS"
8010 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8011 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8012 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 ac_check_lib_save_LIBS
=$LIBS
8017 cat >conftest.
$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8021 cat confdefs.h
>>conftest.
$ac_ext
8022 cat >>conftest.
$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8040 rm -f conftest.
$ac_objext conftest
$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try
='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_lib_dnet_dnet_ntoa
=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.
$ac_ext >&5
8057 ac_cv_lib_dnet_dnet_ntoa
=no
8059 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8060 LIBS
=$ac_check_lib_save_LIBS
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8063 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8064 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8065 cat >>confdefs.h
<<_ACEOF
8066 #define HAVE_LIBDNET 1
8074 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8075 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8076 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 ac_check_lib_save_LIBS
=$LIBS
8081 cat >conftest.
$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8085 cat confdefs.h
>>conftest.
$ac_ext
8086 cat >>conftest.
$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8098 rm -f conftest.
$ac_objext conftest
$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try
='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_lib_Xbsd_main
=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.
$ac_ext >&5
8115 ac_cv_lib_Xbsd_main
=no
8117 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8118 LIBS
=$ac_check_lib_save_LIBS
8120 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8121 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8122 if test $ac_cv_lib_Xbsd_main = yes; then
8123 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8128 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8129 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8130 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_check_lib_save_LIBS
=$LIBS
8134 LIBS
="-lpthreads $LIBS"
8135 cat >conftest.
$ac_ext <<_ACEOF
8136 #line $LINENO "configure"
8139 cat confdefs.h
>>conftest.
$ac_ext
8140 cat >>conftest.
$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8158 rm -f conftest.
$ac_objext conftest
$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try
='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_lib_pthreads_cma_open
=yes
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.
$ac_ext >&5
8175 ac_cv_lib_pthreads_cma_open
=no
8177 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8178 LIBS
=$ac_check_lib_save_LIBS
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8181 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8182 if test $ac_cv_lib_pthreads_cma_open = yes; then
8183 cat >>confdefs.h
<<_ACEOF
8184 #define HAVE_LIBPTHREADS 1
8187 LIBS
="-lpthreads $LIBS"
8192 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8193 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8194 if test -d /usr
/X386
/include
; then
8196 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8200 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8201 echo "${ECHO_T}$HAVE_XFREE386" >&6
8206 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8207 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8208 if test "${gdb_cv_bigtoc+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8214 *) gdb_cv_bigtoc
=-bbigtoc ;;
8217 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8218 cat >conftest.
$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8222 cat confdefs.h
>>conftest.
$ac_ext
8223 cat >>conftest.
$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8234 rm -f conftest.
$ac_objext conftest
$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try
='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.
$ac_ext >&5
8253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8256 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8257 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8261 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8262 # used for the tests that follow. We set them back to REAL_CFLAGS and
8263 # REAL_CPPFLAGS later on.
8265 REAL_CPPFLAGS
="$CPPFLAGS"
8267 if test "${HAVE_X11}" = "yes"; then
8268 DEFS
="$C_SWITCH_X_SITE $DEFS"
8269 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8271 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8272 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8274 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8275 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8276 # but it's more convenient here to set LD_RUN_PATH
8277 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8278 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8279 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8283 if test "${opsys}" = "gnu-linux"; then
8284 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8285 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8286 cat >conftest.
$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8290 cat confdefs.h
>>conftest.
$ac_ext
8291 cat >>conftest.
$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8297 XOpenDisplay ("foo");
8302 rm -f conftest.
$ac_objext conftest
$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } &&
8308 { ac_try
='test -s conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 xlinux_first_failure
=no
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.
$ac_ext >&5
8319 xlinux_first_failure
=yes
8321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8322 if test "${xlinux_first_failure}" = "yes"; then
8323 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8324 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8325 OLD_CPPFLAGS
="$CPPFLAGS"
8327 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8328 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8329 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8330 LIBS
="$LIBS -b i486-linuxaout"
8331 cat >conftest.
$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8335 cat confdefs.h
>>conftest.
$ac_ext
8336 cat >>conftest.
$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8342 XOpenDisplay ("foo");
8347 rm -f conftest.
$ac_objext conftest
$ac_exeext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349 (eval $ac_link) 2>&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try
='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 xlinux_second_failure
=no
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.
$ac_ext >&5
8364 xlinux_second_failure
=yes
8366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8367 if test "${xlinux_second_failure}" = "yes"; then
8368 # If we get the same failure with -b, there is no use adding -b.
8369 # So take it out. This plays safe.
8370 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8371 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8372 CPPFLAGS
="$OLD_CPPFLAGS"
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8377 echo "$as_me:$LINENO: result: yes" >&5
8378 echo "${ECHO_T}yes" >&6
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8386 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8387 # header files included from there.
8388 echo "$as_me:$LINENO: checking for Xkb" >&5
8389 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8390 cat >conftest.
$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8394 cat confdefs.h
>>conftest.
$ac_ext
8395 cat >>conftest.
$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <X11/Xlib.h>
8398 #include <X11/XKBlib.h>
8402 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8407 rm -f conftest.
$ac_objext conftest
$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try
='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.
$ac_ext >&5
8426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8427 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8428 echo "${ECHO_T}$emacs_xkb" >&6
8429 if test $emacs_xkb = yes; then
8431 cat >>confdefs.h
<<\_ACEOF
8432 #define HAVE_XKBGETKEYBOARD 1
8441 for ac_func
in XrmSetDatabase XScreenResourceString \
8442 XScreenNumberOfScreen XSetWMProtocols
8444 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8445 echo "$as_me:$LINENO: checking for $ac_func" >&5
8446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8447 if eval "test \"\${$as_ac_var+set}\" = set"; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 cat >conftest.
$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8454 cat confdefs.h
>>conftest.
$ac_ext
8455 cat >>conftest.
$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 /* System header to define __stub macros and hopefully few prototypes,
8458 which can conflict with char $ac_func (); below.
8459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8460 <limits.h> exists even on freestanding compilers. */
8462 # include <limits.h>
8464 # include <assert.h>
8466 /* 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. */
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8480 char (*f) () = $ac_func;
8489 return f != $ac_func;
8494 rm -f conftest.
$ac_objext conftest
$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try
='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 eval "$as_ac_var=yes"
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.
$ac_ext >&5
8511 eval "$as_ac_var=no"
8513 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8517 if test `eval echo '${'$as_ac_var'}'` = yes; then
8518 cat >>confdefs.h
<<_ACEOF
8519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8527 if test "${window_system}" = "x11"; then
8528 echo "$as_me:$LINENO: checking X11 version 6" >&5
8529 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8530 if test "${emacs_cv_x11_version_6+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 cat >conftest.
$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8537 cat confdefs.h
>>conftest.
$ac_ext
8538 cat >>conftest.
$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <X11/Xlib.h>
8544 #if XlibSpecificationRelease < 6
8552 rm -f conftest.
$ac_objext conftest
$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try
='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 emacs_cv_x11_version_6
=yes
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.
$ac_ext >&5
8569 emacs_cv_x11_version_6
=no
8571 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8574 if test $emacs_cv_x11_version_6 = yes; then
8575 echo "$as_me:$LINENO: result: 6 or newer" >&5
8576 echo "${ECHO_T}6 or newer" >&6
8578 cat >>confdefs.h
<<\_ACEOF
8579 #define HAVE_X11R6 1
8583 echo "$as_me:$LINENO: result: before 6" >&5
8584 echo "${ECHO_T}before 6" >&6
8588 if test "${window_system}" = "x11"; then
8589 echo "$as_me:$LINENO: checking X11 version 5" >&5
8590 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8591 if test "${emacs_cv_x11_version_5+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 cat >conftest.
$ac_ext <<_ACEOF
8595 #line $LINENO "configure"
8598 cat confdefs.h
>>conftest.
$ac_ext
8599 cat >>conftest.
$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 #include <X11/Xlib.h>
8605 #if XlibSpecificationRelease < 5
8613 rm -f conftest.
$ac_objext conftest
$ac_exeext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 emacs_cv_x11_version_5
=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.
$ac_ext >&5
8630 emacs_cv_x11_version_5
=no
8632 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8635 if test $emacs_cv_x11_version_5 = yes; then
8636 echo "$as_me:$LINENO: result: 5 or newer" >&5
8637 echo "${ECHO_T}5 or newer" >&6
8640 cat >>confdefs.h
<<\_ACEOF
8641 #define HAVE_X11R5 1
8646 echo "$as_me:$LINENO: result: before 5" >&5
8647 echo "${ECHO_T}before 5" >&6
8654 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
8655 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8656 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8657 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8658 { (exit 1); exit 1; }; };
8662 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8664 if test "X${with_pkg_config_prog}" != X
; then
8665 PKG_CONFIG
="${with_pkg_config_prog}"
8670 if test -z "$PKG_CONFIG"; then
8671 # Extract the first word of "pkg-config", so it can be a program name with args.
8672 set dummy pkg-config
; ac_word
=$2
8673 echo "$as_me:$LINENO: checking for $ac_word" >&5
8674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir
=.
8688 for ac_exec_ext
in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8701 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8703 if test -n "$PKG_CONFIG"; then
8704 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8705 echo "${ECHO_T}$PKG_CONFIG" >&6
8707 echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6
8713 if test "$PKG_CONFIG" = "no" ; then
8714 echo "*** The pkg-config script could not be found. Make sure it is"
8715 echo "*** in your path, or give the full path to pkg-config with"
8716 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8717 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8719 PKG_CONFIG_MIN_VERSION
=0.9.0
8720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8721 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8722 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8724 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8729 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8730 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8731 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8732 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8733 echo "${ECHO_T}$GTK_CFLAGS" >&6
8735 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8736 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8737 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
8738 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8739 echo "${ECHO_T}$GTK_LIBS" >&6
8743 ## If we have a custom action on failure, don't print errors, but
8744 ## do set a variable so people can do so.
8745 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8746 echo $GTK_PKG_ERRORS
8752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8757 if test $succeeded = yes; then
8760 { { 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
8761 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;}
8762 { (exit 1); exit 1; }; }
8767 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8768 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8769 LIBS
="$GTK_LIBS $LIBS"
8772 cat >>confdefs.h
<<\_ACEOF
8778 with_toolkit_scroll_bars
=yes
8780 HAVE_GTK_MULTIDISPLAY
=no
8782 for ac_func
in gdk_display_open
8784 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8785 echo "$as_me:$LINENO: checking for $ac_func" >&5
8786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 cat >conftest.
$ac_ext <<_ACEOF
8791 #line $LINENO "configure"
8794 cat confdefs.h
>>conftest.
$ac_ext
8795 cat >>conftest.
$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func (); below.
8799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800 <limits.h> exists even on freestanding compilers. */
8802 # include <limits.h>
8804 # include <assert.h>
8806 /* Override any gcc2 internal prototype to avoid an error. */
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8820 char (*f) () = $ac_func;
8829 return f != $ac_func;
8834 rm -f conftest.
$ac_objext conftest
$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try
='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 eval "$as_ac_var=yes"
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.
$ac_ext >&5
8851 eval "$as_ac_var=no"
8853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8857 if test `eval echo '${'$as_ac_var'}'` = yes; then
8858 cat >>confdefs.h
<<_ACEOF
8859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8861 HAVE_GTK_MULTIDISPLAY
=yes
8865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8867 cat >>confdefs.h
<<\_ACEOF
8868 #define HAVE_GTK_MULTIDISPLAY 1
8874 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8875 if test x
"${HAVE_X11R5}" = xyes
; then
8876 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8877 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8878 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 cat >conftest.
$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8885 cat confdefs.h
>>conftest.
$ac_ext
8886 cat >>conftest.
$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 #include <X11/Intrinsic.h>
8890 #include <X11/Xaw/Simple.h>
8899 rm -f conftest.
$ac_objext conftest
$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try
='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 emacs_cv_x11_version_5_with_xaw
=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.
$ac_ext >&5
8916 emacs_cv_x11_version_5_with_xaw
=no
8918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8921 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8922 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8923 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8926 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8927 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8935 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8937 if test "${USE_X_TOOLKIT}" != "none"; then
8938 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8939 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8940 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 cat >conftest.
$ac_ext <<_ACEOF
8944 #line $LINENO "configure"
8947 cat confdefs.h
>>conftest.
$ac_ext
8948 cat >>conftest.
$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 #include <X11/Intrinsic.h>
8954 #if XtSpecificationRelease < 6
8962 rm -f conftest.
$ac_objext conftest
$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try
='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 emacs_cv_x11_toolkit_version_6
=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.
$ac_ext >&5
8979 emacs_cv_x11_toolkit_version_6
=no
8981 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8984 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8985 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8986 echo "$as_me:$LINENO: result: 6 or newer" >&5
8987 echo "${ECHO_T}6 or newer" >&6
8989 cat >>confdefs.h
<<\_ACEOF
8990 #define HAVE_X11XTR6 1
8994 echo "$as_me:$LINENO: result: before 6" >&5
8995 echo "${ECHO_T}before 6" >&6
8999 if test x
$HAVE_X11XTR6 = xyes
; then
9000 LIBS
="-lXt -lSM -lICE $LIBS"
9005 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9006 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9007 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 ac_check_lib_save_LIBS
=$LIBS
9012 cat >conftest.
$ac_ext <<_ACEOF
9013 #line $LINENO "configure"
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9020 /* Override any gcc2 internal prototype to avoid an error. */
9024 /* We use char because int might match the return type of a gcc2
9025 builtin and then its argument prototype would still apply. */
9026 char XmuConvertStandardSelection ();
9030 XmuConvertStandardSelection ();
9035 rm -f conftest.
$ac_objext conftest
$ac_exeext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try
='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.
$ac_ext >&5
9052 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9055 LIBS
=$ac_check_lib_save_LIBS
9057 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9058 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9059 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9060 cat >>confdefs.h
<<_ACEOF
9061 #define HAVE_LIBXMU 1
9068 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9071 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9072 if test "${HAVE_X11}" = "yes"; then
9073 if test "${USE_X_TOOLKIT}" != "none"; then
9075 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9076 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9077 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 ac_check_lib_save_LIBS
=$LIBS
9082 cat >conftest.
$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9086 cat confdefs.h
>>conftest.
$ac_ext
9087 cat >>conftest.
$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9090 /* Override any gcc2 internal prototype to avoid an error. */
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9096 char XShapeQueryExtension ();
9100 XShapeQueryExtension ();
9105 rm -f conftest.
$ac_objext conftest
$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try
='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.
$ac_ext >&5
9122 ac_cv_lib_Xext_XShapeQueryExtension
=no
9124 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9125 LIBS
=$ac_check_lib_save_LIBS
9127 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9128 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9129 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9130 cat >>confdefs.h
<<_ACEOF
9131 #define HAVE_LIBXEXT 1
9141 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9142 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9143 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9144 if test "${emacs_cv_lesstif+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 # We put this in CFLAGS temporarily to precede other -I options
9148 # that might be in CFLAGS temporarily.
9149 # We put this in CPPFLAGS where it precedes the other -I options.
9150 OLD_CPPFLAGS
=$CPPFLAGS
9152 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9153 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9154 cat >conftest.
$ac_ext <<_ACEOF
9155 #line $LINENO "configure"
9158 cat confdefs.h
>>conftest.
$ac_ext
9159 cat >>conftest.
$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9170 rm -f conftest.
$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try
='test -s conftest.$ac_objext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 emacs_cv_lesstif
=yes
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.
$ac_ext >&5
9189 rm -f conftest.
$ac_objext conftest.
$ac_ext
9191 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9192 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9193 if test $emacs_cv_lesstif = yes; then
9194 # Make sure this -I option remains in CPPFLAGS after it is set
9195 # back to REAL_CPPFLAGS.
9196 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9197 # have those other -I options anyway. Ultimately, having this
9198 # directory ultimately in CPPFLAGS will be enough.
9199 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9200 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9203 CPPFLAGS
=$OLD_CPPFLAGS
9205 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9206 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9207 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.
$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9221 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9224 Motif version prior to 2.1.
9230 rm -f conftest.
$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try
='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 emacs_cv_motif_version_2_1
=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.
$ac_ext >&5
9247 emacs_cv_motif_version_2_1
=no
9249 rm -f conftest.
$ac_objext conftest.
$ac_ext
9251 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9252 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9253 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
9254 if test $emacs_cv_motif_version_2_1 = yes; then
9257 cat >>confdefs.h
<<\_ACEOF
9258 #define HAVE_MOTIF_2_1 1
9261 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9262 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9263 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS
=$LIBS
9268 cat >conftest.
$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9272 cat confdefs.h
>>conftest.
$ac_ext
9273 cat >>conftest.
$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9276 /* Override any gcc2 internal prototype to avoid an error. */
9280 /* We use char because int might match the return type of a gcc2
9281 builtin and then its argument prototype would still apply. */
9282 char XpCreateContext ();
9291 rm -f conftest.
$ac_objext conftest
$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try
='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 ac_cv_lib_Xp_XpCreateContext
=yes
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.
$ac_ext >&5
9308 ac_cv_lib_Xp_XpCreateContext
=no
9310 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9311 LIBS
=$ac_check_lib_save_LIBS
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9314 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
9315 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9319 if test ${HAVE_LIBXP} = yes; then
9321 cat >>confdefs.h
<<\_ACEOF
9322 #define HAVE_LIBXP 1
9329 ### Is -lXaw3d available?
9331 if test "${HAVE_X11}" = "yes"; then
9332 if test "${USE_X_TOOLKIT}" != "none"; then
9333 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
9334 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
9335 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.
$ac_ext <<_ACEOF
9339 #line $LINENO "configure"
9342 cat confdefs.h
>>conftest.
$ac_ext
9343 cat >>conftest.
$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 #include <X11/Xaw3d/Scrollbar.h>
9347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9350 grep -v '^ *+' conftest.er1
>conftest.err
9352 cat conftest.err
>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev
/null
; then
9355 if test -s conftest.err
; then
9356 ac_cpp_err
=$ac_c_preproc_warn_flag
9363 if test -z "$ac_cpp_err"; then
9364 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.
$ac_ext >&5
9369 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
9371 rm -f conftest.err conftest.
$ac_ext
9373 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
9374 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
9375 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
9376 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
9377 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
9378 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 ac_check_lib_save_LIBS
=$LIBS
9382 LIBS
="-lXaw3d $LIBS"
9383 cat >conftest.
$ac_ext <<_ACEOF
9384 #line $LINENO "configure"
9387 cat confdefs.h
>>conftest.
$ac_ext
9388 cat >>conftest.
$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9391 /* Override any gcc2 internal prototype to avoid an error. */
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9397 char XawScrollbarSetThumb ();
9401 XawScrollbarSetThumb ();
9406 rm -f conftest.
$ac_objext conftest
$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try
='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.
$ac_ext >&5
9423 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
9425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9426 LIBS
=$ac_check_lib_save_LIBS
9428 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
9429 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
9430 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
9437 if test "${HAVE_XAW3D}" = "yes"; then
9439 cat >>confdefs.h
<<\_ACEOF
9440 #define HAVE_XAW3D 1
9449 USE_TOOLKIT_SCROLL_BARS
=no
9450 if test "${with_toolkit_scroll_bars}" != "no"; then
9451 if test "${USE_X_TOOLKIT}" != "none"; then
9452 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9453 cat >>confdefs.h
<<\_ACEOF
9454 #define USE_TOOLKIT_SCROLL_BARS 1
9458 USE_TOOLKIT_SCROLL_BARS
=yes
9459 elif test "${HAVE_XAW3D}" = "yes"; then
9460 cat >>confdefs.h
<<\_ACEOF
9461 #define USE_TOOLKIT_SCROLL_BARS 1
9464 USE_TOOLKIT_SCROLL_BARS
=yes
9466 elif test "${HAVE_GTK}" = "yes"; then
9467 cat >>confdefs.h
<<\_ACEOF
9468 #define USE_TOOLKIT_SCROLL_BARS 1
9471 USE_TOOLKIT_SCROLL_BARS
=yes
9475 cat >conftest.
$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9479 cat confdefs.h
>>conftest.
$ac_ext
9480 cat >>conftest.
$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9483 #include <X11/Xlib.h>
9484 #include <X11/Xresource.h>
9493 rm -f conftest.
$ac_objext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9495 (eval $ac_compile) 2>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try
='test -s conftest.$ac_objext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9507 cat >>confdefs.h
<<\_ACEOF
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9517 rm -f conftest.
$ac_objext conftest.
$ac_ext
9520 if test "${with_xim}" != "no"; then
9522 cat >>confdefs.h
<<\_ACEOF
9529 if test "${HAVE_XIM}" != "no"; then
9531 if test "$GCC" = yes; then
9532 CFLAGS
="$CFLAGS --pedantic-errors"
9534 cat >conftest.
$ac_ext <<_ACEOF
9535 #line $LINENO "configure"
9538 cat confdefs.h
>>conftest.
$ac_ext
9539 cat >>conftest.
$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9542 #include <X11/Xlib.h>
9543 #include <X11/Xresource.h>
9552 XPointer *client_data;
9554 /* If we're not using GCC, it's probably not XFree86, and this is
9555 probably right, but we can't use something like --pedantic-errors. */
9556 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9557 char*, XIMProc, XPointer*);
9559 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9565 rm -f conftest.
$ac_objext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567 (eval $ac_compile) 2>&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try
='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 emacs_cv_arg6_star
=yes
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.
$ac_ext >&5
9583 rm -f conftest.
$ac_objext conftest.
$ac_ext
9585 if test "$emacs_cv_arg6_star" = yes; then
9586 cat >>confdefs.h
<<\_ACEOF
9587 #define XRegisterIMInstantiateCallback_arg6 XPointer*
9591 cat >>confdefs.h
<<\_ACEOF
9592 #define XRegisterIMInstantiateCallback_arg6 XPointer
9599 ### Use -lXpm if available, unless `--with-xpm=no'.
9601 if test "${HAVE_X11}" = "yes"; then
9602 if test "${with_xpm}" != "no"; then
9603 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9604 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9605 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9606 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9610 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9612 # Is the header compilable?
9613 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9614 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9615 cat >conftest.
$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9619 cat confdefs.h
>>conftest.
$ac_ext
9620 cat >>conftest.
$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 $ac_includes_default
9623 #include <X11/xpm.h>
9625 rm -f conftest.
$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try
='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_header_compiler
=yes
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.
$ac_ext >&5
9642 ac_header_compiler
=no
9644 rm -f conftest.
$ac_objext conftest.
$ac_ext
9645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6
9648 # Is the header present?
9649 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9650 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9651 cat >conftest.
$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 #include <X11/xpm.h>
9660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1
>conftest.err
9665 cat conftest.err
>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } >/dev
/null
; then
9668 if test -s conftest.err
; then
9669 ac_cpp_err
=$ac_c_preproc_warn_flag
9676 if test -z "$ac_cpp_err"; then
9677 ac_header_preproc
=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.
$ac_ext >&5
9682 ac_header_preproc
=no
9684 rm -f conftest.err conftest.
$ac_ext
9685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686 echo "${ECHO_T}$ac_header_preproc" >&6
9688 # So? What about this header?
9689 case $ac_header_compiler:$ac_header_preproc in
9691 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9692 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9694 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9697 ## ------------------------------------ ##
9698 ## Report this to bug-autoconf@gnu.org. ##
9699 ## ------------------------------------ ##
9702 sed "s/^/$as_me: WARNING: /" >&2
9705 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9710 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9713 ## ------------------------------------ ##
9714 ## Report this to bug-autoconf@gnu.org. ##
9715 ## ------------------------------------ ##
9718 sed "s/^/$as_me: WARNING: /" >&2
9721 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9722 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9723 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9728 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9729 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9732 if test $ac_cv_header_X11_xpm_h = yes; then
9733 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9734 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9735 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 ac_check_lib_save_LIBS
=$LIBS
9739 LIBS
="-lXpm -lX11 $LIBS"
9740 cat >conftest.
$ac_ext <<_ACEOF
9741 #line $LINENO "configure"
9744 cat confdefs.h
>>conftest.
$ac_ext
9745 cat >>conftest.
$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9748 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char XpmReadFileToPixmap ();
9758 XpmReadFileToPixmap ();
9763 rm -f conftest.
$ac_objext conftest
$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try
='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9780 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9783 LIBS
=$ac_check_lib_save_LIBS
9785 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9786 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9787 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9794 if test "${HAVE_XPM}" = "yes"; then
9795 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9796 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9797 cat >conftest.
$ac_ext <<_ACEOF
9798 #line $LINENO "configure"
9801 cat confdefs.h
>>conftest.
$ac_ext
9802 cat >>conftest.
$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include "X11/xpm.h"
9805 #ifndef XpmReturnAllocPixels
9806 no_return_alloc_pixels
9810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9811 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9819 if test "${HAVE_XPM}" = "yes"; then
9820 echo "$as_me:$LINENO: result: yes" >&5
9821 echo "${ECHO_T}yes" >&6
9823 echo "$as_me:$LINENO: result: no" >&5
9824 echo "${ECHO_T}no" >&6
9829 if test "${HAVE_XPM}" = "yes"; then
9831 cat >>confdefs.h
<<\_ACEOF
9838 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9840 if test "${HAVE_X11}" = "yes"; then
9841 if test "${with_jpeg}" != "no"; then
9842 if test "${ac_cv_header_jerror_h+set}" = set; then
9843 echo "$as_me:$LINENO: checking for jerror.h" >&5
9844 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9845 if test "${ac_cv_header_jerror_h+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9849 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9851 # Is the header compilable?
9852 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9853 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9854 cat >conftest.
$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9858 cat confdefs.h
>>conftest.
$ac_ext
9859 cat >>conftest.
$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9864 rm -f conftest.
$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } &&
9870 { ac_try
='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 ac_header_compiler
=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.
$ac_ext >&5
9881 ac_header_compiler
=no
9883 rm -f conftest.
$ac_objext conftest.
$ac_ext
9884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6
9887 # Is the header present?
9888 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9889 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9890 cat >conftest.
$ac_ext <<_ACEOF
9891 #line $LINENO "configure"
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1
>conftest.err
9904 cat conftest.err
>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev
/null
; then
9907 if test -s conftest.err
; then
9908 ac_cpp_err
=$ac_c_preproc_warn_flag
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc
=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.
$ac_ext >&5
9921 ac_header_preproc
=no
9923 rm -f conftest.err conftest.
$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc in
9930 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9936 ## ------------------------------------ ##
9937 ## Report this to bug-autoconf@gnu.org. ##
9938 ## ------------------------------------ ##
9941 sed "s/^/$as_me: WARNING: /" >&2
9944 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9945 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9947 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9949 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9952 ## ------------------------------------ ##
9953 ## Report this to bug-autoconf@gnu.org. ##
9954 ## ------------------------------------ ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 echo "$as_me:$LINENO: checking for jerror.h" >&5
9961 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9962 if test "${ac_cv_header_jerror_h+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_cv_header_jerror_h
=$ac_header_preproc
9967 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9968 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9971 if test $ac_cv_header_jerror_h = yes; then
9972 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9973 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9974 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_check_lib_save_LIBS
=$LIBS
9979 cat >conftest.
$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9993 char jpeg_destroy_compress ();
9997 jpeg_destroy_compress ();
10002 rm -f conftest.
$ac_objext conftest
$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try
='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.
$ac_ext >&5
10019 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10022 LIBS
=$ac_check_lib_save_LIBS
10024 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10025 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10026 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10036 if test "${HAVE_JPEG}" = "yes"; then
10037 cat >>confdefs.h
<<\_ACEOF
10038 #define HAVE_JPEG 1
10041 cat >conftest.
$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10045 cat confdefs.h
>>conftest.
$ac_ext
10046 cat >>conftest.
$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <jpeglib.h>
10049 version=JPEG_LIB_VERSION
10052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
10054 cat >>confdefs.h
<<\_ACEOF
10055 #define HAVE_JPEG 1
10059 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10060 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10068 ### Use -lpng if available, unless `--with-png=no'.
10070 if test "${HAVE_X11}" = "yes"; then
10071 if test "${with_png}" != "no"; then
10072 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10073 # in /usr/include/libpng.
10076 for ac_header
in png.h libpng
/png.h
10078 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10080 echo "$as_me:$LINENO: checking for $ac_header" >&5
10081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10088 # Is the header compilable?
10089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10091 cat >conftest.
$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10095 cat confdefs.h
>>conftest.
$ac_ext
10096 cat >>conftest.
$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10099 #include <$ac_header>
10101 rm -f conftest.
$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try
='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_header_compiler
=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10118 ac_header_compiler
=no
10120 rm -f conftest.
$ac_objext conftest.
$ac_ext
10121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122 echo "${ECHO_T}$ac_header_compiler" >&6
10124 # Is the header present?
10125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10127 cat >conftest.
$ac_ext <<_ACEOF
10128 #line $LINENO "configure"
10131 cat confdefs.h
>>conftest.
$ac_ext
10132 cat >>conftest.
$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10137 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1
>conftest.err
10141 cat conftest.err
>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } >/dev
/null
; then
10144 if test -s conftest.err
; then
10145 ac_cpp_err
=$ac_c_preproc_warn_flag
10152 if test -z "$ac_cpp_err"; then
10153 ac_header_preproc
=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.
$ac_ext >&5
10158 ac_header_preproc
=no
10160 rm -f conftest.err conftest.
$ac_ext
10161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10162 echo "${ECHO_T}$ac_header_preproc" >&6
10164 # So? What about this header?
10165 case $ac_header_compiler:$ac_header_preproc in
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10173 ## ------------------------------------ ##
10174 ## Report this to bug-autoconf@gnu.org. ##
10175 ## ------------------------------------ ##
10178 sed "s/^/$as_me: WARNING: /" >&2
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10189 ## ------------------------------------ ##
10190 ## Report this to bug-autoconf@gnu.org. ##
10191 ## ------------------------------------ ##
10194 sed "s/^/$as_me: WARNING: /" >&2
10197 echo "$as_me:$LINENO: checking for $ac_header" >&5
10198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 eval "$as_ac_Header=$ac_header_preproc"
10204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10209 cat >>confdefs.h
<<_ACEOF
10210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10218 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10219 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
10220 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 ac_check_lib_save_LIBS
=$LIBS
10224 LIBS
="-lpng -lz -lm $LIBS"
10225 cat >conftest.
$ac_ext <<_ACEOF
10226 #line $LINENO "configure"
10229 cat confdefs.h
>>conftest.
$ac_ext
10230 cat >>conftest.
$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10233 /* Override any gcc2 internal prototype to avoid an error. */
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10239 char png_get_channels ();
10243 png_get_channels ();
10248 rm -f conftest.
$ac_objext conftest
$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try
='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_png_png_get_channels
=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.
$ac_ext >&5
10265 ac_cv_lib_png_png_get_channels
=no
10267 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10268 LIBS
=$ac_check_lib_save_LIBS
10270 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10271 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
10272 if test $ac_cv_lib_png_png_get_channels = yes; then
10279 if test "${HAVE_PNG}" = "yes"; then
10281 cat >>confdefs.h
<<\_ACEOF
10288 ### Use -ltiff if available, unless `--with-tiff=no'.
10290 if test "${HAVE_X11}" = "yes"; then
10291 if test "${with_tiff}" != "no"; then
10292 if test "${ac_cv_header_tiffio_h+set}" = set; then
10293 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10294 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10295 if test "${ac_cv_header_tiffio_h+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10299 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10301 # Is the header compilable?
10302 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
10303 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
10304 cat >conftest.
$ac_ext <<_ACEOF
10305 #line $LINENO "configure"
10308 cat confdefs.h
>>conftest.
$ac_ext
10309 cat >>conftest.
$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10312 #include <tiffio.h>
10314 rm -f conftest.
$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try
='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_header_compiler
=yes
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.
$ac_ext >&5
10331 ac_header_compiler
=no
10333 rm -f conftest.
$ac_objext conftest.
$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10335 echo "${ECHO_T}$ac_header_compiler" >&6
10337 # Is the header present?
10338 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
10339 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
10340 cat >conftest.
$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10344 cat confdefs.h
>>conftest.
$ac_ext
10345 cat >>conftest.
$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <tiffio.h>
10349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10352 grep -v '^ *+' conftest.er1
>conftest.err
10354 cat conftest.err
>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } >/dev
/null
; then
10357 if test -s conftest.err
; then
10358 ac_cpp_err
=$ac_c_preproc_warn_flag
10365 if test -z "$ac_cpp_err"; then
10366 ac_header_preproc
=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.
$ac_ext >&5
10371 ac_header_preproc
=no
10373 rm -f conftest.err conftest.
$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10375 echo "${ECHO_T}$ac_header_preproc" >&6
10377 # So? What about this header?
10378 case $ac_header_compiler:$ac_header_preproc in
10380 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10381 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10383 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10386 ## ------------------------------------ ##
10387 ## Report this to bug-autoconf@gnu.org. ##
10388 ## ------------------------------------ ##
10391 sed "s/^/$as_me: WARNING: /" >&2
10394 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
10395 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
10397 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10399 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
10402 ## ------------------------------------ ##
10403 ## Report this to bug-autoconf@gnu.org. ##
10404 ## ------------------------------------ ##
10407 sed "s/^/$as_me: WARNING: /" >&2
10410 echo "$as_me:$LINENO: checking for tiffio.h" >&5
10411 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
10412 if test "${ac_cv_header_tiffio_h+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 ac_cv_header_tiffio_h
=$ac_header_preproc
10417 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
10418 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
10421 if test $ac_cv_header_tiffio_h = yes; then
10423 # At least one tiff package requires the jpeg library.
10424 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10425 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10426 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
10427 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 ac_check_lib_save_LIBS
=$LIBS
10431 LIBS
="-ltiff $tifflibs $LIBS"
10432 cat >conftest.
$ac_ext <<_ACEOF
10433 #line $LINENO "configure"
10436 cat confdefs.h
>>conftest.
$ac_ext
10437 cat >>conftest.
$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any gcc2 internal prototype to avoid an error. */
10444 /* We use char because int might match the return type of a gcc2
10445 builtin and then its argument prototype would still apply. */
10446 char TIFFGetVersion ();
10455 rm -f conftest.
$ac_objext conftest
$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try
='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_tiff_TIFFGetVersion
=yes
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.
$ac_ext >&5
10472 ac_cv_lib_tiff_TIFFGetVersion
=no
10474 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10475 LIBS
=$ac_check_lib_save_LIBS
10477 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10478 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
10479 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10488 if test "${HAVE_TIFF}" = "yes"; then
10490 cat >>confdefs.h
<<\_ACEOF
10491 #define HAVE_TIFF 1
10497 ### Use -lgif if available, unless `--with-gif=no'.
10499 if test "${HAVE_X11}" = "yes"; then
10500 if test "${with_gif}" != "no"; then
10501 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10502 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10503 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10504 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10508 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10510 # Is the header compilable?
10511 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
10512 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
10513 cat >conftest.
$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10517 cat confdefs.h
>>conftest.
$ac_ext
10518 cat >>conftest.
$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #include <gif_lib.h>
10523 rm -f conftest.
$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try
='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_header_compiler
=yes
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.
$ac_ext >&5
10540 ac_header_compiler
=no
10542 rm -f conftest.
$ac_objext conftest.
$ac_ext
10543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544 echo "${ECHO_T}$ac_header_compiler" >&6
10546 # Is the header present?
10547 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10548 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10549 cat >conftest.
$ac_ext <<_ACEOF
10550 #line $LINENO "configure"
10553 cat confdefs.h
>>conftest.
$ac_ext
10554 cat >>conftest.
$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 #include <gif_lib.h>
10558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10559 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10561 grep -v '^ *+' conftest.er1
>conftest.err
10563 cat conftest.err
>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } >/dev
/null
; then
10566 if test -s conftest.err
; then
10567 ac_cpp_err
=$ac_c_preproc_warn_flag
10574 if test -z "$ac_cpp_err"; then
10575 ac_header_preproc
=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.
$ac_ext >&5
10580 ac_header_preproc
=no
10582 rm -f conftest.err conftest.
$ac_ext
10583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10584 echo "${ECHO_T}$ac_header_preproc" >&6
10586 # So? What about this header?
10587 case $ac_header_compiler:$ac_header_preproc in
10589 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10590 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10595 ## ------------------------------------ ##
10596 ## Report this to bug-autoconf@gnu.org. ##
10597 ## ------------------------------------ ##
10600 sed "s/^/$as_me: WARNING: /" >&2
10603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10611 ## ------------------------------------ ##
10612 ## Report this to bug-autoconf@gnu.org. ##
10613 ## ------------------------------------ ##
10616 sed "s/^/$as_me: WARNING: /" >&2
10619 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10620 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10621 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 ac_cv_header_gif_lib_h
=$ac_header_preproc
10626 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10627 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10630 if test $ac_cv_header_gif_lib_h = yes; then
10631 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10632 # Earlier versions can crash Emacs.
10633 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10634 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
10635 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 ac_check_lib_save_LIBS
=$LIBS
10639 LIBS
="-lungif $LIBS"
10640 cat >conftest.
$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10644 cat confdefs.h
>>conftest.
$ac_ext
10645 cat >>conftest.
$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char EGifPutExtensionLast ();
10658 EGifPutExtensionLast ();
10663 rm -f conftest.
$ac_objext conftest
$ac_exeext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try
='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.
$ac_ext >&5
10680 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10683 LIBS
=$ac_check_lib_save_LIBS
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10686 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10687 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10696 if test "${HAVE_GIF}" = "yes"; then
10698 cat >>confdefs.h
<<\_ACEOF
10705 ### Use Mac OS X Carbon API to implement GUI.
10707 if test "${with_carbon}" != "no"; then
10708 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10709 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10710 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10711 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10715 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10717 # Is the header compilable?
10718 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10719 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10720 cat >conftest.
$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10724 cat confdefs.h
>>conftest.
$ac_ext
10725 cat >>conftest.
$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 $ac_includes_default
10728 #include <Carbon/Carbon.h>
10730 rm -f conftest.
$ac_objext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try
='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_header_compiler
=yes
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.
$ac_ext >&5
10747 ac_header_compiler
=no
10749 rm -f conftest.
$ac_objext conftest.
$ac_ext
10750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751 echo "${ECHO_T}$ac_header_compiler" >&6
10753 # Is the header present?
10754 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10755 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10756 cat >conftest.
$ac_ext <<_ACEOF
10757 #line $LINENO "configure"
10760 cat confdefs.h
>>conftest.
$ac_ext
10761 cat >>conftest.
$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <Carbon/Carbon.h>
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10768 grep -v '^ *+' conftest.er1
>conftest.err
10770 cat conftest.err
>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev
/null
; then
10773 if test -s conftest.err
; then
10774 ac_cpp_err
=$ac_c_preproc_warn_flag
10781 if test -z "$ac_cpp_err"; then
10782 ac_header_preproc
=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.
$ac_ext >&5
10787 ac_header_preproc
=no
10789 rm -f conftest.err conftest.
$ac_ext
10790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10791 echo "${ECHO_T}$ac_header_preproc" >&6
10793 # So? What about this header?
10794 case $ac_header_compiler:$ac_header_preproc in
10796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10797 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10802 ## ------------------------------------ ##
10803 ## Report this to bug-autoconf@gnu.org. ##
10804 ## ------------------------------------ ##
10807 sed "s/^/$as_me: WARNING: /" >&2
10810 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10818 ## ------------------------------------ ##
10819 ## Report this to bug-autoconf@gnu.org. ##
10820 ## ------------------------------------ ##
10823 sed "s/^/$as_me: WARNING: /" >&2
10826 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10827 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10828 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
10833 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10834 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10837 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10844 if test "${HAVE_CARBON}" = "yes"; then
10846 cat >>confdefs.h
<<\_ACEOF
10847 #define HAVE_CARBON 1
10851 ## Specify the install directory
10853 if test "${carbon_appdir_x}" != ""; then
10854 case ${carbon_appdir_x} in
10855 y | ye |
yes) carbon_appdir
=/Applications
;;
10856 * ) carbon_appdir
=${carbon_appdir_x} ;;
10859 # We also have mouse menus.
10863 ### Use session management (-lSM -lICE) if available
10865 if test "${HAVE_X11}" = "yes"; then
10866 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10867 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10868 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10869 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10873 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10875 # Is the header compilable?
10876 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10877 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10878 cat >conftest.
$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10882 cat confdefs.h
>>conftest.
$ac_ext
10883 cat >>conftest.
$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <X11/SM/SMlib.h>
10888 rm -f conftest.
$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try
='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_header_compiler
=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.
$ac_ext >&5
10905 ac_header_compiler
=no
10907 rm -f conftest.
$ac_objext conftest.
$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909 echo "${ECHO_T}$ac_header_compiler" >&6
10911 # Is the header present?
10912 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10913 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10914 cat >conftest.
$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10918 cat confdefs.h
>>conftest.
$ac_ext
10919 cat >>conftest.
$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 #include <X11/SM/SMlib.h>
10923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10926 grep -v '^ *+' conftest.er1
>conftest.err
10928 cat conftest.err
>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } >/dev
/null
; then
10931 if test -s conftest.err
; then
10932 ac_cpp_err
=$ac_c_preproc_warn_flag
10939 if test -z "$ac_cpp_err"; then
10940 ac_header_preproc
=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.
$ac_ext >&5
10945 ac_header_preproc
=no
10947 rm -f conftest.err conftest.
$ac_ext
10948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10949 echo "${ECHO_T}$ac_header_preproc" >&6
10951 # So? What about this header?
10952 case $ac_header_compiler:$ac_header_preproc in
10954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10955 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10957 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10960 ## ------------------------------------ ##
10961 ## Report this to bug-autoconf@gnu.org. ##
10962 ## ------------------------------------ ##
10965 sed "s/^/$as_me: WARNING: /" >&2
10968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10969 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10971 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10973 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10976 ## ------------------------------------ ##
10977 ## Report this to bug-autoconf@gnu.org. ##
10978 ## ------------------------------------ ##
10981 sed "s/^/$as_me: WARNING: /" >&2
10984 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10985 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10986 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
10991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10992 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10995 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10996 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10997 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10998 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 ac_check_lib_save_LIBS
=$LIBS
11002 LIBS
="-lSM -lICE $LIBS"
11003 cat >conftest.
$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11007 cat confdefs.h
>>conftest.
$ac_ext
11008 cat >>conftest.
$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11011 /* 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. */
11017 char SmcOpenConnection ();
11021 SmcOpenConnection ();
11026 rm -f conftest.
$ac_objext conftest
$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try
='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_lib_SM_SmcOpenConnection
=yes
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.
$ac_ext >&5
11043 ac_cv_lib_SM_SmcOpenConnection
=no
11045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11046 LIBS
=$ac_check_lib_save_LIBS
11048 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11049 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
11050 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
11058 if test "${HAVE_X_SM}" = "yes"; then
11060 cat >>confdefs.h
<<\_ACEOF
11061 #define HAVE_X_SM 1
11066 *) LIBS
="-lSM -lICE $LIBS" ;;
11071 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11072 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
11073 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
11074 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.
$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11081 cat confdefs.h
>>conftest.
$ac_ext
11082 cat >>conftest.
$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11093 rm -f conftest.
$ac_objext conftest
$ac_exeext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try
='test -s conftest$ac_exeext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 emacs_cv_netdb_declares_h_errno
=yes
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.
$ac_ext >&5
11110 emacs_cv_netdb_declares_h_errno
=no
11112 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11114 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11115 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11116 if test $emacs_cv_netdb_declares_h_errno = yes; then
11118 cat >>confdefs.h
<<\_ACEOF
11119 #define HAVE_H_ERRNO 1
11124 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11125 # for constant arguments. Useless!
11126 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11127 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11128 if test "${ac_cv_working_alloca_h+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 cat >conftest.
$ac_ext <<_ACEOF
11132 #line $LINENO "configure"
11135 cat confdefs.h
>>conftest.
$ac_ext
11136 cat >>conftest.
$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <alloca.h>
11142 char *p = (char *) alloca (2 * sizeof (int));
11147 rm -f conftest.
$ac_objext conftest
$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try
='test -s conftest$ac_exeext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_working_alloca_h
=yes
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.
$ac_ext >&5
11164 ac_cv_working_alloca_h
=no
11166 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11168 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11169 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11170 if test $ac_cv_working_alloca_h = yes; then
11172 cat >>confdefs.h
<<\_ACEOF
11173 #define HAVE_ALLOCA_H 1
11178 echo "$as_me:$LINENO: checking for alloca" >&5
11179 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11180 if test "${ac_cv_func_alloca_works+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 cat >conftest.
$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11187 cat confdefs.h
>>conftest.
$ac_ext
11188 cat >>conftest.
$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11191 # define alloca __builtin_alloca
11194 # include <malloc.h>
11195 # define alloca _alloca
11198 # include <alloca.h>
11203 # ifndef alloca /* predefined by HP cc +Olibcalls */
11214 char *p = (char *) alloca (1);
11219 rm -f conftest.
$ac_objext conftest
$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try
='test -s conftest$ac_exeext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 ac_cv_func_alloca_works
=yes
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.
$ac_ext >&5
11236 ac_cv_func_alloca_works
=no
11238 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11240 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11241 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11243 if test $ac_cv_func_alloca_works = yes; then
11245 cat >>confdefs.h
<<\_ACEOF
11246 #define HAVE_ALLOCA 1
11250 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11251 # that cause trouble. Some versions do not even contain alloca or
11252 # contain a buggy version. If you still want to use their alloca,
11253 # use ar to extract alloca.o from them instead of compiling alloca.c.
11255 ALLOCA
=alloca.
$ac_objext
11257 cat >>confdefs.h
<<\_ACEOF
11262 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11263 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11264 if test "${ac_cv_os_cray+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 cat >conftest.
$ac_ext <<_ACEOF
11268 #line $LINENO "configure"
11271 cat confdefs.h
>>conftest.
$ac_ext
11272 cat >>conftest.
$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 #if defined(CRAY) && ! defined(CRAY2)
11281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11282 $EGREP "webecray" >/dev
/null
2>&1; then
11290 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11291 echo "${ECHO_T}$ac_cv_os_cray" >&6
11292 if test $ac_cv_os_cray = yes; then
11293 for ac_func
in _getb67 GETB67 getb67
; do
11294 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 echo "$as_me:$LINENO: checking for $ac_func" >&5
11296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11297 if eval "test \"\${$as_ac_var+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 cat >conftest.
$ac_ext <<_ACEOF
11301 #line $LINENO "configure"
11304 cat confdefs.h
>>conftest.
$ac_ext
11305 cat >>conftest.
$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11312 # include <limits.h>
11314 # include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error. */
11321 /* We use char because int might match the return type of a gcc2
11322 builtin and then its argument prototype would still apply. */
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330 char (*f) () = $ac_func;
11339 return f != $ac_func;
11344 rm -f conftest.
$ac_objext conftest
$ac_exeext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try
='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 eval "$as_ac_var=yes"
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.
$ac_ext >&5
11361 eval "$as_ac_var=no"
11363 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11367 if test `eval echo '${'$as_ac_var'}'` = yes; then
11369 cat >>confdefs.h
<<_ACEOF
11370 #define CRAY_STACKSEG_END $ac_func
11379 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11380 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11381 if test "${ac_cv_c_stack_direction+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 if test "$cross_compiling" = yes; then
11385 ac_cv_c_stack_direction
=0
11387 cat >conftest.
$ac_ext <<_ACEOF
11388 #line $LINENO "configure"
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11395 find_stack_direction ()
11397 static char *addr = 0;
11402 return find_stack_direction ();
11405 return (&dummy > addr) ? 1 : -1;
11411 exit (find_stack_direction () < 0);
11414 rm -f conftest
$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_c_stack_direction
=1
11427 echo "$as_me: program exited with status $ac_status" >&5
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.
$ac_ext >&5
11431 ( exit $ac_status )
11432 ac_cv_c_stack_direction
=-1
11434 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11437 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11438 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11440 cat >>confdefs.h
<<_ACEOF
11441 #define STACK_DIRECTION $ac_cv_c_stack_direction
11448 # fmod, logb, and frexp are found in -lm on most systems.
11449 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11451 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
11452 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
11453 if test "${ac_cv_lib_m_sqrt+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 ac_check_lib_save_LIBS
=$LIBS
11458 cat >conftest.
$ac_ext <<_ACEOF
11459 #line $LINENO "configure"
11462 cat confdefs.h
>>conftest.
$ac_ext
11463 cat >>conftest.
$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11466 /* Override any gcc2 internal prototype to avoid an error. */
11470 /* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11481 rm -f conftest.
$ac_objext conftest
$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try
='test -s conftest$ac_exeext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 ac_cv_lib_m_sqrt
=yes
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.
$ac_ext >&5
11498 ac_cv_lib_m_sqrt
=no
11500 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11501 LIBS
=$ac_check_lib_save_LIBS
11503 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
11504 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
11505 if test $ac_cv_lib_m_sqrt = yes; then
11506 cat >>confdefs.h
<<_ACEOF
11507 #define HAVE_LIBM 1
11515 # Check for mail-locking functions in a "mail" library. Probably this should
11516 # have the same check as for liblockfile below.
11518 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
11519 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
11520 if test "${ac_cv_lib_mail_maillock+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 ac_check_lib_save_LIBS
=$LIBS
11524 LIBS
="-lmail $LIBS"
11525 cat >conftest.
$ac_ext <<_ACEOF
11526 #line $LINENO "configure"
11529 cat confdefs.h
>>conftest.
$ac_ext
11530 cat >>conftest.
$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11533 /* Override any gcc2 internal prototype to avoid an error. */
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11548 rm -f conftest.
$ac_objext conftest
$ac_exeext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try
='test -s conftest$ac_exeext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_lib_mail_maillock
=yes
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.
$ac_ext >&5
11565 ac_cv_lib_mail_maillock
=no
11567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11568 LIBS
=$ac_check_lib_save_LIBS
11570 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
11571 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
11572 if test $ac_cv_lib_mail_maillock = yes; then
11573 cat >>confdefs.h
<<_ACEOF
11574 #define HAVE_LIBMAIL 1
11577 LIBS
="-lmail $LIBS"
11582 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
11583 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
11584 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 ac_check_lib_save_LIBS
=$LIBS
11588 LIBS
="-llockfile $LIBS"
11589 cat >conftest.
$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11593 cat confdefs.h
>>conftest.
$ac_ext
11594 cat >>conftest.
$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11597 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11612 rm -f conftest.
$ac_objext conftest
$ac_exeext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try
='test -s conftest$ac_exeext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_cv_lib_lockfile_maillock
=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.
$ac_ext >&5
11629 ac_cv_lib_lockfile_maillock
=no
11631 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11632 LIBS
=$ac_check_lib_save_LIBS
11634 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
11635 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
11636 if test $ac_cv_lib_lockfile_maillock = yes; then
11637 cat >>confdefs.h
<<_ACEOF
11638 #define HAVE_LIBLOCKFILE 1
11641 LIBS
="-llockfile $LIBS"
11645 # If we have the shared liblockfile, assume we must use it for mail
11646 # locking (e.g. Debian). If we couldn't link against liblockfile
11647 # (no liblockfile.a installed), ensure that we don't need to.
11648 if test "$ac_cv_lib_lockfile_maillock" = no
; then
11649 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11650 set dummy liblockfile.so
; ac_word
=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_liblockfile+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 if test -n "$liblockfile"; then
11657 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11660 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11661 for as_dir
in $as_dummy
11664 test -z "$as_dir" && as_dir
=.
11665 for ac_exec_ext
in '' $ac_executable_extensions; do
11666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_prog_liblockfile
="yes"
11668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11677 liblockfile
=$ac_cv_prog_liblockfile
11678 if test -n "$liblockfile"; then
11679 echo "$as_me:$LINENO: result: $liblockfile" >&5
11680 echo "${ECHO_T}$liblockfile" >&6
11682 echo "$as_me:$LINENO: result: no" >&5
11683 echo "${ECHO_T}no" >&6
11686 if test $ac_cv_prog_liblockfile = yes; then
11687 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11688 This probably means that movemail could lose mail.
11689 There may be a \`development' package to install containing liblockfile." >&5
11690 echo "$as_me: error: Shared liblockfile found but can't link against it.
11691 This probably means that movemail could lose mail.
11692 There may be a \`development' package to install containing liblockfile." >&2;}
11693 { (exit 1); exit 1; }; }
11698 for ac_func
in touchlock
11700 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11701 echo "$as_me:$LINENO: checking for $ac_func" >&5
11702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11703 if eval "test \"\${$as_ac_var+set}\" = set"; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 cat >conftest.
$ac_ext <<_ACEOF
11707 #line $LINENO "configure"
11710 cat confdefs.h
>>conftest.
$ac_ext
11711 cat >>conftest.
$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 /* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */
11718 # include <limits.h>
11720 # include <assert.h>
11722 /* Override any gcc2 internal prototype to avoid an error. */
11727 /* We use char because int might match the return type of a gcc2
11728 builtin and then its argument prototype would still apply. */
11730 /* The GNU C library defines this for functions which it implements
11731 to always fail with ENOSYS. Some functions are actually named
11732 something starting with __ and the normal name is an alias. */
11733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11736 char (*f) () = $ac_func;
11745 return f != $ac_func;
11750 rm -f conftest.
$ac_objext conftest
$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try
='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 eval "$as_ac_var=yes"
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.
$ac_ext >&5
11767 eval "$as_ac_var=no"
11769 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774 cat >>confdefs.h
<<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11782 for ac_header
in maillock.h
11784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11786 echo "$as_me:$LINENO: checking for $ac_header" >&5
11787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11794 # Is the header compilable?
11795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11797 cat >conftest.
$ac_ext <<_ACEOF
11798 #line $LINENO "configure"
11801 cat confdefs.h
>>conftest.
$ac_ext
11802 cat >>conftest.
$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 #include <$ac_header>
11807 rm -f conftest.
$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try
='test -s conftest.$ac_objext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_header_compiler
=yes
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.
$ac_ext >&5
11824 ac_header_compiler
=no
11826 rm -f conftest.
$ac_objext conftest.
$ac_ext
11827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11828 echo "${ECHO_T}$ac_header_compiler" >&6
11830 # Is the header present?
11831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11833 cat >conftest.
$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11837 cat confdefs.h
>>conftest.
$ac_ext
11838 cat >>conftest.
$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 #include <$ac_header>
11842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11843 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11845 grep -v '^ *+' conftest.er1
>conftest.err
11847 cat conftest.err
>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev
/null
; then
11850 if test -s conftest.err
; then
11851 ac_cpp_err
=$ac_c_preproc_warn_flag
11858 if test -z "$ac_cpp_err"; then
11859 ac_header_preproc
=yes
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.
$ac_ext >&5
11864 ac_header_preproc
=no
11866 rm -f conftest.err conftest.
$ac_ext
11867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11868 echo "${ECHO_T}$ac_header_preproc" >&6
11870 # So? What about this header?
11871 case $ac_header_compiler:$ac_header_preproc in
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879 ## ------------------------------------ ##
11880 ## Report this to bug-autoconf@gnu.org. ##
11881 ## ------------------------------------ ##
11884 sed "s/^/$as_me: WARNING: /" >&2
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11895 ## ------------------------------------ ##
11896 ## Report this to bug-autoconf@gnu.org. ##
11897 ## ------------------------------------ ##
11900 sed "s/^/$as_me: WARNING: /" >&2
11903 echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 eval "$as_ac_Header=$ac_header_preproc"
11910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11915 cat >>confdefs.h
<<_ACEOF
11916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11991 for ac_func
in gethostname getdomainname dup2 \
11992 rename closedir mkdir
rmdir sysinfo \
11993 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11994 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11995 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11996 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11997 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11998 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11999 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
12001 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12002 echo "$as_me:$LINENO: checking for $ac_func" >&5
12003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12004 if eval "test \"\${$as_ac_var+set}\" = set"; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 cat >conftest.
$ac_ext <<_ACEOF
12008 #line $LINENO "configure"
12011 cat confdefs.h
>>conftest.
$ac_ext
12012 cat >>conftest.
$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */
12019 # include <limits.h>
12021 # include <assert.h>
12023 /* Override any gcc2 internal prototype to avoid an error. */
12028 /* We use char because int might match the return type of a gcc2
12029 builtin and then its argument prototype would still apply. */
12031 /* The GNU C library defines this for functions which it implements
12032 to always fail with ENOSYS. Some functions are actually named
12033 something starting with __ and the normal name is an alias. */
12034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12037 char (*f) () = $ac_func;
12046 return f != $ac_func;
12051 rm -f conftest.
$ac_objext conftest
$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try
='test -s conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 eval "$as_ac_var=yes"
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.
$ac_ext >&5
12068 eval "$as_ac_var=no"
12070 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12074 if test `eval echo '${'$as_ac_var'}'` = yes; then
12075 cat >>confdefs.h
<<_ACEOF
12076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12084 for ac_header
in sys
/un.h
12086 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12088 echo "$as_me:$LINENO: checking for $ac_header" >&5
12089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12096 # Is the header compilable?
12097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12099 cat >conftest.
$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12103 cat confdefs.h
>>conftest.
$ac_ext
12104 cat >>conftest.
$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 $ac_includes_default
12107 #include <$ac_header>
12109 rm -f conftest.
$ac_objext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try
='test -s conftest.$ac_objext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_header_compiler
=yes
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.
$ac_ext >&5
12126 ac_header_compiler
=no
12128 rm -f conftest.
$ac_objext conftest.
$ac_ext
12129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6
12132 # Is the header present?
12133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12135 cat >conftest.
$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12139 cat confdefs.h
>>conftest.
$ac_ext
12140 cat >>conftest.
$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <$ac_header>
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1
>conftest.err
12149 cat conftest.err
>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev
/null
; then
12152 if test -s conftest.err
; then
12153 ac_cpp_err
=$ac_c_preproc_warn_flag
12160 if test -z "$ac_cpp_err"; then
12161 ac_header_preproc
=yes
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.
$ac_ext >&5
12166 ac_header_preproc
=no
12168 rm -f conftest.err conftest.
$ac_ext
12169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12170 echo "${ECHO_T}$ac_header_preproc" >&6
12172 # So? What about this header?
12173 case $ac_header_compiler:$ac_header_preproc in
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12181 ## ------------------------------------ ##
12182 ## Report this to bug-autoconf@gnu.org. ##
12183 ## ------------------------------------ ##
12186 sed "s/^/$as_me: WARNING: /" >&2
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12197 ## ------------------------------------ ##
12198 ## Report this to bug-autoconf@gnu.org. ##
12199 ## ------------------------------------ ##
12202 sed "s/^/$as_me: WARNING: /" >&2
12205 echo "$as_me:$LINENO: checking for $ac_header" >&5
12206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 eval "$as_ac_Header=$ac_header_preproc"
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h
<<_ACEOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228 for ac_header
in sys
/time.h unistd.h
12230 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo "$as_me:$LINENO: checking for $ac_header" >&5
12233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12240 # Is the header compilable?
12241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12243 cat >conftest.
$ac_ext <<_ACEOF
12244 #line $LINENO "configure"
12247 cat confdefs.h
>>conftest.
$ac_ext
12248 cat >>conftest.
$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 $ac_includes_default
12251 #include <$ac_header>
12253 rm -f conftest.
$ac_objext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
12259 { ac_try
='test -s conftest.$ac_objext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_header_compiler
=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.
$ac_ext >&5
12270 ac_header_compiler
=no
12272 rm -f conftest.
$ac_objext conftest.
$ac_ext
12273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12274 echo "${ECHO_T}$ac_header_compiler" >&6
12276 # Is the header present?
12277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12279 cat >conftest.
$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12283 cat confdefs.h
>>conftest.
$ac_ext
12284 cat >>conftest.
$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <$ac_header>
12288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12289 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12291 grep -v '^ *+' conftest.er1
>conftest.err
12293 cat conftest.err
>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } >/dev
/null
; then
12296 if test -s conftest.err
; then
12297 ac_cpp_err
=$ac_c_preproc_warn_flag
12304 if test -z "$ac_cpp_err"; then
12305 ac_header_preproc
=yes
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.
$ac_ext >&5
12310 ac_header_preproc
=no
12312 rm -f conftest.err conftest.
$ac_ext
12313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12314 echo "${ECHO_T}$ac_header_preproc" >&6
12316 # So? What about this header?
12317 case $ac_header_compiler:$ac_header_preproc in
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12325 ## ------------------------------------ ##
12326 ## Report this to bug-autoconf@gnu.org. ##
12327 ## ------------------------------------ ##
12330 sed "s/^/$as_me: WARNING: /" >&2
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12341 ## ------------------------------------ ##
12342 ## Report this to bug-autoconf@gnu.org. ##
12343 ## ------------------------------------ ##
12346 sed "s/^/$as_me: WARNING: /" >&2
12349 echo "$as_me:$LINENO: checking for $ac_header" >&5
12350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 eval "$as_ac_Header=$ac_header_preproc"
12356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12361 cat >>confdefs.h
<<_ACEOF
12362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12370 for ac_func
in alarm
12372 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12373 echo "$as_me:$LINENO: checking for $ac_func" >&5
12374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12375 if eval "test \"\${$as_ac_var+set}\" = set"; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 cat >conftest.
$ac_ext <<_ACEOF
12379 #line $LINENO "configure"
12382 cat confdefs.h
>>conftest.
$ac_ext
12383 cat >>conftest.
$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 /* System header to define __stub macros and hopefully few prototypes,
12386 which can conflict with char $ac_func (); below.
12387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12388 <limits.h> exists even on freestanding compilers. */
12390 # include <limits.h>
12392 # include <assert.h>
12394 /* Override any gcc2 internal prototype to avoid an error. */
12399 /* We use char because int might match the return type of a gcc2
12400 builtin and then its argument prototype would still apply. */
12402 /* The GNU C library defines this for functions which it implements
12403 to always fail with ENOSYS. Some functions are actually named
12404 something starting with __ and the normal name is an alias. */
12405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12408 char (*f) () = $ac_func;
12417 return f != $ac_func;
12422 rm -f conftest.
$ac_objext conftest
$ac_exeext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424 (eval $ac_link) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try
='test -s conftest$ac_exeext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 eval "$as_ac_var=yes"
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.
$ac_ext >&5
12439 eval "$as_ac_var=no"
12441 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12445 if test `eval echo '${'$as_ac_var'}'` = yes; then
12446 cat >>confdefs.h
<<_ACEOF
12447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12453 echo "$as_me:$LINENO: checking for working mktime" >&5
12454 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
12455 if test "${ac_cv_func_working_mktime+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 if test "$cross_compiling" = yes; then
12459 ac_cv_func_working_mktime
=no
12461 cat >conftest.
$ac_ext <<_ACEOF
12462 #line $LINENO "configure"
12465 cat confdefs.h
>>conftest.
$ac_ext
12466 cat >>conftest.
$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 /* Test program from Paul Eggert and Tony Leneis. */
12469 #if TIME_WITH_SYS_TIME
12470 # include <sys/time.h>
12473 # if HAVE_SYS_TIME_H
12474 # include <sys/time.h>
12481 # include <unistd.h>
12485 # define alarm(X) /* empty */
12488 /* Work around redefinition to rpl_putenv by other config tests. */
12491 static time_t time_t_max;
12493 /* Values we'll use to set the TZ environment variable. */
12494 static const char *const tz_strings[] = {
12495 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12496 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12498 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12500 /* Fail if mktime fails to convert a date in the spring-forward gap.
12501 Based on a problem report from Andreas Jaeger. */
12503 spring_forward_gap ()
12505 /* glibc (up to about 1998-10-07) failed this test. */
12508 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12509 instead of "TZ=America/Vancouver" in order to detect the bug even
12510 on systems that don't support the Olson extension, or don't have the
12511 full zoneinfo tables installed. */
12512 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12521 if (mktime (&tm) == (time_t)-1)
12530 if ((lt = localtime (&now)) && mktime (lt) != now)
12532 now = time_t_max - now;
12533 if ((lt = localtime (&now)) && mktime (lt) != now)
12540 /* Based on code from Ariel Faigon. */
12550 if (tm.tm_mon != 2 || tm.tm_mday != 31)
12560 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12561 now = mktime (&tm);
12562 if (now != (time_t) -1)
12564 struct tm *lt = localtime (&now);
12566 && lt->tm_year == tm.tm_year
12567 && lt->tm_mon == tm.tm_mon
12568 && lt->tm_mday == tm.tm_mday
12569 && lt->tm_hour == tm.tm_hour
12570 && lt->tm_min == tm.tm_min
12571 && lt->tm_sec == tm.tm_sec
12572 && lt->tm_yday == tm.tm_yday
12573 && lt->tm_wday == tm.tm_wday
12574 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12575 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12586 /* This test makes some buggy mktime implementations loop.
12587 Give up after 60 seconds; a mktime slower than that
12588 isn't worth using anyway. */
12591 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12594 delta = time_t_max / 997; /* a suitable prime number */
12595 for (i = 0; i < N_STRINGS; i++)
12598 putenv (tz_strings[i]);
12600 for (t = 0; t <= time_t_max - delta; t += delta)
12602 mktime_test ((time_t) 60 * 60);
12603 mktime_test ((time_t) 60 * 60 * 24);
12605 for (j = 1; 0 < j; j *= 2)
12607 bigtime_test (j - 1);
12610 spring_forward_gap ();
12614 rm -f conftest
$ac_exeext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12616 (eval $ac_link) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 ac_cv_func_working_mktime
=yes
12627 echo "$as_me: program exited with status $ac_status" >&5
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.
$ac_ext >&5
12631 ( exit $ac_status )
12632 ac_cv_func_working_mktime
=no
12634 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12637 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12638 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12639 if test $ac_cv_func_working_mktime = no
; then
12640 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12643 if test "$ac_cv_func_working_mktime" = no
; then
12645 cat >>confdefs.h
<<\_ACEOF
12646 #define BROKEN_MKTIME 1
12651 ac_have_func
=no
# yes means we've found a way to get the load average.
12653 # Make sure getloadavg.c is where it belongs, at configure-time.
12654 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12655 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12656 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12657 { (exit 1); exit 1; }; }
12661 # Check for getloadavg, but be sure not to touch the cache variable.
12662 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12663 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12664 if test "${ac_cv_func_getloadavg+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 cat >conftest.
$ac_ext <<_ACEOF
12668 #line $LINENO "configure"
12671 cat confdefs.h
>>conftest.
$ac_ext
12672 cat >>conftest.
$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 /* System header to define __stub macros and hopefully few prototypes,
12675 which can conflict with char getloadavg (); below.
12676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12677 <limits.h> exists even on freestanding compilers. */
12679 # include <limits.h>
12681 # include <assert.h>
12683 /* Override any gcc2 internal prototype to avoid an error. */
12688 /* We use char because int might match the return type of a gcc2
12689 builtin and then its argument prototype would still apply. */
12690 char getloadavg ();
12691 /* The GNU C library defines this for functions which it implements
12692 to always fail with ENOSYS. Some functions are actually named
12693 something starting with __ and the normal name is an alias. */
12694 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12697 char (*f) () = getloadavg;
12706 return f != getloadavg;
12711 rm -f conftest.
$ac_objext conftest
$ac_exeext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713 (eval $ac_link) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try
='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_func_getloadavg
=yes
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12728 ac_cv_func_getloadavg
=no
12730 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12732 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12733 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12734 if test $ac_cv_func_getloadavg = yes; then
12739 ) && ac_have_func
=yes
12741 # On HPUX9, an unprivileged user can get load averages through this function.
12743 for ac_func
in pstat_getdynamic
12745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746 echo "$as_me:$LINENO: checking for $ac_func" >&5
12747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12748 if eval "test \"\${$as_ac_var+set}\" = set"; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 cat >conftest.
$ac_ext <<_ACEOF
12752 #line $LINENO "configure"
12755 cat confdefs.h
>>conftest.
$ac_ext
12756 cat >>conftest.
$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 /* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func (); below.
12760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 <limits.h> exists even on freestanding compilers. */
12763 # include <limits.h>
12765 # include <assert.h>
12767 /* Override any gcc2 internal prototype to avoid an error. */
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12775 /* The GNU C library defines this for functions which it implements
12776 to always fail with ENOSYS. Some functions are actually named
12777 something starting with __ and the normal name is an alias. */
12778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12781 char (*f) () = $ac_func;
12790 return f != $ac_func;
12795 rm -f conftest.
$ac_objext conftest
$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try
='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 eval "$as_ac_var=yes"
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.
$ac_ext >&5
12812 eval "$as_ac_var=no"
12814 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12818 if test `eval echo '${'$as_ac_var'}'` = yes; then
12819 cat >>confdefs.h
<<_ACEOF
12820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827 # Solaris has libkstat which does not require root.
12829 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12830 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12831 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 ac_check_lib_save_LIBS
=$LIBS
12835 LIBS
="-lkstat $LIBS"
12836 cat >conftest.
$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12840 cat confdefs.h
>>conftest.
$ac_ext
12841 cat >>conftest.
$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any gcc2 internal prototype to avoid an error. */
12848 /* We use char because int might match the return type of a gcc2
12849 builtin and then its argument prototype would still apply. */
12850 char kstat_open ();
12859 rm -f conftest.
$ac_objext conftest
$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try
='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_lib_kstat_kstat_open
=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ac_cv_lib_kstat_kstat_open
=no
12878 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12879 LIBS
=$ac_check_lib_save_LIBS
12881 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12882 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12883 if test $ac_cv_lib_kstat_kstat_open = yes; then
12884 cat >>confdefs.h
<<_ACEOF
12885 #define HAVE_LIBKSTAT 1
12888 LIBS
="-lkstat $LIBS"
12892 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12894 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12895 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12896 # to get the right answer into the cache.
12897 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12898 if test $ac_have_func = no
; then
12899 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12900 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12901 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 ac_check_lib_save_LIBS
=$LIBS
12906 cat >conftest.
$ac_ext <<_ACEOF
12907 #line $LINENO "configure"
12910 cat confdefs.h
>>conftest.
$ac_ext
12911 cat >>conftest.
$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12914 /* Override any gcc2 internal prototype to avoid an error. */
12918 /* We use char because int might match the return type of a gcc2
12919 builtin and then its argument prototype would still apply. */
12929 rm -f conftest.
$ac_objext conftest
$ac_exeext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931 (eval $ac_link) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try
='test -s conftest$ac_exeext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_cv_lib_elf_elf_begin
=yes
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.
$ac_ext >&5
12946 ac_cv_lib_elf_elf_begin
=no
12948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12949 LIBS
=$ac_check_lib_save_LIBS
12951 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12952 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12953 if test $ac_cv_lib_elf_elf_begin = yes; then
12958 if test $ac_have_func = no
; then
12959 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12960 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12961 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 ac_check_lib_save_LIBS
=$LIBS
12966 cat >conftest.
$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12970 cat confdefs.h
>>conftest.
$ac_ext
12971 cat >>conftest.
$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12974 /* Override any gcc2 internal prototype to avoid an error. */
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12989 rm -f conftest.
$ac_objext conftest
$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try
='test -s conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_lib_kvm_kvm_open
=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.
$ac_ext >&5
13006 ac_cv_lib_kvm_kvm_open
=no
13008 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13009 LIBS
=$ac_check_lib_save_LIBS
13011 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
13012 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
13013 if test $ac_cv_lib_kvm_kvm_open = yes; then
13017 # Check for the 4.4BSD definition of getloadavg.
13018 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
13019 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
13020 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 ac_check_lib_save_LIBS
=$LIBS
13024 LIBS
="-lutil $LIBS"
13025 cat >conftest.
$ac_ext <<_ACEOF
13026 #line $LINENO "configure"
13029 cat confdefs.h
>>conftest.
$ac_ext
13030 cat >>conftest.
$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13033 /* Override any gcc2 internal prototype to avoid an error. */
13037 /* We use char because int might match the return type of a gcc2
13038 builtin and then its argument prototype would still apply. */
13039 char getloadavg ();
13048 rm -f conftest.
$ac_objext conftest
$ac_exeext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
13054 { ac_try
='test -s conftest$ac_exeext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_lib_util_getloadavg
=yes
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.
$ac_ext >&5
13065 ac_cv_lib_util_getloadavg
=no
13067 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13068 LIBS
=$ac_check_lib_save_LIBS
13070 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
13071 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
13072 if test $ac_cv_lib_util_getloadavg = yes; then
13073 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
13078 if test $ac_have_func = no
; then
13079 # There is a commonly available library for RS/6000 AIX.
13080 # Since it is not a standard part of AIX, it might be installed locally.
13081 ac_getloadavg_LIBS
=$LIBS
13082 LIBS
="-L/usr/local/lib $LIBS"
13083 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
13084 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
13085 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 ac_check_lib_save_LIBS
=$LIBS
13089 LIBS
="-lgetloadavg $LIBS"
13090 cat >conftest.
$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13094 cat confdefs.h
>>conftest.
$ac_ext
13095 cat >>conftest.
$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13098 /* Override any gcc2 internal prototype to avoid an error. */
13102 /* We use char because int might match the return type of a gcc2
13103 builtin and then its argument prototype would still apply. */
13104 char getloadavg ();
13113 rm -f conftest.
$ac_objext conftest
$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try
='test -s conftest$ac_exeext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_lib_getloadavg_getloadavg
=yes
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.
$ac_ext >&5
13130 ac_cv_lib_getloadavg_getloadavg
=no
13132 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13133 LIBS
=$ac_check_lib_save_LIBS
13135 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13136 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
13137 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
13138 LIBS
="-lgetloadavg $LIBS"
13140 LIBS
=$ac_getloadavg_LIBS
13145 # Make sure it is really in the library, if we think we found it,
13146 # otherwise set up the replacement function.
13148 for ac_func
in getloadavg
13150 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13151 echo "$as_me:$LINENO: checking for $ac_func" >&5
13152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13153 if eval "test \"\${$as_ac_var+set}\" = set"; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 cat >conftest.
$ac_ext <<_ACEOF
13157 #line $LINENO "configure"
13160 cat confdefs.h
>>conftest.
$ac_ext
13161 cat >>conftest.
$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 /* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char $ac_func (); below.
13165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166 <limits.h> exists even on freestanding compilers. */
13168 # include <limits.h>
13170 # include <assert.h>
13172 /* Override any gcc2 internal prototype to avoid an error. */
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13180 /* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13186 char (*f) () = $ac_func;
13195 return f != $ac_func;
13200 rm -f conftest.
$ac_objext conftest
$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try
='test -s conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 eval "$as_ac_var=yes"
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.
$ac_ext >&5
13217 eval "$as_ac_var=no"
13219 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13223 if test `eval echo '${'$as_ac_var'}'` = yes; then
13224 cat >>confdefs.h
<<_ACEOF
13225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13229 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13231 cat >>confdefs.h
<<\_ACEOF
13232 #define C_GETLOADAVG 1
13235 # Figure out what our getloadavg.c needs.
13237 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13238 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13239 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13240 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13244 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13246 # Is the header compilable?
13247 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
13248 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
13249 cat >conftest.
$ac_ext <<_ACEOF
13250 #line $LINENO "configure"
13253 cat confdefs.h
>>conftest.
$ac_ext
13254 cat >>conftest.
$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 #include <sys/dg_sys_info.h>
13259 rm -f conftest.
$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try
='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_header_compiler
=yes
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.
$ac_ext >&5
13276 ac_header_compiler
=no
13278 rm -f conftest.
$ac_objext conftest.
$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13280 echo "${ECHO_T}$ac_header_compiler" >&6
13282 # Is the header present?
13283 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
13284 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
13285 cat >conftest.
$ac_ext <<_ACEOF
13286 #line $LINENO "configure"
13289 cat confdefs.h
>>conftest.
$ac_ext
13290 cat >>conftest.
$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 #include <sys/dg_sys_info.h>
13294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13295 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13297 grep -v '^ *+' conftest.er1
>conftest.err
13299 cat conftest.err
>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } >/dev
/null
; then
13302 if test -s conftest.err
; then
13303 ac_cpp_err
=$ac_c_preproc_warn_flag
13310 if test -z "$ac_cpp_err"; then
13311 ac_header_preproc
=yes
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.
$ac_ext >&5
13316 ac_header_preproc
=no
13318 rm -f conftest.err conftest.
$ac_ext
13319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13320 echo "${ECHO_T}$ac_header_preproc" >&6
13322 # So? What about this header?
13323 case $ac_header_compiler:$ac_header_preproc in
13325 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
13326 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13328 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13331 ## ------------------------------------ ##
13332 ## Report this to bug-autoconf@gnu.org. ##
13333 ## ------------------------------------ ##
13336 sed "s/^/$as_me: WARNING: /" >&2
13339 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
13340 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
13342 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13344 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
13347 ## ------------------------------------ ##
13348 ## Report this to bug-autoconf@gnu.org. ##
13349 ## ------------------------------------ ##
13352 sed "s/^/$as_me: WARNING: /" >&2
13355 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
13356 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
13357 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
13362 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
13363 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
13366 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
13369 cat >>confdefs.h
<<\_ACEOF
13374 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
13375 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
13376 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 ac_check_lib_save_LIBS
=$LIBS
13381 cat >conftest.
$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13385 cat confdefs.h
>>conftest.
$ac_ext
13386 cat >>conftest.
$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13389 /* Override any gcc2 internal prototype to avoid an error. */
13393 /* We use char because int might match the return type of a gcc2
13394 builtin and then its argument prototype would still apply. */
13395 char dg_sys_info ();
13404 rm -f conftest.
$ac_objext conftest
$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try
='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_lib_dgc_dg_sys_info
=yes
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.
$ac_ext >&5
13421 ac_cv_lib_dgc_dg_sys_info
=no
13423 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13424 LIBS
=$ac_check_lib_save_LIBS
13426 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13427 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
13428 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
13429 cat >>confdefs.h
<<_ACEOF
13430 #define HAVE_LIBDGC 1
13441 if test "${ac_cv_header_locale_h+set}" = set; then
13442 echo "$as_me:$LINENO: checking for locale.h" >&5
13443 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13444 if test "${ac_cv_header_locale_h+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13448 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13450 # Is the header compilable?
13451 echo "$as_me:$LINENO: checking locale.h usability" >&5
13452 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
13453 cat >conftest.
$ac_ext <<_ACEOF
13454 #line $LINENO "configure"
13457 cat confdefs.h
>>conftest.
$ac_ext
13458 cat >>conftest.
$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13461 #include <locale.h>
13463 rm -f conftest.
$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try
='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_header_compiler
=yes
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.
$ac_ext >&5
13480 ac_header_compiler
=no
13482 rm -f conftest.
$ac_objext conftest.
$ac_ext
13483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13484 echo "${ECHO_T}$ac_header_compiler" >&6
13486 # Is the header present?
13487 echo "$as_me:$LINENO: checking locale.h presence" >&5
13488 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
13489 cat >conftest.
$ac_ext <<_ACEOF
13490 #line $LINENO "configure"
13493 cat confdefs.h
>>conftest.
$ac_ext
13494 cat >>conftest.
$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13496 #include <locale.h>
13498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13499 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13501 grep -v '^ *+' conftest.er1
>conftest.err
13503 cat conftest.err
>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } >/dev
/null
; then
13506 if test -s conftest.err
; then
13507 ac_cpp_err
=$ac_c_preproc_warn_flag
13514 if test -z "$ac_cpp_err"; then
13515 ac_header_preproc
=yes
13517 echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.
$ac_ext >&5
13520 ac_header_preproc
=no
13522 rm -f conftest.err conftest.
$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13524 echo "${ECHO_T}$ac_header_preproc" >&6
13526 # So? What about this header?
13527 case $ac_header_compiler:$ac_header_preproc in
13529 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
13530 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13532 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13535 ## ------------------------------------ ##
13536 ## Report this to bug-autoconf@gnu.org. ##
13537 ## ------------------------------------ ##
13540 sed "s/^/$as_me: WARNING: /" >&2
13543 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13544 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13546 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13548 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
13551 ## ------------------------------------ ##
13552 ## Report this to bug-autoconf@gnu.org. ##
13553 ## ------------------------------------ ##
13556 sed "s/^/$as_me: WARNING: /" >&2
13559 echo "$as_me:$LINENO: checking for locale.h" >&5
13560 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
13561 if test "${ac_cv_header_locale_h+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 ac_cv_header_locale_h
=$ac_header_preproc
13566 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
13573 for ac_func
in setlocale
13575 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13576 echo "$as_me:$LINENO: checking for $ac_func" >&5
13577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13578 if eval "test \"\${$as_ac_var+set}\" = set"; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 cat >conftest.
$ac_ext <<_ACEOF
13582 #line $LINENO "configure"
13585 cat confdefs.h
>>conftest.
$ac_ext
13586 cat >>conftest.
$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 /* System header to define __stub macros and hopefully few prototypes,
13589 which can conflict with char $ac_func (); below.
13590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13591 <limits.h> exists even on freestanding compilers. */
13593 # include <limits.h>
13595 # include <assert.h>
13597 /* Override any gcc2 internal prototype to avoid an error. */
13602 /* We use char because int might match the return type of a gcc2
13603 builtin and then its argument prototype would still apply. */
13605 /* The GNU C library defines this for functions which it implements
13606 to always fail with ENOSYS. Some functions are actually named
13607 something starting with __ and the normal name is an alias. */
13608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13611 char (*f) () = $ac_func;
13620 return f != $ac_func;
13625 rm -f conftest.
$ac_objext conftest
$ac_exeext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13627 (eval $ac_link) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try
='test -s conftest$ac_exeext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13637 eval "$as_ac_var=yes"
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.
$ac_ext >&5
13642 eval "$as_ac_var=no"
13644 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13648 if test `eval echo '${'$as_ac_var'}'` = yes; then
13649 cat >>confdefs.h
<<_ACEOF
13650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13657 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13658 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13659 # Irix 4.0.5F has the header but not the library.
13660 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
13663 cat >>confdefs.h
<<\_ACEOF
13669 if test $ac_have_func = no
; then
13670 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13671 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13672 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13673 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13677 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13679 # Is the header compilable?
13680 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13681 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13682 cat >conftest.
$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13686 cat confdefs.h
>>conftest.
$ac_ext
13687 cat >>conftest.
$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 #include <inq_stats/cpustats.h>
13692 rm -f conftest.
$ac_objext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try
='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_header_compiler
=yes
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.
$ac_ext >&5
13709 ac_header_compiler
=no
13711 rm -f conftest.
$ac_objext conftest.
$ac_ext
13712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13713 echo "${ECHO_T}$ac_header_compiler" >&6
13715 # Is the header present?
13716 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13717 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13718 cat >conftest.
$ac_ext <<_ACEOF
13719 #line $LINENO "configure"
13722 cat confdefs.h
>>conftest.
$ac_ext
13723 cat >>conftest.
$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 #include <inq_stats/cpustats.h>
13727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13730 grep -v '^ *+' conftest.er1
>conftest.err
13732 cat conftest.err
>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } >/dev
/null
; then
13735 if test -s conftest.err
; then
13736 ac_cpp_err
=$ac_c_preproc_warn_flag
13743 if test -z "$ac_cpp_err"; then
13744 ac_header_preproc
=yes
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.
$ac_ext >&5
13749 ac_header_preproc
=no
13751 rm -f conftest.err conftest.
$ac_ext
13752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753 echo "${ECHO_T}$ac_header_preproc" >&6
13755 # So? What about this header?
13756 case $ac_header_compiler:$ac_header_preproc in
13758 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13759 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13761 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13764 ## ------------------------------------ ##
13765 ## Report this to bug-autoconf@gnu.org. ##
13766 ## ------------------------------------ ##
13769 sed "s/^/$as_me: WARNING: /" >&2
13772 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13773 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13775 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13777 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13780 ## ------------------------------------ ##
13781 ## Report this to bug-autoconf@gnu.org. ##
13782 ## ------------------------------------ ##
13785 sed "s/^/$as_me: WARNING: /" >&2
13788 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13789 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13790 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13795 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13796 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13799 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13802 cat >>confdefs.h
<<\_ACEOF
13807 cat >>confdefs.h
<<\_ACEOF
13816 if test $ac_have_func = no
; then
13817 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13818 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13819 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13820 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13824 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13826 # Is the header compilable?
13827 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13828 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13829 cat >conftest.
$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13833 cat confdefs.h
>>conftest.
$ac_ext
13834 cat >>conftest.
$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <sys/cpustats.h>
13839 rm -f conftest.
$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try
='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_header_compiler
=yes
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.
$ac_ext >&5
13856 ac_header_compiler
=no
13858 rm -f conftest.
$ac_objext conftest.
$ac_ext
13859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13860 echo "${ECHO_T}$ac_header_compiler" >&6
13862 # Is the header present?
13863 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13864 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13865 cat >conftest.
$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13869 cat confdefs.h
>>conftest.
$ac_ext
13870 cat >>conftest.
$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 #include <sys/cpustats.h>
13874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13877 grep -v '^ *+' conftest.er1
>conftest.err
13879 cat conftest.err
>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } >/dev
/null
; then
13882 if test -s conftest.err
; then
13883 ac_cpp_err
=$ac_c_preproc_warn_flag
13890 if test -z "$ac_cpp_err"; then
13891 ac_header_preproc
=yes
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.
$ac_ext >&5
13896 ac_header_preproc
=no
13898 rm -f conftest.err conftest.
$ac_ext
13899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13900 echo "${ECHO_T}$ac_header_preproc" >&6
13902 # So? What about this header?
13903 case $ac_header_compiler:$ac_header_preproc in
13905 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13906 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13908 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13911 ## ------------------------------------ ##
13912 ## Report this to bug-autoconf@gnu.org. ##
13913 ## ------------------------------------ ##
13916 sed "s/^/$as_me: WARNING: /" >&2
13919 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13920 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13922 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13924 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13927 ## ------------------------------------ ##
13928 ## Report this to bug-autoconf@gnu.org. ##
13929 ## ------------------------------------ ##
13932 sed "s/^/$as_me: WARNING: /" >&2
13935 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13936 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13937 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13942 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13943 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13946 if test $ac_cv_header_sys_cpustats_h = yes; then
13947 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13956 if test $ac_have_func = no
; then
13958 for ac_header
in mach
/mach.h
13960 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13962 echo "$as_me:$LINENO: checking for $ac_header" >&5
13963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13970 # Is the header compilable?
13971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13973 cat >conftest.
$ac_ext <<_ACEOF
13974 #line $LINENO "configure"
13977 cat confdefs.h
>>conftest.
$ac_ext
13978 cat >>conftest.
$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <$ac_header>
13983 rm -f conftest.
$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try
='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_header_compiler
=yes
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.
$ac_ext >&5
14000 ac_header_compiler
=no
14002 rm -f conftest.
$ac_objext conftest.
$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14004 echo "${ECHO_T}$ac_header_compiler" >&6
14006 # Is the header present?
14007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14009 cat >conftest.
$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14013 cat confdefs.h
>>conftest.
$ac_ext
14014 cat >>conftest.
$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include <$ac_header>
14018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14021 grep -v '^ *+' conftest.er1
>conftest.err
14023 cat conftest.err
>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } >/dev
/null
; then
14026 if test -s conftest.err
; then
14027 ac_cpp_err
=$ac_c_preproc_warn_flag
14034 if test -z "$ac_cpp_err"; then
14035 ac_header_preproc
=yes
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.
$ac_ext >&5
14040 ac_header_preproc
=no
14042 rm -f conftest.err conftest.
$ac_ext
14043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14044 echo "${ECHO_T}$ac_header_preproc" >&6
14046 # So? What about this header?
14047 case $ac_header_compiler:$ac_header_preproc in
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14055 ## ------------------------------------ ##
14056 ## Report this to bug-autoconf@gnu.org. ##
14057 ## ------------------------------------ ##
14060 sed "s/^/$as_me: WARNING: /" >&2
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14071 ## ------------------------------------ ##
14072 ## Report this to bug-autoconf@gnu.org. ##
14073 ## ------------------------------------ ##
14076 sed "s/^/$as_me: WARNING: /" >&2
14079 echo "$as_me:$LINENO: checking for $ac_header" >&5
14080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 eval "$as_ac_Header=$ac_header_preproc"
14086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14091 cat >>confdefs.h
<<_ACEOF
14092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14102 for ac_header
in nlist.h
14104 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo "$as_me:$LINENO: checking for $ac_header" >&5
14107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14114 # Is the header compilable?
14115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14117 cat >conftest.
$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14121 cat confdefs.h
>>conftest.
$ac_ext
14122 cat >>conftest.
$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 $ac_includes_default
14125 #include <$ac_header>
14127 rm -f conftest.
$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try
='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_header_compiler
=yes
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.
$ac_ext >&5
14144 ac_header_compiler
=no
14146 rm -f conftest.
$ac_objext conftest.
$ac_ext
14147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14148 echo "${ECHO_T}$ac_header_compiler" >&6
14150 # Is the header present?
14151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14153 cat >conftest.
$ac_ext <<_ACEOF
14154 #line $LINENO "configure"
14157 cat confdefs.h
>>conftest.
$ac_ext
14158 cat >>conftest.
$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <$ac_header>
14162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14163 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14165 grep -v '^ *+' conftest.er1
>conftest.err
14167 cat conftest.err
>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } >/dev
/null
; then
14170 if test -s conftest.err
; then
14171 ac_cpp_err
=$ac_c_preproc_warn_flag
14178 if test -z "$ac_cpp_err"; then
14179 ac_header_preproc
=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.
$ac_ext >&5
14184 ac_header_preproc
=no
14186 rm -f conftest.err conftest.
$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14188 echo "${ECHO_T}$ac_header_preproc" >&6
14190 # So? What about this header?
14191 case $ac_header_compiler:$ac_header_preproc in
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14199 ## ------------------------------------ ##
14200 ## Report this to bug-autoconf@gnu.org. ##
14201 ## ------------------------------------ ##
14204 sed "s/^/$as_me: WARNING: /" >&2
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14215 ## ------------------------------------ ##
14216 ## Report this to bug-autoconf@gnu.org. ##
14217 ## ------------------------------------ ##
14220 sed "s/^/$as_me: WARNING: /" >&2
14223 echo "$as_me:$LINENO: checking for $ac_header" >&5
14224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 eval "$as_ac_Header=$ac_header_preproc"
14230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235 cat >>confdefs.h
<<_ACEOF
14236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14238 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
14239 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
14240 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 cat >conftest.
$ac_ext <<_ACEOF
14244 #line $LINENO "configure"
14247 cat confdefs.h
>>conftest.
$ac_ext
14248 cat >>conftest.
$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14255 static struct nlist ac_aggr;
14256 if (ac_aggr.n_un.n_name)
14262 rm -f conftest.
$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } &&
14268 { ac_try
='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 ac_cv_member_struct_nlist_n_un_n_name
=yes
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.
$ac_ext >&5
14279 cat >conftest.
$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14283 cat confdefs.h
>>conftest.
$ac_ext
14284 cat >>conftest.
$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14291 static struct nlist ac_aggr;
14292 if (sizeof ac_aggr.n_un.n_name)
14298 rm -f conftest.
$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try
='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_member_struct_nlist_n_un_n_name
=yes
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.
$ac_ext >&5
14315 ac_cv_member_struct_nlist_n_un_n_name
=no
14317 rm -f conftest.
$ac_objext conftest.
$ac_ext
14319 rm -f conftest.
$ac_objext conftest.
$ac_ext
14321 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
14322 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
14323 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
14325 cat >>confdefs.h
<<_ACEOF
14326 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14330 cat >>confdefs.h
<<\_ACEOF
14331 #define NLIST_NAME_UNION 1
14345 # Some definitions of getloadavg require that the program be installed setgid.
14346 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
14347 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
14348 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.
$ac_ext <<_ACEOF
14352 #line $LINENO "configure"
14355 cat confdefs.h
>>conftest.
$ac_ext
14356 cat >>conftest.
$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
14359 #ifdef LDAV_PRIVILEGED
14360 Yowza Am I SETGID yet
14363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14364 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
14365 ac_cv_func_getloadavg_setgid
=yes
14367 ac_cv_func_getloadavg_setgid
=no
14372 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
14373 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
14374 if test $ac_cv_func_getloadavg_setgid = yes; then
14377 cat >>confdefs.h
<<\_ACEOF
14378 #define GETLOADAVG_PRIVILEGED 1
14385 if test $ac_cv_func_getloadavg_setgid = yes; then
14386 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
14387 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
14388 if test "${ac_cv_group_kmem+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
14392 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
14393 # If we got an error (system does not support symlinks), try without -L.
14394 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
14395 ac_cv_group_kmem
=`echo $ac_ls_output \
14396 | sed -ne 's/[ ][ ]*/ /g;
14397 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
14401 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
14402 echo "${ECHO_T}$ac_cv_group_kmem" >&6
14403 KMEM_GROUP
=$ac_cv_group_kmem
14405 if test "x$ac_save_LIBS" = x
; then
14406 GETLOADAVG_LIBS
=$LIBS
14408 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
14414 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14415 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14416 if test "${ac_cv_sys_largefile_source+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 ac_cv_sys_largefile_source
=no
14421 cat >conftest.
$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14425 cat confdefs.h
>>conftest.
$ac_ext
14426 cat >>conftest.
$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14437 rm -f conftest.
$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try
='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.
$ac_ext >&5
14455 rm -f conftest.
$ac_objext conftest.
$ac_ext
14456 cat >conftest.
$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14460 cat confdefs.h
>>conftest.
$ac_ext
14461 cat >>conftest.
$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #define _LARGEFILE_SOURCE 1
14473 rm -f conftest.
$ac_objext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14475 (eval $ac_compile) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try
='test -s conftest.$ac_objext'
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_sys_largefile_source
=1; break
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.
$ac_ext >&5
14491 rm -f conftest.
$ac_objext conftest.
$ac_ext
14495 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14496 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14497 if test "$ac_cv_sys_largefile_source" != no
; then
14499 cat >>confdefs.h
<<_ACEOF
14500 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14506 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14507 # in glibc 2.1.3, but that breaks too many other things.
14508 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14509 echo "$as_me:$LINENO: checking for fseeko" >&5
14510 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14511 if test "${ac_cv_func_fseeko+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 cat >conftest.
$ac_ext <<_ACEOF
14515 #line $LINENO "configure"
14518 cat confdefs.h
>>conftest.
$ac_ext
14519 cat >>conftest.
$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14525 return fseeko && fseeko (stdin, 0, 0);
14530 rm -f conftest.
$ac_objext conftest
$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try
='test -s conftest$ac_exeext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_func_fseeko
=yes
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.
$ac_ext >&5
14547 ac_cv_func_fseeko
=no
14549 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14551 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
14552 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14553 if test $ac_cv_func_fseeko = yes; then
14555 cat >>confdefs.h
<<\_ACEOF
14556 #define HAVE_FSEEKO 1
14562 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
14563 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
14564 if test "${ac_cv_func_getpgrp_void+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 # Use it with a single arg.
14568 cat >conftest.
$ac_ext <<_ACEOF
14569 #line $LINENO "configure"
14572 cat confdefs.h
>>conftest.
$ac_ext
14573 cat >>conftest.
$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 $ac_includes_default
14584 rm -f conftest.
$ac_objext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try
='test -s conftest.$ac_objext'
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_func_getpgrp_void
=no
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.
$ac_ext >&5
14601 ac_cv_func_getpgrp_void
=yes
14603 rm -f conftest.
$ac_objext conftest.
$ac_ext
14606 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
14607 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
14608 if test $ac_cv_func_getpgrp_void = yes; then
14610 cat >>confdefs.h
<<\_ACEOF
14611 #define GETPGRP_VOID 1
14618 for ac_func
in strftime
14620 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14621 echo "$as_me:$LINENO: checking for $ac_func" >&5
14622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14623 if eval "test \"\${$as_ac_var+set}\" = set"; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 cat >conftest.
$ac_ext <<_ACEOF
14627 #line $LINENO "configure"
14630 cat confdefs.h
>>conftest.
$ac_ext
14631 cat >>conftest.
$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 /* System header to define __stub macros and hopefully few prototypes,
14634 which can conflict with char $ac_func (); below.
14635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14636 <limits.h> exists even on freestanding compilers. */
14638 # include <limits.h>
14640 # include <assert.h>
14642 /* Override any gcc2 internal prototype to avoid an error. */
14647 /* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14650 /* The GNU C library defines this for functions which it implements
14651 to always fail with ENOSYS. Some functions are actually named
14652 something starting with __ and the normal name is an alias. */
14653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14656 char (*f) () = $ac_func;
14665 return f != $ac_func;
14670 rm -f conftest.
$ac_objext conftest
$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try
='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 eval "$as_ac_var=yes"
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.
$ac_ext >&5
14687 eval "$as_ac_var=no"
14689 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14693 if test `eval echo '${'$as_ac_var'}'` = yes; then
14694 cat >>confdefs.h
<<_ACEOF
14695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14699 # strftime is in -lintl on SCO UNIX.
14700 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14701 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14702 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 ac_check_lib_save_LIBS
=$LIBS
14706 LIBS
="-lintl $LIBS"
14707 cat >conftest.
$ac_ext <<_ACEOF
14708 #line $LINENO "configure"
14711 cat confdefs.h
>>conftest.
$ac_ext
14712 cat >>conftest.
$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14715 /* Override any gcc2 internal prototype to avoid an error. */
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14730 rm -f conftest.
$ac_objext conftest
$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try
='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_lib_intl_strftime
=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.
$ac_ext >&5
14747 ac_cv_lib_intl_strftime
=no
14749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14750 LIBS
=$ac_check_lib_save_LIBS
14752 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14753 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14754 if test $ac_cv_lib_intl_strftime = yes; then
14755 cat >>confdefs.h
<<\_ACEOF
14756 #define HAVE_STRFTIME 1
14759 LIBS
="-lintl $LIBS"
14768 for ac_func
in grantpt
14770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14771 echo "$as_me:$LINENO: checking for $ac_func" >&5
14772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14773 if eval "test \"\${$as_ac_var+set}\" = set"; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 cat >conftest.
$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14780 cat confdefs.h
>>conftest.
$ac_ext
14781 cat >>conftest.
$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 /* System header to define __stub macros and hopefully few prototypes,
14784 which can conflict with char $ac_func (); below.
14785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14786 <limits.h> exists even on freestanding compilers. */
14788 # include <limits.h>
14790 # include <assert.h>
14792 /* Override any gcc2 internal prototype to avoid an error. */
14797 /* We use char because int might match the return type of a gcc2
14798 builtin and then its argument prototype would still apply. */
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14806 char (*f) () = $ac_func;
14815 return f != $ac_func;
14820 rm -f conftest.
$ac_objext conftest
$ac_exeext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14822 (eval $ac_link) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try
='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 eval "$as_ac_var=yes"
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.
$ac_ext >&5
14837 eval "$as_ac_var=no"
14839 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14843 if test `eval echo '${'$as_ac_var'}'` = yes; then
14844 cat >>confdefs.h
<<_ACEOF
14845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14852 # PTY-related GNU extensions.
14854 for ac_func
in getpt
14856 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14857 echo "$as_me:$LINENO: checking for $ac_func" >&5
14858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14859 if eval "test \"\${$as_ac_var+set}\" = set"; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 cat >conftest.
$ac_ext <<_ACEOF
14863 #line $LINENO "configure"
14866 cat confdefs.h
>>conftest.
$ac_ext
14867 cat >>conftest.
$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 /* System header to define __stub macros and hopefully few prototypes,
14870 which can conflict with char $ac_func (); below.
14871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14872 <limits.h> exists even on freestanding compilers. */
14874 # include <limits.h>
14876 # include <assert.h>
14878 /* Override any gcc2 internal prototype to avoid an error. */
14883 /* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14886 /* The GNU C library defines this for functions which it implements
14887 to always fail with ENOSYS. Some functions are actually named
14888 something starting with __ and the normal name is an alias. */
14889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14892 char (*f) () = $ac_func;
14901 return f != $ac_func;
14906 rm -f conftest.
$ac_objext conftest
$ac_exeext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try
='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 eval "$as_ac_var=yes"
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.
$ac_ext >&5
14923 eval "$as_ac_var=no"
14925 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14929 if test `eval echo '${'$as_ac_var'}'` = yes; then
14930 cat >>confdefs.h
<<_ACEOF
14931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14938 # Check this now, so that we will NOT find the above functions in ncurses.
14939 # That is because we have not set up to link ncurses in lib-src.
14940 # It's better to believe a function is not available
14941 # than to expect to find it in ncurses.
14943 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14944 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14945 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_check_lib_save_LIBS
=$LIBS
14949 LIBS
="-lncurses $LIBS"
14950 cat >conftest.
$ac_ext <<_ACEOF
14951 #line $LINENO "configure"
14954 cat confdefs.h
>>conftest.
$ac_ext
14955 cat >>conftest.
$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14958 /* Override any gcc2 internal prototype to avoid an error. */
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14973 rm -f conftest.
$ac_objext conftest
$ac_exeext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try
='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_ncurses_tparm
=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.
$ac_ext >&5
14990 ac_cv_lib_ncurses_tparm
=no
14992 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14993 LIBS
=$ac_check_lib_save_LIBS
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14996 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14997 if test $ac_cv_lib_ncurses_tparm = yes; then
14998 cat >>confdefs.h
<<_ACEOF
14999 #define HAVE_LIBNCURSES 1
15002 LIBS
="-lncurses $LIBS"
15007 # Do we need the Hesiod library to provide the support routines?
15008 if test "$with_hesiod" = yes ; then
15009 # Don't set $LIBS here -- see comments above.
15011 echo "$as_me:$LINENO: checking for res_send" >&5
15012 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
15013 if test "${ac_cv_func_res_send+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 cat >conftest.
$ac_ext <<_ACEOF
15017 #line $LINENO "configure"
15020 cat confdefs.h
>>conftest.
$ac_ext
15021 cat >>conftest.
$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 /* System header to define __stub macros and hopefully few prototypes,
15024 which can conflict with char res_send (); below.
15025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15026 <limits.h> exists even on freestanding compilers. */
15028 # include <limits.h>
15030 # include <assert.h>
15032 /* Override any gcc2 internal prototype to avoid an error. */
15037 /* We use char because int might match the return type of a gcc2
15038 builtin and then its argument prototype would still apply. */
15040 /* The GNU C library defines this for functions which it implements
15041 to always fail with ENOSYS. Some functions are actually named
15042 something starting with __ and the normal name is an alias. */
15043 #if defined (__stub_res_send) || defined (__stub___res_send)
15046 char (*f) () = res_send;
15055 return f != res_send;
15060 rm -f conftest.
$ac_objext conftest
$ac_exeext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15062 (eval $ac_link) 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try
='test -s conftest$ac_exeext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 ac_cv_func_res_send
=yes
15074 echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.
$ac_ext >&5
15077 ac_cv_func_res_send
=no
15079 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15081 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
15082 echo "${ECHO_T}$ac_cv_func_res_send" >&6
15083 if test $ac_cv_func_res_send = yes; then
15086 echo "$as_me:$LINENO: checking for __res_send" >&5
15087 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
15088 if test "${ac_cv_func___res_send+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 cat >conftest.
$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15095 cat confdefs.h
>>conftest.
$ac_ext
15096 cat >>conftest.
$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 /* System header to define __stub macros and hopefully few prototypes,
15099 which can conflict with char __res_send (); below.
15100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15101 <limits.h> exists even on freestanding compilers. */
15103 # include <limits.h>
15105 # include <assert.h>
15107 /* Override any gcc2 internal prototype to avoid an error. */
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15114 char __res_send ();
15115 /* The GNU C library defines this for functions which it implements
15116 to always fail with ENOSYS. Some functions are actually named
15117 something starting with __ and the normal name is an alias. */
15118 #if defined (__stub___res_send) || defined (__stub_____res_send)
15121 char (*f) () = __res_send;
15130 return f != __res_send;
15135 rm -f conftest.
$ac_objext conftest
$ac_exeext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15137 (eval $ac_link) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try
='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_cv_func___res_send
=yes
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.
$ac_ext >&5
15152 ac_cv_func___res_send
=no
15154 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15156 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
15157 echo "${ECHO_T}$ac_cv_func___res_send" >&6
15158 if test $ac_cv_func___res_send = yes; then
15161 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
15162 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
15163 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 ac_check_lib_save_LIBS
=$LIBS
15167 LIBS
="-lresolv $LIBS"
15168 cat >conftest.
$ac_ext <<_ACEOF
15169 #line $LINENO "configure"
15172 cat confdefs.h
>>conftest.
$ac_ext
15173 cat >>conftest.
$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15176 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15191 rm -f conftest.
$ac_objext conftest
$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try
='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_lib_resolv_res_send
=yes
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.
$ac_ext >&5
15208 ac_cv_lib_resolv_res_send
=no
15210 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15211 LIBS
=$ac_check_lib_save_LIBS
15213 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
15214 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
15215 if test $ac_cv_lib_resolv_res_send = yes; then
15218 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
15219 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
15220 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 ac_check_lib_save_LIBS
=$LIBS
15224 LIBS
="-lresolv $LIBS"
15225 cat >conftest.
$ac_ext <<_ACEOF
15226 #line $LINENO "configure"
15229 cat confdefs.h
>>conftest.
$ac_ext
15230 cat >>conftest.
$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15233 /* Override any gcc2 internal prototype to avoid an error. */
15237 /* We use char because int might match the return type of a gcc2
15238 builtin and then its argument prototype would still apply. */
15239 char __res_send ();
15248 rm -f conftest.
$ac_objext conftest
$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250 (eval $ac_link) 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try
='test -s conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_cv_lib_resolv___res_send
=yes
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.
$ac_ext >&5
15265 ac_cv_lib_resolv___res_send
=no
15267 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15268 LIBS
=$ac_check_lib_save_LIBS
15270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
15271 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
15272 if test $ac_cv_lib_resolv___res_send = yes; then
15282 if test "$resolv" = yes ; then
15285 cat >>confdefs.h
<<\_ACEOF
15286 #define HAVE_LIBRESOLV 1
15292 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
15293 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
15294 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 cat >conftest.
$ac_ext <<_ACEOF
15298 #line $LINENO "configure"
15301 cat confdefs.h
>>conftest.
$ac_ext
15302 cat >>conftest.
$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 /* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char hes_getmailhost (); below.
15306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15307 <limits.h> exists even on freestanding compilers. */
15309 # include <limits.h>
15311 # include <assert.h>
15313 /* Override any gcc2 internal prototype to avoid an error. */
15318 /* We use char because int might match the return type of a gcc2
15319 builtin and then its argument prototype would still apply. */
15320 char hes_getmailhost ();
15321 /* The GNU C library defines this for functions which it implements
15322 to always fail with ENOSYS. Some functions are actually named
15323 something starting with __ and the normal name is an alias. */
15324 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
15327 char (*f) () = hes_getmailhost;
15336 return f != hes_getmailhost;
15341 rm -f conftest.
$ac_objext conftest
$ac_exeext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15343 (eval $ac_link) 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try
='test -s conftest$ac_exeext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_cv_func_hes_getmailhost
=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.
$ac_ext >&5
15358 ac_cv_func_hes_getmailhost
=no
15360 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15362 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
15363 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
15364 if test $ac_cv_func_hes_getmailhost = yes; then
15367 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
15368 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
15369 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 ac_check_lib_save_LIBS
=$LIBS
15373 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15374 cat >conftest.
$ac_ext <<_ACEOF
15375 #line $LINENO "configure"
15378 cat confdefs.h
>>conftest.
$ac_ext
15379 cat >>conftest.
$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15382 /* Override any gcc2 internal prototype to avoid an error. */
15386 /* We use char because int might match the return type of a gcc2
15387 builtin and then its argument prototype would still apply. */
15388 char hes_getmailhost ();
15392 hes_getmailhost ();
15397 rm -f conftest.
$ac_objext conftest
$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try
='test -s conftest$ac_exeext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_cv_lib_hesiod_hes_getmailhost
=yes
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.
$ac_ext >&5
15414 ac_cv_lib_hesiod_hes_getmailhost
=no
15416 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15417 LIBS
=$ac_check_lib_save_LIBS
15419 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15420 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
15421 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
15423 cat >>confdefs.h
<<\_ACEOF
15424 #define HAVE_LIBHESIOD 1
15435 # These tell us which Kerberos-related libraries to use.
15436 if test "${with_kerberos+set}" = set; then
15438 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
15439 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
15440 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15443 ac_check_lib_save_LIBS
=$LIBS
15444 LIBS
="-lcom_err $LIBS"
15445 cat >conftest.
$ac_ext <<_ACEOF
15446 #line $LINENO "configure"
15449 cat confdefs.h
>>conftest.
$ac_ext
15450 cat >>conftest.
$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15453 /* Override any gcc2 internal prototype to avoid an error. */
15457 /* We use char because int might match the return type of a gcc2
15458 builtin and then its argument prototype would still apply. */
15468 rm -f conftest.
$ac_objext conftest
$ac_exeext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try
='test -s conftest$ac_exeext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }; then
15480 ac_cv_lib_com_err_com_err
=yes
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.
$ac_ext >&5
15485 ac_cv_lib_com_err_com_err
=no
15487 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15488 LIBS
=$ac_check_lib_save_LIBS
15490 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
15491 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
15492 if test $ac_cv_lib_com_err_com_err = yes; then
15493 cat >>confdefs.h
<<_ACEOF
15494 #define HAVE_LIBCOM_ERR 1
15497 LIBS
="-lcom_err $LIBS"
15502 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15503 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
15504 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 ac_check_lib_save_LIBS
=$LIBS
15508 LIBS
="-lk5crypto $LIBS"
15509 cat >conftest.
$ac_ext <<_ACEOF
15510 #line $LINENO "configure"
15513 cat confdefs.h
>>conftest.
$ac_ext
15514 cat >>conftest.
$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15517 /* Override any gcc2 internal prototype to avoid an error. */
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523 char mit_des_cbc_encrypt ();
15527 mit_des_cbc_encrypt ();
15532 rm -f conftest.
$ac_objext conftest
$ac_exeext
15533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15534 (eval $ac_link) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try
='test -s conftest$ac_exeext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
15544 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15546 echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.
$ac_ext >&5
15549 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15552 LIBS
=$ac_check_lib_save_LIBS
15554 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15555 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
15556 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
15557 cat >>confdefs.h
<<_ACEOF
15558 #define HAVE_LIBK5CRYPTO 1
15561 LIBS
="-lk5crypto $LIBS"
15566 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15567 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
15568 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 ac_check_lib_save_LIBS
=$LIBS
15572 LIBS
="-lcrypto $LIBS"
15573 cat >conftest.
$ac_ext <<_ACEOF
15574 #line $LINENO "configure"
15577 cat confdefs.h
>>conftest.
$ac_ext
15578 cat >>conftest.
$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15581 /* Override any gcc2 internal prototype to avoid an error. */
15585 /* We use char because int might match the return type of a gcc2
15586 builtin and then its argument prototype would still apply. */
15587 char mit_des_cbc_encrypt ();
15591 mit_des_cbc_encrypt ();
15596 rm -f conftest.
$ac_objext conftest
$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try
='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.
$ac_ext >&5
15613 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15615 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15616 LIBS
=$ac_check_lib_save_LIBS
15618 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15619 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
15620 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
15621 cat >>confdefs.h
<<_ACEOF
15622 #define HAVE_LIBCRYPTO 1
15625 LIBS
="-lcrypto $LIBS"
15630 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
15631 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
15632 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 ac_check_lib_save_LIBS
=$LIBS
15636 LIBS
="-lkrb5 $LIBS"
15637 cat >conftest.
$ac_ext <<_ACEOF
15638 #line $LINENO "configure"
15641 cat confdefs.h
>>conftest.
$ac_ext
15642 cat >>conftest.
$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15645 /* Override any gcc2 internal prototype to avoid an error. */
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15651 char krb5_init_context ();
15655 krb5_init_context ();
15660 rm -f conftest.
$ac_objext conftest
$ac_exeext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662 (eval $ac_link) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try
='test -s conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_cv_lib_krb5_krb5_init_context
=yes
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.
$ac_ext >&5
15677 ac_cv_lib_krb5_krb5_init_context
=no
15679 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15680 LIBS
=$ac_check_lib_save_LIBS
15682 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15683 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15684 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15685 cat >>confdefs.h
<<_ACEOF
15686 #define HAVE_LIBKRB5 1
15689 LIBS
="-lkrb5 $LIBS"
15693 if test "${with_kerberos5+set}" != set; then
15695 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15696 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15697 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 ac_check_lib_save_LIBS
=$LIBS
15701 LIBS
="-ldes425 $LIBS"
15702 cat >conftest.
$ac_ext <<_ACEOF
15703 #line $LINENO "configure"
15706 cat confdefs.h
>>conftest.
$ac_ext
15707 cat >>conftest.
$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 /* Override any gcc2 internal prototype to avoid an error. */
15714 /* We use char because int might match the return type of a gcc2
15715 builtin and then its argument prototype would still apply. */
15716 char des_cbc_encrypt ();
15720 des_cbc_encrypt ();
15725 rm -f conftest.
$ac_objext conftest
$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try
='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_des425_des_cbc_encrypt
=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.
$ac_ext >&5
15742 ac_cv_lib_des425_des_cbc_encrypt
=no
15744 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15745 LIBS
=$ac_check_lib_save_LIBS
15747 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15748 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15749 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15750 cat >>confdefs.h
<<_ACEOF
15751 #define HAVE_LIBDES425 1
15754 LIBS
="-ldes425 $LIBS"
15758 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15759 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15760 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 ac_check_lib_save_LIBS
=$LIBS
15765 cat >conftest.
$ac_ext <<_ACEOF
15766 #line $LINENO "configure"
15769 cat confdefs.h
>>conftest.
$ac_ext
15770 cat >>conftest.
$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15773 /* Override any gcc2 internal prototype to avoid an error. */
15777 /* We use char because int might match the return type of a gcc2
15778 builtin and then its argument prototype would still apply. */
15779 char des_cbc_encrypt ();
15783 des_cbc_encrypt ();
15788 rm -f conftest.
$ac_objext conftest
$ac_exeext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790 (eval $ac_link) 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try
='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_cv_lib_des_des_cbc_encrypt
=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.
$ac_ext >&5
15805 ac_cv_lib_des_des_cbc_encrypt
=no
15807 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15808 LIBS
=$ac_check_lib_save_LIBS
15810 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15811 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15812 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15813 cat >>confdefs.h
<<_ACEOF
15814 #define HAVE_LIBDES 1
15824 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15825 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15826 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 ac_check_lib_save_LIBS
=$LIBS
15830 LIBS
="-lkrb4 $LIBS"
15831 cat >conftest.
$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15835 cat confdefs.h
>>conftest.
$ac_ext
15836 cat >>conftest.
$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15839 /* Override any gcc2 internal prototype to avoid an error. */
15843 /* We use char because int might match the return type of a gcc2
15844 builtin and then its argument prototype would still apply. */
15845 char krb_get_cred ();
15854 rm -f conftest.
$ac_objext conftest
$ac_exeext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15856 (eval $ac_link) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try
='test -s conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_lib_krb4_krb_get_cred
=yes
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.
$ac_ext >&5
15871 ac_cv_lib_krb4_krb_get_cred
=no
15873 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15874 LIBS
=$ac_check_lib_save_LIBS
15876 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15877 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15878 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15879 cat >>confdefs.h
<<_ACEOF
15880 #define HAVE_LIBKRB4 1
15883 LIBS
="-lkrb4 $LIBS"
15887 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15888 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15889 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 ac_check_lib_save_LIBS
=$LIBS
15894 cat >conftest.
$ac_ext <<_ACEOF
15895 #line $LINENO "configure"
15898 cat confdefs.h
>>conftest.
$ac_ext
15899 cat >>conftest.
$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15902 /* Override any gcc2 internal prototype to avoid an error. */
15906 /* We use char because int might match the return type of a gcc2
15907 builtin and then its argument prototype would still apply. */
15908 char krb_get_cred ();
15917 rm -f conftest.
$ac_objext conftest
$ac_exeext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try
='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 ac_cv_lib_krb_krb_get_cred
=yes
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.
$ac_ext >&5
15934 ac_cv_lib_krb_krb_get_cred
=no
15936 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15937 LIBS
=$ac_check_lib_save_LIBS
15939 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15940 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15941 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15942 cat >>confdefs.h
<<_ACEOF
15943 #define HAVE_LIBKRB 1
15954 if test "${with_kerberos5+set}" = set; then
15956 for ac_header
in krb5.h
15958 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15960 echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15968 # Is the header compilable?
15969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15971 cat >conftest.
$ac_ext <<_ACEOF
15972 #line $LINENO "configure"
15975 cat confdefs.h
>>conftest.
$ac_ext
15976 cat >>conftest.
$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15979 #include <$ac_header>
15981 rm -f conftest.
$ac_objext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try
='test -s conftest.$ac_objext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_header_compiler
=yes
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.
$ac_ext >&5
15998 ac_header_compiler
=no
16000 rm -f conftest.
$ac_objext conftest.
$ac_ext
16001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16002 echo "${ECHO_T}$ac_header_compiler" >&6
16004 # Is the header present?
16005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16007 cat >conftest.
$ac_ext <<_ACEOF
16008 #line $LINENO "configure"
16011 cat confdefs.h
>>conftest.
$ac_ext
16012 cat >>conftest.
$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <$ac_header>
16016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16019 grep -v '^ *+' conftest.er1
>conftest.err
16021 cat conftest.err
>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } >/dev
/null
; then
16024 if test -s conftest.err
; then
16025 ac_cpp_err
=$ac_c_preproc_warn_flag
16032 if test -z "$ac_cpp_err"; then
16033 ac_header_preproc
=yes
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.
$ac_ext >&5
16038 ac_header_preproc
=no
16040 rm -f conftest.err conftest.
$ac_ext
16041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16042 echo "${ECHO_T}$ac_header_preproc" >&6
16044 # So? What about this header?
16045 case $ac_header_compiler:$ac_header_preproc in
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16053 ## ------------------------------------ ##
16054 ## Report this to bug-autoconf@gnu.org. ##
16055 ## ------------------------------------ ##
16058 sed "s/^/$as_me: WARNING: /" >&2
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16069 ## ------------------------------------ ##
16070 ## Report this to bug-autoconf@gnu.org. ##
16071 ## ------------------------------------ ##
16074 sed "s/^/$as_me: WARNING: /" >&2
16077 echo "$as_me:$LINENO: checking for $ac_header" >&5
16078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16082 eval "$as_ac_Header=$ac_header_preproc"
16084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16089 cat >>confdefs.h
<<_ACEOF
16090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16099 for ac_header
in des.h
16101 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16111 # Is the header compilable?
16112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16114 cat >conftest.
$ac_ext <<_ACEOF
16115 #line $LINENO "configure"
16118 cat confdefs.h
>>conftest.
$ac_ext
16119 cat >>conftest.
$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 #include <$ac_header>
16124 rm -f conftest.
$ac_objext
16125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16126 (eval $ac_compile) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try
='test -s conftest.$ac_objext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_header_compiler
=yes
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.
$ac_ext >&5
16141 ac_header_compiler
=no
16143 rm -f conftest.
$ac_objext conftest.
$ac_ext
16144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6
16147 # Is the header present?
16148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16150 cat >conftest.
$ac_ext <<_ACEOF
16151 #line $LINENO "configure"
16154 cat confdefs.h
>>conftest.
$ac_ext
16155 cat >>conftest.
$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <$ac_header>
16159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16160 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16162 grep -v '^ *+' conftest.er1
>conftest.err
16164 cat conftest.err
>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } >/dev
/null
; then
16167 if test -s conftest.err
; then
16168 ac_cpp_err
=$ac_c_preproc_warn_flag
16175 if test -z "$ac_cpp_err"; then
16176 ac_header_preproc
=yes
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.
$ac_ext >&5
16181 ac_header_preproc
=no
16183 rm -f conftest.err conftest.
$ac_ext
16184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185 echo "${ECHO_T}$ac_header_preproc" >&6
16187 # So? What about this header?
16188 case $ac_header_compiler:$ac_header_preproc in
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16196 ## ------------------------------------ ##
16197 ## Report this to bug-autoconf@gnu.org. ##
16198 ## ------------------------------------ ##
16201 sed "s/^/$as_me: WARNING: /" >&2
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16212 ## ------------------------------------ ##
16213 ## Report this to bug-autoconf@gnu.org. ##
16214 ## ------------------------------------ ##
16217 sed "s/^/$as_me: WARNING: /" >&2
16220 echo "$as_me:$LINENO: checking for $ac_header" >&5
16221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 eval "$as_ac_Header=$ac_header_preproc"
16227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16232 cat >>confdefs.h
<<_ACEOF
16233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16238 for ac_header
in kerberosIV
/des.h
16240 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16242 echo "$as_me:$LINENO: checking for $ac_header" >&5
16243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16250 # Is the header compilable?
16251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16253 cat >conftest.
$ac_ext <<_ACEOF
16254 #line $LINENO "configure"
16257 cat confdefs.h
>>conftest.
$ac_ext
16258 cat >>conftest.
$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 $ac_includes_default
16261 #include <$ac_header>
16263 rm -f conftest.
$ac_objext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try
='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_header_compiler
=yes
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.
$ac_ext >&5
16280 ac_header_compiler
=no
16282 rm -f conftest.
$ac_objext conftest.
$ac_ext
16283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16284 echo "${ECHO_T}$ac_header_compiler" >&6
16286 # Is the header present?
16287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16289 cat >conftest.
$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16293 cat confdefs.h
>>conftest.
$ac_ext
16294 cat >>conftest.
$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 #include <$ac_header>
16298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16299 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16301 grep -v '^ *+' conftest.er1
>conftest.err
16303 cat conftest.err
>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } >/dev
/null
; then
16306 if test -s conftest.err
; then
16307 ac_cpp_err
=$ac_c_preproc_warn_flag
16314 if test -z "$ac_cpp_err"; then
16315 ac_header_preproc
=yes
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.
$ac_ext >&5
16320 ac_header_preproc
=no
16322 rm -f conftest.err conftest.
$ac_ext
16323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16324 echo "${ECHO_T}$ac_header_preproc" >&6
16326 # So? What about this header?
16327 case $ac_header_compiler:$ac_header_preproc in
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16335 ## ------------------------------------ ##
16336 ## Report this to bug-autoconf@gnu.org. ##
16337 ## ------------------------------------ ##
16340 sed "s/^/$as_me: WARNING: /" >&2
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16351 ## ------------------------------------ ##
16352 ## Report this to bug-autoconf@gnu.org. ##
16353 ## ------------------------------------ ##
16356 sed "s/^/$as_me: WARNING: /" >&2
16359 echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 eval "$as_ac_Header=$ac_header_preproc"
16366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16371 cat >>confdefs.h
<<_ACEOF
16372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16377 for ac_header
in kerberos
/des.h
16379 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16381 echo "$as_me:$LINENO: checking for $ac_header" >&5
16382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16389 # Is the header compilable?
16390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16392 cat >conftest.
$ac_ext <<_ACEOF
16393 #line $LINENO "configure"
16396 cat confdefs.h
>>conftest.
$ac_ext
16397 cat >>conftest.
$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 $ac_includes_default
16400 #include <$ac_header>
16402 rm -f conftest.
$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try
='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; }; then
16414 ac_header_compiler
=yes
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.
$ac_ext >&5
16419 ac_header_compiler
=no
16421 rm -f conftest.
$ac_objext conftest.
$ac_ext
16422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16423 echo "${ECHO_T}$ac_header_compiler" >&6
16425 # Is the header present?
16426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16428 cat >conftest.
$ac_ext <<_ACEOF
16429 #line $LINENO "configure"
16432 cat confdefs.h
>>conftest.
$ac_ext
16433 cat >>conftest.
$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 #include <$ac_header>
16437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16438 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16440 grep -v '^ *+' conftest.er1
>conftest.err
16442 cat conftest.err
>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } >/dev
/null
; then
16445 if test -s conftest.err
; then
16446 ac_cpp_err
=$ac_c_preproc_warn_flag
16453 if test -z "$ac_cpp_err"; then
16454 ac_header_preproc
=yes
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.
$ac_ext >&5
16459 ac_header_preproc
=no
16461 rm -f conftest.err conftest.
$ac_ext
16462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463 echo "${ECHO_T}$ac_header_preproc" >&6
16465 # So? What about this header?
16466 case $ac_header_compiler:$ac_header_preproc in
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16474 ## ------------------------------------ ##
16475 ## Report this to bug-autoconf@gnu.org. ##
16476 ## ------------------------------------ ##
16479 sed "s/^/$as_me: WARNING: /" >&2
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490 ## ------------------------------------ ##
16491 ## Report this to bug-autoconf@gnu.org. ##
16492 ## ------------------------------------ ##
16495 sed "s/^/$as_me: WARNING: /" >&2
16498 echo "$as_me:$LINENO: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 eval "$as_ac_Header=$ac_header_preproc"
16505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16510 cat >>confdefs.h
<<_ACEOF
16511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16527 for ac_header
in krb.h
16529 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16531 echo "$as_me:$LINENO: checking for $ac_header" >&5
16532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16539 # Is the header compilable?
16540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16542 cat >conftest.
$ac_ext <<_ACEOF
16543 #line $LINENO "configure"
16546 cat confdefs.h
>>conftest.
$ac_ext
16547 cat >>conftest.
$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 $ac_includes_default
16550 #include <$ac_header>
16552 rm -f conftest.
$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try
='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_header_compiler
=yes
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.
$ac_ext >&5
16569 ac_header_compiler
=no
16571 rm -f conftest.
$ac_objext conftest.
$ac_ext
16572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16573 echo "${ECHO_T}$ac_header_compiler" >&6
16575 # Is the header present?
16576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16578 cat >conftest.
$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16582 cat confdefs.h
>>conftest.
$ac_ext
16583 cat >>conftest.
$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #include <$ac_header>
16587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16590 grep -v '^ *+' conftest.er1
>conftest.err
16592 cat conftest.err
>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } >/dev
/null
; then
16595 if test -s conftest.err
; then
16596 ac_cpp_err
=$ac_c_preproc_warn_flag
16603 if test -z "$ac_cpp_err"; then
16604 ac_header_preproc
=yes
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.
$ac_ext >&5
16609 ac_header_preproc
=no
16611 rm -f conftest.err conftest.
$ac_ext
16612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16613 echo "${ECHO_T}$ac_header_preproc" >&6
16615 # So? What about this header?
16616 case $ac_header_compiler:$ac_header_preproc in
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16624 ## ------------------------------------ ##
16625 ## Report this to bug-autoconf@gnu.org. ##
16626 ## ------------------------------------ ##
16629 sed "s/^/$as_me: WARNING: /" >&2
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16640 ## ------------------------------------ ##
16641 ## Report this to bug-autoconf@gnu.org. ##
16642 ## ------------------------------------ ##
16645 sed "s/^/$as_me: WARNING: /" >&2
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 eval "$as_ac_Header=$ac_header_preproc"
16655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16660 cat >>confdefs.h
<<_ACEOF
16661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16666 for ac_header
in kerberosIV
/krb.h
16668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16670 echo "$as_me:$LINENO: checking for $ac_header" >&5
16671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16678 # Is the header compilable?
16679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16681 cat >conftest.
$ac_ext <<_ACEOF
16682 #line $LINENO "configure"
16685 cat confdefs.h
>>conftest.
$ac_ext
16686 cat >>conftest.
$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 $ac_includes_default
16689 #include <$ac_header>
16691 rm -f conftest.
$ac_objext
16692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16693 (eval $ac_compile) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try
='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_header_compiler
=yes
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.
$ac_ext >&5
16708 ac_header_compiler
=no
16710 rm -f conftest.
$ac_objext conftest.
$ac_ext
16711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16712 echo "${ECHO_T}$ac_header_compiler" >&6
16714 # Is the header present?
16715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16717 cat >conftest.
$ac_ext <<_ACEOF
16718 #line $LINENO "configure"
16721 cat confdefs.h
>>conftest.
$ac_ext
16722 cat >>conftest.
$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #include <$ac_header>
16726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16729 grep -v '^ *+' conftest.er1
>conftest.err
16731 cat conftest.err
>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } >/dev
/null
; then
16734 if test -s conftest.err
; then
16735 ac_cpp_err
=$ac_c_preproc_warn_flag
16742 if test -z "$ac_cpp_err"; then
16743 ac_header_preproc
=yes
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.
$ac_ext >&5
16748 ac_header_preproc
=no
16750 rm -f conftest.err conftest.
$ac_ext
16751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16752 echo "${ECHO_T}$ac_header_preproc" >&6
16754 # So? What about this header?
16755 case $ac_header_compiler:$ac_header_preproc in
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16763 ## ------------------------------------ ##
16764 ## Report this to bug-autoconf@gnu.org. ##
16765 ## ------------------------------------ ##
16768 sed "s/^/$as_me: WARNING: /" >&2
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16779 ## ------------------------------------ ##
16780 ## Report this to bug-autoconf@gnu.org. ##
16781 ## ------------------------------------ ##
16784 sed "s/^/$as_me: WARNING: /" >&2
16787 echo "$as_me:$LINENO: checking for $ac_header" >&5
16788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 eval "$as_ac_Header=$ac_header_preproc"
16794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16799 cat >>confdefs.h
<<_ACEOF
16800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16805 for ac_header
in kerberos
/krb.h
16807 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16809 echo "$as_me:$LINENO: checking for $ac_header" >&5
16810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16817 # Is the header compilable?
16818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16820 cat >conftest.
$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16824 cat confdefs.h
>>conftest.
$ac_ext
16825 cat >>conftest.
$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16828 #include <$ac_header>
16830 rm -f conftest.
$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try
='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 ac_header_compiler
=yes
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.
$ac_ext >&5
16847 ac_header_compiler
=no
16849 rm -f conftest.
$ac_objext conftest.
$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851 echo "${ECHO_T}$ac_header_compiler" >&6
16853 # Is the header present?
16854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16856 cat >conftest.
$ac_ext <<_ACEOF
16857 #line $LINENO "configure"
16860 cat confdefs.h
>>conftest.
$ac_ext
16861 cat >>conftest.
$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 #include <$ac_header>
16865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16866 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16868 grep -v '^ *+' conftest.er1
>conftest.err
16870 cat conftest.err
>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev
/null
; then
16873 if test -s conftest.err
; then
16874 ac_cpp_err
=$ac_c_preproc_warn_flag
16881 if test -z "$ac_cpp_err"; then
16882 ac_header_preproc
=yes
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.
$ac_ext >&5
16887 ac_header_preproc
=no
16889 rm -f conftest.err conftest.
$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16891 echo "${ECHO_T}$ac_header_preproc" >&6
16893 # So? What about this header?
16894 case $ac_header_compiler:$ac_header_preproc in
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16902 ## ------------------------------------ ##
16903 ## Report this to bug-autoconf@gnu.org. ##
16904 ## ------------------------------------ ##
16907 sed "s/^/$as_me: WARNING: /" >&2
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16918 ## ------------------------------------ ##
16919 ## Report this to bug-autoconf@gnu.org. ##
16920 ## ------------------------------------ ##
16923 sed "s/^/$as_me: WARNING: /" >&2
16926 echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 eval "$as_ac_Header=$ac_header_preproc"
16933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938 cat >>confdefs.h
<<_ACEOF
16939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16956 for ac_header
in com_err.h
16958 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16960 echo "$as_me:$LINENO: checking for $ac_header" >&5
16961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16968 # Is the header compilable?
16969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16971 cat >conftest.
$ac_ext <<_ACEOF
16972 #line $LINENO "configure"
16975 cat confdefs.h
>>conftest.
$ac_ext
16976 cat >>conftest.
$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 #include <$ac_header>
16981 rm -f conftest.
$ac_objext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try
='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 ac_header_compiler
=yes
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.
$ac_ext >&5
16998 ac_header_compiler
=no
17000 rm -f conftest.
$ac_objext conftest.
$ac_ext
17001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17002 echo "${ECHO_T}$ac_header_compiler" >&6
17004 # Is the header present?
17005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17007 cat >conftest.
$ac_ext <<_ACEOF
17008 #line $LINENO "configure"
17011 cat confdefs.h
>>conftest.
$ac_ext
17012 cat >>conftest.
$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 #include <$ac_header>
17016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17019 grep -v '^ *+' conftest.er1
>conftest.err
17021 cat conftest.err
>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } >/dev
/null
; then
17024 if test -s conftest.err
; then
17025 ac_cpp_err
=$ac_c_preproc_warn_flag
17032 if test -z "$ac_cpp_err"; then
17033 ac_header_preproc
=yes
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.
$ac_ext >&5
17038 ac_header_preproc
=no
17040 rm -f conftest.err conftest.
$ac_ext
17041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17042 echo "${ECHO_T}$ac_header_preproc" >&6
17044 # So? What about this header?
17045 case $ac_header_compiler:$ac_header_preproc in
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17053 ## ------------------------------------ ##
17054 ## Report this to bug-autoconf@gnu.org. ##
17055 ## ------------------------------------ ##
17058 sed "s/^/$as_me: WARNING: /" >&2
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17069 ## ------------------------------------ ##
17070 ## Report this to bug-autoconf@gnu.org. ##
17071 ## ------------------------------------ ##
17074 sed "s/^/$as_me: WARNING: /" >&2
17077 echo "$as_me:$LINENO: checking for $ac_header" >&5
17078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 eval "$as_ac_Header=$ac_header_preproc"
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17089 cat >>confdefs.h
<<_ACEOF
17090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17099 # Solaris requires -lintl if you want strerror (which calls dgettext)
17100 # to return localized messages.
17102 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
17103 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
17104 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 ac_check_lib_save_LIBS
=$LIBS
17108 LIBS
="-lintl $LIBS"
17109 cat >conftest.
$ac_ext <<_ACEOF
17110 #line $LINENO "configure"
17113 cat confdefs.h
>>conftest.
$ac_ext
17114 cat >>conftest.
$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17117 /* Override any gcc2 internal prototype to avoid an error. */
17121 /* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17132 rm -f conftest.
$ac_objext conftest
$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try
='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_lib_intl_dgettext
=yes
17146 echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.
$ac_ext >&5
17149 ac_cv_lib_intl_dgettext
=no
17151 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17152 LIBS
=$ac_check_lib_save_LIBS
17154 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
17155 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
17156 if test $ac_cv_lib_intl_dgettext = yes; then
17157 cat >>confdefs.h
<<_ACEOF
17158 #define HAVE_LIBINTL 1
17161 LIBS
="-lintl $LIBS"
17166 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
17167 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
17168 if test "${emacs_cv_localtime_cache+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 if test x
$ac_cv_func_tzset = xyes
; then
17172 if test "$cross_compiling" = yes; then
17173 # If we have tzset, assume the worst when cross-compiling.
17174 emacs_cv_localtime_cache
=yes
17176 cat >conftest.
$ac_ext <<_ACEOF
17177 #line $LINENO "configure"
17180 cat confdefs.h
>>conftest.
$ac_ext
17181 cat >>conftest.
$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17184 extern char **environ;
17188 for (to = from = environ; (*to = *from); from++)
17189 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
17192 char TZ_GMT0[] = "TZ=GMT0";
17193 char TZ_PST8[] = "TZ=PST8";
17196 time_t now = time ((time_t *) 0);
17197 int hour_GMT0, hour_unset;
17198 if (putenv (TZ_GMT0) != 0)
17200 hour_GMT0 = localtime (&now)->tm_hour;
17202 hour_unset = localtime (&now)->tm_hour;
17203 if (putenv (TZ_PST8) != 0)
17205 if (localtime (&now)->tm_hour == hour_GMT0)
17208 if (localtime (&now)->tm_hour != hour_unset)
17213 rm -f conftest
$ac_exeext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17215 (eval $ac_link) 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 emacs_cv_localtime_cache
=no
17226 echo "$as_me: program exited with status $ac_status" >&5
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.
$ac_ext >&5
17230 ( exit $ac_status )
17231 emacs_cv_localtime_cache
=yes
17233 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17236 # If we lack tzset, report that localtime does not cache TZ,
17237 # since we can't invalidate the cache if we don't have tzset.
17238 emacs_cv_localtime_cache
=no
17241 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
17242 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
17243 if test $emacs_cv_localtime_cache = yes; then
17245 cat >>confdefs.h
<<\_ACEOF
17246 #define LOCALTIME_CACHE 1
17251 if test "x$HAVE_TIMEVAL" = xyes
; then
17253 for ac_func
in gettimeofday
17255 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17256 echo "$as_me:$LINENO: checking for $ac_func" >&5
17257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17258 if eval "test \"\${$as_ac_var+set}\" = set"; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 cat >conftest.
$ac_ext <<_ACEOF
17262 #line $LINENO "configure"
17265 cat confdefs.h
>>conftest.
$ac_ext
17266 cat >>conftest.
$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 /* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func (); below.
17270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271 <limits.h> exists even on freestanding compilers. */
17273 # include <limits.h>
17275 # include <assert.h>
17277 /* Override any gcc2 internal prototype to avoid an error. */
17282 /* We use char because int might match the return type of a gcc2
17283 builtin and then its argument prototype would still apply. */
17285 /* The GNU C library defines this for functions which it implements
17286 to always fail with ENOSYS. Some functions are actually named
17287 something starting with __ and the normal name is an alias. */
17288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17291 char (*f) () = $ac_func;
17300 return f != $ac_func;
17305 rm -f conftest.
$ac_objext conftest
$ac_exeext
17306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17307 (eval $ac_link) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try
='test -s conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 eval "$as_ac_var=yes"
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.
$ac_ext >&5
17322 eval "$as_ac_var=no"
17324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17328 if test `eval echo '${'$as_ac_var'}'` = yes; then
17329 cat >>confdefs.h
<<_ACEOF
17330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17336 if test $ac_cv_func_gettimeofday = yes; then
17337 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
17338 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
17339 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 cat >conftest.
$ac_ext <<_ACEOF
17343 #line $LINENO "configure"
17346 cat confdefs.h
>>conftest.
$ac_ext
17347 cat >>conftest.
$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17350 #ifdef TIME_WITH_SYS_TIME
17351 #include <sys/time.h>
17354 #ifdef HAVE_SYS_TIME_H
17355 #include <sys/time.h>
17363 struct timeval time;
17364 gettimeofday (&time, 0);
17369 rm -f conftest.
$ac_objext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17371 (eval $ac_compile) 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try
='test -s conftest.$ac_objext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 emacs_cv_gettimeofday_two_arguments
=yes
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.
$ac_ext >&5
17386 emacs_cv_gettimeofday_two_arguments
=no
17388 rm -f conftest.
$ac_objext conftest.
$ac_ext
17390 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
17391 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
17392 if test $emacs_cv_gettimeofday_two_arguments = no
; then
17394 cat >>confdefs.h
<<\_ACEOF
17395 #define GETTIMEOFDAY_ONE_ARGUMENT 1
17402 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17403 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17404 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17405 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 cat >conftest.
$ac_ext <<_ACEOF
17409 #line $LINENO "configure"
17412 cat confdefs.h
>>conftest.
$ac_ext
17413 cat >>conftest.
$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 #include <sys/types.h>
17416 #include <$ac_cv_struct_tm>
17422 static struct tm ac_aggr;
17423 if (ac_aggr.tm_zone)
17429 rm -f conftest.
$ac_objext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try
='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_cv_member_struct_tm_tm_zone
=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.
$ac_ext >&5
17446 cat >conftest.
$ac_ext <<_ACEOF
17447 #line $LINENO "configure"
17450 cat confdefs.h
>>conftest.
$ac_ext
17451 cat >>conftest.
$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453 #include <sys/types.h>
17454 #include <$ac_cv_struct_tm>
17460 static struct tm ac_aggr;
17461 if (sizeof ac_aggr.tm_zone)
17467 rm -f conftest.
$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } &&
17473 { ac_try
='test -s conftest.$ac_objext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_member_struct_tm_tm_zone
=yes
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.
$ac_ext >&5
17484 ac_cv_member_struct_tm_tm_zone
=no
17486 rm -f conftest.
$ac_objext conftest.
$ac_ext
17488 rm -f conftest.
$ac_objext conftest.
$ac_ext
17490 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17491 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17492 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17494 cat >>confdefs.h
<<_ACEOF
17495 #define HAVE_STRUCT_TM_TM_ZONE 1
17501 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17503 cat >>confdefs.h
<<\_ACEOF
17504 #define HAVE_TM_ZONE 1
17508 echo "$as_me:$LINENO: checking for tzname" >&5
17509 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17510 if test "${ac_cv_var_tzname+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 cat >conftest.
$ac_ext <<_ACEOF
17514 #line $LINENO "configure"
17517 cat confdefs.h
>>conftest.
$ac_ext
17518 cat >>conftest.
$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17521 #ifndef tzname /* For SGI. */
17522 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
17533 rm -f conftest.
$ac_objext conftest
$ac_exeext
17534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 (eval $ac_link) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try
='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_var_tzname
=yes
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.
$ac_ext >&5
17550 ac_cv_var_tzname
=no
17552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17554 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17555 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17556 if test $ac_cv_var_tzname = yes; then
17558 cat >>confdefs.h
<<\_ACEOF
17559 #define HAVE_TZNAME 1
17566 if test "$ac_cv_func_gettimeofday" = yes; then
17567 echo "$as_me:$LINENO: checking for struct timezone" >&5
17568 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
17569 if test "${emacs_cv_struct_timezone+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 cat >conftest.
$ac_ext <<_ACEOF
17573 #line $LINENO "configure"
17576 cat confdefs.h
>>conftest.
$ac_ext
17577 cat >>conftest.
$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 #include <sys/time.h>
17583 struct timezone tz;
17588 rm -f conftest.
$ac_objext
17589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17590 (eval $ac_compile) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try
='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 if test "$cross_compiling" = yes; then
17601 emacs_cv_struct_timezone
=yes
17603 cat >conftest.
$ac_ext <<_ACEOF
17604 #line $LINENO "configure"
17607 cat confdefs.h
>>conftest.
$ac_ext
17608 cat >>conftest.
$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17611 #ifdef TIME_WITH_SYS_TIME
17612 #include <sys/time.h>
17615 #ifdef HAVE_SYS_TIME_H
17616 #include <sys/time.h>
17622 struct timeval time;
17623 struct timezone dummy;
17624 exit (gettimeofday (&time, &dummy));
17627 rm -f conftest
$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 emacs_cv_struct_timezone
=yes
17640 echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.
$ac_ext >&5
17644 ( exit $ac_status )
17645 emacs_cv_struct_timezone
=no
17647 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.
$ac_ext >&5
17653 emacs_cv_struct_timezone
=no
17655 rm -f conftest.
$ac_objext conftest.
$ac_ext
17657 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17658 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17662 echo "$as_me:$LINENO: checking for socket" >&5
17663 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17664 if test "${ac_cv_func_socket+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 cat >conftest.
$ac_ext <<_ACEOF
17668 #line $LINENO "configure"
17671 cat confdefs.h
>>conftest.
$ac_ext
17672 cat >>conftest.
$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 /* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char socket (); below.
17676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677 <limits.h> exists even on freestanding compilers. */
17679 # include <limits.h>
17681 # include <assert.h>
17683 /* Override any gcc2 internal prototype to avoid an error. */
17688 /* We use char because int might match the return type of a gcc2
17689 builtin and then its argument prototype would still apply. */
17691 /* The GNU C library defines this for functions which it implements
17692 to always fail with ENOSYS. Some functions are actually named
17693 something starting with __ and the normal name is an alias. */
17694 #if defined (__stub_socket) || defined (__stub___socket)
17697 char (*f) () = socket;
17706 return f != socket;
17711 rm -f conftest.
$ac_objext conftest
$ac_exeext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713 (eval $ac_link) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try
='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_func_socket
=yes
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.
$ac_ext >&5
17728 ac_cv_func_socket
=no
17730 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17732 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17733 echo "${ECHO_T}$ac_cv_func_socket" >&6
17734 if test $ac_cv_func_socket = yes; then
17740 if test $ok_so_far = yes; then
17741 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17742 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17743 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17744 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17748 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17750 # Is the header compilable?
17751 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17752 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17753 cat >conftest.
$ac_ext <<_ACEOF
17754 #line $LINENO "configure"
17757 cat confdefs.h
>>conftest.
$ac_ext
17758 cat >>conftest.
$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 $ac_includes_default
17761 #include <netinet/in.h>
17763 rm -f conftest.
$ac_objext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17765 (eval $ac_compile) 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try
='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_header_compiler
=yes
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.
$ac_ext >&5
17780 ac_header_compiler
=no
17782 rm -f conftest.
$ac_objext conftest.
$ac_ext
17783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17784 echo "${ECHO_T}$ac_header_compiler" >&6
17786 # Is the header present?
17787 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17788 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17789 cat >conftest.
$ac_ext <<_ACEOF
17790 #line $LINENO "configure"
17793 cat confdefs.h
>>conftest.
$ac_ext
17794 cat >>conftest.
$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 #include <netinet/in.h>
17798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17799 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17801 grep -v '^ *+' conftest.er1
>conftest.err
17803 cat conftest.err
>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } >/dev
/null
; then
17806 if test -s conftest.err
; then
17807 ac_cpp_err
=$ac_c_preproc_warn_flag
17814 if test -z "$ac_cpp_err"; then
17815 ac_header_preproc
=yes
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.
$ac_ext >&5
17820 ac_header_preproc
=no
17822 rm -f conftest.err conftest.
$ac_ext
17823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17824 echo "${ECHO_T}$ac_header_preproc" >&6
17826 # So? What about this header?
17827 case $ac_header_compiler:$ac_header_preproc in
17829 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17830 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17832 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17835 ## ------------------------------------ ##
17836 ## Report this to bug-autoconf@gnu.org. ##
17837 ## ------------------------------------ ##
17840 sed "s/^/$as_me: WARNING: /" >&2
17843 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17844 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17846 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17848 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17851 ## ------------------------------------ ##
17852 ## Report this to bug-autoconf@gnu.org. ##
17853 ## ------------------------------------ ##
17856 sed "s/^/$as_me: WARNING: /" >&2
17859 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17860 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17861 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 ac_cv_header_netinet_in_h
=$ac_header_preproc
17866 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17867 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17870 if test $ac_cv_header_netinet_in_h = yes; then
17878 if test $ok_so_far = yes; then
17879 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17880 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17881 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17882 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17886 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17888 # Is the header compilable?
17889 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17890 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17891 cat >conftest.
$ac_ext <<_ACEOF
17892 #line $LINENO "configure"
17895 cat confdefs.h
>>conftest.
$ac_ext
17896 cat >>conftest.
$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 $ac_includes_default
17899 #include <arpa/inet.h>
17901 rm -f conftest.
$ac_objext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try
='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_header_compiler
=yes
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.
$ac_ext >&5
17918 ac_header_compiler
=no
17920 rm -f conftest.
$ac_objext conftest.
$ac_ext
17921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17922 echo "${ECHO_T}$ac_header_compiler" >&6
17924 # Is the header present?
17925 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17926 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17927 cat >conftest.
$ac_ext <<_ACEOF
17928 #line $LINENO "configure"
17931 cat confdefs.h
>>conftest.
$ac_ext
17932 cat >>conftest.
$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 #include <arpa/inet.h>
17936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17937 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17939 grep -v '^ *+' conftest.er1
>conftest.err
17941 cat conftest.err
>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } >/dev
/null
; then
17944 if test -s conftest.err
; then
17945 ac_cpp_err
=$ac_c_preproc_warn_flag
17952 if test -z "$ac_cpp_err"; then
17953 ac_header_preproc
=yes
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.
$ac_ext >&5
17958 ac_header_preproc
=no
17960 rm -f conftest.err conftest.
$ac_ext
17961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17962 echo "${ECHO_T}$ac_header_preproc" >&6
17964 # So? What about this header?
17965 case $ac_header_compiler:$ac_header_preproc in
17967 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17968 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17970 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17973 ## ------------------------------------ ##
17974 ## Report this to bug-autoconf@gnu.org. ##
17975 ## ------------------------------------ ##
17978 sed "s/^/$as_me: WARNING: /" >&2
17981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17982 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17984 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17986 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17989 ## ------------------------------------ ##
17990 ## Report this to bug-autoconf@gnu.org. ##
17991 ## ------------------------------------ ##
17994 sed "s/^/$as_me: WARNING: /" >&2
17997 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17998 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17999 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18000 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 ac_cv_header_arpa_inet_h
=$ac_header_preproc
18004 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18005 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18008 if test $ac_cv_header_arpa_inet_h = yes; then
18016 if test $ok_so_far = yes; then
18018 cat >>confdefs.h
<<\_ACEOF
18019 #define HAVE_INET_SOCKETS 1
18026 for ac_header
in sys
/ioctl.h net
/if.h
18028 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18030 echo "$as_me:$LINENO: checking for $ac_header" >&5
18031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18038 # Is the header compilable?
18039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18041 cat >conftest.
$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18045 cat confdefs.h
>>conftest.
$ac_ext
18046 cat >>conftest.
$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $ac_includes_default
18049 #include <$ac_header>
18051 rm -f conftest.
$ac_objext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18053 (eval $ac_compile) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try
='test -s conftest.$ac_objext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 ac_header_compiler
=yes
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.
$ac_ext >&5
18068 ac_header_compiler
=no
18070 rm -f conftest.
$ac_objext conftest.
$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6
18074 # Is the header present?
18075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18077 cat >conftest.
$ac_ext <<_ACEOF
18078 #line $LINENO "configure"
18081 cat confdefs.h
>>conftest.
$ac_ext
18082 cat >>conftest.
$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 #include <$ac_header>
18086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18087 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18089 grep -v '^ *+' conftest.er1
>conftest.err
18091 cat conftest.err
>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } >/dev
/null
; then
18094 if test -s conftest.err
; then
18095 ac_cpp_err
=$ac_c_preproc_warn_flag
18102 if test -z "$ac_cpp_err"; then
18103 ac_header_preproc
=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.
$ac_ext >&5
18108 ac_header_preproc
=no
18110 rm -f conftest.err conftest.
$ac_ext
18111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6
18114 # So? What about this header?
18115 case $ac_header_compiler:$ac_header_preproc in
18117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18123 ## ------------------------------------ ##
18124 ## Report this to bug-autoconf@gnu.org. ##
18125 ## ------------------------------------ ##
18128 sed "s/^/$as_me: WARNING: /" >&2
18131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18139 ## ------------------------------------ ##
18140 ## Report this to bug-autoconf@gnu.org. ##
18141 ## ------------------------------------ ##
18144 sed "s/^/$as_me: WARNING: /" >&2
18147 echo "$as_me:$LINENO: checking for $ac_header" >&5
18148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 eval "$as_ac_Header=$ac_header_preproc"
18154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18159 cat >>confdefs.h
<<_ACEOF
18160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18168 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18170 cat >>confdefs.h
<<\_ACEOF
18171 #define HAVE_AIX_SMT_EXP 1
18176 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
18177 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
18178 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18179 echo "$as_me:$LINENO: result: yes" >&5
18180 echo "${ECHO_T}yes" >&6
18182 cat >>confdefs.h
<<\_ACEOF
18183 #define HAVE_DEV_PTMX 1
18187 echo "$as_me:$LINENO: result: no" >&5
18188 echo "${ECHO_T}no" >&6
18191 echo "$as_me:$LINENO: checking for pid_t" >&5
18192 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18193 if test "${ac_cv_type_pid_t+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 cat >conftest.
$ac_ext <<_ACEOF
18197 #line $LINENO "configure"
18200 cat confdefs.h
>>conftest.
$ac_ext
18201 cat >>conftest.
$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $ac_includes_default
18209 if (sizeof (pid_t))
18215 rm -f conftest.
$ac_objext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try
='test -s conftest.$ac_objext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_cv_type_pid_t
=yes
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.
$ac_ext >&5
18232 ac_cv_type_pid_t
=no
18234 rm -f conftest.
$ac_objext conftest.
$ac_ext
18236 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18237 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18238 if test $ac_cv_type_pid_t = yes; then
18242 cat >>confdefs.h
<<_ACEOF
18250 for ac_header
in unistd.h vfork.h
18252 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18254 echo "$as_me:$LINENO: checking for $ac_header" >&5
18255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18262 # Is the header compilable?
18263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18265 cat >conftest.
$ac_ext <<_ACEOF
18266 #line $LINENO "configure"
18269 cat confdefs.h
>>conftest.
$ac_ext
18270 cat >>conftest.
$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 $ac_includes_default
18273 #include <$ac_header>
18275 rm -f conftest.
$ac_objext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18277 (eval $ac_compile) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try
='test -s conftest.$ac_objext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; }; then
18287 ac_header_compiler
=yes
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.
$ac_ext >&5
18292 ac_header_compiler
=no
18294 rm -f conftest.
$ac_objext conftest.
$ac_ext
18295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18296 echo "${ECHO_T}$ac_header_compiler" >&6
18298 # Is the header present?
18299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18301 cat >conftest.
$ac_ext <<_ACEOF
18302 #line $LINENO "configure"
18305 cat confdefs.h
>>conftest.
$ac_ext
18306 cat >>conftest.
$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 #include <$ac_header>
18310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18311 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18313 grep -v '^ *+' conftest.er1
>conftest.err
18315 cat conftest.err
>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } >/dev
/null
; then
18318 if test -s conftest.err
; then
18319 ac_cpp_err
=$ac_c_preproc_warn_flag
18326 if test -z "$ac_cpp_err"; then
18327 ac_header_preproc
=yes
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.
$ac_ext >&5
18332 ac_header_preproc
=no
18334 rm -f conftest.err conftest.
$ac_ext
18335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18336 echo "${ECHO_T}$ac_header_preproc" >&6
18338 # So? What about this header?
18339 case $ac_header_compiler:$ac_header_preproc in
18341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18347 ## ------------------------------------ ##
18348 ## Report this to bug-autoconf@gnu.org. ##
18349 ## ------------------------------------ ##
18352 sed "s/^/$as_me: WARNING: /" >&2
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18363 ## ------------------------------------ ##
18364 ## Report this to bug-autoconf@gnu.org. ##
18365 ## ------------------------------------ ##
18368 sed "s/^/$as_me: WARNING: /" >&2
18371 echo "$as_me:$LINENO: checking for $ac_header" >&5
18372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 eval "$as_ac_Header=$ac_header_preproc"
18378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18383 cat >>confdefs.h
<<_ACEOF
18384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18393 for ac_func
in fork vfork
18395 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18396 echo "$as_me:$LINENO: checking for $ac_func" >&5
18397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18398 if eval "test \"\${$as_ac_var+set}\" = set"; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 cat >conftest.
$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18405 cat confdefs.h
>>conftest.
$ac_ext
18406 cat >>conftest.
$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 /* System header to define __stub macros and hopefully few prototypes,
18409 which can conflict with char $ac_func (); below.
18410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411 <limits.h> exists even on freestanding compilers. */
18413 # include <limits.h>
18415 # include <assert.h>
18417 /* Override any gcc2 internal prototype to avoid an error. */
18422 /* We use char because int might match the return type of a gcc2
18423 builtin and then its argument prototype would still apply. */
18425 /* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18431 char (*f) () = $ac_func;
18440 return f != $ac_func;
18445 rm -f conftest.
$ac_objext conftest
$ac_exeext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447 (eval $ac_link) 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try
='test -s conftest$ac_exeext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 eval "$as_ac_var=yes"
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.
$ac_ext >&5
18462 eval "$as_ac_var=no"
18464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18468 if test `eval echo '${'$as_ac_var'}'` = yes; then
18469 cat >>confdefs.h
<<_ACEOF
18470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18476 if test "x$ac_cv_func_fork" = xyes
; then
18477 echo "$as_me:$LINENO: checking for working fork" >&5
18478 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18479 if test "${ac_cv_func_fork_works+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 if test "$cross_compiling" = yes; then
18483 ac_cv_func_fork_works
=cross
18485 cat >conftest.
$ac_ext <<_ACEOF
18486 /* By Ruediger Kuhlmann. */
18487 #include <sys/types.h>
18489 # include <unistd.h>
18491 /* Some systems only have a dummy stub for fork() */
18499 rm -f conftest
$ac_exeext
18500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18501 (eval $ac_link) 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_cv_func_fork_works
=yes
18512 echo "$as_me: program exited with status $ac_status" >&5
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.
$ac_ext >&5
18516 ( exit $ac_status )
18517 ac_cv_func_fork_works
=no
18519 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18522 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18523 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18526 ac_cv_func_fork_works
=$ac_cv_func_fork
18528 if test "x$ac_cv_func_fork_works" = xcross
; then
18530 *-*-amigaos* |
*-*-msdosdjgpp*)
18531 # Override, as these systems have only a dummy fork() stub
18532 ac_cv_func_fork_works
=no
18535 ac_cv_func_fork_works
=yes
18538 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18539 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18541 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18542 if test "x$ac_cv_func_vfork" = xyes
; then
18543 echo "$as_me:$LINENO: checking for working vfork" >&5
18544 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18545 if test "${ac_cv_func_vfork_works+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 if test "$cross_compiling" = yes; then
18549 ac_cv_func_vfork_works
=cross
18551 cat >conftest.
$ac_ext <<_ACEOF
18552 #line $LINENO "configure"
18555 cat confdefs.h
>>conftest.
$ac_ext
18556 cat >>conftest.
$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18558 /* Thanks to Paul Eggert for this test. */
18560 #include <stdlib.h>
18561 #include <sys/types.h>
18562 #include <sys/stat.h>
18563 #include <sys/wait.h>
18565 # include <unistd.h>
18568 # include <vfork.h>
18570 /* On some sparc systems, changes by the child to local and incoming
18571 argument registers are propagated back to the parent. The compiler
18572 is told about this with #include <vfork.h>, but some compilers
18573 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18574 static variable whose address is put into a register that is
18575 clobbered by the vfork. */
18578 sparc_address_test (int arg)
18580 sparc_address_test (arg) int arg;
18583 static pid_t child;
18601 pid_t parent = getpid ();
18604 sparc_address_test (0);
18609 /* Here is another test for sparc vfork register problems. This
18610 test uses lots of local variables, at least as many local
18611 variables as main has allocated so far including compiler
18612 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18613 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18614 reuse the register of parent for one of the local variables,
18615 since it will think that parent can't possibly be used any more
18616 in this routine. Assigning to the local variable will thus
18617 munge parent in the parent process. */
18619 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18620 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18621 /* Convince the compiler that p..p7 are live; otherwise, it might
18622 use the same hardware register for all 8 local variables. */
18623 if (p != p1 || p != p2 || p != p3 || p != p4
18624 || p != p5 || p != p6 || p != p7)
18627 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18628 from child file descriptors. If the child closes a descriptor
18629 before it execs or exits, this munges the parent's descriptor
18630 as well. Test for this by closing stdout in the child. */
18631 _exit(close(fileno(stdout)) != 0);
18636 while (wait(&status) != child)
18639 /* Was there some problem with vforking? */
18642 /* Did the child fail? (This shouldn't happen.) */
18645 /* Did the vfork/compiler bug occur? */
18646 || parent != getpid()
18648 /* Did the file descriptor bug occur? */
18649 || fstat(fileno(stdout), &st) != 0
18654 rm -f conftest
$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_func_vfork_works
=yes
18667 echo "$as_me: program exited with status $ac_status" >&5
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.
$ac_ext >&5
18671 ( exit $ac_status )
18672 ac_cv_func_vfork_works
=no
18674 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18677 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18678 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18681 if test "x$ac_cv_func_fork_works" = xcross
; then
18682 ac_cv_func_vfork_works
=ac_cv_func_vfork
18683 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18684 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18687 if test "x$ac_cv_func_vfork_works" = xyes
; then
18689 cat >>confdefs.h
<<\_ACEOF
18690 #define HAVE_WORKING_VFORK 1
18695 cat >>confdefs.h
<<\_ACEOF
18700 if test "x$ac_cv_func_fork_works" = xyes
; then
18702 cat >>confdefs.h
<<\_ACEOF
18703 #define HAVE_WORKING_FORK 1
18709 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18710 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
18711 if test "${emacs_cv_langinfo_codeset+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 cat >conftest.
$ac_ext <<_ACEOF
18715 #line $LINENO "configure"
18718 cat confdefs.h
>>conftest.
$ac_ext
18719 cat >>conftest.
$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 #include <langinfo.h>
18725 char* cs = nl_langinfo(CODESET);
18730 rm -f conftest.
$ac_objext conftest
$ac_exeext
18731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18732 (eval $ac_link) 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try
='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 emacs_cv_langinfo_codeset
=yes
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.
$ac_ext >&5
18747 emacs_cv_langinfo_codeset
=no
18749 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18752 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
18753 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
18754 if test $emacs_cv_langinfo_codeset = yes; then
18756 cat >>confdefs.h
<<\_ACEOF
18757 #define HAVE_LANGINFO_CODESET 1
18762 echo "$as_me:$LINENO: checking for size_t" >&5
18763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18764 if test "${ac_cv_type_size_t+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 cat >conftest.
$ac_ext <<_ACEOF
18768 #line $LINENO "configure"
18771 cat confdefs.h
>>conftest.
$ac_ext
18772 cat >>conftest.
$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 $ac_includes_default
18780 if (sizeof (size_t))
18786 rm -f conftest.
$ac_objext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try
='test -s conftest.$ac_objext'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 ac_cv_type_size_t
=yes
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.
$ac_ext >&5
18803 ac_cv_type_size_t
=no
18805 rm -f conftest.
$ac_objext conftest.
$ac_ext
18807 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18808 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18809 if test $ac_cv_type_size_t = yes; then
18811 cat >>confdefs.h
<<_ACEOF
18812 #define HAVE_SIZE_T 1
18819 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18820 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18821 if test "${ac_cv_type_mbstate_t+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 cat >conftest.
$ac_ext <<_ACEOF
18825 #line $LINENO "configure"
18828 cat confdefs.h
>>conftest.
$ac_ext
18829 cat >>conftest.
$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 $ac_includes_default
18832 # include <wchar.h>
18836 mbstate_t x; return sizeof x;
18841 rm -f conftest.
$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try
='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_type_mbstate_t
=yes
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.
$ac_ext >&5
18858 ac_cv_type_mbstate_t
=no
18860 rm -f conftest.
$ac_objext conftest.
$ac_ext
18862 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18863 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18864 if test $ac_cv_type_mbstate_t = yes; then
18866 cat >>confdefs.h
<<\_ACEOF
18867 #define HAVE_MBSTATE_T 1
18872 cat >>confdefs.h
<<\_ACEOF
18873 #define mbstate_t int
18878 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18879 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18880 if test "${emacs_cv_c_restrict+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 cat >conftest.
$ac_ext <<_ACEOF
18884 #line $LINENO "configure"
18887 cat confdefs.h
>>conftest.
$ac_ext
18888 cat >>conftest.
$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 void fred (int *restrict x);
18899 rm -f conftest.
$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try
='test -s conftest.$ac_objext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 emacs_cv_c_restrict
=yes
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.
$ac_ext >&5
18916 cat >conftest.
$ac_ext <<_ACEOF
18917 #line $LINENO "configure"
18920 cat confdefs.h
>>conftest.
$ac_ext
18921 cat >>conftest.
$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18923 void fred (int *__restrict x);
18932 rm -f conftest.
$ac_objext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18934 (eval $ac_compile) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try
='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 emacs_cv_c_restrict
=__restrict
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.
$ac_ext >&5
18949 emacs_cv_c_restrict
=no
18951 rm -f conftest.
$ac_objext conftest.
$ac_ext
18953 rm -f conftest.
$ac_objext conftest.
$ac_ext
18955 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18956 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18957 case "$emacs_cv_c_restrict" in
18958 yes) emacs_restrict
=restrict
;;
18959 no
) emacs_restrict
="";;
18960 *) emacs_restrict
="$emacs_cv_c_restrict";;
18962 if test "$emacs_restrict" != __restrict
; then
18964 cat >>confdefs.h
<<_ACEOF
18965 #define __restrict $emacs_restrict
18970 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18971 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18972 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18975 cat >conftest.
$ac_ext <<_ACEOF
18976 #line $LINENO "configure"
18979 cat confdefs.h
>>conftest.
$ac_ext
18980 cat >>conftest.
$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 void fred (int x[__restrict]);
18991 rm -f conftest.
$ac_objext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993 (eval $ac_compile) 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try
='test -s conftest.$ac_objext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 emacs_cv_c_restrict_arr
=yes
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.
$ac_ext >&5
19008 emacs_cv_c_restrict_arr
=no
19010 rm -f conftest.
$ac_objext conftest.
$ac_ext
19012 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
19013 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
19014 if test "$emacs_cv_c_restrict_arr" = yes; then
19016 cat >>confdefs.h
<<\_ACEOF
19017 #define __restrict_arr __restrict
19024 # Set up the CFLAGS for real compilation, so we can substitute it.
19025 CFLAGS
="$REAL_CFLAGS"
19026 CPPFLAGS
="$REAL_CPPFLAGS"
19028 #### Find out which version of Emacs this is.
19029 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
19030 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
19031 if test x
"${version}" = x
; then
19032 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
19033 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
19034 { (exit 1); exit 1; }; }
19037 ### Specify what sort of things we'll be editing into Makefile and config.h.
19038 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19074 cat >>confdefs.h
<<_ACEOF
19075 #define EMACS_CONFIGURATION "${canonical}"
19079 cat >>confdefs.h
<<_ACEOF
19080 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19084 cat >>confdefs.h
<<_ACEOF
19085 #define config_machfile "${machfile}"
19089 cat >>confdefs.h
<<_ACEOF
19090 #define config_opsysfile "${opsysfile}"
19094 cat >>confdefs.h
<<_ACEOF
19095 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
19099 cat >>confdefs.h
<<_ACEOF
19100 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
19104 cat >>confdefs.h
<<_ACEOF
19105 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
19109 cat >>confdefs.h
<<_ACEOF
19110 #define UNEXEC_SRC ${UNEXEC_SRC}
19114 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19116 cat >>confdefs.h
<<\_ACEOF
19117 #define HAVE_X_WINDOWS 1
19121 if test "${USE_X_TOOLKIT}" != "none" ; then
19123 cat >>confdefs.h
<<\_ACEOF
19124 #define USE_X_TOOLKIT 1
19128 if test "${HAVE_X11}" = "yes" ; then
19130 cat >>confdefs.h
<<\_ACEOF
19135 if test "${HAVE_XFREE386}" = "yes" ; then
19137 cat >>confdefs.h
<<\_ACEOF
19138 #define HAVE_XFREE386 1
19142 if test "${HAVE_MENUS}" = "yes" ; then
19144 cat >>confdefs.h
<<\_ACEOF
19145 #define HAVE_MENUS 1
19149 if test "${GNU_MALLOC}" = "yes" ; then
19151 cat >>confdefs.h
<<\_ACEOF
19152 #define GNU_MALLOC 1
19156 if test "${REL_ALLOC}" = "yes" ; then
19158 cat >>confdefs.h
<<\_ACEOF
19159 #define REL_ALLOC 1
19168 #### Report on what we decided to do.
19169 #### Report GTK as a toolkit, even if it doesn't use Xt.
19170 #### It makes printing result more understandable as using GTK sets
19171 #### toolkit_scroll_bars to yes by default.
19172 if test "${HAVE_GTK}" = "yes"; then
19177 Configured for \`${canonical}'.
19179 Where should the build process find the source code? ${srcdir}
19180 What operating system and machine description files should Emacs use?
19181 \`${opsysfile}' and \`${machfile}'
19182 What compiler should emacs be built with? ${CC} ${CFLAGS}
19183 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19184 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19185 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19186 What window system should Emacs use? ${window_system}
19187 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19189 if test -n "${x_includes}"; then
19190 echo " Where do we find X Windows header files? ${x_includes}"
19192 echo " Where do we find X Windows header files? Standard dirs"
19194 if test -n "${x_libraries}"; then
19195 echo " Where do we find X Windows libraries? ${x_libraries}"
19197 echo " Where do we find X Windows libraries? Standard dirs"
19200 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19201 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19202 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19203 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19204 echo " Does Emacs use -lungif? ${HAVE_GIF}"
19205 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19206 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19209 # Remove any trailing slashes in these variables.
19210 test "${prefix}" != NONE
&&
19211 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19212 test "${exec_prefix}" != NONE
&&
19213 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19215 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
19216 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
19217 ## from Makefile.c can correctly provide the arg `-traditional' to the
19220 cat >conftest.
$ac_ext <<_ACEOF
19221 #line $LINENO "configure"
19224 cat confdefs.h
>>conftest.
$ac_ext
19225 cat >>conftest.
$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19230 $EGREP "yes..yes" >/dev
/null
2>&1; then
19231 CPP_NEED_TRADITIONAL
=no
19233 CPP_NEED_TRADITIONAL
=yes
19238 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"
19239 ac_config_commands
="$ac_config_commands default"
19240 cat >confcache
<<\_ACEOF
19241 # This file is a shell script that caches the results of configure
19242 # tests run on this system so they can be shared between configure
19243 # scripts and configure runs, see configure's option --config-cache.
19244 # It is not useful on other systems. If it contains results you don't
19245 # want to keep, you may remove or edit it.
19247 # config.status only pays attention to the cache file if you give it
19248 # the --recheck option to rerun configure.
19250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19252 # following values.
19256 # The following way of writing the cache mishandles newlines in values,
19257 # but we know of no workaround that is simple, portable, and efficient.
19258 # So, don't put newlines in cache variables' values.
19259 # Ultrix sh set writes to stderr and can't be redirected directly,
19260 # and sets the high bit in the cache file unless we assign to the vars.
19263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19265 # `set' does not quote correctly, so add quotes (double-quote
19266 # substitution turns \\\\ into \\, and sed turns \\ into \).
19269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19272 # `set' quotes correctly as required by POSIX, so do not add quotes.
19274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19285 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19286 if test -w $cache_file; then
19287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19288 cat confcache
>$cache_file
19290 echo "not updating unwritable cache $cache_file"
19295 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19296 # Let make expand exec_prefix.
19297 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19301 # trailing colons and then remove the whole line if VPATH becomes empty
19302 # (actually we leave an empty line to preserve line numbers).
19303 if test "x$srcdir" = x.
; then
19304 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19305 s/:*\$(srcdir):*/:/;
19306 s/:*\${srcdir}:*/:/;
19308 s/^\([^=]*=[ ]*\):*/\1/;
19314 DEFS
=-DHAVE_CONFIG_H
19318 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19319 # 1. Remove the extension, and $U if already installed.
19320 ac_i
=`echo "$ac_i" |
19321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19323 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19324 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19326 LIBOBJS
=$ac_libobjs
19328 LTLIBOBJS
=$ac_ltlibobjs
19332 : ${CONFIG_STATUS=./config.status}
19333 ac_clean_files_save
=$ac_clean_files
19334 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19337 cat >$CONFIG_STATUS <<_ACEOF
19339 # Generated by $as_me.
19340 # Run this file to recreate the current configuration.
19341 # Compiler output produced by configure, useful for debugging
19342 # configure, is in config.log if it exists.
19345 ac_cs_recheck=false
19347 SHELL=\${CONFIG_SHELL-$SHELL}
19350 cat >>$CONFIG_STATUS <<\_ACEOF
19351 ## --------------------- ##
19352 ## M4sh Initialization. ##
19353 ## --------------------- ##
19355 # Be Bourne compatible
19356 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19359 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19360 # is contrary to our usage. Disable this feature.
19361 alias -g '${1+"$@"}'='"$@"'
19362 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19366 # Support unset when possible.
19367 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
19374 # Work around bugs in pre-3.0 UWIN ksh.
19375 $as_unset ENV MAIL MAILPATH
19382 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19383 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19384 LC_TELEPHONE LC_TIME
19386 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19387 eval $as_var=C
; export $as_var
19393 # Required to use basename.
19394 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19400 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
19401 as_basename
=basename
19407 # Name of the executable.
19408 as_me
=`$as_basename "$0" ||
19409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19410 X"$0" : 'X\(//\)$' \| \
19411 X"$0" : 'X\(/\)$' \| \
19412 . : '\(.\)' 2>/dev/null ||
19414 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19415 /^X\/\(\/\/\)$/{ s//\1/; q; }
19416 /^X\/\(\/\).*/{ s//\1/; q; }
19420 # PATH needs CR, and LINENO needs CR and PATH.
19421 # Avoid depending upon Character Ranges.
19422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19425 as_cr_digits
='0123456789'
19426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19428 # The user is always right.
19429 if test "${PATH_SEPARATOR+set}" != set; then
19430 echo "#! /bin/sh" >conf$$.sh
19431 echo "exit 0" >>conf$$.sh
19433 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19442 as_lineno_1
=$LINENO
19443 as_lineno_2
=$LINENO
19444 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19445 test "x$as_lineno_1" != "x$as_lineno_2" &&
19446 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
19447 # Find who we are. Look in the path if we contain no path at all
19450 *[\\/]* ) as_myself
=$0 ;;
19451 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19452 for as_dir
in $PATH
19455 test -z "$as_dir" && as_dir
=.
19456 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19461 # We did not find ourselves, most probably we were run as `sh COMMAND'
19462 # in which case we are not to be found in the path.
19463 if test "x$as_myself" = x
; then
19466 if test ! -f "$as_myself"; then
19467 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19468 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19469 { (exit 1); exit 1; }; }
19471 case $CONFIG_SHELL in
19473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19474 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
19477 test -z "$as_dir" && as_dir
=.
19478 for as_base
in sh bash ksh sh5
; do
19481 if ("$as_dir/$as_base" -c '
19482 as_lineno_1=$LINENO
19483 as_lineno_2=$LINENO
19484 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19485 test "x$as_lineno_1" != "x$as_lineno_2" &&
19486 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
19487 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
19488 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
19489 CONFIG_SHELL
=$as_dir/$as_base
19490 export CONFIG_SHELL
19491 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19499 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19500 # uniformly replaced by the line number. The first 'sed' inserts a
19501 # line-number line before each line; the second 'sed' does the real
19502 # work. The second script uses 'N' to pair each line-number line
19503 # with the numbered line, and appends trailing '-' during
19504 # substitution so that $LINENO is not a special case at line end.
19505 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19506 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19507 sed '=' <$as_myself |
19512 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19515 s,^['$as_cr_digits']*\n,,
19516 ' >$as_me.lineno
&&
19517 chmod +x
$as_me.lineno ||
19518 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19519 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19520 { (exit 1); exit 1; }; }
19522 # Don't try to exec as it changes $[0], causing all sort of problems
19523 # (the dirname of $[0] is not the place where we might find the
19524 # original and so on. Autoconf is especially sensible to this).
19526 # Exit status is that of the last command.
19531 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19532 *c
*,-n*) ECHO_N
= ECHO_C
='
19534 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19535 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19538 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19544 rm -f conf$$ conf$$.exe conf$$.
file
19546 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19547 # We could just check for DJGPP; but this test a) works b) is more generic
19548 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19549 if test -f conf$$.exe
; then
19550 # Don't use ln at all; we don't have any links
19555 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19560 rm -f conf$$ conf$$.exe conf$$.
file
19562 if mkdir
-p .
2>/dev
/null
; then
19568 as_executable_p
="test -f"
19570 # Sed expression to map a string onto a valid CPP name.
19571 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19573 # Sed expression to map a string onto a valid variable name.
19574 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19578 # We need space, tab and new line, in precisely that order.
19588 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19589 # report actual input values of CONFIG_FILES etc. instead of their
19590 # values after options handling. Logging --version etc. is OK.
19594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19595 ## Running $as_me. ##
19600 This file was extended by $as_me, which was
19601 generated by GNU Autoconf 2.57. Invocation command line was
19603 CONFIG_FILES = $CONFIG_FILES
19604 CONFIG_HEADERS = $CONFIG_HEADERS
19605 CONFIG_LINKS = $CONFIG_LINKS
19606 CONFIG_COMMANDS = $CONFIG_COMMANDS
19610 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19614 # Files that config.status was made for.
19615 if test -n "$ac_config_files"; then
19616 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19619 if test -n "$ac_config_headers"; then
19620 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19623 if test -n "$ac_config_links"; then
19624 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19627 if test -n "$ac_config_commands"; then
19628 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19631 cat >>$CONFIG_STATUS <<\_ACEOF
19634 \`$as_me' instantiates files from templates according to the
19635 current configuration.
19637 Usage: $0 [OPTIONS] [FILE]...
19639 -h, --help print this help, then exit
19640 -V, --version print version number, then exit
19641 -q, --quiet do not print progress messages
19642 -d, --debug don't remove temporary files
19643 --recheck update $as_me by reconfiguring in the same conditions
19644 --file=FILE[:TEMPLATE]
19645 instantiate the configuration file FILE
19646 --header=FILE[:TEMPLATE]
19647 instantiate the configuration header FILE
19649 Configuration files:
19652 Configuration headers:
19655 Configuration commands:
19658 Report bugs to <bug-autoconf@gnu.org>."
19661 cat >>$CONFIG_STATUS <<_ACEOF
19664 configured by $0, generated by GNU Autoconf 2.57,
19665 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19667 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19668 Free Software Foundation, Inc.
19669 This config.status script is free software; the Free Software Foundation
19670 gives unlimited permission to copy, distribute and modify it."
19675 cat >>$CONFIG_STATUS <<\_ACEOF
19676 # If no file are specified by the user, then we need to provide default
19677 # value. By we need to know if files were specified by the user.
19683 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19684 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19692 *) # This is not an option, so the user has probably given explicit
19695 ac_need_defaults
=false
;;
19699 # Handling of the options.
19701 cat >>$CONFIG_STATUS <<\_ACEOF
19702 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19704 --version |
--vers* |
-V )
19705 echo "$ac_cs_version"; exit 0 ;;
19707 # Conflict between --help and --header
19708 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19709 Try \`$0 --help' for more information." >&5
19710 echo "$as_me: error: ambiguous option: $1
19711 Try \`$0 --help' for more information." >&2;}
19712 { (exit 1); exit 1; }; };;
19713 --help |
--hel |
-h )
19714 echo "$ac_cs_usage"; exit 0 ;;
19715 --debug |
--d* |
-d )
19717 --file |
--fil |
--fi |
--f )
19719 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19720 ac_need_defaults
=false
;;
19721 --header |
--heade |
--head |
--hea )
19723 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19724 ac_need_defaults
=false
;;
19725 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19726 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19729 # This is an error.
19730 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19731 Try \`$0 --help' for more information." >&5
19732 echo "$as_me: error: unrecognized option: $1
19733 Try \`$0 --help' for more information." >&2;}
19734 { (exit 1); exit 1; }; } ;;
19736 *) ac_config_targets
="$ac_config_targets $1" ;;
19742 ac_configure_extra_args
=
19744 if $ac_cs_silent; then
19746 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19750 cat >>$CONFIG_STATUS <<_ACEOF
19751 if \$ac_cs_recheck; then
19752 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19753 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19758 cat >>$CONFIG_STATUS <<_ACEOF
19760 # INIT-COMMANDS section.
19763 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
19769 cat >>$CONFIG_STATUS <<\_ACEOF
19770 for ac_config_target
in $ac_config_targets
19772 case "$ac_config_target" in
19773 # Handling of arguments.
19774 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19775 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
19776 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19777 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
19778 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19779 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
19780 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19781 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
19782 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
19783 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19784 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19785 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19786 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19787 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19788 { (exit 1); exit 1; }; };;
19792 # If the user did not use the arguments to specify the items to instantiate,
19793 # then the envvar interface is used. Set only those that are not.
19794 # We use the long form for the default assignment because of an extremely
19795 # bizarre bug on SunOS 4.1.3.
19796 if $ac_need_defaults; then
19797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19802 # Have a temporary directory for convenience. Make it in the build tree
19803 # simply because there is no reason to put it here, and in addition,
19804 # creating and moving files from /tmp can sometimes cause problems.
19805 # Create a temporary directory, and hook for its removal unless debugging.
19808 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19809 trap '{ (exit 1); exit 1; }' 1 2 13 15
19812 # Create a (secure) tmp directory for tmp files.
19815 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19816 test -n "$tmp" && test -d "$tmp"
19819 tmp
=.
/confstat$$
-$RANDOM
19820 (umask 077 && mkdir
$tmp)
19823 echo "$me: cannot create a temporary directory in ." >&2
19824 { (exit 1); exit 1; }
19829 cat >>$CONFIG_STATUS <<_ACEOF
19832 # CONFIG_FILES section.
19835 # No need to generate the scripts if there are no CONFIG_FILES.
19836 # This happens for instance when ./config.status config.h
19837 if test -n "\$CONFIG_FILES"; then
19838 # Protect against being on the right side of a sed subst in config.status.
19839 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19840 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19841 s,@SHELL@,$SHELL,;t t
19842 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19843 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19844 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19845 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19846 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19847 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19848 s,@exec_prefix@,$exec_prefix,;t t
19849 s,@prefix@,$prefix,;t t
19850 s,@program_transform_name@,$program_transform_name,;t t
19851 s,@bindir@,$bindir,;t t
19852 s,@sbindir@,$sbindir,;t t
19853 s,@libexecdir@,$libexecdir,;t t
19854 s,@datadir@,$datadir,;t t
19855 s,@sysconfdir@,$sysconfdir,;t t
19856 s,@sharedstatedir@,$sharedstatedir,;t t
19857 s,@localstatedir@,$localstatedir,;t t
19858 s,@libdir@,$libdir,;t t
19859 s,@includedir@,$includedir,;t t
19860 s,@oldincludedir@,$oldincludedir,;t t
19861 s,@infodir@,$infodir,;t t
19862 s,@mandir@,$mandir,;t t
19863 s,@build_alias@,$build_alias,;t t
19864 s,@host_alias@,$host_alias,;t t
19865 s,@target_alias@,$target_alias,;t t
19866 s,@DEFS@,$DEFS,;t t
19867 s,@ECHO_C@,$ECHO_C,;t t
19868 s,@ECHO_N@,$ECHO_N,;t t
19869 s,@ECHO_T@,$ECHO_T,;t t
19870 s,@LIBS@,$LIBS,;t t
19871 s,@MAINT@,$MAINT,;t t
19872 s,@build@,$build,;t t
19873 s,@build_cpu@,$build_cpu,;t t
19874 s,@build_vendor@,$build_vendor,;t t
19875 s,@build_os@,$build_os,;t t
19876 s,@host@,$host,;t t
19877 s,@host_cpu@,$host_cpu,;t t
19878 s,@host_vendor@,$host_vendor,;t t
19879 s,@host_os@,$host_os,;t t
19881 s,@CFLAGS@,$CFLAGS,;t t
19882 s,@LDFLAGS@,$LDFLAGS,;t t
19883 s,@CPPFLAGS@,$CPPFLAGS,;t t
19884 s,@ac_ct_CC@,$ac_ct_CC,;t t
19885 s,@EXEEXT@,$EXEEXT,;t t
19886 s,@OBJEXT@,$OBJEXT,;t t
19887 s,@LN_S@,$LN_S,;t t
19889 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19890 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19891 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19892 s,@RANLIB@,$RANLIB,;t t
19893 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19894 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19895 s,@EGREP@,$EGREP,;t t
19896 s,@LIBSOUND@,$LIBSOUND,;t t
19897 s,@SET_MAKE@,$SET_MAKE,;t t
19898 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19899 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19900 s,@GTK_LIBS@,$GTK_LIBS,;t t
19901 s,@ALLOCA@,$ALLOCA,;t t
19902 s,@liblockfile@,$liblockfile,;t t
19903 s,@LIBOBJS@,$LIBOBJS,;t t
19904 s,@NEED_SETGID@,$NEED_SETGID,;t t
19905 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19906 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19907 s,@version@,$version,;t t
19908 s,@configuration@,$configuration,;t t
19909 s,@canonical@,$canonical,;t t
19910 s,@srcdir@,$srcdir,;t t
19911 s,@lispdir@,$lispdir,;t t
19912 s,@locallisppath@,$locallisppath,;t t
19913 s,@lisppath@,$lisppath,;t t
19914 s,@x_default_search_path@,$x_default_search_path,;t t
19915 s,@etcdir@,$etcdir,;t t
19916 s,@archlibdir@,$archlibdir,;t t
19917 s,@docdir@,$docdir,;t t
19918 s,@bitmapdir@,$bitmapdir,;t t
19919 s,@gamedir@,$gamedir,;t t
19920 s,@gameuser@,$gameuser,;t t
19921 s,@c_switch_system@,$c_switch_system,;t t
19922 s,@c_switch_machine@,$c_switch_machine,;t t
19923 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19924 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19925 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19926 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19927 s,@machfile@,$machfile,;t t
19928 s,@opsysfile@,$opsysfile,;t t
19929 s,@carbon_appdir@,$carbon_appdir,;t t
19930 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19935 cat >>$CONFIG_STATUS <<\_ACEOF
19936 # Split the substitutions into bite-sized pieces for seds with
19937 # small command number limits, like on Digital OSF/1 and HP-UX.
19938 ac_max_sed_lines
=48
19939 ac_sed_frag
=1 # Number of current file.
19940 ac_beg
=1 # First line for current file.
19941 ac_end
=$ac_max_sed_lines # Line after last line for current file.
19944 while $ac_more_lines; do
19945 if test $ac_beg -gt 1; then
19946 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19948 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
19950 if test ! -s $tmp/subs.frag
; then
19951 ac_more_lines
=false
19953 # The purpose of the label and of the branching condition is to
19954 # speed up the sed processing (if there are no `@' at all, there
19955 # is no need to browse any of the substitutions).
19956 # These are the two extra sed commands mentioned above.
19958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
19959 if test -z "$ac_sed_cmds"; then
19960 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
19962 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19964 ac_sed_frag
=`expr $ac_sed_frag + 1`
19966 ac_end
=`expr $ac_end + $ac_max_sed_lines`
19969 if test -z "$ac_sed_cmds"; then
19972 fi # test -n "$CONFIG_FILES"
19975 cat >>$CONFIG_STATUS <<\_ACEOF
19976 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
19977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19979 - |
*:- |
*:-:* ) # input from stdin
19981 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19982 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19983 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19984 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19985 * ) ac_file_in
=$ac_file.
in ;;
19988 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19989 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19991 X"$ac_file" : 'X\(//\)[^/]' \| \
19992 X"$ac_file" : 'X\(//\)$' \| \
19993 X"$ac_file" : 'X\(/\)' \| \
19994 . : '\(.\)' 2>/dev/null ||
19996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19998 /^X\(\/\/\)$/{ s//\1/; q; }
19999 /^X\(\/\).*/{ s//\1/; q; }
20001 { if $as_mkdir_p; then
20006 while test ! -d "$as_dir"; do
20007 as_dirs
="$as_dir $as_dirs"
20008 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20010 X"$as_dir" : 'X\(//\)[^/]' \| \
20011 X"$as_dir" : 'X\(//\)$' \| \
20012 X"$as_dir" : 'X\(/\)' \| \
20013 . : '\(.\)' 2>/dev/null ||
20015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20017 /^X\(\/\/\)$/{ s//\1/; q; }
20018 /^X\(\/\).*/{ s//\1/; q; }
20021 test ! -n "$as_dirs" || mkdir
$as_dirs
20022 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20023 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20024 { (exit 1); exit 1; }; }; }
20028 if test "$ac_dir" != .
; then
20029 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20030 # A "../" for each directory in $ac_dir_suffix.
20031 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20033 ac_dir_suffix
= ac_top_builddir
=
20037 .
) # No --srcdir option. We are building in place.
20039 if test -z "$ac_top_builddir"; then
20042 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20044 [\\/]* | ?
:[\\/]* ) # Absolute path.
20045 ac_srcdir
=$srcdir$ac_dir_suffix;
20046 ac_top_srcdir
=$srcdir ;;
20047 *) # Relative path.
20048 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20049 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20051 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20053 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
20054 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20055 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20056 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20060 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20061 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20064 if test x
"$ac_file" != x-
; then
20065 { echo "$as_me:$LINENO: creating $ac_file" >&5
20066 echo "$as_me: creating $ac_file" >&6;}
20069 # Let's still pretend it is `configure' which instantiates (i.e., don't
20070 # use $as_me), people would be surprised to read:
20071 # /* config.h. Generated by config.status. */
20072 if test x
"$ac_file" = x-
; then
20075 configure_input
="$ac_file. "
20077 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20078 sed 's,.*/,,'` by configure."
20080 # First look for the input files in the build tree, otherwise in the
20082 ac_file_inputs
=`IFS=:
20083 for f in $ac_file_in; do
20085 -) echo $tmp/stdin ;;
20087 # Absolute (can't be DOS-style, as IFS=:)
20088 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20089 echo "$as_me: error: cannot find input file: $f" >&2;}
20090 { (exit 1); exit 1; }; }
20093 if test -f "$f"; then
20096 elif test -f "$srcdir/$f"; then
20101 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20102 echo "$as_me: error: cannot find input file: $f" >&2;}
20103 { (exit 1); exit 1; }; }
20106 done` ||
{ (exit 1); exit 1; }
20108 cat >>$CONFIG_STATUS <<_ACEOF
20112 cat >>$CONFIG_STATUS <<\_ACEOF
20114 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20115 s
,@configure_input@
,$configure_input,;t t
20116 s
,@srcdir@
,$ac_srcdir,;t t
20117 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20118 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20119 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20120 s
,@builddir@
,$ac_builddir,;t t
20121 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20122 s
,@top_builddir@
,$ac_top_builddir,;t t
20123 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20124 s
,@INSTALL@
,$ac_INSTALL,;t t
20125 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20127 if test x"$ac_file" != x-; then
20128 mv $tmp/out $ac_file
20136 cat >>$CONFIG_STATUS <<\_ACEOF
20139 # CONFIG_HEADER section.
20142 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20143 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20145 # ac_d sets the value in "#define NAME VALUE" lines.
20146 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20147 ac_dB
='[ ].*$,\1#\2'
20150 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20151 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20152 ac_uB
='$,\1#\2define\3'
20156 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20159 - |
*:- |
*:-:* ) # input from stdin
20161 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20162 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20163 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20164 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20165 * ) ac_file_in
=$ac_file.
in ;;
20168 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20169 echo "$as_me: creating $ac_file" >&6;}
20171 # First look for the input files in the build tree, otherwise in the
20173 ac_file_inputs
=`IFS=:
20174 for f in $ac_file_in; do
20176 -) echo $tmp/stdin ;;
20178 # Absolute (can't be DOS-style, as IFS=:)
20179 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20180 echo "$as_me: error: cannot find input file: $f" >&2;}
20181 { (exit 1); exit 1; }; }
20184 if test -f "$f"; then
20187 elif test -f "$srcdir/$f"; then
20192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20193 echo "$as_me: error: cannot find input file: $f" >&2;}
20194 { (exit 1); exit 1; }; }
20197 done` ||
{ (exit 1); exit 1; }
20198 # Remove the trailing spaces.
20199 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20203 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20204 # `conftest.undefs', that substitutes the proper values into
20205 # config.h.in to produce config.h. The first handles `#define'
20206 # templates, and the second `#undef' templates.
20207 # And first: Protect against being on the right side of a sed subst in
20208 # config.status. Protect against being in an unquoted here document
20209 # in config.status.
20210 rm -f conftest.defines conftest.undefs
20211 # Using a here document instead of a string reduces the quoting nightmare.
20212 # Putting comments in sed scripts is not portable.
20214 # `end' is used to avoid that the second main sed command (meant for
20215 # 0-ary CPP macros) applies to n-ary macro definitions.
20216 # See the Autoconf documentation for `clear'.
20217 cat >confdef2sed.
sed <<\_ACEOF
20222 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20224 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20227 # If some macros were called several times there might be several times
20228 # the same #defines, which is useless. Nevertheless, we may not want to
20229 # sort them, since we want the *last* AC-DEFINE to be honored.
20230 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20231 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20232 rm -f confdef2sed.sed
20234 # This sed command replaces #undef with comments. This is necessary, for
20235 # example, in the case of _POSIX_SOURCE, which is predefined and required
20236 # on some systems where configure will not decide to define it.
20237 cat >>conftest.undefs <<\_ACEOF
20238 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20241 # Break up conftest.defines because some shells have a limit on the size
20242 # of here documents, and old seds have small limits too (100 cmds).
20243 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20244 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20245 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20246 echo ' :' >>$CONFIG_STATUS
20247 rm -f conftest.tail
20248 while grep . conftest.defines >/dev/null
20250 # Write a limited-size here document to $tmp/defines.sed.
20251 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20252 # Speed up: don't consider the non `#define' lines.
20253 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20254 # Work around the forget-to-reset-the-flag bug.
20255 echo 't clr' >>$CONFIG_STATUS
20256 echo ': clr' >>$CONFIG_STATUS
20257 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20259 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20261 mv $tmp/out $tmp/in
20263 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20264 rm -f conftest.defines
20265 mv conftest.
tail conftest.defines
20267 rm -f conftest.defines
20268 echo ' fi # grep' >>$CONFIG_STATUS
20269 echo >>$CONFIG_STATUS
20271 # Break up conftest.undefs because some shells have a limit on the size
20272 # of here documents, and old seds have small limits too (100 cmds).
20273 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20274 rm -f conftest.
tail
20275 while grep . conftest.undefs
>/dev
/null
20277 # Write a limited-size here document to $tmp/undefs.sed.
20278 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20279 # Speed up: don't consider the non
`#undef'
20280 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20281 # Work around the forget-to-reset-the-flag bug.
20282 echo 't clr' >>$CONFIG_STATUS
20283 echo ': clr' >>$CONFIG_STATUS
20284 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20286 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20288 mv $tmp/out $tmp/in
20290 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20291 rm -f conftest.undefs
20292 mv conftest.tail conftest.undefs
20294 rm -f conftest.undefs
20296 cat >>$CONFIG_STATUS <<\_ACEOF
20297 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20298 # use $as_me), people would be surprised to read:
20299 # /* config.h. Generated by config.status. */
20300 if test x
"$ac_file" = x-
; then
20301 echo "/* Generated by configure. */" >$tmp/config.h
20303 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20305 cat $tmp/in >>$tmp/config.h
20307 if test x
"$ac_file" != x-
; then
20308 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20309 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20310 echo "$as_me: $ac_file is unchanged" >&6;}
20312 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20314 X"$ac_file" : 'X\(//\)[^/]' \| \
20315 X"$ac_file" : 'X\(//\)$' \| \
20316 X"$ac_file" : 'X\(/\)' \| \
20317 . : '\(.\)' 2>/dev/null ||
20319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20321 /^X\(\/\/\)$/{ s//\1/; q; }
20322 /^X\(\/\).*/{ s//\1/; q; }
20324 { if $as_mkdir_p; then
20329 while test ! -d "$as_dir"; do
20330 as_dirs
="$as_dir $as_dirs"
20331 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20333 X"$as_dir" : 'X\(//\)[^/]' \| \
20334 X"$as_dir" : 'X\(//\)$' \| \
20335 X"$as_dir" : 'X\(/\)' \| \
20336 . : '\(.\)' 2>/dev/null ||
20338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20340 /^X\(\/\/\)$/{ s//\1/; q; }
20341 /^X\(\/\).*/{ s//\1/; q; }
20344 test ! -n "$as_dirs" || mkdir
$as_dirs
20345 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20347 { (exit 1); exit 1; }; }; }
20350 mv $tmp/config.h
$ac_file
20354 rm -f $tmp/config.h
20358 cat >>$CONFIG_STATUS <<\_ACEOF
20361 # CONFIG_COMMANDS section.
20363 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
20364 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
20365 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20366 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
20367 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20368 X"$ac_dest" : 'X\(//\)[^/]' \| \
20369 X"$ac_dest" : 'X\(//\)$' \| \
20370 X"$ac_dest" : 'X\(/\)' \| \
20371 . : '\(.\)' 2>/dev/null ||
20373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20375 /^X\(\/\/\)$/{ s//\1/; q; }
20376 /^X\(\/\).*/{ s//\1/; q; }
20380 if test "$ac_dir" != .
; then
20381 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20382 # A "../" for each directory in $ac_dir_suffix.
20383 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20385 ac_dir_suffix
= ac_top_builddir
=
20389 .
) # No --srcdir option. We are building in place.
20391 if test -z "$ac_top_builddir"; then
20394 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20396 [\\/]* | ?
:[\\/]* ) # Absolute path.
20397 ac_srcdir
=$srcdir$ac_dir_suffix;
20398 ac_top_srcdir
=$srcdir ;;
20399 *) # Relative path.
20400 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20401 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20403 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20405 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
20406 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20407 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20408 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20411 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20412 echo "$as_me: executing $ac_dest commands" >&6;}
20416 ### Make the necessary directories, if they don't exist.
20417 for dir
in etc lisp
; do
20418 test -d ${dir} || mkdir
${dir}
20421 # Build src/Makefile from ${srcdir}/src/Makefile.c
20422 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
20423 # This must be done after src/config.h is built, since we rely on that file.
20425 # Now get this: Some word that is part of the ${srcdir} directory name
20426 # or the ${configuration} value might, just might, happen to be an
20427 # identifier like `sun4' or `i386' or something, and be predefined by
20428 # the C preprocessor to some helpful value like 1, or maybe the empty
20429 # string. Needless to say consequent macro substitutions are less
20430 # than conducive to the makefile finding the correct directory.
20431 undefs
="`echo $top_srcdir $configuration $canonical |
20432 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
20433 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
20436 echo creating src
/epaths.h
20437 ${MAKE-make} epaths-force
20439 # As of 2000-11-19, newest development versions of GNU cpp preprocess
20440 # `..' to `. .' unless invoked with -traditional
20442 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
20443 CPPFLAGS
="$CPPFLAGS -traditional"
20446 echo creating lib-src
/Makefile
20448 rm -f junk.c junk1.c junk2.c
20449 sed -e '/start of cpp stuff/q' \
20450 < Makefile.c
> junk1.c
20451 sed -e '1,/start of cpp stuff/d'\
20452 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20453 < Makefile.c
> junk.c
20454 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
20455 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20456 cat junk1.c junk2.c
> Makefile.new
20457 rm -f junk.c junk1.c junk2.c
20458 chmod 444 Makefile.new
20459 mv -f Makefile.new Makefile
20462 echo creating src
/Makefile
20464 rm -f junk.c junk1.c junk2.c
20465 sed -e '/start of cpp stuff/q' \
20466 < Makefile.c
> junk1.c
20467 sed -e '1,/start of cpp stuff/d'\
20468 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
20469 < Makefile.c
> junk.c
20470 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
20471 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
20472 cat junk1.c junk2.c
> Makefile.new
20473 rm -f junk.c junk1.c junk2.c
20474 chmod 444 Makefile.new
20475 mv -f Makefile.new Makefile
20478 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
20479 echo creating src
/.gdbinit
20480 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
20483 # This is how we know whether to re-run configure in certain cases.
20484 touch src
/config.stamp
20491 cat >>$CONFIG_STATUS <<\_ACEOF
20493 { (exit 0); exit 0; }
20495 chmod +x
$CONFIG_STATUS
20496 ac_clean_files
=$ac_clean_files_save
20499 # configure is writing to config.log, and then calls config.status.
20500 # config.status does its own redirection, appending to config.log.
20501 # Unfortunately, on DOS this fails, as config.log is still kept open
20502 # by configure, so config.status won't be able to write to it; its
20503 # output is simply discarded. So we exec the FD to /dev/null,
20504 # effectively closing config.log, so it can be properly (re)opened and
20505 # appended to by config.status. When coming back to configure, we
20506 # need to make the FD available again.
20507 if test "$no_create" != yes; then
20509 ac_config_status_args
=
20510 test "$silent" = yes &&
20511 ac_config_status_args
="$ac_config_status_args --quiet"
20513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20516 # would make configure fail if this is the last instruction.
20517 $ac_cs_success ||
{ (exit 1); exit 1; }